]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
mips.c (machine_function): Add new fields: ignore_hazard_length_p and all_noreorder_p.
[gcc.git] / gcc / ChangeLog
CommitLineData
6f2993e5
RS
12003-07-02 Richard Sandiford <rsandifo@redhat.com>
2
3 * config/mips/mips.c (machine_function): Add new fields:
4 ignore_hazard_length_p and all_noreorder_p.
5 (mips_flag_delayed_branch): New variable.
6 (override_options): Treat '/' as an operand punctuation character.
7 Set up mips_flag_delayed_branch.
8 (print_operand): Handle '/'.
9 (mips_output_function_prologue): Put the whole function in
10 .set noreorder and .set nomacro if all_noreorder_p is true.
11 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
12 (mips16_optimize_gp): Remove "first insn" parameter.
13 (mips16_lay_out_constants): New function, split out from mips_reorg.
14 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15 (mips_reorg): For mips16 code, call mips16_lay_out_constant
16 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
17 do delayed-branch scheduling followed by hazard detection.
18 (mips_adjust_insn_length): Only account for hazards if
19 !ignore_hazard_length_p.
20 (mips_output_load_label): Add a nop to the o32 sequence if
21 the target suffers from load delays.
22 (mips_output_conditional_branch): Add %/ to the end of branches.
23 (mips_output_division): Fill the branch delay slot with %#.
24 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
25 instructions. End all other %* branches with %/.
26 (ffssi2, ffsdi2): Fix lengths.
27 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
28 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
29 (fix_truncsfsi2_macro): Likewise.
30 (mov_lwl): Set hazard to "none".
31 (ashldi3_internal): Fill the branch delay slot with %#.
32 (ashrdi3_internal, lshrdi3_internal): Likewise.
33 (exception_receiver): Explicitly set $28.
34 (hazard_nop): New pattern.
35
0184bd46
JH
36Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
37
38 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
39 before calling tree_inlinable_function_p.
40
1a78e5a7
RO
412003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42
43 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
44 <internal/stdio_core.h> too.
45 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
46 <internal/wchar_core.h> too.
47 Substitute va_list uses in inline definition.
48 * fixinc/fixincl.x: Regenerate.
49
4c82f12b
RO
502003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
51
52 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
53 Undef before redefinition.
54 (LABEL_AFTER_LOC): Likewise.
55 (DEFAULT_SIGNED_CHAR): Likewise.
56 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
57 Fix IRIX spelling.
58
59 * config/mips/iris3.h: Remove, unused.
60 * config/mips/iris4.h: Likewise.
61
62 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
63
64 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
65 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
66 target_cpu_default.
67
68 * config/mips/iris5.h: Move explicit includes ...
69 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
70
71 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
72 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
73 tm_defines.
74
75 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
76 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
77 target_cpu_default.
78
79 * config/mips/iris6.h: Fix IRIX spelling.
80 (MULTILIB_DEFAULTS): Undef before redefinition.
81
82 * config/mips/iris6.h: Move explicit includes ...
83 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
84
8bd87c4e
JH
85Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
86
87 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
88 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
89 Use next_needed field instead of aux to maintain the queue.
90 * cgraph.h (cgraph_node): Add next_needed.
91 (cgraph_varpool_node): Add next_needed; remove aux.
92 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
93
f6981e16
JH
94Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
95
96 * cgraphunit.c (cgraph_finalize_function): Set finalized.
97 (cgraph_finalize_function): Do not examine inlinablility.
98 (cgraph_finalize_compilation_unit): Do it here.
99 * cgraph.h (cgraph_local_info): Add finalized field.
100
d1c60855
RO
1012003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
102
103 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
104 (gt_pch_restore): Likewise.
105
093354e0
KH
1062003-07-01 Kazu Hirata <kazu@cs.umass.edu>
107
108 * config/alpha/alpha.c: Fix comment typos.
109 * config/alpha/elf.h: Likewise.
110 * config/arm/arm.c: Likewise.
111 * config/arm/arm.h: Likewise.
112 * config/arm/arm.md: Likewise.
113 * config/arm/t-arm-coff: Likewise.
114 * config/arm/t-strongarm-pe: Likewise.
115 * config/arm/xscale-elf.h: Likewise.
116 * config/avr/avr.h: Likewise.
117
ce47ca44
JL
1182003-07-01 Jeff Law <law@redhat.com>
119
120 * stmt.c (any_pending_cleanups): Remove another redundant test.
121
43b68ce5
DE
1222003-07-01 David Edelsohn <edelsohn@gnu.org>
123 J"orn Rennecke <joern.rennecke@superh.com>
124
125 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
126 for MEM case.
127
33e9d2aa
DP
1282003-07-01 Devang Patel <dpatel@apple.com>
129
130 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
131 (binclstatus): New.
132 (struct dbx_file): New members - bincl_status, pending_bincl_name and
133 prev.
134 (pending_bincls): New.
135 (dbxout_init): Initialize new dbx_file members.
136 (dbxout_start_source_file): Same.
137 (emit_bincl_stab): New function.
138 (emit_pending_bincls): Same.
139 (emit_pending_bincls_if_required): Same.
140 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
141 processed.
142 (dbxout_begin_block): Emit pending BINCL stabs.
143 (dbxout_end_block): Same.
144 (dbxout_function_decl): Same.
145 (dbxout_continue): Same.
146 (dbxout_type): Same.
147 (dbxout_class_name_qualifiers): Same.
148 (dbxout_symbol): Same.
149 (dbxout_symbol_location): Same.
150 (dbxout_parms): Same.
151
0108ae51
KG
1522003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
153
154 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
155 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
156
54ced33d
AJ
1572003-07-01 Andreas Jaeger <aj@suse.de>
158
159 * fold-const.c: Convert prototypes to ISO C90.
160 * function.c: Likewise.
161 * function.h: Likewise.
162
c0cbdbd9
KH
1632003-07-01 Kazu Hirata <kazu@cs.umass.edu>
164
165 * doc/contrib.texi: Fix typos.
166 * doc/invoke.texi: Likewise.
167 * doc/passes.texi: Likewise.
168 * doc/sourcebuild.texi: Likewise.
169 * doc/tm.texi: Likewise.
170
e0bb17a8
KH
1712003-07-01 Kazu Hirata <kazu@cs.umass.edu>
172
173 * basic-block.h: Fix comment typos.
174 * bb-reorder.c: Likewise.
175 * c-format.c: Likewise.
176 * cfgcleanup.c: Likewise.
177 * cfghooks.h: Likewise.
178 * cfgloop.c: Likewise.
179 * cfgloopmanip.c: Likewise.
180 * cfgrtl.c: Likewise.
181 * cgraph.h: Likewise.
182 * cgraphunit.c: Likewise.
183 * combine.c: Likewise.
184 * convert.c: Likewise.
185 * dbxout.c: Likewise.
186 * df.c: Likewise.
187 * df.h: Likewise.
188 * diagnostic.c: Likewise.
189 * dwarf2out.c: Likewise.
190 * et-forest.h: Likewise.
191 * flow.c: Likewise.
192 * fold-const.c: Likewise.
193 * function.h: Likewise.
194 * gcov-io.h: Likewise.
195 * gcov.c: Likewise.
196 * gcse.c: Likewise.
197 * genautomata.c: Likewise.
198 * ggc-common.c: Likewise.
199 * ggc-page.c: Likewise.
200 * loop-unroll.c: Likewise.
201 * loop-unswitch.c: Likewise.
202 * loop.c: Likewise.
203 * mips-tfile.c: Likewise.
204 * optabs.c: Likewise.
205 * ra-build.c: Likewise.
206 * ra-colorize.c: Likewise.
207 * ra-rewrite.c: Likewise.
208 * ra.h: Likewise.
209 * regmove.c: Likewise.
210 * reload.c: Likewise.
211 * rtlanal.c: Likewise.
212 * sched-ebb.c: Likewise.
213 * sched-int.h: Likewise.
214 * sched-vis.c: Likewise.
215 * sreal.c: Likewise.
216 * ssa-ccp.c: Likewise.
217 * ssa.c: Likewise.
218 * toplev.c: Likewise.
219 * tree-inline.c: Likewise.
220 * value-prof.c: Likewise.
221 * value-prof.h: Likewise.
222
5f2fc772
NS
2232003-07-01 Nathan Sidwell <nathan@codesourcery.com>
224
225 * rtl.h (emit_line_note_after): Remove.
226 (emit_note_copy_after, emit_note_copy): New.
227 * emit-rtl.c (reorder_insns_with_line_notes): Replace
228 emit_line_note_after with emit_note_copy_after.
229 (emit_insn_after_with_line_notes): Likewise.
230 (emit_line_note_after): Kill.
231 (emit_note_copy_after): New.
232 (emit_note_copy): New.
233 * function.c (emit_return_into_block): Use emit_note_copy_after.
234 (thread_prologue_and_epilogue_insns): Likewise.
235 * integrate.c (expand_inline_function): Use emit_note_copy.
236 (copy_insn_list): Likewise.
237 * unroll.c (copy_loop_body): Likewise.
238 * cfglayout.c (duplicate_insn_chain): Likewise.
239
5b030314
NS
2402003-07-01 Nathan Sidwell <nathan@codesourcery.com>
241
242 * c-tree.h (define_label): Replace filename and lineno arguments
243 with a location_t.
244 * c-decl.c (poplevel): Adjust define_label call.
245 (pop_label_level): Likewise.
246 (define_label): Replace filename and lineno arguments with a
247 location_t.
248 (store_parm_decls): Use DECL_SOURCE_LOCATION.
249 * c-parse.in (label): Adjust define_label call.
250
04df6730
NB
2512003-07-01 Neil Booth <neil@daikokuya.co.uk>
252
253 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
254 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
255 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
256 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
257 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
258
6cf9ac28
AJ
2592003-07-01 Andreas Jaeger <aj@suse.de>
260
261 * final.c: Convert prototypes to ISO C90.
262 * flow.c: Likewise.
263 * flags.h: Likewise.
264 * gcov-io.c: Likewise.
265 * gcov-io.h: Likewise.
266
4c20b2e7
BH
2672003-06-30 Bruno Haible <bruno@clisp.org>
268
269 PR middle-end/6578
270 * libgcc2.c (__subvsi3): Remove simplification that would not work
271 when subtracting -0x80000000.
272 (__subvdi3): Remove simplification that would return a wrong result.
273 (__mulvsi3): Fix overflow check.
274 (__absvdi2): Fix simplification that would return a wrong result.
275 (__mulvdi3): Fix overflow check.
276
de1f5659
JL
2772003-06-30 Jeff Law <law@redhat.com>
278
279 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
280 was always passed in the value '1'. Simplify body appropriately.
281 * tree.h (any_pending_cleanups): Corresponding changes.
282 * calls.c: (expand_call): Corresponding changes.
283
6001794d
KH
2842003-06-30 Kazu Hirata <kazu@cs.umass.edu>
285
286 * combine.c (distribute_notes): Don't bother REG_WAS_0.
287 * cse.c (cse_insn): Likewise.
288 * final.c (final_scan_insn): Likewise.
289 * jump.c (duplicate_loop_exit_test): Likewise.
290 * rtl.c (reg_note_name): Remove REG_WAS_0.
291 * rtl.h (REG_WAS_0): Remove.
292 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
293 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
294 (output_movhi): Likewise.
295 (output_movsisf): Likewise.
296 (reg_was_0): Remove.
297 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
298 REG_WAS_0.
299 (m68hc11_gen_movqi): Likewise.
300 * config/vax/vax-protos.h: Remove the prototype for
301 reg_was_0_p.
302 * config/vax/vax.c (follows_p): Remove.
303 (reg_was_0_p): Likewise.
304 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
305 (movhi): Likewise.
306 (movqi): Likewise.
307 * doc/rtl.texi (REG_WAS_0): Remove.
308
7d896ee9
MM
3092003-06-30 Mark Mitchell <mark@codesourcery.com>
310
311 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
312
e677f70c 3132003-06-30 Bob Wilson <bob.wilson@acm.org>
6cf9ac28 314
e677f70c
BW
315 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
316 top-level include directory.
317 * config/xtensa/lib2funcs.S: Likewise.
318 * config/xtensa/xtensa.h: Likewise.
319 * config/xtensa/xtensa-config.h: Remove.
320 * doc/install.texi: Update location of "xtensa-config.h" header.
6cf9ac28 321
d3632d41
UW
3222003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
323
324 * config/s390/s390.c (s390_extra_constraint): New function.
325 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
326 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
327 * config/s390/s390.c (q_constraint): Remove.
328 * config/s390/s390-protos.h (q_constraint): Likewise.
329 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
330 (EXTRA_ADDRESS_CONSTRAINT): Define.
331
332 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
333 (DISP_IN_RANGE, s390_short_displacement): New.
334 (legitimate_reload_operand_p): Support long displacements.
335 (s390_decompose_address): Likewise.
336 (legitimize_pic_address): Likewise.
337 (legitimize_address): Likewise.
338 (s390_fixup_clobbered_return_reg): Likewise.
339 (s390_emit_prologue, s390_emit_epilogue): Likewise.
340 (s390_output_mi_thunk): Likewise.
341
342 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
343 (attr "atype", attr "length"): Add defaults for new op_types.
344 (all insns): Change op_type attribute where appropriate.
345
346 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
347 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
348 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
349 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
350 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
6cf9ac28 351 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
d3632d41
UW
352 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
353 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
6cf9ac28 354 "*movdf_64", "*movdf_31", "*movsf",
d3632d41 355 "*load_multiple_si", "*store_multiple_di",
6cf9ac28
AJ
356 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
357 "*la_64", "*la_31", "*la_31_and", "force_la_31",
d3632d41
UW
358 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
359 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
360 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
6cf9ac28
AJ
361 "*addsi3_sign", "*addsi3_sub", "addsi3",
362 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
d3632d41
UW
363 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
364 "mulsi3"
365 "*andsi3_cc", "*andsi3_cconly", "andsi3",
366 "*andqi3_ss", "*andqi3_ss_inv",
367 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
368 "*iorqi3_ss", "*iorqi3_ss_inv",
369 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
370 "*xorqi3_ss", "*xorqi3_ss_inv",
371 "*tls_load_31"): Add alternatives for long-displacement instructions.
372
373 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
374 "*load_multiple_di", "*store_multiple_di",
6cf9ac28 375 "*sethighqidi_64", "*zero_extendhisi2_31",
d3632d41
UW
376 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
377 "adddf3", "*adddf3", "*adddf3_ibm",
378 "addsf3", "*addsf3", "*addsf3_ibm",
379 "subdf3", "*subdf3", "*subdf3_ibm",
380 "subsf3", "*subsf3", "*subsf3_ibm",
381 "mulsi_6432", "divmoddisi3",
382 "muldf3", "*muldf3", "*muldf3_ibm",
383 "mulsf3", "*mulsf3", "*mulsf3_ibm",
384 "divdf3", "*divdf3", "*divdf3_ibm",
385 "divsf3", "div*sf3", "*divsf3_ibm",
6cf9ac28 386 "sqrtdf2", "sqrtsf2",
d3632d41
UW
387 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
388 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
6cf9ac28
AJ
389 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
390 and address constraints for instructions that do not accept long
d3632d41
UW
391 displacements.
392
52609473
HP
3932003-06-30 Hartmut Penner <hpenner@de.ibm.com>
394 Ulrich Weigand <uweigand@de.ibm.com>
395
396 * config/s390/2084.md: New file.
397 * config/s390/s390.md: Include it.
398 * config/s390/s390.c (s390_adjust_priority): New function.
399 (TARGET_SCHED_ADJUST_PRIORITY): Define.
400 (s390_first_cycle_multipass_dfa_lookahead): New function.
401 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
402 (s390_sched_reorder2): New function.
403 (TARGET_SCHED_REORDER2): Define.
404 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
405 (s390_issue_rate): Likewise.
406
ed2df68b
JH
407Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
408
409 * Makefile.in (GTFILES): Add cgraph.h.
410 * cgraph.c (known_decls): Remove.
411 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
412 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
413 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
414 (cgraph_varpool_node): Likewise; add next pointer.
415 (cgraph_varpool_nodes): New static variable.
416 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
417 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
418 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
419 * gengtype.c (open_base_files): Include cgraph.h
420
f11c1f90
VR
4212003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
422
423 * Changelog: Remove ">>>>>>>" from previous change.
424
109b748d
VR
4252003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
426
427 * config/cris/cris.c: Fix spelling for "testcase".
428 * config/cris/cris.h: Likewise.
429 * config/cris/cris.md: Likewise.
430 * config/mmix/crti.asm: Likewise.
431 * config/mmix/mmix.h: Likewise.
432 * config/mmix/mmix.md: Likewise.
433
90b97100
KH
4342003-06-30 Kazu Hirata <kazu@cs.umass.edu>
435
436 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
437 1.
438
f13e0d4e
UW
4392003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
440
441 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
442 --with-mode configure options.
443 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
444 (DRIVER_SELF_SPECS): Define.
445 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
446 architecture to assembler.
447 (LINK_SPEC): Merge 31-bit and 64-bit variants.
448 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
6cf9ac28 449 * config/s390/s390.c (override_options): New default rules for
f13e0d4e
UW
450 architecture mode and cpu architecture selection.
451 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
452 new default rules.
6cf9ac28 453
f13e0d4e
UW
454 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
455 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
6cf9ac28 456 * config/s390/s390.c (override_options): Add "z990" to
f13e0d4e
UW
457 processor_alias_table.
458 * doc/invoke.texi (-march): Document "z990" processor type.
459
460 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
461 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
462 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
463 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
6cf9ac28 464 * config/s390/s390.c (override_options): Replace enum pta_flags by
f13e0d4e
UW
465 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
466
467 * config/s390/s390.c (s390_cpu): Rename to ...
468 (s390_tune): ... this.
469 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
470 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
471 * config/s390/s390.md (attr "cpu"): Likewise.
472
37fa72e9
NB
4732003-06-30 Neil Booth <neil@daikokuya.co.uk>
474
475 * c-common.c (enum c_language_kind, flag_objc): Remove.
476 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
477 c_add_case_label, finish_label_addr_expr, boolean_increment):
478 Use c_dialect_ macros.
479 * c-common.h (enum c_language_kind): Extend.
480 (c_dialect_cxx, c_dialect_objc): New.
481 (flag_objc): Remove.
482 (c_common_init_options): Update prototype.
483 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
484 macros.
485 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
486 macros.
487 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
488 * c-lang.c (c_init_options): Remove.
489 (c_language): Define.
490 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
491 * c-lex.c (lex_charconst): Use c_dialect_ macros.
492 * c-opts.c (lang_flags): Make function-local.
493 (c_common_init_options): Use c_dialect_ macros. Handle
494 C++ diagnostic requirements.
495 (c_common_handle_option, c_common_post_options): Use flag_cxx.
496 * c-parse.in (init_reswords): Use c_dialect_objc ().
497 * c-pch.c (get_ident): Use c_language.
498 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
499 * c-typeck.c (comptypes, build_c_cast): Similarly.
500 * objc/objc-lang.c (c_language): Define.
501 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
502 (objc_init_options): Remove.
503
ec097612
KH
5042003-06-30 Kazu Hirata <kazu@cs.umass.edu>
505
506 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
507 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
508
b10d2c9d
WB
5092003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
510
511 * doc/sourcebuild.texi: Don't reference gnats.html any more.
512
81983b04
KH
5132003-06-30 Kazu Hirata <kazu@cs.umass.edu>
514
515 * config/h8300/h8300.c (compute_mov_length): Fix length of
516 mov:SF on H8/300.
517
1e0b938e
NC
5182003-06-30 Nick Clifton <nickc@redhat.com>
519
520 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
521 constant.
522
a9bce3ab
JH
523Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
524
525 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
526
46c07df8
HP
5272003-06-30 Hartmut Penner <hpenner@de.ibm.com>
528
529 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
530 (altivec_in_gprs_p): New function.
531
6cf9ac28 532 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
46c07df8
HP
533 prototype.
534 (altivec_in_gprs_p): New prototype.
535
536 * config/rs6000/altivec.md (*movv4si_internal): Change
537 multi-assembler alternative to '#'. Add postreload splitter to
538 handle this cases.
539 (*movv4hi_internal): Likewise.
540 (*movv4qi_internal): Likewise.
541 (*movv4sf_internal): Likewise.
542
9d6bef95
JM
5432003-06-30 Jason Merrill <jason@redhat.com>
544
545 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
546 * calls.c: Not here.
547
4e938719
BE
5482003-06-30 Ben Elliston <bje@wasabisystems.com>
549
550 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
551 (bad_signed_byte_operand): Likewise.
552 (arm_output_epilogue): Likewise.
553 (arm_final_prescan_insn): Likewise.
554
73383a81
RO
5552003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
556
557 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
558
2d583dcb
RO
5592003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
560
561 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
562 subsequent writes.
563
3cf54412
JH
564Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
565
566 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
567 in cfglayout mode.
568
1f48e56d
JH
569Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
570
571 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
572 (init_ext_80387_constants): Likewise.
573 (standard_80387_constant_rtx): Likewise.
574 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
575 (atantf): Disable for !TARGET_128BIT_LONG_LONG
576 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
577 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
578 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
579 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
580 (frndinttf2): New.
581 (f2xm1tf2): New.
582 (exp?f2): Use expsf2_tf when needed.
583 (exp?f2_tf): New.
584 (exptf): New.
585
8f48afc1
US
5862003-06-29 Uwe Stieber <uwe@kaos-group.de>
587
588 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
589 statement from tmake_file set.
590
bd235d86
JW
5912003-06-29 James E Wilson <wilson@tuliptree.org>
592
593 * reload.c (find_reloads): Change push_reloads to push_reload in
594 comment.
595 * reload1.c (eliminate_regs): Likewise.
596 (dump_needs): Delete prototype for deleted function.
597
280c1e0d
KG
5982003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
599
600 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
601 format attributes.
602 * c-format.c (enum format_type): Add gcc_diag_format_type,
603 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
604 (gcc_diag_length_specs, gcc_cdiag_length_specs,
605 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
606 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
607 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
608 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
609 (format_types_orig): Add new data.
610 (find_char_info_specifier_index, init_dynamic_diag_info): New
611 functions.
612 (handle_format_attribute): Update to handle new format attributes.
613
29427b01
AL
6142003-06-29 Aaron W. LaFramboise <awlaframboise@aol.com>
615
a22a0908 616 * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
29427b01 617
41ca24de
DH
6182003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
619
620 * doc/install.texi: Remove install documentation for obsoleted targets
621 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
622 arm-*-aof.
623 Update information about IA64 toolchain, AIX make requirements,
624 and binutils for m68k-*-hpux and *-*-linuxaout targets.
625
41b3243e
JH
626Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
627
628 * regmove.c (regmove_optimize): Don't try to make src and dst match
629 when they are in different modes.
630
64e97443
JH
631Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
632
633 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
634 busy work when builtin is not supported by the backend.
635
51a7f205
ZD
6362003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
637
638 * loop.c (count_one_set): Fix detection of registers set in more
6cf9ac28 639 than one basic block.
51a7f205 640
4a023207
AJ
6412003-06-29 Andreas Jaeger <aj@suse.de>
642
643 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
644 * system.h: Poison OBJ_FORMAT_ROSE.
645 * doc/tm.texi (Macros for Initialization): Remove documentatin of
646 OBJECT_FORMAT_ROSE.
647 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
648 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
5fad1c24
JDA
649
6502003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
651
652 * pa.c (update_total_code_bytes): New function.
653 (last_address): Number of bytes output for a function and its
654 associated thunks.
655 (compute_frame_size): Use BITS_PER_UNIT.
656 (pa_output_function_epilogue): Compute last_address. Use
657 update_total_code_bytes.
658 (output_lbranch): Handle long branch on portable runtime.
659 (attr_length_millicode_call, attr_length_call,
660 attr_length_indirect_call): Only use total_code_bytes for calls in
661 the text section.
662 (output_call): Only use an indirect call sequence when the target is
663 not local.
664 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
665 test to determine when an IA-relative branch can be used. Add various
666 long branch sequences. Avoid using an indirect branch on all ports
667 except SOM.
668
342e2b74
UW
6692003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
670
671 * expr.c (clear_by_pieces): Fix prototype.
672
7080f735
AJ
6732003-06-29 Andreas Jaeger <aj@suse.de>
674
675 * cse.c: Convert prototypes to ISO C90.
676 * cselib.c: Likewise.
677 * cselib.h: Likewise.
678 * dbxout.c: Likewise.
679 * debug.c: Likewise.
680 * df.c: Likewise.
681 * df.h: Likewise.
682 * dojump.c: Likewise.
683 * doloop.c: Likewise.
684 * dominance.c: Likewise.
685 * dwarf2asm.c: Likewise.
686 * dwarf2out.c: Likewise.
687 * dwarf2out.h: Likewise.
688 * dwarfout.c: Likewise.
502b8322
AJ
689 * except.c: Likewise.
690 * except.h: Likewise.
691 * emit-rtl.c: Likewise.
692 * et-forest.c: Likewise.
693 * et-forest.h: Likewise.
694 * except.c: Likewise.
695 * explow.c: Likewise.
696 * expmed.c: Likewise.
697 * expr.c: Likewise.
698 * expr.h: Likewise.
7080f735 699
f9da5064
KH
7002003-06-29 Kazu Hirata <kazu@cs.umass.edu>
701
702 * alloc-pool.c: Fix comment formatting.
703 * bitmap.c: Likewise.
704 * bitmap.h: Likewise.
705 * bt-load.c: Likewise.
706 * builtins.c: Likewise.
707 * caller-save.c: Likewise.
708 * cfganal.c: Likewise.
709 * cfgrtl.c: Likewise.
710 * collect2.c: Likewise.
711 * cse.c: Likewise.
712 * df.c: Likewise.
713 * diagnostic.c: Likewise.
714 * dwarf2out.c: Likewise.
715 * dwarfout.c: Likewise.
716 * expmed.c: Likewise.
717 * final.c: Likewise.
718 * flags.h: Likewise.
719 * fold-const.c: Likewise.
720 * gcc.c: Likewise.
721 * gcov-io.h: Likewise.
722 * gcov.c: Likewise.
723 * genattrtab.c: Likewise.
724 * genautomata.c: Likewise.
725 * libgcov.c: Likewise.
726 * mips-tfile.c: Likewise.
727 * optabs.c: Likewise.
728 * prefix.c: Likewise.
729 * rtlanal.c: Likewise.
730 * stmt.c: Likewise.
731 * stor-layout.c: Likewise.
732 * toplev.c: Likewise.
733 * varasm.c: Likewise.
734 * vmsdbgout.c: Likewise.
735
329d586f
KH
7362003-06-29 Kazu Hirata <kazu@cs.umass.edu>
737
738 * expr.c (emit_single_push_insn): If padding is needed
739 downward, adjust the stack pointer first, and then store the
740 data into the stack location using an offset.
741
159b3be1
AJ
7422003-06-29 Andreas Jaeger <aj@suse.de>
743
744 * collect2.h: Convert prototypes to ISO C90.
745 * collect2.c: Likewise.
746 * conflict.c: Likewise.
747 * coverage.c: Likewise.
748 * convert.h: Likewise.
749 * convert.c: Likewise.
750
4714db5a
NS
7512003-06-29 Nathan Sidwell <nathan@codesourcery.com>
752
753 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
754 filename to <internal>.
755 * tree.c (make_node): Just copy the current location.
756
df7fb8f9
EB
7572003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
758
759 PR optimization/11210
760 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
761
dfb82771
NB
7622003-06-29 Neil Booth <neil@daikokuya.co.uk>
763
764 * toplev.c (flag_dummy): Remove.
765 (f_options): Restore flag pointers.
766
7177e720
DE
7672003-06-29 David Edelsohn <edelsohn@gnu.org>
768
769 * config/rs6000/rs6000.c (processor_target_table): Add 970.
e601f149 770 * config.gcc: Add 970.
7177e720 771
485bad26
KH
7722003-06-29 Kazu Hirata <kazu@cs.umass.edu>
773
774 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
775 -1) with ggc_strdup.
776 * stmt.c (expand_asm_operands): Likewise.
777 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
778
b01258dd
KH
7792003-06-28 Kazu Hirata <kazu@cs.umass.edu>
780
781 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
782 definition.
783
d6553b54
FS
7842003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
785
786 * opts.c: Include insn-attr.h.
787 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
788
57856e4d
R
7892003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
790
791 * flow.c (propagate_one_insn): Use proper test for a register
792 being part of the return value.
793
cef1ccd6
KH
7942003-06-28 Kazu Hirata <kazu@cs.umass.edu>
795
796 * config/avr/avr.c: Fix a comment typo.
797
62e4d780
KH
7982003-06-28 Kazu Hirata <kazu@cs.umass.edu>
799
800 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
801 with avr_simplify_comparison_p.
802 * config/avr/avr.c: Likewise.
803
1e417e6a
KH
8042003-06-28 Kazu Hirata <kazu@cs.umass.edu>
805
806 * builtins.c: Follow spelling conventions.
807 * cgraph.c: Likewise.
808 * cpplex.c: Likewise.
809 * config/arm/arm.c: Likewise.
810 * config/arm/iwmmxt.md: Likewise.
811 * config/c4x/c4x-modes.def: Likewise.
812 * config/c4x/c4x.c: Likewise.
813 * config/c4x/c4x.h: Likewise.
814 * config/c4x/c4x.md: Likewise.
815 * config/i386/i386-interix.h: Likewise.
816 * config/mips/mips.h: Likewise.
817
d5512978
NB
8182003-06-28 Neil Booth <neil@daikokuya.co.uk>
819
820 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
821 __mc68020__ on TARGET_68020.
822
19cff4db
KH
8232003-06-28 Kazu Hirata <kazu@cs.umass.edu>
824
825 * config/h8300/h8300.c: Fix a comment typo.
826
9a472a42
NS
8272003-06-28 Nathan Sidwell <nathan@codesourcery.com>
828
cead95c2
NS
829 * c-parse.in (yylexstring): Use a location_t.
830
9a472a42
NS
831 * diagnostic.h (diagnostic_set_info): Replace file and lineno
832 parameters with a location_t.
833 * diagnostic.c (diagnostic_set_info): Replace file and lineno
834 parameters with a location_t.
835 (inform, warning, pedwarn, error, sorry, fatal_error,
836 internal_error, warning_with_decl, pedwarn_with_decl,
837 error_with_decl): Adjust.
838 * c-error.c (pedwarn_c99): Adjust.
839 * c-format.c (status_warning): Adjust.
840 * rtl-error.c (file_and_line_for_asm): Rename to ...
841 (location_for_asm): Return a location_t.
842 (diagnostic_for_asm): Adjust.
843
debdeb5d
NB
8442003-06-28 Neil Booth <neil@daikokuya.co.uk>
845
846 * cpptrad.c (skip_macro_block_comment): New.
847 (copy_comment): Use it if appropriate.
848
735e8085
KH
8492003-06-28 Kazu Hirata <kazu@cs.umass.edu>
850
851 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
852 definition.
853 (store_killed_in_insn): Likewise.
854 * print-rtl.c (print_rtx): Likewise.
855 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
856 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
857 (m68hc11_reassign_regs): Likewise.
858 (m68hc11_reorg): Likewise.
859
c707a408
GDR
8602003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
861
862 * diagnostic.c (output_integer_with_precision): New macro.
863 (output_format): Use it. Handle more format specifiers.
864 (output_long_decimal): Remove.
865 (output_unsigned_decimal): Likewise.
866 (output_long_unsigned_decimal): Likewise.
867 (output_octal): Likewise.
868 (output_long_octal): Likewise.
869 (output_hexadecimal): Likewise.
870 (output_long_hexadecimal): Likewise.
871 (output_long_long_decimal): Likewise.
872
f9974026
AS
8732003-06-28 Andreas Schwab <schwab@suse.de>
874
875 * config/ia64/ia64.md: Follow recent emit_note API change.
876
374a4e6c
NS
8772003-06-28 Nathan Sidwell <nathan@codesourcery.com>
878
879 * c-parse.in (%union): Replace filename & lineno with location.
880 (save_filename, save_lineno): Remove.
881 (save_location): New.
882 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
883 nested_function, notype_nested_function, if_prefix, lineno_stmt,
884 lineno_label, label): Adjust.
885
ae808627
JJ
8862003-06-28 Jakub Jelinek <jakub@redhat.com>
887
888 * builtins.c (c_strlen): Add only_value argument.
889 Handle COND_EXPR and COMPOUND_EXPR.
890 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
891 Adjust c_strlen callers.
892 (expand_builtin_strcpy, expand_builtin_strncpy,
893 expand_builtin_strcmp, expand_builtin_strncmp,
894 expand_builtin_fputs, expand_builtin_sprintf,
895 fold_builtin): Adjust c_strlen callers.
896
a487649c
JZ
8972003-06-28 Josef Zlomek <zlomekj@suse.cz>
898
899 * bb-reorder.c (find_traces_1_round): Do not send basic block
900 to next round when we are in the last round.
901
9756310a
NB
9022003-06-28 Neil Booth <neil@daikokuya.co.uk>
903
904 * Makefile.in: Update.
905 * opts.c: Include tm_p.h.
906 (handle_options): Make static.
907 (decode_options): Copied from toplev.c.
908 * opts.h (decode_options): New.
909 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
910 some to...
911 (general_init): ...here.
912 (toplev_main): Use decode_options instead.
913 * toplev.h (save_argc, save_argv): New.
914
f7400894
KH
9152003-06-28 Kazu Hirata <kazu@cs.umass.edu>
916
917 * explow.c (find_next_ref): Remove.
918 * rtl.h: Remove the prototype for find_next_ref.
919
5591ef05
RS
9202003-06-27 Roger Sayle <roger@eyesopen.com>
921
922 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
923 call to match recent API change.
924
8ce33230
ZW
9252003-06-27 Zack Weinberg <zack@codesourcery.com>
926
a6d682a0
ZW
927 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
928 declaration.
929
8ce33230
ZW
930 * c-format.c (check_format_string, get_constant)
931 * cfgrtl.c (rtl_split_edge):
932 Mark the definition static, matching the forward declaration.
933
396235c8
GN
9342003-06-27 Gunther Nikl <gni@gecko.de>
935
936 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
937
1d6302b1
GN
938 PR target/11014
939 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
940 syntax for MIT / MOTOROLA.
941
b11e4747
GN
942 PR other/10240
943 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
944 * configure: Rebuilt.
945
7a0ec607
CD
9462003-06-27 Chris Demetriou <cgd@broadcom.com>
947
948 * config/mips/mips.c (mips_build_va_list): Make padding in
949 va_list structure explicit to avoid -Wpadded warnings.
950
dc65c307
UW
9512003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
952
953 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
954 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
8ce33230 955 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
dc65c307 956 Declare it.
8ce33230 957 * config/s390/s390.md ("reload_outti", "reload_outdi",
dc65c307
UW
958 "reload_outdf"): New expanders.
959
960 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
961 memory operands as source.
962 ("movdi" + splitters): Likewise.
963 ("movdf" + splitters): Likewise.
964 * config/s390/s390.c (s390_split_ok_p): New function.
965 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
966
fa9ea255
KH
9672003-06-27 Kazu Hirata <kazu@cs.umass.edu>
968
969 * combine.c (force_to_mode): Replace the equality comparison
970 of INTVALs with a pointer equality comparison.
971 (simplify_comparison): Likewise.
972
47c7b4d2
KH
9732003-06-27 Kazu Hirata <kazu@cs.umass.edu>
974
975 * jump.c (rtx_renumbered_equal_p): Replace an expression that
976 is known to be 0 with 0.
977
ebd7a7af
KH
9782003-06-27 Kazu Hirata <kazu@cs.umass.edu>
979
980 * gcse.c (expr_equiv_p): Replace expressions that are known to
981 be 0 with 0.
982
213d5fbc
KH
9832003-06-27 Kazu Hirata <kazu@cs.umass.edu>
984
985 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
986 with a pointer equality comparison.
987
9df4f939
KH
9882003-06-27 Kazu Hirata <kazu@cs.umass.edu>
989
990 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
991 are known to be not equivalent.
992
7e4fb06a
RH
9932003-06-27 Richard Henderson <rth@redhat.com>
994
995 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
996 in floating point registers. Validate that we don't receive complex
997 values here. Use #elif.
998 (return_in_memory, function_value): New.
999 (alpha_va_arg): Handle complex values as two arguments.
1000 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1001 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1002 (SPLIT_COMPLEX_ARGS): New.
1003 * config/alpha/alpha-protos.h: Update.
1004
10052003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
75d75435 1006
8ce33230
ZW
1007 * ggc-page.c (inverse_table): Change type of mult to size_t.
1008 (compute_inverse): Compute inverse using size_t, not unsigned int.
1009 Compute inverse also for sizes larger than half a machine page.
75d75435 1010
5c20c06c
JH
1011Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1012
1013 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
1014 when called before cgraph_optimize.
1015
720b7001
ZW
10162003-06-27 Zack Weinberg <zack@codesourcery.com>
1017
1018 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1019 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1020 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1021
67f2899d
JH
1022Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
1023
1024 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1025 of known_decls.
1026
37706dd1
HPN
10272003-06-27 Hans-Peter Nilsson <hp@axis.com>
1028
1029 * defaults.h (REGISTER_MOVE_COST): Define default here.
1030 * regclass.c: Don't define default REGISTER_MOVE_COST here.
1031 * reload.c, reload1.c: Ditto.
1032
45751525
RE
10332003-06-27 Richard Earnshaw <rearnsha@arm.com>
1034
1035 * flags.h: Really install previous change.
1036
2e040219
NS
10372003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1038
1039 * rtl.h (emit_note): Remove FILE parameter.
1040 * emit-rtl.c (emit_line_note): Adjust emit_note call.
1041 (emit_note): Remove FILE parameter. Adjust.
1042 * builtins.c (expand_builtin_expect): Adjust emit_note call.
1043 * c-semantics.c (genrtl_scope_stmt): Likewise.
1044 (expand_stmt): Likewise.
1045 * cfglayout.c (reemit_insn_block_notes): Likewise.
1046 (duplicate_insn_chain): Likewise.
1047 * except.c (expand_eh_region_start, expand_eh_region_end,
1048 sjlj_emit_function_enter): Likewise.
1049 * explow.c (probe_stack_range): Likewise.
1050 * expr.c (emit_block_move_via_loop): Likewise.
1051 * function.c (init_function_start, expand_function_start,
1052 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1053 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1054 * reg-stack.c (compensate_edge): Likewise.
1055 * reload1.c (reload): Likewise.
1056 * rtlanal.c (hoist_insn_to_edge): Likewise.
1057 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1058 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1059 expand_exit_loop_top_cond, expand_value_return,
1060 expand_start_bindings_and_block, expand_end_bindings,
1061 expand_decl_cleanup, expand_start_case): Likewise.
1062 * unroll.c (copy_loop_body
1063 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1064 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1065 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1066 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1067 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1068 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1069 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1070
bc4721b8
NS
10712003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1072
1073 * c-tree.h (grokfield): Remove unused filename and line parameters.
1074 * c-decl.c (grokfield): Remove unused filename and line parameters.
1075 * c-parse.in (component_decl): Adjust field grokking rules, adjust
1076 grokfield calls.
1077 (component_declarator): Likewise.
1078 (component_notype_declarator): Likewise.
1079 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1080 calls.
1081 (build_protocol_template, build_method_prototype_list_template,
1082 build_method_prototype_template, build_category_template,
1083 build_selector_template, build_class_template,
1084 build_super_template, build_ivar_template,
1085 build_ivar_list_template, build_method_list_template,
1086 build_method_template, add_instance_variable): Likewise.
1087
d51d146f
KH
10882003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1089
1090 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1091 OP2 are known to be not equivalent.
1092
6a08f7b3
DP
10932003-06-26 Devang Patel <dpatel@apple.com>
1094
1095 * final.c (debug_flush_symbol_queue): New function.
1096 (debug_queue_symbol): New function.
1097 (debug_free_queue): New function.
1098 (debug_nesting): New variable.
1099 (symbol_queue): New variable.
1100 (symbol_queue_index): Same.
1101 (symbol_queue_size): Same.
1102 * debug.h (debug_flush_symbol_queue): New.
1103 (debug_queue_symbol): New.
1104 (debug_free_queue): New.
1105 (debug_nesting): New.
1106 (symbol_queue_index): New.
1107 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1108 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1109 (dbxout_init): Delay symbol output.
45751525
RE
1110 (dbxout_global_decl): Save, set and reset TREE_USED bit around
1111 dbxout_symbol() call.
6a08f7b3
DP
1112 (dbxout_begin_function): Same.
1113 (dbxout_finish): Free symbol queue.
1114 (dbxout_type): Put appropriate symbols in queue.
45751525
RE
1115 (dbxout_symbol): Put info for symbol's type in queue.
1116 Decrement/Increment nesting counts flush symbol queue appropriately.
6a08f7b3
DP
1117 (dbxout_parms): Increment dbxout nesting.
1118 (dbxout_reg_parms): Same.
1119 * flags.h (flag_debug_only_used_symbols): New.
1120 * toplev.c (flag_debug_only_used_symbols): New variable.
45751525
RE
1121 (lang_independent_options): Add entries for new option
1122 -feliminate-unused-debug-symbols.
6a08f7b3
DP
1123 * common.opt: Add entry for -feliminate-unused-debug-symbols.
1124 * opts.c (common_handle_options): Same.
45751525
RE
1125 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1126 -feliminate-unused-debug-symbols.
1127 * doc/invoke.texi (Debugging Options): Document
1128 -feliminate-unused-debug-symbols.
720b7001 1129
6ba701c8
RS
11302003-06-26 Roger Sayle <roger@eyesopen.com>
1131 Jakub Jelinek <jakub@redhat.com>
1132
1133 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1134 obtain the format string instead of using TREE_STRING_POINTER and
1135 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
1136 return value is unused or the length of src is a known constant.
1137
49b83932
RH
11382003-06-26 Richard Henderson <rth@redhat.com>
1139
1140 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1141
4e14f1f9
RH
11422003-06-26 Richard Henderson <rth@redhat.com>
1143
1144 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1145 (ia64_split_call): Only load descriptor for GP register inputs.
1146 (ia64_expand_epilogue): Check current_frame_info.mask not
1147 current_function_is_leaf to restore ar.pfs.
1148
f6a1f3f6 11492003-06-26 Richard Henderson <rth@redhat.com>
720b7001 1150
f6a1f3f6
RH
1151 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1152 instead of replacing it.
720b7001 1153
d444b5e8
RH
11542003-06-26 Richard Henderson <rth@redhat.com>
1155
720b7001 1156 * flow.c (propagate_one_insn): Kill function return value
99af0d26
RH
1157 registers across tail calls.
1158
d444b5e8
RH
1159 * flow.c (propagate_one_insn): Preserve live-at-end registers
1160 across tail calls.
1161
35d6034b
R
11622003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1163
1164 * reload.c (can_reload_into): New function.
1165 (push_reload): Use it.
1166
343fd2c7
KH
11672003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1168
1169 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1170 references to the amount of a rotation.
1171
10d6ea27
NN
11722003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1173
1174 * config/sh/coff.h: Don't include dbxcoff.h.
1175 * config.gcc: List it here.
1176
b2948a2c
KH
11772003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1178
1179 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1180 earlier. Don't check if SRC is a constant.
1181
15e35479
KH
11822003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1183
1184 * Makefile.in (OBJS): Add postreload.o.
1185 Remove cselib.h from the dependency list for reload1.o.
1186 Add a dependency list for postreload.o.
1187 * reload.h: Change the comment for the prototype of
1188 reload_cse_regs.
1189 * reload1.c: Don't include cselib.h.
1190 (reload_cse_regs): Move to postreload.c
1191 (reload_cse_regs_1): Likewise.
1192 (reload_cse_noop_set_p): Likewise.
1193 (reload_cse_simplify_set): Likewise.
1194 (reload_cse_simplify_operands): Likewise.
1195 (RELOAD_COMBINE_MAX_USES): Likewise.
1196 (reload_combine_ruid): Likewise.
1197 (LABEL_LIVE): Likewise.
1198 (reload_combine): Likewise.
1199 (reload_combine_note_use): Likewise.
1200 (reload_combine_note_store): Likewise.
1201 (reg_set_luid): Likewise.
1202 (reg_offset): Likewise.
1203 (reg_base_reg): Likewise.
1204 (reg_mode): Likewise.
1205 (move2add_luid): Likewise.
1206 (move2add_last_label_luid): Likewise.
1207 (MODES_OK_FOR_MOVE2ADD): Likewise.
1208 (reload_cse_move2add): Likewise.
1209 (move2add_note_store): Likewise.
1210 (reload_cse_simplify): Likewise.
1211 * postreload.c: New.
1212
0e8a9ede
KH
12132003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1214
1215 * config/avr/avr.c (final_prescan_insn): Remove support for
1216 -mrtl.
1217 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1218 (TARGET_RTL_DUMP): Likewise.
1219 (TARGET_SWITCHES): Remove -mrtl.
1220
caf7f21a
KH
12212003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1222
1223 * config/h8300/h8300-protos.h: Change emit_a_rotate to
1224 output_a_rotate. Add a prototype for compute_a_rotate_length.
1225 * config/h8300/h8300.c (emit_a_rotate): Change to
1226 output_a_rotate.
1227 (compute_a_rotate_length): New.
1228 (h8300_adjust_insn_length): Remove.
1229 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1230 * config/h8300/h8300.md (adjust_length): Remove.
1231 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1232 (*rotlhi3_1): Likewise.
1233 (*rotlsi3_1): Likewise.
1234
f5416098
RS
12352003-06-26 Roger Sayle <roger@eyesopen.com>
1236 Richard Henderson <rth@redhat.com>
1237
1238 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1239 list against re-evaluation. If expand_unop fails, call expand_call
1240 with the stabilized argument list rather than return NULL_RTX.
1241 (expand_builtin_mathfn2): Likewise, always stabilize the argument
1242 list, and call expand_call ourselves if expand_binop fails.
1243
6dc208a1
EB
12442003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1245
1246 PR optimization/11210
1247 * fold-const (decode_field_reference): Strip only NOPs that
1248 don't affect the sign.
1249
603ff6b5
DD
12502003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1251
1252 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1253 (pop_fpscr, fpu_switch): Likewise.
1254
af166e5d
ZD
12552003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1256
1257 * value-prof.c: New.
1258 * value-prof.h: New.
1259 * Makefile.in (value-prof.o): New.
1260 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1261 (profile.o): Add value-prof.h and tree.h dependency.
1262 * flags.h (flag_profile_values): Declare.
1263 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1264 Add new counters.
1265 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1266 GCOV_COUNTER_V_DELTA): New counter sections.
1267 (__gcov_merge_single, __gcov_merge_delta): Declare.
1268 * flow.c (mark_used_regs): Set subregs_of_mode only when the
1269 structure is initialized.
1270 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1271 * profile.c: Include value-prof.h and tree.h.
1272 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1273 gen_const_delta_profiler, instrument_values): New static functions.
1274 (get_exec_counts): Fix comment.
1275 (branch_prob): Invoke instrument_values.
1276 * toplev.c (flag_profile_values): New flag.
1277 * doc/invoke.texi (-fprofile-values): Document.
1278
12792003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
ff25ef99
ZD
1280
1281 * Makefile.in (cfgrtl.o): Add expr.h dependency.
1282 * cfgrtl.c: Include expr.h.
1283 (mark_killed_regs, safe_insert_insn_on_edge): New
1284 functions.
1285 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1286 * basic-block.h (safe_insert_insn_on_edge): Declare.
1287
9eee5e72
NB
12882003-06-26 Neil Booth <neil@daikokuya.co.uk>
1289
1290 * c-opts.c (missing_arg): Make non-static.
1291 (c_common_handle_option): Don't check for missing arguments.
1292 * opts.c (handle_option): Check for missing arguments.
1293
09ec461d
DE
12942003-06-26 David Edelsohn <edelsohn@gnu.org>
1295
1296 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1297
beda3471
LR
12982003-06-25 Loren James Rittle <ljrittle@acm.org>
1299
1300 * configure.in (ld_vers): Portability [sed].
1301 * configure: Regenerate with autoconf213.
1302
22c7c85e
L
13032003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 * doc/extend.texi: Document new builtin functions for Intel
1306 Prescott New Intrunctions.
1307
1308 * doc/invoke.texi: Document new command-line options, -mpni and
1309 -mno-pni, for Intel Prescott New Intrunctions.
1310
1311 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1312
1313 * config/i386/i386.c (override_options): Turn on MASK_SSE2
1314 for -mpni. Turn on MASK_SSE for -msse2.
1315 (bdesc_2arg): Add PNI builtins with 2 args.
1316 (bdesc_1arg): Add PNI builtins with 1 arg.
1317 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1318 (ix86_expand_builtin): Likewise.
1319
1320 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1321 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1322 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1323 (TARGET_PNI): New.
1324 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1325 -mpni and -mno-pni.
1326 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1327 (ix86_builtins): Add PNI builtins.
1328 (config/i386/i386.md): Add PNI patterns.
1329
1330 * config/i386/pmmintrin.h: New file.
1331
7f8b3eb0
KH
13322003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1333
1334 * config/h8300/h8300.md (call): Fix the insn lengths.
1335 (call_value): Likewise.
1336
4d7d0451
JH
1337Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
1338
1339 * c-common.c (handle_used_attribute): Use mark_referenced.
1340 * varasm.c (mark_referenced): Break out from ...
1341 (assemble_name): ... here.
1342 * tree.h (mark_referenced): Declare.
1343
6322fdd8
WB
13442003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
1345
1346 * gccbug.in: Add PCH to list of categories.
1347
48c4721e
MS
13482003-06-25 Martin Schaffner <schaffner@gmx.li>
1349
1350 * cppfiles.c: Clarify comments.
1351 * cpphash.h: Likewise.
1352 * cpplib.h: Likewise.
1353 * cppmacro.c: Likewise.
1354 * mkdeps.h: Likewise.
1355
f18754d6
NB
13562003-06-25 Neil Booth <neil@daikokuya.co.uk>
1357
1358 * c-opts.c (complain_wrong_lang, write_langs): Remove.
1359 (c_common_handle_option): Complaints about wrong language are
1360 handled in opts.c now.
1361 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1362 (find_opt): Fix thinko.
1363 (handle_option): Update prototype. Complain about switches for
1364 a different front end.
1365 * opts.h (lang_names, handle_options): New.
1366 (handle_option): Remove.
1367 * opts.sh: Write out language names array.
1368 * toplev.c (parse_options_and_default_flags): Use handle_options.
1369
37f22004
L
13702003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1371
1372 * config/i386/i386.c (MASK_SSE1): Removed.
1373 (MASK_SSE164): Removed.
1374 (MASK_SSE264): Removed.
1375 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1376 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1377 with MASK_SSE2 | MASK_64BIT.
1378 (bdesc_1arg): Likewise.
1379 (ix86_init_mmx_sse_builtins): Likewise.
1380
1381 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
1382 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
1383 -msse2.
1384
85f015e1
KG
13852003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1386
1387 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
1388 (HOST_WIDE_INT_PRINT_DEC_SPACE,
1389 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1390 HOST_WIDEST_INT_PRINT_DEC_SPACE,
1391 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
1392 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
1393 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
1394 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
1395
1396 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
1397 * ra-debug.c (dump_static_insn_cost): Likewise.
1398
27847754
NC
13992003-06-26 Nick Clifton <nickc@redhat.com>
1400
1401 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1402 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
720b7001 1403 Replace occurances of '???' with 'XXX' incase they are
27847754
NC
1404 mistaken for trigraphs.
1405 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
1406 does not have a register for the first operand.
720b7001 1407
b1dcf523
DD
14082003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1409
1410 * config/sh/sh.c (sh_register_move_cost):
1411 Add case for moving between MAC_REGS.
1412
2896d056
ZW
14132003-06-25 Zack Weinberg <zack@codesourcery.com>
1414
1415 PR 10178
1416 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
1417 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
1418 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
1419 to true.
1420 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
1421 return 0.
1422
8f7193b8
KG
14232003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1424
1425 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
1426 * bt-load.c: Include "tm_p.h".
1427
f5139cc5
KH
14282003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1429
1430 * config/h8300/h8300.c (compute_mov_length): Adjust for the
1431 new optimization.
1432 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
1433 an SImode constant whose upper and lower are the same.
1434
380e1984
JH
1435Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
1436
1437 * varasm.c (assemble_name): Mark needed variables even when
1438 global info is ready.
1439
3f8b659d
JQ
14402003-06-24 Jerry Quinn <jlquinn@optonline.net>
1441
1442 PR other/11280
1443 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
1444 -freorder-functions description.
1445
a53efda2
JZ
14462003-06-25 Josef Zlomek <zlomekj@suse.cz>
1447
1448 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
1449
0bd95603
NB
14502003-06-25 Neil Booth <neil@daikokuya.co.uk>
1451
1452 * opts.c (common_handle_option): Add missing break;s.
1453
7948a9ea
KH
14542003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1455
1456 * config/h8300/h8300-protos.h: Add a prototype for
1457 compute_mov_length.
1458 * config/h8300/h8300.c (compute_mov_length): New.
1459 * config/h8300/h8300.md (*movqi_h8300): Use it.
1460 (*movqi_h8300hs): Likewise.
1461 (movstrictqi): Likewise.
1462 (*movhi_h8300): Likewise.
1463 (*movhi_h8300hs): Likewise.
1464 (movstricthi): Likewise.
1465 (*movsi_h8300): Likewise.
1466 (*movsf_h8300): Likewise.
1467 (*movsi_h8300hs): Likewise.
1468 (*movsf_h8300hs): Likewise.
1469
e5b0e711
KH
14702003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1471
1472 * jump.c (next_nondeleted_insn): Remove.
1473 * rtl.h: Remove the prototype for next_nondeleted_insn.
1474
b9ba01a1
RS
14752003-06-24 Roger Sayle <roger@eyesopen.com>
1476
1477 PR optimization/11311
1478 * builtins.c (powi_cost): Fix typo. The number of multiplications
1479 required is the number to reduce the argument, result, plus the
1480 cost of calculating the residual, val [not n, the original value].
1481
46512942
RS
14822003-06-24 Roger Sayle <roger@eyesopen.com>
1483
1484 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
1485
bfa0c519
RH
14862003-06-24 Richard Henderson <rth@redhat.com>
1487 (blame to: Loren James Rittle <ljrittle@acm.org>)
1488
1489 * real.h (ieee_extended_intel_96_round_53_format): New.
1490 * real.c (ieee_extended_intel_96_round_53_format): New.
1491 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
1492 for XFmode and TFmode.
1493
61f33c67
KH
14942003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1495
1496 * config/h8300/h8300.md (4 anonymous patterns): Give internal
1497 names.
1498 (movsi_h8300): Change the name to *movsi_h8300.
1499 (movsi_h8300hs): Change the name to *movsi_h8300hs.
1500 (movsf_h8300): Change the name to *movsf_h8300.
1501 (movsf_h8300hs): Change the name to *movsf_h8300hs.
1502
946137a0
JJ
15032003-06-24 Jakub Jelinek <jakub@redhat.com>
1504
1505 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
1506 src twice.
1507
6d1cb95f
R
15082003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
1509
1510 Back out these patches:
1511 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
2896d056
ZW
1512 * sh.h (OLD_ARG_MODE): New macro.
1513 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
1514 (FUNCTION_ARG_1): Break out of:
1515 (FUNCTION_ARG). Use OLD_ARG_MODE.
6d1cb95f 1516 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2896d056
ZW
1517 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
1518 of the generated register.
6d1cb95f
R
1519
1520 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
1521 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
1522 an even number of floating point regs are in use, use the same
2896d056 1523 sequence of argument passing registers for SCmode as would be
6d1cb95f
R
1524 used for two SFmode values.
1525 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
1526 swap real / imaginary parts in incoming SCmode values passed
1527 in registers.
1528
e7891c4b
FH
15292003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1530
2896d056
ZW
1531 PR target/11260
1532 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
e7891c4b 1533
e69529cd
JH
1534Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
1535
1536 * Makefile.in (cgraph.o): Depend on output.h, not depend on
1537 tree-inline.h
1538 * cgraph.c: Do not include tree-inline.h; include output.h
1539 (known_fns): Rename to ...
1540 (known_decls): ... this one; update all uses.
1541 (cgraph_varpool_hash): New static variable.
1542 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
1543 variables.
1544 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
1545 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
1546 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
1547 New functions.
1548 * cgraph.h (cgraph_varpool_node): New structure.
1549 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
1550 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
1551 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
1552 cgraph_varpool_asemble_pending_decls): Declare.
1553 * cgraphunit.c (record_call_1): Notice variable references.
1554 (cgraph_finalize_compilation_unit): Assemble pending variables.
1555 * toplev.c (wrapup_global_declarations): Use varpool.
1556 (compile_file): Assemble pending declarations.
1557 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
1558 * varasm.c (assemble_name): Notice varpool references.
1559
d35543c0
JH
1560Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
1561
1562 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
1563 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
1564 * varasm.c (assemble_variable): Call prepare_assemble_variable.
1565
2082e02f
RS
15662003-06-23 Roger Sayle <roger@eyesopen.com>
1567
1568 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
1569 calls for pow, powf, powl and their __builtin_ variants.
1570 (expand_builtin_pow): If the second argument is a constant
1571 integer and compiling with -ffast-math, use expand_powi to
1572 generate RTL if powi_cost is less than POWI_MAX_MULTS.
1573 (powi_cost): New function to return the number of multiplications
1574 necessary to evaluate an Nth power, for integer constant N.
1575 (expand_powi): New function to expand the RTL for evaluating
1576 the Nth power of a floating point value, for integer constant N.
1577
1578 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
1579
1668aabc
JH
1580Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
1581
1582 * cgraph.c (cgraph_nodes_queue): Declare.
1583 (eq_node): Take identifier as p2.
1584 (cgraph_node): Update htab_find_slot_with_hash call.
1585 (cgraph_node_for_identifier): New.
1586 (cgraph_mark_needed_node): Move here from cgraphunit.c.
1587 * cgraph.h (cgraph_nodes_queue): Declare.
1588 (cgraph_node_for_identifier): Declare.
1589 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
1590 instead of in cgraph_finalize_compilation_unit; constructors and
1591 destructors are entry points.
2896d056 1592 (cgraph_finalize_compilation_unit): Reorganize debug outout;
1668aabc
JH
1593 examine nested functions after lowerng; call collect_functions hook.
1594 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
1595 (cgraph_finalize_compilation_unit): Do not collect entry points.
1596 * varasm.c: Include cgraph.h
1597 (assemble_name): Mark referenced identifier as needed.
1598
1599 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
1600
89ce1c8f
JJ
16012003-06-23 Jakub Jelinek <jakub@redhat.com>
1602
1603 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
1604 just SYMBOL_REF.
1605 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
1606 mode, as it requires pic register loaded.
1607
1608 * varasm.c (resolve_unique_section): Remove prototype. No longer
1609 static.
1610 * tree.h (resolve_unique_section): New prototype.
1611
032cb602
AS
16122003-06-23 Andreas Schwab <schwab@suse.de>
1613
1614 PR debug/9905
1615 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
1616 recursing through first argument.
1617
b20b352b
KH
16182003-06-23 Kazu Hirata <kazu@cs.umass.edu>
1619
1620 * ChangeLog.1: Fix a typo.
1621 * cfgrtl.c: Fix comment typos.
1622 * dwarf2out.c: Likewise.
1623 * expmed.c: Likewise.
1624 * genrecog.c: Likewise.
1625 * jump.c: Likewise.
1626 * rtlanal.c: Likewise.
1627 * ssa-dce.c: Likewise.
1628 * toplev.c: Likewise.
1629
63519d23
KH
16302003-06-23 Kazu Hirata <kazu@cs.umass.edu>
1631
1632 * doc/extend.texi: Fix typos.
1633 * doc/md.texi: Likewise.
1634 * doc/tm.texi: Likewise.
1635
71c0e7fc
KH
16362003-06-23 Kazu Hirata <kazu@cs.umass.edu>
1637
1638 * basic-block.h: Fix comment formatting.
1639 * bt-load.c: Likewise.
1640 * builtins.c: Likewise.
1641 * c-common.c: Likewise.
1642 * c-common.h: Likewise.
1643 * c-format.c: Likewise.
1644 * coverage.c: Likewise.
1645 * cpplib.h: Likewise.
1646 * cpppch.c: Likewise.
1647 * dbxout.c: Likewise.
1648 * diagnostic.c: Likewise.
1649 * dwarf2out.c: Likewise.
1650 * expr.c: Likewise.
1651 * fold-const.c: Likewise.
1652 * function.c: Likewise.
1653 * gcc.c: Likewise.
1654 * gcov-io.c: Likewise.
1655 * gcov-io.h: Likewise.
1656 * gcov.c: Likewise.
1657 * profile.c: Likewise.
1658 * real.h: Likewise.
1659 * sched-deps.c: Likewise.
1660
164131ce 16612003-06-23 Roger Sayle <roger@eyesopen.com>
2896d056 1662 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
164131ce
GP
1663
1664 * doc/contrib.texi (Contributors): Add a note on testing and
1665 remove duplicates from testers list.
1666
a3c18e4f
NC
16672003-06-23 Nick Clifton <nickc@redhat.com>
1668
1669 * read-rtl.c (read_braced_string): Check for EOF. If
1670 encountered issue an error message.
1671
4319ef2a
KH
16722003-06-23 Kazu Hirata <kazu@cs.umass.edu>
1673
1674 * doc/invoke.texi: Document dump options, dT and dW.
1675
8116809c
KH
16762003-06-23 Kazu Hirata <kazu@cs.umass.edu>
1677
1678 * genrecog.c (pred_table): Remove the entry for
1679 mode_independent_operand.
1680 * recog.c (next_insns_test_no_inequality): Remove.
1681 (mode_independent_operand): Likewise.
1682 * recog.h: Remove the prototype for mode_independent_operand.
1683
802a9907
KH
16842003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1685
1686 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
1687 store into bit 0.
1688 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
1689 second alternative to set_znv.
1690 (*extzv_1_r_inv_h8300hs): Likewise.
1691
5408ac6c
HPN
16922003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
1693
1694 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
1695 set in_tree_gas_is_elf accordingly.
1696 (in_tree_ld): Find out whether LD emulation is ELF, set
1697 in_tree_ld_is_elf accordingly.
1698 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
1699 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
1700 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
1701 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
1702 grepping gas/Makefile.
1703 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
1704 $in_tree_ld_is_elf instead of grepping ld/Makefile.
1705 * configure: Regenerate.
1706
8e0952f0
RS
17072003-06-22 Roger Sayle <roger@eyesopen.com>
1708
1709 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
1710 up the stabilized argument list, not build_tree_list.
1711 (expand_builtin_strcpy): Construct new argument list manually
1712 instead of using chainon to modify the original argument list.
1713 (expand_builtin_stpcpy): Construct new argument list manually
1714 instead of using copy_list and chainon.
1715 (expand_builtin_sprintf): New function. Optimize calls to
1716 sprintf when the format is "%s" or doesn't contain a '%'.
1717 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
1718 expand_builtin_sprintf.
1719
4c4d143a
AS
17202003-06-22 Andreas Schwab <schwab@suse.de>
1721
1722 * function.c (set_insn_locators): Mark as unused.
1723
d302c9d6
NB
17242003-06-22 Neil Booth <neil@daikokuya.co.uk>
1725
1726 * common.opt: Add -finline-limit.
1727 * opts.c (common_handle_options): Handle it.
1728 * opts.sh: Temporary kludge for -finline-limit.
1729 * toplev.c (decode_f_option, independent_decode_option): Die.
1730 (parse_options_and_default_flags): No independent_decode_option.
1731
b0a31300
AJ
17322003-06-22 Andreas Jaeger <aj@suse.de>
1733
1734 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
1735
34695841
KH
17362003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1737
1738 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
1739
c359831b
AS
17402003-06-22 Andreas Schwab <schwab@suse.de>
1741
1742 * doc/invoke.texi: Remove leading `-' from options in index.
1743
cc0efd0b
KH
17442003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1745
1746 * bt-load.c: Follow spelling conventions.
1747
0e9cbd11
KH
17482003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1749
1750 * expr.c (emit_move_insn_1): Fix a comment typo.
1751
7fedea11
KH
17522003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1753
1754 * doc/invoke.texi: Alphabetize dump options.
1755
79250062
KH
17562003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1757
1758 * doc/invoke.texi: Remove a duplicate -dk.
1759
b55fe87e
KH
17602003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1761
1762 * doc/invoke.texi: Update dump file names.
1763
21299dbd
ZW
17642003-06-22 Zack Weinberg <zack@codesourcery.com>
1765
1766 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
1767 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
1768
3b9cd5c8
KH
17692003-06-22 Kazu Hirata <kazu@cs.umass.edu>
1770
1771 * doc/rtl.texi: Fix the @findex for pre_modify.
1772
d329e058
AJ
17732003-06-22 Andreas Jaeger <aj@suse.de>
1774
1775 * caller-save.c: Convert to ISO C90.
1776 * calls.c: Likewise.
1777 * cfg.c: Likewise.
1778 * cfganal.c: Likewise.
1779 * cfgbuild.c: Likewise.
1780 * cfgcleanup.c: Likewise.
1781 * cfghooks.c: Likewise.
1782 * cfglayout.c: Likewise.
1783 * cfglayout.h: Likewise.
1784 * cfgloop.c: Likewise.
1785 * cfgloop.h: Likewise.
1786 * cfgloopanal.c: Likewise.
1787 * cfgloopmainip.c: Likewise.
1788 * cfgrtl.c: Likewise.
1789
84edd42c
RE
17902003-06-22 Richard Earnshaw <rearnsha@arm.com>
1791
1792 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
1793 64-bit alignment.
1794
24391720
RE
17952003-06-22 Richard Earnshaw <rearnsha@arm.com>
1796
1797 * arm.md (all call_value patterns): Remove register constraints on
1798 value operand.
1799
6ff3a151
NB
18002003-06-22 Neil Booth <neil@daikokuya.co.uk>
1801
1802 * common.opt: More -f switches.
1803 * opts.c (common_handle_options): Handle them.
1804 * toplev.c (time_report): Make extern.
1805 (f_options): USe flag_dummy.
1806 (decode_f_option): No need to use f_options now.
1807 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
1808 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
1809
3346b668
AJ
18102003-06-22 Andreas Jaeger <aj@suse.de>
1811
2f6e4e97
AJ
1812 * c-lex.c: Convert to ISO C90.
1813 * c-objc-common.c: Likewise.
1814 * c-opts.c: Likewise.
1815 * c-pch.c: Likewise.
1816 * c-ppoutput.c: Likewise.
1817 * c-pragma.h: Likewise.
1818 * c-pretty-print.c: Likewise.
1819 * c-pretty-print.h: Likewise.
1820 * c-semantics.c: Likewise.
1821 * c-tree.h: Likewise.
1822 * c-typeck.c: Likewise.
1823
3346b668
AJ
1824 * c-lang.c: Convert to ISO C90.
1825
9cd23ed2
NB
18262003-06-22 Neil Booth <neil@daikokuya.co.uk>
1827
1828 * opts.c (find_opt): Fix to always guarantee a find of a
1829 switch with joined parameter.
1830 * opts.h (struct cl_option): New member back_chain.
1831 * opts.sh: Update to calculate and add back_chain member.
1832
0e9e3a8b
GDR
18332003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1834
1835 * diagnostic.h (output_host_wide_integer): Declare.
1836 * diagnostic.c (output_long_long_decicaml): New function.
1837 (output_host_wide_integer): Likewise.
1838 (output_format): Use them. Handle "%ll" and "%w".
1839
ad667abe
JT
18402003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
1841
1842 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
1843
7468e0b5
ZW
18442003-06-21 Zack Weinberg <zack@codesourcery.com>
1845
1846 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
1847 * configure.in: Don't use gcc_AC_C_CHARSET.
1848 * configure, config.in: Regenerate.
1849 * config/i370/i370.c, config/i370/i370.h: Use
1850 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
1851 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
1852
de32c0cb
NB
18532003-06-21 Neil Booth <neil@daikokuya.co.uk>
1854
1855 * Makefile.in: Update.
1856 * common.opt: New switches.
1857 * opts.c: Include diagnostic.h.
1858 (common_handle_option): Handle new switches.
1859 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
1860 flag_if_conversion2, flag_delete_null_pointer_checks,
1861 flag_rerun_cse_after_loop): Make extern.
1862 (flag_dummy): New.
1863 (f_options): Update to use flag_dummy for moved options.
1864 (decode_f_option): Some switches moved to opts.c.
1865 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
1866 flag_if_conversion2, flag_delete_null_pointer_checks,
1867 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
1868 flag_tracer, flag_thread_jumps, flag_unroll_loops,
1869 flag_unroll_all_loops, flag_unswitch_loops): New.
1870
70642ee3
JH
1871Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
1872
1873 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
1874
02529902
KH
18752003-06-20 Kazu Hirata <kazu@cs.umass.edu>
1876
1877 * config/h8300/h8300-protos.h: Add a prototype for
1878 same_cmp_preceding_p.
1879 * config/h8300/h8300.c (same_cmp_preceding): New.
1880 * config/h8300/h8300.md: Extend peephole2's that transform
1881 compare:SI into shorter sequences so that they can deal with
1882 signed comparisons.
1883
164131ce 18842003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
c18cd642
GP
1885
1886 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
1887
1888 Update Andreas Jaeger's entry.
1889
1890 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
1891 Loren J. Rittle.
1892
5e7537cf
NN
18932003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
1894
1895 * mkconfig.sh: Add multiple inclusion guards to generated headers.
1896
e01cc6dc
NB
18972003-06-20 Neil Booth <neil@daikokuya.co.uk>
1898
1899 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
1900 * common.opt: Add remaining -W options and -g.
1901 * diagnostic.c (warnings_are_errors): Remove.
1902 * flags.h: Make most warning flags boolean.
1903 * opts.c (common_handle_option): Handle remaining -W options, and -g.
1904 Move many warning flags from toplev.c, making them boolean.
1905 * toplev.c: Remove many warning flags.
1906 (decode_W_option): Remove.
1907 (decode_g_option): Make extern. Error on unknown switch.
1908 (lang_independent_W_options): Use warn_dummy.
1909 (independent_decode_option): Just handle -f switches now.
1910 * toplev.h (decode_g_option): New.
1911
1a3f10e2 19122003-06-20 Aldy Hernandez <aldyh@redhat.com>
7468e0b5 1913
1a3f10e2
AH
1914 PR/11092
1915 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
1916 vectors.
1917
e819ee44
KC
19182003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
1919
1920 * opts.sh: Tweak awk script for portability.
1921
ae4a7155
MM
19222003-06-20 Mark Mitchell <mark@codesourcery.com>
1923
1924 PR c++/10888
1925 * tree-inline.c (expand_call_inline): Do not warn about failing to
1926 inline functions declared in system headers.
1927 * doc/invoke.texi (-Winline): Expand on documentation.
1928
4739b00e
RH
19292003-06-20 Richard Henderson <rth@redhat.com>
1930
1931 * config/alpha/alpha.c (alpha_file_start): Disable
1932 file_start_file_directive for ELF and not MDEBUG.
1933
9218882a
R
19342003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
1935
1936 * sh.h (ROUND_TYPE_ALIGN): Remove.
1937
a3424f5c
RH
19382003-06-20 Richard Henderson <rth@redhat.com>
1939
1940 * hooks.c (hook_int_void_no_regs): Rename from
1941 hook_reg_class_void_no_regs; change return type.
1942 * hooks.h: Update.
1943 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
1944 * target.h (branch_target_register_class): Change return type to int.
1945 Add documentation.
1946 * config/sh/sh.c (sh_target_reg_class): Change return type.
1947 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1948
3a947669
AT
19492003-06-20 Andreas Tobler <toa@pop.agri.ch>
1950
1951 * c-format.c: Change _Bool to bool reverting part of the last
1952 patch.
1953
b5adda73
JDA
19542003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1955
1956 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
1957 strip name encoding.
1958
807ca3d4
RO
19592003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1960
1961 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
1962 * configure: Regenerate.
1963 Fixes PR driver/9362.
1964
cc550dce
RK
19652003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1966
1967 * config/alpha/alpha.c (alpha_file_start): Fix typo.
1968
9e21232c
RO
19692003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1970
1971 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
1972 to ASM_OUTPUT_SOURCE_LINE.
1973
27a3e494 19742003-06-20 Daniel Egger <degger@fhm.edu>
7468e0b5 1975 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27a3e494
DE
1976
1977 * doc/install.texi (Building): Correct and improve statement
1978 about parallel builds.
1979
a742c759
AJ
19802003-06-20 Andreas Jaeger <aj@suse.de>
1981
1982 * c-common.c: Change _Bool to bool reverting part of the last
1983 patch.
1984
1f9cc6db
NS
19852003-06-20 Nathan Sidwell <nathan@codesourcery.com>
1986
1987 * tree.h (expand_function_end): Remove all parameters.
1988 * function.c (expand_function_end): Remove all parameters.
1989 Use input_location. Never expand_end_bindings.
1990 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
1991 * coverage.c (create_coverage): Likewise.
1992
4bc73018
NC
19932003-06-20 Nick Clifton <nickc@redhat.com>
1994
1995 * doc/extend.texi (ARM Built-in Functions): New node. Document
1996 ARM builtin functions for iWMMXt support.
1997
8f2afc21
EB
19982003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
1999
2000 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2001 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2002 (--with-as): Add @anchor.
2003 (--with-gnu-ld): Fix typo.
2004 (--with-ld): Add @uref to --with-as.
2005
a2c4f8e0
ZW
20062003-06-19 Zack Weinberg <zack@codesourcery.com>
2007
2008 * doc/tm.texi: Uniformly use @defmac for macros, rather than
2009 @table items. Minor formatting and editorial corrections.
2010
e2b9853b
NB
20112003-06-20 Neil Booth <neil@daikokuya.co.uk>
2012
2013 * line-map.c, line-map.h: Convert to ISO prototypes.
2014
bc083e18
ZD
20152003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2016
2017 * gcse.c (store_killed_in_insn): Fix.
2018
1bc7c5b6
ZW
20192003-06-19 Zack Weinberg <zack@codesourcery.com>
2020
2021 * target.h (asm_out.file_start, file_start_app_off,
2022 file_start_file_directive): New hooks.
2023 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2024 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2025 New hook-definition macros.
2026 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2027 * varasm.c (default_file_start): New.
2028 * output.h: Prototype it.
2029 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2030 * system.h: Poison ASM_FILE_START.
2031
2032 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2033 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2034 (unicosmk_asm_file_start): Rename unicosmk_file_start,
2035 make static, take no arguments.
2036 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2037 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2038 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2039 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
2040 comment.
2041 * config/arc/arc.c (arc_asm_file_start): Rename
2042 arc_file_start, take no arguments, make static.
2043 (TARGET_ASM_FILE_START): Set it.
2044 * config/arm/arm.c (aof_file_start): New static function.
2045 (TARGET_ASM_FILE_START): Set it, when appropriate.
2046 * config/arm/coff.h, config/arm/elf.h:
2047 Set TARGET_ASM_FILE_START_APP_OFF to true.
2048 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2049 take no arguments, make static.
2050 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2051 Set them.
2052 * config/c4x/c4x.c (c4x_file_start): New static function.
2053 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2054 Set them.
2055 * config/cris/cris.c (cris_file_start): New static function.
2056 (TARGET_ASM_FILE_START): Set it.
2057 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2058 dsp16xx_file_start, make static.
2059 (luxworks_dsp16xx_file_start): Delete.
2060 (TARGET_ASM_FILE_START): Set it.
2061 * config/h8300/h8300.c (asm_file_start): Rename
2062 h8300_file_start, make static, take no arguments.
2063 (TARGET_ASM_FILE_START): Set it.
2064 * config/i370/i370.c (i370_file_start): New static function.
2065 (TARGET_ASM_FILE_START): Set it.
2066 * config/i386/i386.c (x86_file_start): New static function.
2067 (TARGET_ASM_FILE_START): Set it.
2068 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2069 X86_FILE_START_FLTUSED): New macros, default to false.
2070 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2071 * config/i386/sysv4.h, config/i386/sco5.h: Override
2072 X86_FILE_START_VERSION_DIRECTIVE to true.
2073 * config/ia64/ia64.c (ia64_file_start): New static function.
2074 (TARGET_ASM_FILE_START): Set it.
2075 (emit_safe_across_calls): Take no arguments.
2076 * config/ia64/ia64.md: Update to match.
2077 * config/m32r/m32r.c (m32r_asm_file_start): Rename
2078 m32r_file_start, make static, take no arguments.
2079 (TARGET_ASM_FILE_START): Set it.
2080 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2081 m68hc11_file_start, make static, take no arguments.
2082 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2083 (print_options): Delete.
2084 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2085 (TARGET_ASM_FILE_START_APP_OFF): Set.
2086 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2087 m68k_hp320_file_start.
2088 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2089 Make static, take no arguments.
2090 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2091 * config/mmix/mmix.c (mmix_asm_file_start): Rename
2092 mmix_file_start, make static, take no arguments.
2093 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2094 * config/mn10300/mn10300.c (asm_file_start): Rename
2095 mn10300_file_start, make static, take no arguments.
2096 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2097 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2098 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2099 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2100 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2101 pa_hpux64_hpas_file_start): New static functions.
2102 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2103 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2104 pa_linux_file_start.
2105 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2106 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2107 appropriate.
2108 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2109 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2110 (rs6000_file_start): Make static, take no arguments. Reset
2111 default_cpu under certain conditions.
2112 (rs6000_xcoff_file_start): New function.
2113 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2114 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2115 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2116 * config/sh/sh.c (output_file_start): Rename
2117 sh_file_start, make static, take no arguments. Merge in old
2118 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2119 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2120 * config/sh/sh.c (TARGET_ELF): Define to 0.
2121 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2122 * config/v850/v850.c (asm_file_start): Delete.
2123 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2124 * config/vax/vax.c (vax_file_start): New static function.
2125 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2126
2127 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2128 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2129 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2130 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2131 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2132 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2133
2134 * config/darwin.h, config/elfos.h, config/alpha/elf.h
2135 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2136 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2137 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2138 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2139 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2140 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2141 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2142 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2143 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2144 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2145 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2146 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2147 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2148 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2149 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2150 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2151 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2152
2153 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2154 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2155 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2156 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2157 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2158 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2159 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2160
2161 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2162 Remove reference to ASM_FILE_START in comment.
2163 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2164 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2165 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2166
e7f13528
GP
21672003-06-19 Graeme Peterson <gp@qnx.com>
2168
2169 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2170 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2171 sysroot_hdrs_suffix_spec): New.
2172 (static_specs): Initialize new variables.
2173 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2174 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2175 New macros.
2176
35b1a6fa
AJ
21772003-06-19 Andreas Jaeger <aj@suse.de>
2178
d3ea6201 2179 * c-aux-info.c: Convert to ISO C90.
35b1a6fa
AJ
2180 * c-pragma.c: Likewise.
2181 * c-common.c: Likewise.
2182 * c-common.h: Likewise.
2183 * c-convert.c: Likewise.
2184 * c-cppbuiltin.c: Likewise.
2185 * c-dump.c: Likewise.
2186 * c-decl.c: Likewise
2187 * c-format.c: Likewise.
2188 * c-incpath.c: Likewise.
2189 * c-incpath.h: Likewise.
2190
6dab8d4c
RS
21912003-06-19 Roger Sayle <roger@eyesopen.com>
2192
2193 * builtins.c (expand_errno_check): Assume that flag_errno_math
2194 and HONOR_NANS have been tested before calling here. Only try
2195 to set errno ourselves if the decl can't throw an exception.
2196 (expand_builtin_mathfn): Move the code to stabilize the arg
2197 after the main switch, so that that its only done when needed.
2198 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2199 Don't modify the original expr when stabilizing the argument.
2200 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2201 the args after the main switch, and don't modify the orginal exp.
2202
5f6c070d 22032003-06-19 Aldy Hernandez <aldyh@redhat.com>
35b1a6fa 2204
1bc7c5b6
ZW
2205 * expr.c (const_vector_from_tree): Initialize remaining elements
2206 to 0.
5f6c070d 2207
e7a9b208
AH
22082003-06-19 Aldy Hernandez <aldyh@redhat.com>
2209
2210 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2211 Change "fix" to "float".
2212
1681bed6
AJ
22132003-06-19 Andreas Jaeger <aj@suse.de>
2214
e295f317
AJ
2215 * c-tree.h: Remove declaration of poplevel.
2216
2217 * tree.h: Remove declaration of approx_sqrt.
2218
2219 * c-lex.c: Remove redundant declaration of asm_out_file.
2220
2221 * flags.h: Remove declaration of warn_unknown_pragma and
2222 main_input_filename.
2223
2224 * rtl.h: Remove functions from fold-const.c since they're already
2225 declared in tree.h.
2226
2227 * regs.h: Remove redundant declaration of reg_names.
2228
551dc360
AJ
2229 * bt-load.c (migrate_btr_defs): Correct printf arguments.
2230
1681bed6
AJ
2231 * protoize.c: Fix breakage from last patch.
2232
676fceeb
R
22332003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
2234
2235 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2236 has been included.
2237
85009435
JM
22382003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2239
2240 * config/sparc/sparc.c: Update copyright year.
2241
ddcc8263
DE
22422003-06-19 David Edelsohn <edelsohn@gnu.org>
2243
2244 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2245 to ABI_V4.
2246
f37ceab9
JM
22472003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
2248
2249 PR bootstrap/4068
2250 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2251
6e014ef3
KH
22522003-06-19 Kazu Hirata <kazu@cs.umass.edu>
2253
2254 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2255 to the end of the file. Remove unnecessary prototypes.
2256
5a9384dd
HPN
22572003-06-19 Hans-Peter Nilsson <hp@axis.com>
2258
2259 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2260 calls to insn_default_latency and result_ready_cost. Initialize
2261 def_latency to 1.
2262
61193e7b
RH
22632003-06-18 Richard Henderson <rth@redhat.com>
2264
1bc7c5b6
ZW
2265 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2266 (_Unwind_FindEnclosingFunction): Implement.
61193e7b 2267
a2f8629a
KH
22682003-06-18 Kazu Hirata <kazu@cs.umass.edu>
2269
2270 * toplev.c (rest_of_handle_sched): Hide the entire function if
2271 INSN_SCHEDULING is not defined.
2272 (rest_of_compilation): Call rest_of_handle_sched() only when
2273 INSN_SCHEDULING is defined.
2274
fe3ad572 22752003-06-18 Stephen Clarke <stephen.clarke@superh.com>
1bc7c5b6 2276 J"orn Rennecke <joern.rennecke@superh.com>
fe3ad572
SC
2277
2278 * bt-load.c: New file.
2279 * Makefile.in (OBJS): Include bt-load.o
2280 (bt-load.o): Add dependencies.
2281 * flags.h (flag_branch_target_load_optimize): Declare.
2282 (flag_branch_target_load_optimize2): Likewise.
2283 * hooks.c (hook_reg_class_void_no_regs): New function.
2284 (hook_bool_bool_false): Likewise.
2285 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2286 * rtl.h (branch_target_load_optimize): Declare.
2287 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2288 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2289 (TARGET_INITIALIZER): Include these.
2290 * target.h (struct gcc_target): Add branch_target_register_class
2291 and branch_target_register_callee_saved members.
2292 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2293 (dump_file) Add "tars" entry.
2294 (flag_branch_target_load_optimize): New variable.
2295 (flag_branch_target_load_optimize2): Likewise.
2296 (lang_independent_options): Add entries for new options.
2297 (rest_of_compilation): Call branch_target_load_optimize.
2298 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2299 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2300 * doc/invoke.texi: Document -fbranch-target-load-optimize and
2301 -fbranch-target-load-optimize2.
2302 * rtl.h (epilogue_completed): Declare.
2303 * recog.c (epilogue_completed): New variable.
2304 * toplev.c (rest_of_compilation): Set it.
2305 * flow.c (mark_regs_live_at_end): Use it.
2306 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2307 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2308 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2309 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2310
2311 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2312 (sh_target_reg_class): New function.
2313 (sh_optimize_target_register_callee_saved): Likwise.
2314 (shmedia_target_regs_stack_space): Likewise.
2315 (shmedia_reserve_space_for_target_registers_p): Likewise.
2316 (shmedia_target_regs_stack_adjust): Likewise.
2317 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2318 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2319 (calc_live_regs): If flag_branch_target_load_optimize2 and
2320 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2321 for target registers, make sure that we save all target registers.
2322 (sh_expand_prologue, sh_expand_epilogue): Take target register
2323 optimizations into account. Collapse stack adjustments if that
2324 is beneficial.
2325 (initial_elimination_offset): Reserve space for target registers
2326 if necessary.
2327 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2328 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2329
5a9335ef
NC
23302003-06-18 Nick Clifton <nickc@redhat.com>
2331
2332 * config.gcc: Add an extra_header for ARM targets.
1bc7c5b6 2333 Support configuring with --with-cpu=iwmmxt.
5a9335ef 2334 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
1bc7c5b6 2335 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
35b1a6fa 2336 names. Fix formatting.
1bc7c5b6 2337 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
5a9335ef 2338 names.
1bc7c5b6 2339 * config/arm/arm-protos.h (arm_emit_vector_const): New
5a9335ef
NC
2340 prototype.
2341 (arm_output_load_gr): New prototype.
2342 * config/arm/arm.c (extra_reg_names1): Delete.
1bc7c5b6 2343 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
5a9335ef
NC
2344 * arch_is_iwmmxt): Define.
2345 (all_cores, all_architecture): Add entry for iwmmxt.
2346 (arm_override_options): Add support for iwmmxt.
2347 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2348 arm_print_value, arm_rtx_costs_1, output_move_double,
2349 arm_compute_save_reg_mask, arm_output_epilogue,
2350 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2351 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2352 Likewise.
2353 (arm_init_cumulative_args): Count iwmmxt registers.
2354 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2355 has been set.
2356 (struct minipool_node): Add fix_size field.
2357 (add_minipool_forward_ref): Add support for 8-byte aligning of
2358 the pool.
2359 (add_minipool_backward_ref, add_minipool_offsets,
2360 dump_minipool, push_minipool_fix): Likewise.
2361 (struct builtin_description): New struct.
1bc7c5b6
ZW
2362 (builtin_description): New array of iwmmxt builtin functions.
2363 (arm_init_iwmmxt_builtins): New function.
2364 (arm_init_builtins): New function.
2365 (safe_vector_operand): New function.
2366 (arm_expand_binop_builtin): New function.
2367 (arm_expand_unop_builtin): New function.
2368 (arm_expand_builtin): New function.
2369 (arm_emit_vector_const): New function.
2370 (arm_output_load_gr): New function.
2371 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
5a9335ef
NC
2372 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2373 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2374 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
1bc7c5b6
ZW
2375 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2376 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2377 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5a9335ef
NC
2378 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2379 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
1bc7c5b6 2380 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
5a9335ef 2381 registers unless the iwmmxt target is selected.
1bc7c5b6 2382 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
5a9335ef
NC
2383 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
2384 IS_IWMMXT_GR_REGNUM): Define.
1bc7c5b6
ZW
2385 (FIRST_PSEUDO_REGISTER): Bump to 63.
2386 (struct machine_function): Add sibcall_blocked field.
2387 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
5a9335ef 2388 nargs fields.
1bc7c5b6
ZW
2389 (enum arm_builtins): New enum list.
2390 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
5a9335ef
NC
2391 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
2392 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
2393 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
2394 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
2395 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
1bc7c5b6
ZW
2396 (movv2si, movv4hi, movv8qi): New expands for vector moves.
2397 Include iwmmxt.md.
5a9335ef
NC
2398 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
2399 multilib.
1bc7c5b6
ZW
2400 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
2401 * config/arm/mmintrin.h: New ARM specific header file.
2402 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
5a9335ef 2403
fe651b1d
R
24042003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
2405
2406 * toplev.c (Remaining -d letters summary): Update.
2407
b9599e46
FS
24082003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2409
2410 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
2411 argument.
2412 (function_arg): Handle CALL_LIBCALL flag.
2413 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2414 prototype.
2415 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
2416 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2417 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
2418 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2419
903caebf
NB
24202003-06-18 Neil Booth <neil@daikokuya.co.uk>
2421
2422 * Makefile.in: Update.
2423 * common.opt: New options.
2424 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
2425 set_Wunused): New.
2426 (common_handle_option): Handle new options.
2427 * toplev.c (set_target_switch): Export.
2428 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
2429 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
2430 (independent_decode_option): More options handled in opts.c now.
2431 Change prototype.
2432 * toplev.h (set_target_switch): New.
2433
f3f735eb
RA
24342003-06-17 Robert Abeles <rabeles@archaelogic.com>
2435
2436 PR debug/4252
2437 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
2438 to dump_switch_p().
2439 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
2440 from static strings in dump_files.
2441
b0c231bb
KG
24422003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2443
2444 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
2445 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
2446 libiberty macros.
2447
9da32fe1
JM
24482003-06-17 Jason Merrill <jason@redhat.com>
2449
2450 PR c++/10929
2451 * tree-inline.c (expand_call_inline): Don't warn about failing to
2452 inline a function which was made inline by -finline-functions.
2453
cb713a8d
KH
24542003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2455
2456 * config/h8300/h8300-protos.h: Update to ISO C.
2457 * config/h8300/h8300.c: Likewise.
2458 * config/h8300/h8300.h: Likewise.
2459 * config/h8300/h8300.md: Likewise.
2460
eaf9f3b2
NN
24612003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2462
2463 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
2464 * configure: Regenerate.
2465 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
2466
688d8b84
RM
24672003-06-17 Ranjit Mathew <rmathew@hotmail.com>
2468
2469 * install.texi (Testing): Add information on how to run Java
2470 runtime tests separately.
2471
1f11df32
RO
24722003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2473
94b2a23b
RO
2474 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
2475
1f11df32
RO
2476 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
2477 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
2478
11344b85
CF
24792003-06-17 Christopher Faylor <cgf@redhat.com>
2480
2481 * doc/install.texi: Add msvc rebuild caveat.
2482
c8f0269d
KH
24832003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2484
2485 * config/sh/coff.h: Replace Hitachi with Renesas.
2486 * config/sh/elf.h: Likewise.
2487 * config/sh/embed-elf.h: Likewise.
2488 * config/sh/lib1funcs.asm: Likewise.
2489 * config/sh/sh-protos.h: Likewise.
2490 * config/sh/sh.c: Likewise.
2491 * config/sh/sh.h: Likewise.
2492 * config/sh/sh.md: Likewise.
2493
67f63f32
KH
24942003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2495
2496 * ChangeLog.3: Fix comment typos.
2497 * ChangeLog.6: Likewise.
2498 * config/d30v/d30v.c: Likewise.
2499 * config/h8300/h8300.md: Likewise.
2500 * config/m32r/m32r.md: Likewise.
2501 * config/mips/mips.c: Likewise.
2502 * config/mips/mips.md: Likewise.
2503 * config/ns32k/NOTES: Likewise.
2504
0d5c606b 25052003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1bc7c5b6 2506 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
35b1a6fa 2507
0d5c606b
RM
2508 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
2509 to run Java runtime tests separately.
2510
d32fad64
KH
25112003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2512
2513 * config/h8300/h8300-protos.h: Update a comment.
2514
1bf93c14
R
25152003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2516
2517 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
2518 are aligned like integral modes.
2519 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
2520
2521 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
2522 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
2523 * sh.md (*pt): Remove.
2524
2525 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
2526
2527 * sh.md (return_media_rte): New pattern.
2528 (return_media): Use it.
2529
71c6b994
KH
25302003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2531
2532 * doc/contrib.texi: Replace Hitachi with Renesas.
2533 * doc/install.texi: Likewise.
2534 * doc/invoke.texi: Likewise.
2535
fdc88a4d
R
25362003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2537
2538 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
2539 behaviour.
2540
7cf6c927
FS
25412003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2542
8207b189
FS
2543 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
2544
7cf6c927
FS
2545 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
2546 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
2547
2548 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
2549 -msdata=eabi usages.
2550
2551 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
2552
a54928c9
KG
25532003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2554
2555 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
2556 * fixinc/gnu-regex.c: Don't define `volatile'.
2557 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
2558 * ggc-simple.c: Likewise.
2559 * system.h: Don't define `volatile'.
2560
2561 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
2562 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
2563 call these macros.
2564 * config.in, configure: Regenerated.
2565
8419b675
RK
25662003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2567
2568 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
2569 Handle POINTERS_EXTEND_UNSIGNED.
2570
c1e5104d
RO
25712003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2572
2573 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
2574 !TARGET_IRIX6]: Define as NULL.
2575
97587cfa
EB
25762003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2577
2578 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
2579
a8d0467e
EB
25802003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2581
2582 * dbxout.c (dbxout_source_line_counter): New global variable.
2583 Mark it with GTY(()).
2584 (dbxout_source_line): Increment dbxout_source_line_counter
2585 and pass it to ASM_OUTPUT_SOURCE_LINE.
2586 * sdbout.c (sdbout_source_line_counter): New global variable.
2587 Mark it with GTY(()).
2588 (unnamed_struct_number): Mark it with GTY(()).
2589 (sdbout_source_line): Increment sdbout_source_line_counter
2590 and pass it to ASM_OUTPUT_SOURCE_LINE.
2591 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
2592 (xcoffout_source_line): Pass 0 as third argument to
2593 ASM_OUTPUT_SOURCE_LINE.
2594 (xcoffout_begin_prologue): Likewise.
2595 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2596 Use it instead of 'sym_lineno' but without incrementing it.
2597 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2598 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2599 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2600 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
2601 argument to ASM_OUTPUT_SOURCE_LINE.
2602 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2603 * config/arm/aout.h: Remove useless comment.
2604 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2605 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2606 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2607 Use it instead of 'sym_lineno' but without incrementing it.
2608 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2609 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
2610 parameter. Use it instead of 'sym_lineno' but without incrementing it.
2611 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
2612 argument to ASM_OUTPUT_SOURCE_LINE.
2613 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2614 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2615 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
2616 Use it instead of 'sym_lineno' but without incrementing it.
2617 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2618 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2619 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2620 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
2621 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
2622
730cf822
RS
26232003-06-17 Richard Sandiford <rsandifo@redhat.com>
2624
2625 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
2626 (expand_block_move, output_block_move): Remove.
2627 * config/mips/mips.h (enum block_move_type): Remove.
2628 * config/mips/mips.c (block_move_call, output_block_move): Remove.
2629 (mips_block_move_straight, mips_adjust_block_mem): New function.
2630 (mips_block_move_loop): Renamed and reworked from block_move_loop.
2631 (mips_expand_block_move): Likewise expand_block_move. Return false
2632 to fall back on the target-independent code.
2633 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
2634 (movstrsi_internal*): Remove.
2635
6cf87ca4
ZW
26362003-06-16 Zack Weinberg <zack@codesourcery.com>
2637
2638 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
2639 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
2640 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
2641 ISO C: new-style function declarations, no need for PARAMS,
2642 no special punctuation on indirect function calls, use string
2643 constant concatenation where convenient.
2644
5b0e2409
AJ
26452003-06-17 Andreas Jaeger <aj@suse.de>
2646
2647 * rtl.h: Remove declarations from coverage.h.
2648 * toplev.c: Include coverage.h.
2649 * Makefile.in (toplev.o): Depend on coverage.h.
2650
2651 * toplev.h: Remove extra declaration of print_time.
2652
2653 * gengtype.c (close_output_files): Remove duplicated declaration.
2654
77094862
NN
26552003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2656
cc0651d2
NN
2657 * config/sparc/sysv4.h: Remove target-independent comment;
2658 replace "GNU CC" with "GCC".
b06c827c 2659 * config/vxworks.h: Replace "GNU compiler" with "GCC".
de0a398e
NN
2660 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
2661 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2662 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
6cf87ca4 2663 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
de0a398e
NN
2664 config/sparc/rtemself.h, config/sparc/sol2-64.h,
2665 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
2666 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
6cf87ca4 2667 config/sparc/sol2.h, config/sparc/sp64-aout.h,
de0a398e
NN
2668 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
2669 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
2670 "GNU compiler", "GNU CC" with "GCC".
4d8af13f
NN
2671 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2672 config/sparc/sparc-modes.def, config/sparc/sparc.c,
2673 config/sparc/sparc.md, config/sparc/sparclet.md,
2674 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
2675 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
2676 "GNU C Compiler" with "GCC".
77094862
NN
2677 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
2678
0a84d874
AH
26792003-06-16 Aldy Hernandez <aldyh@redhat.com>
2680
2681 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
2682 constants.
2683
2684 * testsuite/gcc.c-torture/execute/simd-4.c: New.
2685
9cd598aa
NN
26862003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2687
c24851de
NN
2688 * config/ip2k/ip2k.h: Remove target-independent comments.
2689
9cd598aa
NN
2690 * config.gcc: Explicitly mention elfos.h in ip2k entry.
2691 * config/ip2k/ip2k.h: Don't #include it here.
2692
4ff58371
KG
26932003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2694
fad205ff
KG
2695 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
2696 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
2697 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
2698 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
2699 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
2700 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
2701 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
2702 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
2703 the PTR macro.
2704
4ff58371
KG
2705 * gengtype.c: Don't use UNION_INIT_ZERO.
2706 * system.h (UNION_INIT_ZERO): Delete.
2707
799ab2c7
RH
27082003-06-16 Richard Henderson <rth@redhat.com>
2709
2710 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
2711 GET_MODE_UNIT_SIZE when simplifying constant vectors.
2712
33b0d00f
AJ
27132003-06-16 Andreas Jaeger <aj@suse.de>
2714
2715 * timevar.c (get_run_time): Remove function provided also by
2716 libiberty.
2717 * timevar.h: Remove get_run_time declaration.
2718
3391875b
KH
27192003-06-16 Kazu Hirata <kazu@cs.umass.edu>
2720
2721 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
2722 unreachable code.
2723
9a238586
KG
27242003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2725
2726 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
2727 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
2728 use macros from "symcat.h", instead rely on ISO C.
6cf87ca4 2729
9a238586
KG
2730 * system.h: Don't include "symcat.h".
2731 * configure.in (AC_C_STRINGIZE): Delete.
2732 * config.in, configure: Regenerate.
2733
7f42b6d7
RK
27342003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2735
f0c4fac7
RK
2736 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
2737
7f42b6d7
RK
2738 * tree.h (STMT_CHECK): New macro.
2739 Also upper-case argument names on all checking macros and
2740 fix some whitespace problems; assume CODE argument does not
2741 have side-effects.
2742
89d09f83
KG
27432003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2744
2a0621b9
KG
2745 * scan.h: Convert to ISO C.
2746 * system.h: Likewise.
2747
89d09f83
KG
2748 * c-format.c (dynamic_format_types): New pointer for dynamic data.
2749 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
2750 New functions split out of...
2751 (handle_format_attribute): ...here.
2752
735cb76e
R
27532003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
2754
2755 * sh.h (REG_CLASS_FROM_LETTER): Change to:
2756 (REG_CLASS_FROM_CONSTRAINT).
2757 (CONST_OK_FOR_I): Rename to:
2758 (CONST_OK_FOR_I08). Changed all users.
2759 (CONST_OK_FOR_J): Rename to:
2760 (CONST_OK_FOR_I16). Changed all users.
2761 (CONST_OK_FOR_K): Rename to:
2762 (CONST_OK_FOR_P27). Changed all users.
2763 (CONST_OK_FOR_L): Rename to:
2764 (CONST_OK_FOR_K08). Changed all users.
2765 (CONST_OK_FOR_O): Rename to:
2766 (CONST_OK_FOR_I06). Changed all users.
2767 (CONST_OK_FOR_P): Rename to:
2768 (CONST_OK_FOR_I10). Changed all users.
2769 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
2770 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
2771 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
2772 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
2773 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
2774 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
2775 (CONST_OK_FOR_LETTER_P): Replace with
2776 (CONST_OK_FOR_CONSTRAINT_P).
2777 (EXTRA_CONSTRAINT_S): Rename to:
2778 (EXTRA_CONSTRAINT_C16). Changed all users.
2779 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
2780 (EXTRA_CONSTRAINT_T): Rename to:
2781 (EXTRA_CONSTRAINT_Csy). Changed all users.
2782 (EXTRA_CONSTRAINT_Z): Remove.
2783 (EXTRA_CONSTRAINT): Replace with:
2784 (EXTRA_CONSTRAINT_STR).
2785 (EXTRA_CONSTRAINT_U): Rename to:
2786 (EXTRA_CONSTRAINT_Z). Changed all users.
2787 * sh.c (and_operand): Use CONST_OK_FOR_J16.
2788 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
2789 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
2790 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
2791 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
2792 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
2793 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
2794 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
2795 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
2796 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
2797 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
2798 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
2799 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
2800 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
2801 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
2802 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
2803 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
2804 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
2805 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
2806 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
2807 (sssubv4hi3): Likewise.
2808 (movsf_i): Change I[08]/r to G/r.
2809 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
2810
2811 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
2812
bce75972
VM
28132003-06-16 Vladimir Makarov <vmakarov@redhat.com>
2814
2815 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
2816
ebf0d392
AJ
28172003-06-16 Andreas Jaeger <aj@suse.de>
2818
9286d5a8
AJ
2819 * basic-block.h: Remove duplicate prototype of
2820 note_prediction_to_br_prob.
2821
ebf0d392
AJ
2822 * tree.h: Remove duplicate prototype of strip_float_extensions.
2823
0eff02cd
KG
28242003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2825
2826 * config/c4x/c4x.c: Don't include "c-tree.h".
2827 * config/pa/pa.c: Likewise.
2828 * langhooks.c: Likewise.
2829 * tree.h (poplevel): Declare.
2830
08dca707
KH
28312003-06-16 Kazu Hirata <kazu@cs.umass.edu>
2832
2833 * config/h8300/h8300.c (const_costs): Move this to ...
2834 (h8300_rtx_costs): ... here.
2835
82d397c7
RS
28362003-06-16 Roger Sayle <roger@eyesopen.com>
2837
2838 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
2839 (tan_optab, atan_optab): Define corresponding macros.
2840 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
2841 * genopinit.c (optabs): Implement tan_optab and atan_optab
2842 using tan?f2 and atan?f2 patterns.
2843 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
2844 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
2845 Change the default value of errno_set to false.
2846 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
2847 using expand_builtin_mathfn.
2848
2849 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
2850 expander patterns implemented using existing atan2?f3 patterns.
2851
c6547c92
RS
28522003-06-16 Roger Sayle <roger@eyesopen.com>
2853
2854 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
2855 both operands of the addition equal, reuse the expanded RTL.
2856 (expand_expr <MULT_EXPR>): Likewise for multiplication.
2857
21c43754
RS
28582003-06-16 Roger Sayle <roger@eyesopen.com>
2859 Jeff Law <law@redhat.com>
2860
2861 * fold-const.c (operand_equal_p): Consider two calls to "const"
2862 functions with identical non-volatile arguments to be equal.
2863 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
2864 built-in function to be equal to the "foo" form.
2865
93ffe49c
NN
28662003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2867
2868 * config/rs6000/sysv4le.h: Remove target-independent comment.
2869 Replace "GNU compiler" with "GCC" in comment.
2870
baaa1222
AJ
28712003-06-16 Andreas Jaeger <aj@suse.de>
2872
1a9962c2 2873 * tracer.c: Remove duplicate declaration.
baaa1222
AJ
2874
2875 * toplev.c: Remove extra declaration of decode_d_option.
2876
2877 * ssa.c: Remove duplicate declaration.
2878
2879 * sreal.c: Remove extra declaration of dump_sreal.
2880
2881 * reload1.c: Remove duplicate declarations.
2882
2883 * integrate.c: Remove extra declaration of
2884 set_decl_abstract_flags.
2885
2886 * flow.c: Remove extra declaration of dump_flow_info.
2887
2888 * alias.c: Remove extra declaration of get_addr.
2889
5e6908ea
NN
28902003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2891
814499a4
NN
2892 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
2893 config/vxworks.h: GNU CC -> GCC.
2894
5e6908ea
NN
2895 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
2896 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
2897 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
2898 ssa.h, tree.def: Replace overly specific references to "GNU C"
2899 and "GNU C Compiler" with references to "GCC".
2900
3ff5ef1b
R
29012003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
2902
266a2732
R
2903 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
2904 memory reference. Fix test that checks if operand 1 is using r0.
2905 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
2906
2907 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
2908 defined.
3ff5ef1b 2909
fd3acbb3
NS
29102003-06-15 Nathan Sidwell <nathan@codesourcery.com>
2911
2912 * function.h (struct emit_status): Remove x_last_linenum,
2913 x_last_filename. Add x_last_location.
2914 * rtl.h: #include "input.h".
2915 (NOTE_DATA): New.
2916 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
2917 number notes.
2918 * emit-rtl.c (last_linenum, last_filename): Remove.
2919 (last_location): New.
2920 (emit_line_note_after): LINE must always be >= 0.
2921 (emit_line_note): Likewise. Check not duplicate here...
2922 (emit_note): ... rather than here.
2923 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
2924 * integrate.c (expand_inline_function): Use emit_line_note for
2925 line number notes.
2926 (copy_insn_list): Likewise.
2927 * unroll.c (copy_loop_body): Likewise.
2928 * Makefile.in (RTL_H): Add input.h.
2929
695a94b3
RS
29302003-06-16 Richard Sandiford <rsandifo@redhat.com>
2931
2932 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
2933
a5c24926
RH
29342003-06-16 Richard Henderson <rth@redhat.com>
2935
2936 * config/alpha/alpha-protos.h, config/alpha/elf.h,
2937 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
2938 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
2939 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
2940 Remove unneeded static function decls.
2941
7b086b11
NB
29422003-06-16 Neil Booth <neil@daikokuya.co.uk>
2943
2944 * c-opts.c (c_common_handle_option): s/on/value/.
2945 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
2946 directly rather than converting the argument.
2947 * c.opt: Update docs. Use UInteger where appropriate.
2948 * common.opt: Use UInteger where appropriate.
2949 * opts.c (integral_argument): New.
2950 (handle_argument): Handle integral arguments, and optional
2951 joined arguments.
2952 (common_handle_option): Update.
2953 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
2954 * opts.sh: Handle JoinedOrMissing and UInteger flags.
2955
89aa997a
NB
29562003-06-16 Neil Booth <neil@daikokuya.co.uk>
2957
2958 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
2959 unnecessary extern declaration.
2960
612aeba5
NN
29612003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
2962
9286d5a8
AJ
2963 * config/gofast.h, config/interix.h, config/interix3.h,
2964 config/libgloss.h, config/linux-aout.h, config/linux.h,
2a71dcad
NN
2965 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
2966 * config/kaos.h: "GNU compiler" -> GCC.
2967 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
2968
0743f00d
NN
2969 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
2970 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
2971 GNU CC -> GCC.
2972
9286d5a8 2973 * config/svr3.h: Remove #if 0 code, misleading comments.
612aeba5
NN
2974 GNU CC -> GCC.
2975
64c1652c
ZW
29762003-06-15 Zack Weinberg <zack@codesourcery.com>
2977
2978 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
2979 main_input_filename to avoid conflict with input_filename macro.
2980
8f95bd52
NB
29812003-06-15 Neil Booth <neil@daikokuya.co.uk>
2982
2983 * config/mips/mips.h (asm_file_name, g_switch_set,
2984 g_switch_value): Remove.
2985 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2986 unnecessary extern declarations.
2987
a352c71f
NB
29882003-06-15 Neil Booth <neil@daikokuya.co.uk>
2989
2990 * config/frv/frv.h: Remove declaration of g_switch_value.
2991 * config/m32r/m32r.h: Remove declaration of g_switch_value.
2992 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
2993
5641d622
NB
29942003-06-15 Neil Booth <neil@daikokuya.co.uk>
2995
2996 * opts.sh: Quote '+' in regex.
2997
117dca74
AP
29982003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
2999
3000 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3001 * config/rs6000/rs6000.c: Include cfglayout.h.
3002 * config/alpha/alpha.c: Likewise.
3003 * config/ia64/ia64.c: Likewise.
3004 * config/sparc/sparc.c: Likewise.
3005 * config/sh/sh.c: Likewise.
3006
3ec76475
NB
30072003-06-15 Neil Booth <neil@daikokuya.co.uk>
3008
3009 * opts.sh: Quote '+' in regex.
3010
be43ab4e
NB
30112003-06-15 Neil Booth <neil@daikokuya.co.uk>
3012
3013 * c-opts.c (lang_flags): Update for new spelling of flags.
3014 (write_langs): Similarly.
3015 * c.opt: Specify languages.
3016 * opts.h: Remove languages.
3017 * opts.sh: Recognise front-end defined languages.
fd3acbb3 3018 * doc/sourcebuild.texi: Update.
be43ab4e 3019
4682ae04
AJ
30202003-06-15 Andreas Jaeger <aj@suse.de>
3021
3022 * alloc-pool.c: Convert to ISO C90 prototypes.
3023 * alloc-pool.h: Likewise.
3024 * alias.c: Likewise.
3025 * attribs.c: Likewise.
3026 * bb-reorder.c: Likewise.
3027 * bitmap.h: Likewise.
3028 * bitmap.c: Likewise.
3029 * builtins.c: Likewise.
3030
3031 * tree.h: Convert prototypes of attribs.c to ISO C90.
3032 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3033 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3034 * expr.h: Convert prototypes of builtins.c to ISO C90.
3035
9d5b9dae
RS
30362003-06-15 Roger Sayle <roger@eyesopen.com>
3037
3038 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3039 implement exp, expf and expl built-ins as inline x87 intrinsics.
3040 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3041 represent x87's fscale, frndint and f2xm1 insns respectively.
3042 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3043 to encode x87's "fscale" instruction followed by a pop.
3044 (*frndintxf2): New insn pattern for "frndint".
3045 (*f2xm1xf2): New insn pattern for "f2xm1".
3046
3047 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3048 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3049 UNSPEC_FPATAN.
3050
84fb2019
RK
30512003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3052
cbdb4ba2
RK
3053 * gencheck.c (main): Avoid generating duplicate macros.
3054
84fb2019
RK
3055 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3056 knowing names of language subdirectories.
3057
d185d268
NB
30582003-06-15 Neil Booth <neil@daikokuya.co.uk>
3059
3060 * c-pch.c (asm_file_name): Remove.
3061 * common.opt: Add more switches.
3062 * flags.h (g_switch_set): Boolify.
3063 * opts.c (g_switch_value, g_switch_set, exit_after_options,
3064 version_flag): Move from toplev.c.
3065 (common_handle_option): Handle more switches from toplev.c.
3066 * toplev.c (display_help, display_target_options, decode_d_option,
3067 print_version): Make non-static, remove prototypes.
3068 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3069 (version_flag, g_switch_value, g_switch_set, exit_after_options):
3070 Remove.
3071 (independent_decode_option): Move some handlers to opts.c.
3072 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3073 exit_after_options, version_flag, display_help, display_target_options,
3074 print_version, decode_d_option): New.
3075
72ac76be
KH
30762003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3077
3078 * config/alpha/alpha.md: Follow spelling conventions.
3079 * config/arm/arm.c: Likewise.
3080 * config/arm/arm.h: Likewise.
3081 * config/arm/arm.md: Likewise.
3082 * config/arm/crtn.asm: Likewise.
3083 * config/m32r/m32r.c: Likewise.
3084 * config/m32r/m32r.md: Likewise.
3085 * config/rs6000/rs6000.c: Likewise.
3086
a2855205
RH
30872003-06-15 Richard Henderson <rth@redhat.com>
3088
3089 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3090 insn_locators_initialize.
3091 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3092 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3093 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3094 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3095
51fbbb30
KH
30962003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3097
3098 * builtins.c (expand_builtin_expect_jump): Remove redundant
3099 tests that are also in any_condjump_p().
3100
e87b9d8b
KG
31012003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3102
3103 * libgcc2.c: Delete sysV68 L_trampoline section.
3104 * config/m68k/mot3300-crt0.S: Delete file.
3105 * config/m68k/mot3300Mcrt0.S: Likewise.
3106
ad9b8af6
NN
31072003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3108
3109 * config/aoutos.h: Remove.
3110 * config.gcc: Remove reference to aoutos.h.
3111 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3112
0b4be7de
KH
31132003-06-14 Kazu Hirata <kazu@cs.umass.edu>
3114
3115 * doc/install.texi: Follow spelling conventions.
3116 * doc/tm.texi: Likewise.
3117 * config/fp-bit.c: Likewise.
3118 * config/arm/arm.c: Likewise.
3119 * config/frv/frv.c: Likewise.
3120 * config/ns32k/NOTES: Likewise.
3121 * config/ns32k/STATUS: Likewise.
3122
06f31100
RS
31232003-06-14 Roger Sayle <roger@eyesopen.com>
3124 Zack Weinberg <zack@codesourcery.com>
3125
3126 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3127 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3128 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3129
3130 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3131 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3132 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3133 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3134 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3135 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3136 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3137 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3138 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3139 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3140 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3141 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3142 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3143 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3144 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3145 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3146 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3147 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3148 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3149 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3150
ee6b0296
NS
31512003-06-14 Nathan Sidwell <nathan@codesourcery.com>
3152
b7a70588
NS
3153 * opts.sh (POSIXLY_CORRECT): Unset it.
3154
ee6b0296
NS
3155 * tree.h (init_function_start): Remove filename and line paramters.
3156 * function.c (init_function_start): Remove filename and line
3157 parameters. Use DECL_SOURCE_LOCATION.
3158 * c-decl.c (store_parm_decls): Adjust init_function_start call.
3159 (c_expand_body_1): Likewise.
3160 * coverage.c (create_coverage): Likewise.
3161 * objc/objc-act.c (build_tmp_function_decl): Set line number to
3162 zero.
3163 (hack_method_prototype): Adjust init_function_start call.
3164
2fbe6bc2
RE
31652003-06-14 Richard Earnshaw <rearnsha@arm.com>
3166
3167 PR target/3724
3168 * arm/linux-elf.h (PROFILE_HOOK): Define.
3169
75d2580c
RE
31702003-06-14 Richard Earnshaw <rearnsha@arm.com>
3171
3172 PR target/11183
3173 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3174
3708da2a
RS
31752003-06-14 Roger Sayle <roger@eyesopen.com>
3176
3177 * opts.sh: Work around a mysterious feature in cygwin's gawk
3178 where specifying the input files explicitly has a different
3179 behavior to piping them via stdin.
3180
9756074d
NB
31812003-06-14 Neil Booth <neil@daikokuya.co.uk>
3182
3183 * doc/sourcebuild.texi: Update.
3184
a4a37b30
RE
31852003-06-14 Richard Earnshaw <rearnsha@arm.com>
3186
3187 PR target/11183
3188 * arm.c (output_move_double): Pass SImode to adjust_address.
3189
d7b42618
NB
31902003-06-14 Neil Booth <neil@daikokuya.co.uk>
3191
3192 * Makefile.in: Update to use common.opt and lang_opt_files.
3193 (c-options.c, c-options.h): Remove.
3194 (options.c, options.h): Add.
3195 * c-opts.c: Include options.h not c-options.h.
3196 * common.opt: New file.
3197 * configure, configure.in: Add lang_opt_files.
3198 * opts.c: Include flags.h and diagnostic.h.
3199 (common_handle_option): New.
3200 (handle_option): Update to recognize common options and all
3201 language-dependent options.
3202 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3203 (struct cl_option): Make flags of type int.
3204 * opts.h: Flag option with front ends to which it applies.
3205 Handle duplicate options.
3206 * toplev.c (filename): Remove.
3207 (independent_decode_option): Don't handle filenames and -quiet.
3208 (process_options, do_compile): Update.
3209
34e8290f
NC
32102003-06-14 Nick Clifton <nickc@redhat.com>
3211
3212 * doc/install.texi (Specific): Add description of different
3213 ARM supported file format targets.
3214
281ac604
JH
3215Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
3216
3217 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3218 inside delay slots.
3219
333991cf
MK
32202003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
3221
3222 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3223 * unwind-pe.h (size_of_encoded_value): Do not define if
3224 NO_SIZE_OF_ENCODED_VALUE is defined.
3225
9ad58e09
RS
32262003-06-13 Roger Sayle <roger@eyesopen.com>
3227
3228 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3229 expanding a complex constant into a CONCAT target.
3230
ed70c245
ZW
32312003-06-13 Zack Weinberg <zack@codesourcery.com>
3232
3233 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3234 (ASM_FILE_START_1): Delete.
3235 * config/i386/att.h, config/i386/sco5.h,
3236 config/i386/sysv3.h
3237 (ASM_FILE_START_1): Delete.
3238
1f2cd130
KC
32392003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
3240
3241 * config/i386/bsd.h: Remove ASM_FILE_START.
3242 * config/i386/djgpp.h: Likewise.
ed70c245 3243 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
1f2cd130
KC
3244
3245 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3246 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3247
880efc46
VM
32482003-06-13 Vladimir Makarov <vmakarov@redhat.com>
3249
3250 PR bootstrap/10835
3251 * haifa-sched.c (max_lookahead_tries,
ed70c245
ZW
3252 cached_first_cycle_multipass_dfa_lookahead,
3253 cached_issue_rate): New variables.
880efc46
VM
3254 (max_issue): Check the number of tries.
3255 (choose_ready): Calculate max_lookahead_tries.
3256 (sched_init): Check cached_issue_rate.
3257
792bb204
RH
32582003-06-13 Richard Henderson <rth@redhat.com>
3259
3260 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3261 * cfgrtl.c (purge_dead_edges): Expect it too.
3262
54c2fc72 32632003-06-13 Jim Wilson <wilson@tuliptree.org>
ed70c245 3264 Eric Botcazou <ebotcazou@libertysurf.fr>
54c2fc72
JW
3265
3266 PR bootstrap/10983
3267 * combine.c (make_extraction): Use gen_lowpart_for_combine
3268 when extracting from a REG and not in the destination of a SET.
3269
7e7de68b
DE
32702003-06-13 Doug Evans <dje@sebabeach.org>
3271
3272 * tsystem.h (abort): Declare in inhibit_libc case to remove build
3273 warnings for addvsi3, et.al.
3274
9f629a21
AH
32752003-06-13 Aldy Hernandez <aldyh@redhat.com>
3276
ed70c245 3277 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
9f629a21 3278
ed70c245 3279 * simplify-rtx.c (simplify_subreg): Same.
9f629a21 3280
ed70c245 3281 * emit-rtl.c (gen_lowpart_common): Same.
9f629a21 3282
e15bb5c6
KH
32832003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3284
3285 * builtins.c: Fix comment typos.
3286 * fold-const.c: Likewise.
3287
d88e80e6
DE
32882003-06-13 Doug Evans <dje@sebabeach.org>
3289 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3290
3291 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3292 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3293 (m32r_va_arg): Use it.
3294 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3295 (RETURN_IN_MEMORY): Ditto.
3296
dc125bdf
NN
32972003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3298
4581c678
NN
3299 * c-typeck.c: Remove #if 0 clauses.
3300
dc125bdf
NN
3301 PR other/1494
3302 * config/alpha/openbsd.h, config/i386/openbsd.h,
3303 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3304 residual reference to EGCS.
3305
6ab5da80
RE
33062003-06-13 Richard Earnshaw <rearnsha@arm.com>
3307
3308 * arm.c (output_call_mem): If the address references the link-register
3309 use an instruction sequence that avoids early-clobbering IP.
3310 (eliminate_lr2ip): Delete.
3311
3af0187c
KG
33122003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3313
3314 * c-format.c (format_types_orig): Disallow '*' width/precision in
3315 asm_fprintf format checks.
3316
c873e11f
UW
33172003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3318
ed70c245 3319 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
c873e11f
UW
3320 non-integral types from integer register save area slots.
3321
16ae108b
NN
33222003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3323
3324 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3325
ebd6b6a1
FW
33262003-06-13 Florian Weimer <fw@deneb.enyo.de>
3327
3328 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3329
43c73004
KK
33302003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
3331
3332 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3333 to file_end_indicate_exec_stack.
3334
ee4336ea
RH
33352003-06-12 Richard Henderson <rth@redhat.com>
3336
3337 PR target/11089
3338 * config/i386/i386.md (sse_movaps): Use an expander to force
3339 one operand to be a register.
3340 (sse_movups): Likewise.
3341
2ac29877
DE
33422003-06-13 Doug Evans <dje@sebabeach.org>
3343
3344 Remove some build warnings.
dc9ed76a 3345 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
2ac29877
DE
3346 (__do_global_ctors,__do_global_dtors): Ditto.
3347
c63f3a34
RH
33482003-06-12 Richard Henderson <rth@redhat.com>
3349
3350 PR middle-end/10557
3351 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3352
0d370a05
KH
33532003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3354
3355 * config/m32r/m32r.md: Fix a comment typo.
3356
48028e21 33572003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
ed70c245 3358 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
48028e21
EB
3359
3360 PR target/10142
3361 * config/sparc/sparc.c (function_arg_record_value_parms): Add
3362 new 'stack' field.
3363 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3364 integer slots for an integer field.
3365 (function_arg_record_value_3): Shift vector index.
3366 (function_arg_record_value_2): Likewise.
3367 (function_arg_record_value): Initialize 'stack' to 0.
3368 Set 'stack' to 1 if we run out of integer slots for an integer field.
3369 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3370
5adf448c
EB
33712003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3372
3373 PR optimization/10955
3374 * unroll.c (unroll_loop): Fix off-by-one bug.
3375
55c8af0b
AH
33762003-06-12 Aldy Hernandez <aldyh@redhat.com>
3377
ed70c245 3378 * config/rs6000/rs6000.c (function_arg): Remove typo.
55c8af0b 3379
cb0e3e3f
RH
33802003-06-12 Richard Henderson <rth@redhat.com>
3381
3382 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
3383 and UNSPEC_DTPOFF.
3384
8433f113
RH
33852003-06-12 Richard Henderson <rth@redhat.com>
3386
ed70c245
ZW
3387 PR middle-end/10475
3388 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
3389 for extracting sub-words.
8433f113 3390
7b687728
RH
33912003-06-12 Richard Henderson <rth@redhat.com>
3392
ed70c245
ZW
3393 PR target/7594
3394 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
3395 (zero_extendqihi2, zero_extendqisi2): Likewise.
7b687728 3396
a6c9bed4
AH
33972003-06-12 Aldy Hernandez <aldyh@redhat.com>
3398
3399 * config/rs6000/rs6000.c (function_arg): Always split vectors for
3400 e500 if it's a stdarg function.
3401 (function_arg_advance): Advance 2 registers for vectors in a
3402 stdarg function.
3403 (init_cumulative_args): Initialize stdarg.
3404 (rs6000_spe_function_arg): New.
3405
3406 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
3407
4dcc01f3
AH
34082003-06-12 Aldy Hernandez <aldyh@redhat.com>
3409
ed70c245 3410 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4dcc01f3 3411
96f26e41
RS
34122003-06-12 Roger Sayle <roger@eyesopen.com>
3413
3414 PR middle-end/168
3415 * fold-const.c (tree_expr_nonnegative_p): Handle addition
3416 and multiplication of zero extensions, floating point division,
3417 and integer<->fp, fp<->fp and zero extension conversions.
3418 The built-in ceil and floor functions preserve signedness.
3419
6356f892
KH
34202003-06-12 Kazu Hirata <kazu@cs.umass.edu>
3421
3422 * ChangeLog: Follow spelling conventions.
3423 * ChangeLog.2: Likewise.
3424 * c-decl.c: Likewise.
3425 * cfgloop.h: Likewise.
3426 * cgraph.c: Likewise.
3427 * coverage.c: Likewise.
3428 * cppcharset.c: Likewise.
3429 * cpphash.h: Likewise.
3430 * cpplex.c: Likewise.
3431 * cpplib.c: Likewise.
3432 * dbxout.c: Likewise.
3433 * df.c: Likewise.
3434 * dwarf2out.c: Likewise.
3435 * dwarfout.c: Likewise.
3436 * emit-rtl.c: Likewise.
3437 * explow.c: Likewise.
3438 * gcov-io.c: Likewise.
3439 * gcov-io.h: Likewise.
3440 * gcov.c: Likewise.
3441 * gengtype.c: Likewise.
3442 * ggc.h: Likewise.
3443 * opts.c: Likewise.
3444 * real.c: Likewise.
3445 * reload.c: Likewise.
3446 * stmt.c: Likewise.
3447
25f47a4c
JJ
34482003-06-12 Janis Johnson <janis187@us.ibm.com>
3449
3450 * doc/install.texi (m32r-*-elf): Change company to Renesas.
3451
f0fda11c
JH
3452Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
3453
3454 * basic-block.h (flow_delete_block_noexpunge): Kill.
3455 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
3456 rtl_delete_block.
3457
d6fc0492
RH
34582003-06-10 Richard Henderson <rth@redhat.com>
3459
ed70c245
ZW
3460 PR inline-asm/4823
3461 * reg-stack.c (any_malformed_asm): New.
3462 (check_asm_stack_operands): Set it.
3463 (convert_regs_1): Check it before aborting.
d6fc0492 3464
54da776f
AH
34652003-06-12 Aldy Hernandez <aldyh@redhat.com>
3466
ed70c245 3467 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
54da776f 3468
c47d8f82
JJ
34692003-06-12 Jakub Jelinek <jakub@redhat.com>
3470
3471 * c-opts.c (complain_wrong_lang): Add on argument.
3472 Print no- switch if on is false.
3473 (c_common_decode_option): Adjust caller.
3474
109480b1
UW
34752003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3476
3477 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
3478 to initialize GOT register.
3479
f7df23be
RS
34802003-06-12 Roger Sayle <roger@eyesopen.com>
3481
3482 * fold-const.c (tree_expr_nonnegative_p): Add support for
3483 floating point constants, addition and multiplication.
3484
38b3ef8b
R
34852003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
3486
3487 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
3488 constraint modifier for operand 0.
3489
78b8811a
HPN
34902003-06-12 Hans-Peter Nilsson <hp@axis.com>
3491
3492 Don't warn on dollars in builtin macro definitions,
3493 e.g. __REGISTER_PREFIX__.
3494 * cpphash.h (struct cpp_reader): Move member warn_dollars...
3495 * cpplib.h (struct cpp_options): ...to here. Change type to
3496 unsigned char.
3497 * cppinit.c (cpp_create_reader): Set it to 1 here.
3498 (post_options): Don't set it here.
3499 * c-opts.c (c_common_init_options): Reset it to 0 here.
3500 (finish_options): Set it here.
3501 * cpplex.c (forms_identifier_p): Tweak for new location of
3502 warn_dollars.
3503
2853bc5a
HPN
3504 * configure.in (assembler dwarf2 debug_line support): Define insn
3505 for cris-*-* and mmix-*-*.
3506 * configure: Regenerate.
3507
6b3a0b34
US
35082003-06-11 Uwe Stieber <uwe@kaos-group.de>
3509
3510 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3511 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
3512 (sh-*-elf*): Add sh*-*-kaos* support.
3513 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
3514 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
3515 config/sh/kaos-sh.h: New files.
3516
2fa4a849
KH
35172003-06-12 Kazu Hirata <kazu@cs.umass.edu>
3518
3519 * gcse.c (fis_get_condition): Make it a global function.
3520 * reload1.c (reload_cse_move2add): Detect implicit sets.
3521 * rtl.h: Add a prototype for fis_get_condition.
3522
d50ad6af
RH
35232003-06-11 Richard Henderson <rth@redhat.com>
3524
3525 * stmt.c (expand_asm_operands): Don't warn for memories with
3526 queued addresses.
3527
04953ac9
KK
35282003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
3529
3530 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
3531 brackets.
3532
7fb26bb0
NB
35332003-06-11 Neil Booth <neil@daikokuya.co.uk>
3534
3535 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
3536 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
3537 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
3538 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
3539 * langhooks.c (lhd_decode_option): Remove.
3540 * langhooks.h (struct lang_hooks): Remove decode_option.
3541 * opts.c (handle_option): No longer use decode_option.
3542
7e53cfb2
ZD
35432003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3544
3545 * cfgloopanal.c (variable_initial_value): Update the set of altered
3546 registers correctly.
3547
5f9b0711
RS
35482003-06-11 Roger Sayle <roger@eyesopen.com>
3549 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3550
3551 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
3552 * config/i386/netbsd-elf.h: Likewise.
3553 * config/m32r/m32r.h: Likewise.
3554 * config/mn10300/mn10300.h: Likewise.
3555 * config/stormy16/stormy16.h: Likewise.
3556 * config/v850/v850.h: Likewise.
3557 * config/vax/netbsd-elf.h: Likewise.
3558 * config/xtensa/elf.h: Likewise.
3559 * config/xtensa/linux.h: Likewise.
3560
655b7166
RO
35612003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3562
3563 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
3564 DWARF 2 default.
3565
3566 * config/mips/dbxmdebug.h: New file.
3567 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
3568 gas and --with-stabs.
3569
658cf52f
UW
35702003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3571
3572 * expr.c (can_move_by_pieces): align argument may be unused.
3573
06765df1
R
35742003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
3575
3576 * expr.c (convert_move): Handle moves between two CONCATs.
3577
cf874806
KH
35782003-06-11 Kazu Hirata <kazu@cs.umass.edu>
3579
3580 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
3581 !TARGET_H8300.
3582
ca9d6cca
KH
35832003-06-11 Kazu Hirata <kazu@cs.umass.edu>
3584
3585 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
3586 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
3587 (TARGET_RTL_DUMP): Likewise.
3588 (TARGET_SWITHCES): Remove -mrtl-dump.
3589
0310c414
RH
35902003-06-10 Richard Henderson <rth@redhat.com>
3591
3592 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
3593
15d11f13
RH
35942003-06-10 Richard Henderson <rth@redhat.com>
3595
3596 * config/ia64/ia64.md (call_gp): Fix memory mode.
3597
f58d8c95
JW
35982003-06-10 James E Wilson <wilson@tuliptree.org>
3599
3600 PR target/8812
3601 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
3602 hard regs for reload_reg_used_at_all and reg_class_contents checks.
3603
5abfd1af
KH
36042003-06-10 Kazu Hirata <kazu@cs.umass.edu>
3605
3606 * config/h8300/h8300.c (print_operand): Remove support for
3607 operand character 'b'.
3608 Add the AND case to operand character 'c'.
3609 * config/h8300/h8300.md (two anonymous patterns): Replace
3610 operand character 'b' with 'c'.
3611
ca895f7d
KH
36122003-06-10 Kazu Hirata <kazu@cs.umass.edu>
3613
3614 * config/h8300/h8300.c (print_operand): Remove support for
3615 operand character 'u'.
3616
3b1b059c
NN
36172003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
3618
3619 * configure.in: Fix typo.
3620 * configure: Regenerate.
3621
e85f3dc8
LR
36222003-06-10 Loren James Rittle <ljrittle@acm.org>
3623
3624 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
3625 compilation guard.
3626
90534361
R
36272003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
3628
3629 * sh-protos.h (function_symbol): Declare.
3630 * sh.c (expand_block_move, expand_ashiftrt): Use it.
3631 (sh_expand_prologue, sh_expand_epilogue): Likewise.
3632 (sh_initialize_trampoline): Likewise.
3633 (function_symbol): New function.
3634 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
3635 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
3636 (call_value_pop, shcompact_return_tramp): Likewise.
3637
3638 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
3639
3640 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
3641 target register.
3642
e2ce66a9
DD
36432003-06-10 DJ Delorie <dj@redhat.com>
3644
3645 * doc/md.texi (Machine Constraints): Document stormy's Z
3646 constraint.
3647
21c157b4
GK
36482003-06-10 Geoffrey Keating <geoffk@apple.com>
3649
3650 * except.c (call_site_base): Mark with GTY.
3651
e32bac5b
RE
36522003-06-10 Richard Earnshaw <rearnsha@arm.com>
3653
3654 * arm-proto.h: Convert to ISO C90 prototypes.
3655 * arm.c: Likewise.
3656
4db8f48a
R
36572003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
3658
3659 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
3660
f80f73e1
SE
36612003-06-10 Steve Ellcey <sje@cup.hp.com>
3662
3663 * calls.c (expand_call): Convert structure_value_addr to Pmode if
3664 necessary.
3665
e076f71a
AH
36662003-06-10 Andrew Haley <aph@redhat.com>
3667
3668 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
3669 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
3670 (lhd_decl_ok_for_sibcall): New.
3671 * langhooks.c (lhd_decl_ok_for_sibcall): New.
3672 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
3673 * calls.c (expand_call): Check lang_hook before generating a
3674 sibcall.
3675
e7e09ad8
DD
36762003-06-10 DJ Delorie <dj@redhat.com>
3677
3678 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
3679 which matches (const_int 0) for addhi3.
3680 * config/stormy16/stormy16.md: Document known constraints.
3681 (addhi3): Handle adding zero.
3682
a398a822
KI
36832003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3684
3685 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
3686 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
3687 * config/m32r/m32r-protos.h: Prototype it.
3688
bb8f5288
JJ
36892003-06-10 Janis Johnson <janis187@us.ibm.com>
3690
3691 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
3692 common to rs6000 sysv targets.
3693 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
3694 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
3695
52f97a3b
NC
36962003-06-10 Nick Clifton <nickc@redhat.com>
3697
3698 * config.gcc: Add arm-wince-pe target.
3699 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
ed70c245 3700 Add comment about default apcs26 support.
52f97a3b
NC
3701 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
3702 multilib.
ed70c245 3703 (MULTILIB_DIRNAMES): Add 'apcs32'.
52f97a3b
NC
3704 * config/arm/t-wince-pe: New makefile fragment.
3705 * config/arm/wince-pe.h: New file. Overrides a few definitions
3706 in arm/pe.h
3707
9f0a7f9d
RS
37082003-06-10 Roger Sayle <roger@eyesopen.com>
3709
3710 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
3711 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
3712 when x is easily negated and f is sin, tan or atan.
3713 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
3714 sin(x) with flag_unsafe_math_optimizations.
3715 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
3716 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
3717
8936c82f
RS
37182003-06-10 Roger Sayle <roger@eyesopen.com>
3719
3720 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
3721 is a floating point type *and* we currently honor NaNs.
3722 (fold <NE_EXPR>): Likewise.
3723
d58b7c2d
MM
37242003-06-10 Mark Mitchell <mark@codesourcery.com>
3725
3726 PR c++/11131
3727 * tree-inline.c (inlinable_function_p): Call the language-specific
3728 hook early.
3729
c566f9bd
DT
37302003-06-09 David Taylor <dtaylor@emc.com>
3731
3732 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
3733 the f_res field.
3734
4665e56c
NN
37352003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
3736
619833ad
NN
3737 * configure.in: Remove references to host_truncate_target.
3738 * configure: Regenerate.
3739 * config.gcc: Remove references to truncate_target,
3740 host_truncate_target.
3741
4665e56c
NN
3742 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
3743 Replace "build_canonical" with build, "host_canonical" with host.
3744 * configure.in: Use GCC_TOPLEV_SUBDIRS.
3745 * aclocal.m4: Include ../config/acx.m4.
3746 * configure: Regenerate.
3747
37482003-06-09 David Taylor <dtaylor@emc.com>
64c2816f
DT
3749
3750 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
3751 bytes of padding in the __va_list_tag structure a name (reserved).
3752
1bfedcc8
JM
37532003-06-09 Jason Merrill <jason@redhat.com>
3754
3755 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
3756
4665e56c 37572003-06-09 Osku Salerma <osku@iki.fi>
75b2a93c
OS
3758
3759 * c-format.c (check_format_string, get_constant): New.
3760 (handle_format_attribute, handle_format_arg_attribute,
3761 decode_format_attr): Change to use above functions.
3762
71ed1fdb
RH
37632003-06-09 Richard Henderson <rth@redhat.com>
3764
ed70c245 3765 * stmt.c (expand_asm_operands): Re-word warning.
71ed1fdb 3766
528b8487
AP
37672003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
3768
3769 PR target/8787
3770 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
3771 if -masm=intel.
3772
00051260
JW
37732003-06-09 James E Wilson <wilson@tuliptree.org>
3774
3775 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
3776 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
3777 Add libgcc exception.
3778
8e8238f1
DE
37792003-06-09 David Edelsohn <edelsohn@gnu.org>
3780 Ayal Zaks <gcchaifa@us.ibm.com>
3781
3782 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
3783 (insvsi*): Add insert_word attribute.
3784 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
3785 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
3786 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
3787
2859471c
KH
37882003-06-09 Kazu Hirata <kazu@cs.umass.edu>
3789
3790 * fold-const.c (fold): Fix a comment typo.
3791
36f04556
NS
37922003-06-09 Nathan Sidwell <nathan@codesourcery.com>
3793
3794 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
3795 removed.
3796
86143cb4
R
37972003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
3798
3799 * sh.c (gen_block_redirect): Use locators.
3800
659bdc68
RE
38012003-06-09 Richard Earnshaw <rearnsha@arm.com>
3802
3803 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
3804 cast to int.
3805
4dd03b27
RS
38062003-06-09 Richard Sandiford <rsandifo@redhat.com>
3807
3808 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
3809 operators.
3810 * configure: Regenerated.
3811
f833ffd4
RS
38122003-06-09 Richard Sandiford <rsandifo@redhat.com>
3813 Alexandre Oliva <aoliva@redhat.com>
3814
3815 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
3816 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
3817 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
3818 n32/64 PIC.
3819 (MUST_SAVE_REGISTERS): Delete.
3820 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
3821 (machine_function): Add global_pointer field.
3822 (mips_classify_constant): Check for (const $gp) using pointer equality
3823 with pic_offset_table_rtx.
3824 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
3825 (mips_restore_gp): Use current_function_outgoing_args_size.
3826 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
3827 GP_REG_FIRST + 28. Handle relocation strings that have
3828 more than one '('.
3829 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
3830 (mips_global_pointer): New function.
3831 (mips_save_reg_p): New function, mostly split out from...
3832 (compute_frame_size): ...here. Remove handling of extra_size.
3833 Reclaim args_size if no variables depend on it. Don't treat gp
3834 as a special case: handle it in the main GPR loop.
3835 (mips_initial_elimination_offset): Fix comment.
3836 (save_restore_insns): Save every register in the GPR mask,
3837 removing distinction between mask and real_mask.
3838 (mips_output_function_prologue): Update .frame psuedo-op after
3839 the removal of extra_size. Move the SVR4 PIC stack allocation
3840 and cprestore instructions to mips_expand_prologue.
3841 (mips_gp_insn): New function.
3842 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
3843 the chosen global pointer. Handle SVR4 PIC stack allocation
3844 in the same way as other ABIs. Adjust varargs code accordingly.
3845 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
3846 to emit the loadgp sequence. Follow it with a loadgp_blockage
3847 if not using explicit relocs.
3848 (mips_output_function_epilogue): Reinstate the default gp register.
3849 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
3850 (mips16_optimize_gp): Likewise.
3851 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
3852 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
3853 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
3854 (loadgp): Remove.
3855 (loadgp_blockage, cprestore): New instructions.
3856 (builtin_setjmp_setup): Implement using emit_move_insn. Use
3857 pic_offset_table_rtx.
3858 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
3859 (builtin_longjmp): Use gen_raw_REG to force use of $28.
3860
32ad6a47
RS
38612003-06-09 Richard Sandiford <rsandifo@redhat.com>
3862
3863 * config/mips/mips-protos.h (mips_output_division): Declare.
3864 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
3865 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
3866 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
3867 (TARGET_CHECK_ZERO_DIV): New macro.
3868 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
3869 * config/mips/mips.c (mips_output_division): New function.
3870 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
3871 account when calculating the default length of a division.
3872 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
3873 Enable regardless of optimization level. Use mips_output_division.
3874 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
3875 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
3876 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
3877 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
3878 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
3879 umoddi3_internal): Remove.
3880
d334c3c1
RS
38812003-06-09 Richard Sandiford <rsandifo@redhat.com>
3882
3883 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
3884 (mips_sw_reg_names): Likewise.
3885 (mips_regno_to_class): Change hilo entry to NO_REGS.
3886 (hilo_operand): Use MD_REG_P.
3887 (extend_operator): New predicate.
3888 (override_options): Remove 'a' constraint.
3889 (mips_secondary_reload_class): Remove hilo handling. Also remove
3890 handling of (plus sp reg) reloads for mips16.
3891 (mips_register_move_cost): Remove hilo handling.
3892 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
3893 (MD_REG_LAST): Remove hilo from range.
3894 (HILO_REGNUM): Delete.
3895 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
3896 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3897 (PREDICATE_CODES): Add entry for extend_operator.
3898 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
3899 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
3900 Remove constraints from multiplication define_expands. Remove
3901 clobbers from "decorative" define_expand patterns.
3902 (UNSPEC_HILO_DELAY): Delete.
3903 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
3904 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
3905 Adjust C code to just emit insns for !TARGET_64BIT.
3906 (mulsidi3_internal): Rename to mulsidi3_32bit.
3907 (mulsidi3_64bit): Use a "d" constraint for the destination.
3908 Use extend_operator so that the pattern can handle umulsidi3 as well.
3909 Split the instruction after reload.
3910 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
3911 (umulsidi3_internal): Rename to umulsidi3_32bit.
3912 (umulsidi3_64bit): Remove.
3913 (*smsac_di, *umsac_di): Line-wrap fixes.
3914 (udivsi3_internal): Don't allow operand 2 to be constant.
3915 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
3916 (movdi_internal2, movsi_internal): Remove hilo alternatives.
3917 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
3918
20db0e3c
RS
39192003-06-09 Richard Sandiford <rsandifo@redhat.com>
3920
3921 PR target/10913
3922 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
3923 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
3924 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
3925 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
3926 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
3927 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
3928 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
3929 asm_out_text_file with asm_out_file.
3930 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
3931 * config/mips/elf.h (TEXT_SECTION): Undefine.
3932 * config/mips/elf64.h (TEXT_SECION): Undefine.
3933 * config/mips/openbsd.h (TEXT_SECION): Undefine.
3934 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
3935 (override_options): Disable small-data optimizations unless using
3936 gas or explicit relocations.
3937 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
3938 iris6_asm_named_section, iris6_asm_file_start): Remove code for
3939 handling TARGET_FILE_SWITCHING.
3940 (copy_file_data): Move into TARGET_IRIX6 block.
3941
017e1b43
RH
39422003-06-08 Richard Henderson <rth@redhat.com>
3943
3944 * expr.h (EXPAND_MEMORY): New.
3945 * expr.c (expand_expr): Check it.
3946 * stmt.c (expand_asm_operands): Provide it when the constraint
3947 requires a memory. Warn for memory input constraints without
3948 a memory operand.
3949
f8950e17
KG
39502003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3951
3952 * varasm.c: Don't include c-tree.h.
3953
51d2dfa6
AJ
39542003-06-08 Andreas Jaeger <aj@suse.de>
3955
3956 * predict.h: Convert to ISO C90 prototypes.
3957 * predict.c: Likewise.
3958 * tree-dump.h: Likewise.
3959 * tree-dump.c: Likewise.
3960 * diagnostic.h: Likewise.
3961 * diagnostic.c: Likewise.
3962 * combine.c: Likewise.
3963
3964 * rtl.h: Convert prototypes of combine.c to ISO C90.
3965
0435312e
JH
3966Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
3967
3968 * cfglayout.c (insn_scope): New static function
3969 (block_locators_*, line_locators*, file_locators*): New static varrays.
3970 (scope_to_insns_initialize): Use them.
3971 (insn_line, insn_file): New functions.
3972 (scope_to_insns_finalize): Use insn_scope.
3973 (prologue_locator, epilogue_locator): New global variables.
3974 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
3975 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
3976 (emit_insn_after_scope, emit_insn_before_scope
3977 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3978 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3979 (emit_insn_after_setloc, emit_insn_before_setloc
3980 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
3981 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
3982 use locators.
3983 * final.c (notice_source_line): Use locators.
3984 (final_start_function): Set initial source file and line.
3985 (final_scan_insn): Use locators.
3986 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3987 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
3988 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3989 noce_process_if_block, find_cond_trap): Likewise.
3990 * integrate.c (copy_insn_list): Likewise.
3991 * jump.c (duplicate_loop_exit_test): LIkewise.
3992 * print-rtl.c (print_rtx): Print locators.
3993 * recog.c (peephole2_optimize): Likewise.
3994 * rtl.h (INSN_SCOPE): Remove.
3995 (emit_insn_after_scope, emit_insn_before_scope
3996 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3997 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3998 (emit_insn_after_setloc, emit_insn_before_setloc
3999 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4000 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4001 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4002 * unroll.c (copy_loop_body): Use locators.
4003 * function.c (set_insn_locators): New function.
4004 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4005
5d39821d
KH
40062003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4007
4008 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4009 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4010 _fixsfdi _fixunssfdi.
4011 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4012 popcounthi2.
4013 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4014 * config/h8300/clzhi2.c: New.
4015 * config/h8300/ctzhi2.c: Likewise.
4016 * config/h8300/parityhi2.c: Likewise.
4017 * config/h8300/popcounthi2.c: Likewise.
4018
10e9fecc
JH
4019Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
4020
4021 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4022 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4023
4024 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4025 (dump_bb): New based on old dump_bb in cfgrtl.c
4026 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4027 * cfghooks.h (cfgh_verify_flow_info): Return status.
4028 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4029 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4030 (dump_bb): Remove generic parts.
4031 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4032 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4033
35399bdc
NB
40342003-06-08 Neil Booth <neil@daikokuya.co.uk>
4035
4036 * Makefile.in: Rename options.c and options.h to c-options.c and
4037 c-options.h.
4038 (OBJS): Remove options.o.
4039 * c-opts.c: Don'tInclude c-options.h instead of options.h.
4040 * opts.c: Don't include options.h.
4041 (find_opt): Can't use enum opt_code or N_OPTS.
4042 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4043 * opts.sh: ... here.
4044
56f0c0d8 40452003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
528b8487 4046 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8eb6a092
EB
4047
4048 PR pch/9830
4049 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4050 if HAVE_MINCORE is defined.
4051 (MAP_FAILED): Define if not defined.
4052 (gt_pch_save): Test against MAP_FAILED.
4053 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4054 the mapping address to the preferred base after checking it
4055 is possible to do so. Test against MAP_FAILED.
4056 * configure.in: Test for the presence of mincore in libc.
4057 * config.in: Regenerate.
4058 * configure: Regenerate.
4059
797c8a92
RH
40602003-06-07 Richard Henderson <rth@redhat.com>
4061
4062 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4063 conditional compilation guard.
4064
77173bbe
KH
40652003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4066
4067 * optabs.c (expand_abs): Set result_unsignedp to 1 if
4068 flag_trav is zero.
4069
2288bdbb
RH
40702003-06-07 Richard Henderson <rth@redhat.com>
4071
528b8487 4072 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
2288bdbb 4073
1722c2c8
RH
40742003-06-07 Richard Henderson <rth@redhat.com>
4075
4076 * basic-block.h (EDGE_SIBCALL): New.
4077 (EDGE_ALL_FLAGS): Update.
4078 * cfg.c (dump_edge_info): Add sibcall name.
4079 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4080 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4081
44de936e
AJ
40822003-06-07 Andreas Jaeger <aj@suse.de>
4083
5145a02e
AJ
4084 * mklibgcc.in (lib2funcs): Remove _exit.
4085 * libgcc2.c: Remove L_exit.
4086 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4087
4088 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4089
4090 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4091
20c1dc5e
AJ
4092 * ggc.h: Convert to ISO C90 prototypes.
4093 * ggc-none.c: Likewise.
4094 * ggc-common.c: Likewise.
4095 * ggc-page.c: Likewise.
4096 * ggc-simple.c: Likewise.
4097
44de936e
AJ
4098 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4099
4100 * system.h: Poison INIT_SECTION_PREAMBLE.
4101
a5fe455b
ZW
41022003-06-07 Zack Weinberg <zack@codesourcery.com>
4103
4104 * config.gcc (with_cpu handling): Translate sparc64 in
4105 $machine to --with-cpu=v9.
4106 * config/alpha/alpha.c
4107 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4108 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4109
4110 * target.h: New hook asm_out.file_end.
4111 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
ed446835 4112 * toplev.c (compile_file): Use targetm.asm_out.file_end.
a5fe455b
ZW
4113 * system.h: Poison ASM_FILE_END.
4114 * varasm.c (file_end_indicate_exec_stack): New.
4115 * output.h: Prototype it.
4116 * doc/tm.texi: Document TARGET_ASM_FILE_END and
4117 file_end_indicate_exec_stack. Delete references to attasm.h.
4118
4119 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4120 (ASM_FILE_END): Delete; move code...
4121 * config/darwin.c (darwin_file_end): Here; new function.
4122 * config/darwin-protos.h: Prototype it.
4123 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4124 rename unicosmk_file_end.
4125 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4126 * config/arm/arm.c (aof_file_end): ... here; new static function.
4127 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4128 Make aof_dump_imports and aof_dump_pic_table static.
4129 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4130 Set TARGET_ASM_FILE_END to avr_file_end.
4131 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
4132 Set TARGET_ASM_FILE_END to c4x_file_end.
4133 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4134 make static. Take no arguments. Set TARGET_ASM_FILE_END to
4135 h8300_file_end.
4136 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4137 * config/i370/i370.c (i370_file_end): ... here; new static function.
4138 Set TARGET_ASM_FILE_END to i370_file_end.
4139 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4140 Take no arguments. Call file_end_indicate_exec_stack if
4141 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4142 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4143 Define NEED_INDICATE_EXEC_STACK to 0.
4144 * config/i386/linux.h, config/i386/linux64.h: Redefine
4145 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4146 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4147 i386_pe_file_end. Take no arguments. Use ix86_file_end.
4148 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4149 ia64_hpux_file_end, make static. Take no arguments.
4150 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4151 commands_in_prologues, commands_in_epilogues): Delete.
4152 (function_epilogue): Update to match.
4153 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4154 make static. Take no arguments.
4155 (iris6_asm_file_end): Rename iris6_file_end, make static, use
4156 mips_file_end, take no arguments.
4157 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4158 appropriate.
4159 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4160 make static, take no arguments. Set TARGET_ASM_FILE_END to
4161 mmix_file_end.
4162 * config/pa/pa.c (output_deferred_plabels): Make static, take
4163 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
4164 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4165 (ASM_FILE_END): Delete; move code...
4166 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4167 new static function.
4168
4169 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4170 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4171 Don't set ASM_FILE_END.
4172 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4173 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4174 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4175 file_end_indicate_exec_stack; don't set ASM_FILE_END.
4176 * config/alpha/unicosmk.h, config/i386/cygming.h
4177 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4178 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4179 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4180 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4181 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4182 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4183
da2d4c01
JH
4184Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
4185
4186 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4187 specified.
4188
8c560c80
JH
4189Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4190
4191 * Makefile.in (stageprofile_build): Kill redundant target.
4192 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4193
e62b6ea1
AJ
41942003-06-07 Andreas Jaeger <aj@suse.de>
4195
4196 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4197
4198 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4199 * config/dsp16xx/dsp16xx.h: Likewise.
4200 * config/i386/i386.h: Likewise.
4201 * config/ip2k/ip2k.h: Likewise.
4202
2772ef3e
NB
42032003-06-07 Neil Booth <neil@daikokuya.co.uk>
4204
4205 * Makefile.in (OJBS, c-opts.o): Update.
4206 (c-options.c, c-options.h): Rename options.h and options.c.
4207 (options.h): Rename options_.h.
4208 (opts.o): New.
4209 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4210 (c_common_init_options): Update prototype.
4211 * c-lang.c (c_init_options): Update prototype.
4212 (LANG_HOOKS_HANDLE_OPTION): Override.
4213 (LANG_HOOKS_DECODE_OPTION): Drop.
4214 * c-opts.c: Include opts.h and options.h instead of c-options.h
4215 and c-options.c.
4216 (lang_flags): Move to file scope.
4217 (find_opt, c_common_decode_option): Remove.
4218 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4219 CL_REJECT_NEGATIVE): Move to opts.h.
4220 (missing_arg): Update prototype.
4221 (c_common_init_options): Update for new prototype.
4222 (c_common_handle_options): Filenames are passed as N_OPTS.
4223 * hooks.c (hook_int_void_0): New.
4224 * hooks.h (hook_int_void_0): New.
4225 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4226 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4227 (LANG_HOOKS_INITIALIZER): Update.
4228 * langhooks.h (init_options): Update.
4229 (handle_option): New.
4230 * opts.c, opts.h: New files.
4231 * opts.sh: Update c file to include opts.h and options.h.
4232 * toplev.c: Include opts.h; change options.h to options_.h.
4233 (parse_options_and_default_flags): Get lang_mask, use
4234 handle_option for language-specific handling.
4235 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4236 (LANG_HOOKS_HANDLE_OPTION): Override.
4237 (objc_init_options): Update.
4238
3743ea05
MK
42392003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
4240 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4241
f6749ed8 4242 PR other/7031
3743ea05
MK
4243 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4244 gcov.
4245
90e145da
KC
42462003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
4247
4248 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4249 section names.
4250 * configure: Regenerate.
4251
ffbc65c3
AM
42522003-06-07 Alan Modra <amodra@bigpond.net.au>
4253
4254 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4255
8a5db2b4
JW
42562003-06-06 James E Wilson <wilson@tuliptree.org>
4257
4258 PR inline-asm/10890
4259 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4260 different in fields.
4261
6a1b7268
NN
42622003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
4263
4264 * configure.in: Make $(target_subdir) correspond with top level usage.
4265 * Makefile.in: Likewise.
4266 * configure: Regenerate.
4267
78cabff8
JDA
42682003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4269
4270 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4271 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4272 unsigned HOST_WIDE_INT.
4273 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4274 Likewise.
4275 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4276 Likewise.
4277
67b1fbb9
KG
42782003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4279
4280 * doc/install.texi (Prerequisites): New section documenting
4281 tools and packages necessary prior to building and/or
4282 modifying GCC.
4283 * doc/install.texi2html: Also generate prerequisites.html.
4284
3a11ec8b
RE
42852003-06-06 Richard Earnshaw <rearnsha@arm.com>
4286
4287 PR target/11052
4288 * ifcvt.c (noce_process_if_block): Fail if the destination has
4289 side-effects.
4290
7dc8b126
JM
42912003-06-06 Jason Merrill <jason@redhat.com>
4292
4293 * stmt.c (resolve_asm_operand_names): Rename from
4294 resolve_operand_names. No longer static. Avoid needless copying.
4295 Don't build array of constraints.
4296 (expand_asm_operands): Build it here.
4297 * tree.h: Declare resolve_asm_operand_names.
4298
4299 * stmt.c (expand_decl): Put artificial vars into registers even
4300 when not optimizing, and don't mark the regs as user vars.
4301
1c20913c
R
43022003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4303
4304 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4305 of the generated register.
4306
09c36669
DJ
43072003-06-06 Daniel Jacobowitz <drow@mvista.com>
4308
4309 * config.gcc: Add a missing sparc64 case.
4310
744f6f09
JJ
43112003-06-06 Jakub Jelinek <jakub@redhat.com>
4312
4313 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4314 the .hidden assembly stubs.
4315
30fb3231
L
43162003-06-06 H.J. Lu <hongjiu.lu@intel.com>
4317
4318 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4319 and x86_64-*-*.
4320
4321 * config/i386/mmintrin.h: Update version and add alternate
4322 intrinsic names.
4323 * config/i386/xmmintrin.h: Likewise.
4324
4325 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4326 intrinsics to ...
4327 * config/i386/emmintrin.h: Here. New file.
4328
07bae5ad
RS
43292003-06-06 Roger Sayle <roger@eyesopen.com>
4330
4331 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
4332 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
4333 when the ABS_EXPR (fabs or abs) is not required.
e62b6ea1 4334 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
07bae5ad
RS
4335 always nonnegative from fold to here. Additionally, cabs and fabs
4336 are always non-negative, and pow and atan are non-negative if
4337 their first argument is non-negative.
4338
4339 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4340 Evaluate cabs of a constant at compile-time. Convert cabs of a
4341 non-complex argument into fabs. Convert cabs(z) into
4342 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4343 -funsafe-math-optimizations or -ffast-math.
4344 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4345 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4346
295e823c
JH
4347Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
4348
4349 * sourcebuild.texi (Front End Directory): Document new hooks.
4350
9ee634e3
JH
4351Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
4352
4353 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
07bae5ad
RS
4354 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4355 stack frames.
9ee634e3
JH
4356 (pro_epilogue_adjust_stack_rex64_2): New pattern
4357
4358Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
4359 Pop Sebastian
4360 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4361
4362 * cfghooks.h, cfghooks.c: New files.
4363 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4364 (OBJS): Add cfghooks.o.
4365 (cfghooks.o): New rule.
4366 * basic-block.h (split_edge): Rename to rtl_split_edge.
4367 (verify_flow_info): Rename to rtl_verify_flow_info.
4368 (cfghooks.h): Included here.
4369 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4370 (verify_flow_info): Renamed rtl_verify_flow_info.
4371 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4372
4373 * basic-block.h (split_block, split_edge, flow_delete_block,
4374 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4375 (flow_delete_block_noexpunge): Return void.
4376 * cfg.c (verify_flow_info): New function.
4377 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
4378 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
4379 Use delete_block.
4380 * cfglayout.c (function_footer): Rename to...
4381 (cfg_layout_function_footer): ... this variable
4382 (unlink_insn_chain): Make global.
4383 (fixup_reorder_chain, record_effective_endpoints): Update.
4384 (cleanup_unconditional_jumps): Use delete_block.
4385 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
4386 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
4387 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
4388 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
4389 (cfg_layout_function_footer): Declare.
4390 * cfgloopmanip (split_loop_bb): Do not update RBI.
4391 (remove_bbs): Use delete_block.
4392 (loop_reidrect_edge, loop_delete_branch_edge): Use
4393 redirect_edge_and_branch.
4394 (create_preheader): Use split_block and redirect_edge_and_branch_force.
4395 (split_edge_with): Likewise.
4396 * cfgrtl.c: Include cfglayout.h
4397 (split_edge): Rename to ...
4398 (rtl_split_edge) ... this one; make local.
4399 (redirect_edge_and_branch): Rename to ...
4400 (rtl_redirect_edge_and_branch) ... this one; make local.
4401 (redirect_edge_and_branch_force): Rename to ...
4402 (rtl_redirect_edge_and_branch_force) ... this one; make local.
4403 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
4404 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
4405 cfglayout.c; update to directly call RTL counterparts.
4406 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
4407 * ifcvt.c (find_cond_trap): Use delete_block.
4408 (find_if_case_1): Use delete_block.
4409 (find_if_case_2): Use delete_block.
4410 * rtl.h (unlink_insn_chain): Declare.
4411 * toplev.c (rtl_reigster_cfg_hooks): New.
4412
7654db1b
RH
44132003-06-05 Richard Henderson <rth@redhat.com>
4414
4415 * recog.c (peephole2_optimize): Revert last change.
4416
c1dbd774
RH
44172003-06-05 Richard Henderson <rth@redhat.com>
4418
4419 * recog.c (peephole2_optimize): Don't split block unless
4420 can_throw_internal.
4421
a35abc3c
KH
44222003-06-06 Kazu Hirata <kazu@cs.umass.edu>
4423
c1dbd774
RH
4424 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
4425 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
a35abc3c 4426
a5f3dd66
KC
44272003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
4428
4429 PR optimization/4490
4430 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
4431 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
4432 documentation to accurately reflect what these options do.
4433
25119b21
KK
44342003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
4435
4436 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
4437 (ENDFILE_SPEC): Redefine to handle -pie.
4438
3d818632
PE
44392003-06-05 Phil Edwards <phil@jaj.com>
4440
4441 * Makefile.in (qmtest-g++): Use target_alias, not target.
4442
640da953
PB
44432003-06-05 Per Bothner <pbothner@apple.com>
4444
4445 * toplev.c (push_srcloc): Simplify behavior to save current location
4446 and set current location to parameters.
4447 (pop_srcloc): Simplify semantics.
4448 (lang_dependent_init): Remove now-useless initial push_srcloc.
4449
7d445f15
RH
44502003-05-06 Richard Henderson <rth@redhat.com>
4451
e62b6ea1 4452 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
7d445f15
RH
4453 language-specific tree codes.
4454
eebfb2aa
JDA
44552003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4456
4457 PR middle-end/9986
4458 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
4459 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
4460
8f231b5d
JH
4461Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
4462
4463 * install.tex: Document profiledbootstrap.
4464
295e823c
JH
4465 * configure.in: Add support for lang.stageprofile and
4466 lang.stagefeedback
8f231b5d
JH
4467 * Makefile.in (clean, distclean): Kill new stages
4468 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
4469 (STAGE2_FLAGS_TO_PASS): ... this one.
4470 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
4471 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
4472 (stageprofile_build, stageprofile_copy, stagefeedback_build,
4473 stagefeedback_copy): New.
e62b6ea1 4474 (restageprofile, restagefeedback, stageprofile-start,
8f231b5d
JH
4475 stageprofile, stagefeedback-start): Likewise.
4476
842a431a
DM
44772003-06-05 David Miller <davem@redhat.com>
4478 Richard Henderson <rth@redhat.com>
4479
4480 * optabs.c (HAVE_conditional_trap): Provide default.
4481 (gen_conditional_trap): Likewise.
4482 (init_optabs): Merge init_traps.
4483 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
4484
83588a9d
JH
4485Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
4486
4487 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
e62b6ea1 4488 is REG for nonzero_bits (REG) == 8.
83588a9d 4489
6262f66a
JH
4490Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
4491
4492 * i386.md (align): Fix warning; clarify what to do when no p2align
4493 is available.
4494
3a30516d
NC
44952003-06-05 Nick Clifton <nickc@redhat.com>
4496
4497 * config.gcc (m32r-elf): Revert previous delta.
a5fe455b
ZW
4498 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
4499 multilibs. Remove m32rx specific version.
4500 (crtfini.o): Likewise.
4501 (EXTRA_MULTILIB_PARTS): Define.
e62b6ea1 4502
53e5f173
EB
45032003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
4504
4505 * doc/md.texi (Machine Constraints): Correct the meaning of
4506 constraints related to floating-point registers on SPARC.
4507
c6cc7e13 45082003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
a5fe455b 4509 Paolo Bonzini <bonzini@gnu.org>
c6cc7e13
EB
4510
4511 PR target/10663
4512 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
4513 assembler and linker output to /dev/null.
4514 Use a 'sed' construct instead of 'grep -A1'.
4515 * configure: Regenerate.
4516
74dc3e94
RH
45172003-06-04 Richard Henderson <rth@redhat.com>
4518
4519 * config/i386/i386.c (struct ix86_address): Add seg.
4520 (no_seg_address_operand): New.
4521 (ix86_decompose_address): Restructure PLUS loop. Accept one
4522 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
4523 to test for a regnum, not stack_pointer_rtx.
4524 (ix86_address_cost): Reduce cost if non-default segment.
4525 (legitimate_address_p): Remove UNSPEC_TP check.
4526 (get_thread_pointer): Add to_reg argument. Don't represent
4527 the thread pointer as a memory load.
4528 (legitimize_tls_address): Split out of ...
4529 (legitimize_address): ... here.
4530 (print_operand_address): Handle parts.seg.
4531 (ix86_expand_move): Use legitimize_tls_address.
4532 (ix86_rtx_costs): Handle UNSPEC_TP.
4533 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
4534 (TARGET_TLS_DIRECT_SEG_REFS): New.
4535 (TARGET_SWITCHES): Add tls-direct-seg-refs.
4536 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
4537 (PREDICATE_CODES): Add no_seg_address_operand.
4538 * config/i386/i386.md (lea_1): Use it.
4539 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
4540 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
4541 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4542 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
4543 * doc/invoke.texi: Add -mtls-direct-seg-refs.
4544
d7068b3d
MM
45452003-06-04 Mark Mitchell <mark@codesourcery.com>
4546
4547 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
4548 (QMTEST_GPP_TESTS): Use "g++" by default.
4549 (stamp-qmtest): Tweak database creation.
4550 (QMTEST_DIR/context): Update context file format.
4551 (qmtest-g++): Tweak command-line.
4552
6b6600bd
KG
45532003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4554
4555 * Makefile.in (varasm.o): Don't set -Wno-error.
4556 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
4557
1072ec3f
ZW
45582003-06-04 Zack Weinberg <zack@codesourcery.com>
4559
4560 PR bootstrap/3163
4561 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
4562 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
4563 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
4564 and AC_CHECK_FUNCS lists, respectively. Use
4565 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
4566 AC_FUNC_MMAP_FILE.
4567 * configure, config.in: Regenerate.
4568
c53dddc2
KG
45692003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4570
4571 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
4572 * arm.c (arm_output_function_prologue): Fix format specifiers.
4573 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
4574 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
4575 HOST_WIDE_INT_PRINT_DEC.
4576 * vax.c (vax_output_function_prologue): Fix format specifiers.
4577
7b9c108f
RH
45782003-06-04 Richard Henderson <rth@redhat.com>
4579
1072ec3f
ZW
4580 * cse.c (find_best_addr): Consider binary operators even if second
4581 argument is not CONST_INT.
7b9c108f 4582
c48ec590
ZD
45832003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4584
4585 * doc/invoke.texi (max-cse-path-length): Document.
4586
9ccf9681
RH
45872003-06-04 Richard Henderson <rth@redhat.com>
4588
4589 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
4590
9dce39a4
AP
45912003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
4592
4593 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
4594 Remove semi-colon at the end of the expression.
4595
ad929cd5
KG
45962003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4597
1072ec3f 4598 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
ad929cd5
KG
4599 * i370.h (mvs_function_name_length): Likewise.
4600 * i960.h (CONSTANT_ALIGNMENT): Likewise.
4601 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4602 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4603 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4604 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
4605 variable.
4606
7816bea0
DJ
46072003-06-04 Daniel Jacobowitz <drow@mvista.com>
4608
4609 * config.gcc: Reorganize --with-cpu logic. Set
4610 configure_default_options according to the default CPU, --with-cpu,
4611 --with-arch, --with-tune, --with-schedule, --with-abi, and
4612 --with-float. Check for legal values of various options.
4613 * configure.in: Define configure_default_options in configargs.h.
4614 * configure: Regenerated.
4615 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
4616 (TARGET_DEFAULT_FLOAT_P): New macros.
4617 * gcc.c (do_option_spec): New function.
4618 (struct default_spec, option_default_specs): New.
4619 (main): Call do_option_spec.
4620 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
4621 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
4622 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
4623
4624 * doc/install.texi: Update --with-cpu documentation. Mention
4625 --with-arch, --with-schedule, --with-tune, --with-abi, and
4626 --with-float.
4627 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
4628
83079d89
DJ
46292003-06-04 Daniel Jacobowitz <drow@mvista.com>
4630
4631 * config.gcc: Only process --with-cpu logic in the third pass.
4632
73f09c99
DJ
46332003-06-04 Daniel Jacobowitz <drow@mvista.com>
4634
4635 * config.gcc: Reorganize --with-cpu section. Remove an
4636 obsolete comment about the default CPU for x86-64. Fix
4637 a typo for the ep9312. Update the list of supported PowerPC
4638 CPUs. Support a limited set of new --with-cpu options
4639 for i386.
4640
165848da
AH
46412003-06-04 Aldy Hernandez <aldyh@redhat.com>
4642
1072ec3f
ZW
4643 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
4644 complex numbers <= 32 bits into two registers.
165848da 4645
74eda121
KG
46462003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4647
4648 * alpha.c (print_operand_address): Fix format specifier warnings.
4649 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4650 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4651 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4652 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
4653 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
1072ec3f 4654 ASM_OUTPUT_SKIP): Likewise.
74eda121
KG
4655 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4656 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4657 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
4658 Likewise.
4659 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4660 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
4661 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
4662 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4663 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
4664 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4665 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4666 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4667 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4668 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
4669
e3091a5f
R
46702003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
4671
4672 * c-decl.c (c_init_decl_processing): Clear input_file_name
4673 while building common nodes.
4674 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
4675 Don't add working directory for strings like <built-in> .
4676
f0483418
DE
46772003-06-04 David Edelsohn <edelsohn@gnu.org>
4678
4679 * doc/install.texi (*-ibm-aix*): Native as and ld required
4680 to bootstrap on AIX 5L.
4681
0bfa5f65
RH
46822003-06-04 Richard Henderson <rth@redhat.com>
4683
1072ec3f
ZW
4684 * c-common.c (handle_cleanup_attribute): New.
4685 (c_common_attributes): Add it.
4686 * c-decl.c (finish_decl): Honor the cleanup attribute.
4687 * doc/extend.texi (Variable Attributes): Document it.
0bfa5f65 4688
1072ec3f
ZW
4689 * unwind-c.c: New file.
4690 * Makefile.in (LIB2ADDEH): Add it.
4691 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
4692 config/ia64/t-ia64: Likewise.
0bfa5f65 4693
3edc56a9
JJ
46942003-06-04 Jakub Jelinek <jakub@redhat.com>
4695
4696 * function.c (trampolines_created): New variable.
4697 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
4698 * function.h (trampolines_created): Add.
4699 * config/s390/linux.h (ASM_FILE_END): Define.
4700 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
4701 * config/m68k/linux.h (ASM_FILE_END): Define.
4702 * config/rs6000/linux.h (ASM_FILE_END): Define.
4703 * config/rs6000/linux64.h (ASM_FILE_END): Define.
4704 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
4705 * config/sparc/linux.h (ASM_FILE_END): Define.
4706 * config/sparc/linux64.h (ASM_FILE_END): Define.
4707 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
4708 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
4709 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
4710
d2c49530
JH
4711Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
4712
4713 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
4714 (ix86_reorg): Use it.
4715 * i386.md (align): New insn pattern.
4716
05a0e2af
KG
47172003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4718
4719 * toplev.c (rest_of_type_compilation): Fix typo.
4720
9739c90c
JJ
47212003-06-04 Jakub Jelinek <jakub@redhat.com>
4722 Alan Modra <amodra@bigpond.net.au>
4723
4724 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
4725 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
4726 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
4727 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
4728 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
4729 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
4730 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
4731 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
4732
4733 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
4734 Pass it to $gcc_cv_as.
4735 * configure: Rebuilt.
4736
4737 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
4738 (print_operand): Allow TARGET_AIX to be non-constant.
4739 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
4740 Define unconditionally.
4741 (rs6000_elf_declare_function_name): New function.
4742 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
4743 non-constant.
4744 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
4745 to 1.
4746 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
4747 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
4748 is defined.
4749 (TARGET_AIX): Define to 1 if TARGET_64BIT.
4750 (PROCESSOR_DEFAULT): Remove.
4751 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
4752 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4753 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
4754 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
4755 -m32 and -m64.
4756 (MULTILIB_DEFAULTS): Define.
4757 (SUBSUBTARGET_EXTRA_SPECS): Define.
4758 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
4759 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
4760 (TARGET_NO_TOC): Remove.
4761 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
4762 TARGET_PROTOTYPE): Define to 0.
4763 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
4764 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
4765 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
4766 if !TARGET_64BIT.
4767 (USER_LABEL_PREFIX): Remove.
4768 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
4769 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
4770 if TARGET_64BIT.
4771 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
4772 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
4773 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
4774 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
4775 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4776 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
4777 TARGET_64BIT.
4778 (RS6000_CALL_GLUE): Likewise.
4779 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
4780 RESTORE_FP_SUFFIX): Likewise.
4781 (ASM_DECLARE_FUNCTION_NAME): Remove.
4782 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
4783 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
4784 name if TARGET_64BIT.
4785 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
4786 !TARGET_64BIT.
4787 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
4788 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
4789 (DRAFT_V4_STRUCT_RET): Define.
4790 (SIGNAL_FRAMESIZE): New enum value.
4791 (MD_FALLBACK_FRAME_STATE_FOR): Define.
4792 * config/rs6000/default64.h: New file.
4793 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
4794 options.
4795 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
4796 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
4797 if !TARGET_64BIT.
4798 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4799 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
4800 function.
4801 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
4802 (TARGET_OS_CPP_BUILTINS): Use it.
4803 (CPP_SYSV_SPEC): Remove.
4804 (CPP_SPEC): Remove cpp_sysv.
4805 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
4806 Add SUBSUBTARGET_EXTRA_SPECS.
4807 (SUBSUBTARGET_EXTRA_SPECS): Define.
4808 * config/rs6000/biarch64.h: New file.
4809 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
4810 New prototype.
4811 * config/rs6000/x-linux64: New file.
4812 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
4813 multilibs.
4814 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
4815 * config/rs6000/eabi-cn.asm: Likewise.
4816 * config/rs6000/tramp.asm: Likewise.
4817 * config/rs6000/sol-ci.asm: Likewise.
4818 * config/rs6000/sol-cn.asm: Likewise.
4819 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
4820 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
4821 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
4822 _CALL_AIXDESC section.
4823 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
4824 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
4825 or default32.
4826
150b72ed
DJ
48272003-06-04 Daniel Jacobowitz <drow@mvista.com>
4828
4829 * config.gcc: Revert accidentally committed ARM changes.
4830
385a9348
RS
48312003-06-04 Roger Sayle <roger@eyesopen.com>
4832
4833 * builtins.c (dconstpi, dconste): New mathematical constants.
4834 (init_builtin_dconsts): New function to initialize dconstpi
4835 and dconste.
4836 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
4837 compile time with -ffast-math when x is an integer constant.
4838 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
4839 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
4840
8c6a8269
RS
48412003-06-04 Roger Sayle <roger@eyesopen.com>
4842
4843 * calls.c (expand_call): Avoid calling pure or const functions
4844 when the result is ignored (or void) and none of the arguments
4845 are volatile. Move warning diagnostic earlier in function.
4846
e2d8bb29
AJ
48472003-06-04 Andreas Jaeger <aj@suse.de>
4848
4849 * system.h: Do not poison TDESC_SECTION_ASM_OP,
4850 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
4851
b1721339
KG
48522003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4853
4854 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
4855 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
4856 handle %ll, optimize regular character case.
4857
9bf8cfbf
ZD
48582003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4859
4860 * Makefile.in (cse.o): Add params.h dependency.
4861 * cse.c: Include params.h.
4862 (PATHLENGTH): Removed.
4863 (struct cse_basic_block_data): Make path array dynamic.
8c6a8269
RS
4864 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
4865 of PATHLENGTH.
9bf8cfbf
ZD
4866 (cse_main, cse_basic_block): Allocate path array.
4867 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
4868
253c7a00
JH
4869Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
4870
4871 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
4872 * i386.md (UNSPEC_REP): New constant.
4873 (return_internal_long): New pattern.
4874
01d3224a
EB
48752003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4876
4877 PR optimization/11018
4878 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
4879 consistently to decide whether the scratch register is really
4880 required.
4881
ef0139b1
EB
48822003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4883
4884 PR optimization/10876
4885 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
4886 new 'O' constraint for constant 4096.
4887 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4888 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
4889 Do not transform into MINUS insn for constant 4096.
4890 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
4891 for constant 4096 as third operand.
4892 (addsi3 expander): Remove.
4893 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
4894 new alternative for constant 4096 as third operand.
4895 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
4896 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
4897 operand.
4898 (subsi3 expander): Remove.
4899 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
4900 constant 4096 as third operand.
4901 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
4902 the SPARC port.
4903
18de8a98
CD
49042003-06-03 Chris Demetriou <cgd@broadcom.com>
4905
4906 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
4907
a816c981
AJ
49082003-06-04 Andreas Jaeger <aj@suse.de>
4909
f691dc3b
AJ
4910 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
4911
4912 * config/i386/i386.c (ix86_expand_prologue): Do not use
4913 SUBTARGET_PROLOGUE.
4914
4915 * system.h: Poision SUBTARGET_PROLOGUE.
4916
4917 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
4918
4919 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
4920 dependend code.
4921
4922 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
4923
4924 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
4925 INSN_CACHE_LINE_WIDTH.
4926
4927 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
4928 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
4929 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
4930
4931 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
4932 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1072ec3f 4933
f691dc3b
AJ
4934 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
4935 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
4936 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
4937 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
4938 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
4939 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
4940
4941 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
4942 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
4943 DBX_WORKING_DIRECTORY.
4944
4945 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
4946 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
4947
4948 * config/frv/frv-protos.h: Remove unused const_section
4949 declaration.
4950 * config/vax/vax-protos.h: Likewise.
4951
4952 * output.h: Remove CONST_SECTION_ASM_OP usage.
4953
4954 * system.h: Poison CONST_SECTION_ASM_OP.
4955
74764b84
AJ
4956 * crtstuff.c (__do_global_dtors_aux): Remove usage of
4957 CRT_GET_RFIB_TEXT.
f691dc3b
AJ
4958 (frame_dummy): Likewise.
4959 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
4960 * system.h: Poison CRT_GET_RFIB_TEXT.
1072ec3f 4961
6d3a8e3c
AJ
4962 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
4963
a816c981
AJ
4964 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
4965 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
4966 (recognized_function): Likewise.
4967 (read_scan_file): Likewise.
4968
df8ca70e
RS
49692003-06-03 Roger Sayle <roger@eyesopen.com>
4970
4971 * optabs.c (expand_binop): Optimize complex multiplication for
4972 the case of squaring a complex argument.
4973
894207cf
RS
49742003-06-03 Roger Sayle <roger@eyesopen.com>
4975
4976 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
4977 non-volatile operands of binary operations.
4978 (prepare_cmp_insn): Likewise.
4979
1063147c
RS
49802003-06-03 Roger Sayle <roger@eyesopen.com>
4981
4982 * varasm.c (force_const_mem): Handle alignment of constants not
4983 representable as a type in the front-end language.
4984
a7a7d7ac
KH
49852003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4986
4987 * flow.c (initialize_uninitialized_subregs): Use
4988 emit_move_insn instead of emitting a hardcoded move.
4989
2ef0a555
RH
49902003-06-03 Richard Henderson <rth@redhat.com>
4991
4992 * optabs.c (expand_abs_nojump): Split out from ...
4993 (expand_abs): ... here.
4994 * optabs.h (expand_abs_nojump): Declare.
4995 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
4996 * Makefile.in (ifcvt.o): Depend on optabs.h.
4997
b0c242c0
AM
49982003-06-03 Alan Modra <amodra@bigpond.net.au>
4999
5000 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5001
2121a768
JT
50022003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5003
5004 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5005 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5006 to yes.
5007 * configure.in: Allow default_use_cxa_atexit to determine the
5008 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5009 disabled.
5010 * configure: Regenerate.
5011
6f6a3861
DR
50122003-06-03 Douglas B Rupp <rupp@gnat.com>
5013
ccb36e10
DR
5014 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5015 * doc/gcc.texi: Remove vms.texi section.
5016 * doc/vms.texi: Remove obsolete file.
6f6a3861 5017
dc06db20
R
50182003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
5019
5020 * configure.in (inhibit_libc): Don't define when configuring
5021 with --with-newlib --with-headers.
5022 * configure: Regenerate.
5023
5024 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5025
6d07784a
RO
50262003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5027
5028 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5029 IRIX 6 without GNU ld.
5030 * configure: Regenerate.
5031
a79b3dc7
RS
50322003-06-03 Roger Sayle <roger@eyesopen.com>
5033
5034 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5035 of a complex number rather than invoke mov_optab directly.
5036
8d6b2775
KH
50372003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5038
5039 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5040 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5041
48ff03c7
NN
50422003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
5043
5044 * config/i386/x86-64.h: Remove two target-independent comments;
5045 replace "GNU CC" with "GCC".
5046
b09d2739
AG
50472003-06-03 Anthony Green <green@redhat.com>
5048
5049 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5050
075ec276
RS
50512003-06-03 Roger Sayle <roger@eyesopen.com>
5052
5053 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5054 New builtins representing ISO C99's cabs, cabsf and cabsl.
5055 * builtins.c (expand_builtin_fabs): New function.
5056 (expand_builtin_cabs): New function.
5057 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5058 using expand_builtin_fabs and expand_builtin_cabs respectively.
5059
5060 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5061
ded9bf77
AH
50622003-06-03 Aldy Hernandez <aldyh@redhat.com>
5063
1072ec3f 5064 * function.c (assign_parms): Split complex arguments.
ded9bf77 5065
1072ec3f 5066 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
ded9bf77 5067
1072ec3f
ZW
5068 * expr.h (SPLIT_COMPLEX_ARGS): Define.
5069 (split_complex_types): Protoize.
5070 (split_complex_values): Protoize.
ded9bf77 5071
1072ec3f
ZW
5072 * calls.c (expand_call): Split complex arguments on architectures
5073 that require it.
5074 (split_complex_values): New.
5075 (split_complex_types): New.
ded9bf77 5076
1072ec3f
ZW
5077 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5078 (rs6000_function_value): Handle complex values on AIX.
5079 (rs6000_complex_function_value): New.
ded9bf77 5080
1072ec3f 5081 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
ded9bf77 5082
1072ec3f
ZW
5083 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5084 (SPLIT_COMPLEX_ARGS): New.
ded9bf77 5085
24a4dd31
JJ
50862003-06-03 Jakub Jelinek <jakub@redhat.com>
5087
5088 * configure.in (HAVE_LD_PIE): Check for ld -pie.
5089 * config.in: Rebuilt.
5090 * configure: Rebuilt.
5091 * toplev.c (flag_pie, flag_shlib): New variables.
5092 (f_options): Add -fpie and -fPIE.
5093 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5094 Set flag_shlib if flag_pic and not -fpie/-fPIE.
5095 * flags.h (flag_pic, flag_shlib): Add.
5096 * varasm.c (default_binds_local_p): Use flag_shlib instead of
5097 flag_pic.
5098 * gcc.c (LINK_PIE_SPEC): Define.
5099 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5100 (option_map): Add --pie -> -pie mapping.
5101 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5102 and -fPIE the same way as -fPIC.
5103 * config/openbsd.h (ASM_SPEC): Likewise.
5104 * config/frv/frv.h (ASM_SPEC): Likewise.
5105 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5106 * config/arm/semi.h (ASM_SPEC): Likewise.
5107 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5108 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5109 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5110 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5111 * config/m68k/linux.h (CPP_SPEC): Likewise.
5112 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5113 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5114 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5115 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5116 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5117 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5118 * config/netbsd-aout.h (ASM_SPEC): Likewise.
5119 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5120 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5121 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5122 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5123 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5124 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5125 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5126 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5127 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5128 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5129 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5130 Simplify.
5131 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5132 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5133 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5134 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5135 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5136 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5137 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5138 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5139
8fd3cf4e
JJ
51402003-06-03 Jakub Jelinek <jakub@redhat.com>
5141
5142 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5143 != 0 handling. Pass 0 to store_by_pieces.
5144 (expand_builtin_mempcpy): Add endp argument. Don't call
5145 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5146 directly. If ignoring result, only do expand_call.
5147 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
5148 otherwise.
5149 (expand_builtin_strncpy, expand_builtin_memset): Adjust
5150 store_by_pices callers.
5151 (expand_builtin): Adjust expand_builtin_memcpy and
5152 expand_builtin_mempcpy callers.
5153 * expr.c (can_move_by_pieces): New function.
5154 (move_by_pieces): Add endp argument, return to resp. memory at end
5155 or one byte earlier depending on endp.
5156 (store_by_pieces): Likewise.
5157 (emit_block_move): Adjust call to move_by_pieces.
5158 (emit_push_insn): Adjust move_by_pieces caller.
5159 * expr.h (can_move_by_pieces): New prototype.
5160 (store_by_pieces): Adjust prototypes.
5161 * rtl.h (move_by_pieces): Adjust prototype.
5162 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5163 caller.
5164
cc6a602b
BE
51652003-06-03 Ben Elliston <bje@wasabisystems.com>
5166
5167 * doc/md.texi (Processor pipeline description): Improve wording.
5168
f75d3e11
NB
51692003-06-03 Neil Booth <neil@daikokuya.co.uk>
5170
5171 * c-opts.c (c_common_handle_option): New, pulled out of
5172 c_common_decode_option. Substitute uses of argv.
5173 (c_common_decode_option): Broken into two.
5174
4c2da7f2
RS
51752003-06-02 Roger Sayle <roger@eyesopen.com>
5176 Zack Weinberg <zack@codesourcery.com>
5177
5178 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
5179 test of TREE_CONSTANT_POOL_ADDRESS_P.
5180
e91e4f6c
KG
51812003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5182
5183 * mips.c: Don't include output.h twice.
5184 * stormy16.c: Likewise.
5185 * xtensa.c: Likewise.
5186 * output.h: Protect against multiple inclusion.
5187
b38a5244
R
51882003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
5189
5190 * sh.h (OLD_ARG_MODE): New macro.
5191 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5192 (FUNCTION_ARG_1): Break out of:
5193 (FUNCTION_ARG). Use OLD_ARG_MODE.
5194
cc6a602b 51952003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
250315f7 5196
1072ec3f 5197 * gcc/config.gcc Add support multilib parts for m32rx processor.
250315f7 5198
e7aba4cd
KG
51992003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5200
5201 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5202 (mostlyclean): Delete c-options.c and c-options.h.
5203
c83857ff
NB
52042003-06-02 Neil Booth <neil@daikokuya.co.uk>
5205
5206 * c-opts.c (CL_REJECT_NEGATIVE): New.
5207 (c_common_decode_option): Update to use it.
5208 * c.opt: Update documentation; use RejectNegative.
5209 * opts.sh: Handle RejectNegative.
5210
c770ac2b
ZW
52112003-06-01 Zack Weinberg <zack@codesourcery.com>
5212
5213 * ggc-page.c (init_ggc): Give better diagnostics on failure to
5214 open /dev/zero.
5215 * toplev.c (crash_signal): Reset handling for received signal
5216 to SIG_DFL.
5217
103fc15d
BE
52182003-06-02 Ben Elliston <bje@wasabisystems.com>
5219
5220 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
d48b7f2a 5221 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
103fc15d
BE
5222 (arm_use_dfa_pipeline_interface): Implement.
5223 * config/arm/arm.md (arm): New automaton.
5224 (write_buf): Remove function units; new cpu unit.
5225 (write_blockage): Remove function units; new cpu unit.
5226 (core): Remove function units; new cpu unit.
5227 (r_mem_f_wbuf): New instruction reservation.
5228 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5229 (store1_ldsched, store2, store3, store4): Likewise.
5230 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5231 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5232 (multi_cycle, single_cycle): Likewise.
5233 * config/arm/fpa.md (armfp): New automaton.
5234 (fpa): Remove function units; new cpu unit.
5235 (fpa_mem): Remove function unit; new cpu unit.
5236 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5237 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5238
3ae1d4c2
KG
52392003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5240
5241 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5242 * c-format.c (enum format_type): Add asm_fprintf_format_type.
5243 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5244 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5245 (format_types_orig): Renamed from format_types. Add new data.
5246 (format_types): Declare as pointer.
5247 (handle_format_attribute): Move later in file so we have all
5248 necessary declarations. Add section to capture HOST_WIDE_INT.
5249 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5250 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5251
fd66c4e3
AJ
52522003-06-01 Andreas Jaeger <aj@suse.de>
5253
8842a5e5
AJ
5254 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5255 ROUND_TYPE_SIZE_UNIT.
5256
5257 * stor-layout.c (finalize_record_size): Remove usages of
5258 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5259 (finalize_type_size): Likewise.
5260 (layout_type): Likewise.
5261
5262 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5263
e0945432
AJ
5264 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5265
fd66c4e3
AJ
5266 * config/d30v/d30v.h: Remove text copied from the manual.
5267
14ca333d
RS
52682003-06-01 Roger Sayle <roger@eyesopen.com>
5269 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5270 Geoffrey Keating <geoffk@apple.com>
5271
5272 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5273 constants as condition code values.
5274
0cc261bc 52752003-06-01 DJ Delorie <dj@redhat.com>
a7f36da3
DD
5276
5277 * cppmacro.c (warn_of_redefinition): Handle cases where the two
5278 definitions have different numbers of tokens.
5279
8e2b6930
AJ
52802003-06-01 Andreas Jaeger <aj@suse.de>
5281
5282 * gen-protos.c (main): Readd unused attribute for argc.
5283
e11a4ae5
NB
52842003-06-01 Neil Booth <neil@daikokuya.co.uk>
5285
5286 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5287 * c.opt: End in blank line.
5288 * opts.sh: Take AWK from environment if available; use C locale.
5289
6fc9e67e
AS
52902003-06-01 Andreas Schwab <schwab@suse.de>
5291
5292 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5293
fa10d367
AJ
52942003-06-01 Andreas Jaeger <aj@suse.de>
5295
5296 * gen-protos.c (main): Revert patch to check for argument.
5297
a3033f34
EB
52982003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5299
5300 PR target/11044
5301 * config/i386/i386.md (length attribute): Set length to 4
5302 for instructions of type "fcmp".
5303
cef2bd3e
AJ
53042003-06-01 Andreas Jaeger <aj@suse.de>
5305
c770ac2b 5306 * toplev.c: Use ISO C90 prototypes.
e25a75e6 5307
c770ac2b 5308 * toplev.h: Use ISO C90 prototypes.
e25a75e6 5309
3d7aafde
AJ
5310 * genrecog.c: Use ISO C90 prototypes.
5311 (nodes_identical): Correct declaration to match prototype.
5312 (maybe_both_true): Likewise.
5313 (merge_trees): Likewise.
5314
5315 * genpeep.c (gen_peephole): Remove #if 0 code.
5316 Use ISO C90 prototypes.
5317
5318 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5319 Remove #if 0'ed function simplify_by_alternatives.
5320 (optimize_attrs): Remove #if 0'ed code.
5321 Remove ^L.
5322 Use ISO C90 prototypes.
5323 (make_canonical): Remove #if 0'ed code.
5324 (convert_const_symbol_ref): Remove #if 0'ed function.
5325
5326 * gen-protos.c (main): Check for argument.
5327
5328 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5329
5330 * params.h: Use ISO C90 prototypes.
5331 * params.c: Likewise.
5332 * intl.c: Likewise.
5333 * intl.h: Likewise.
5334 * lists.c: Likewise.
5335 * errors.c: Likewise.
5336 * errors.h: Likewise.
5337 * gencodes.c: Likewise.
5338 * genpreds.c: Likewise.
5339 * genattr.c: Likewise.
5340 * gen-protos.c: Likewise.
5341 * genflags.c: Likewise
5342 * genconditions.c: Likewise.
5343 * genautomata.c: Likewise.
5344 * gencheck.c: Likewise.
5345 * genconfig.c: Likewise.
5346 * genconstants.c: Likewise.
5347 * genemit.c: Likewise.
5348 * genextract.c: Likewise.
5349 * gengenrtl.c: Likewise.
5350 * gengtype.c: Likewise.
5351 * gengtype.h: Likewise.
5352 * genopinit.c: Likewise.
5353 * genoutput.c: Likewise.
5354 * gensupport.c: Likewise.
5355 * gensupport.h: Likewise.
5356
cef2bd3e
AJ
5357 * sdbout.h: Use ISO C90 prototypes.
5358
5359 * sdbout.c (CONTIN): Removed empty macro.
5360 (sdbout_one_type): Remove CONTIN usages.
5361 Remove ^Ls.
5362 (tag_of_ru_type): Remove #if 0'ed function.
5363 (sdbout_symbol): Remove #if 0'ed code.
5364 (sdbout_one_type): Remove a #if 1.
5365 (sdbout_one_type): Remove #if 0'ed code.
5366 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5367 Remove PARAMS, use ISO C90 prototypes for all functions.
5368
43194145
JZ
53692003-06-01 Josef Zlomek <zlomekj@suse.cz>
5370
5371 * rtl.def (CONST_DOUBLE): Update comment.
5372
cea8d816
NB
53732003-06-01 Neil Booth <neil@daikokuya.co.uk>
5374
5375 * opts.sh: Remove path from sort.
5376
28636c6e
AH
53772003-06-01 Aldy Hernandez <aldyh@redhat.com>
5378
965f3913 5379 PR/9680
c770ac2b
ZW
5380 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
5381 TARGET_SPE for SPE_VECTOR_MODE.
28636c6e 5382
ddc9542b
AH
53832003-05-31 Aldy Hernandez <aldyh@redhat.com>
5384
c770ac2b
ZW
5385 * toplev.c (botch): Remove.
5386 (do_abort): Remove.
5387 (set_Wunused): Comment.
5388 (set_Wextra): Comment.
5389 Remove ^L's.
5390 (rest_of_compilation): Factor out common code into functions.
5391 (rest_of_handle_inlining): New.
5392 (rest_of_handle_ssa): New.
5393 (rest_of_handle_cse): New.
5394 (rest_of_handle_gcse): New.
5395 (rest_of_handle_loop_optimize): New.
5396 (rest_of_handle_jump_bypass): New.
5397 (rest_of_handle_sibling_calls): New.
5398 (rest_of_handle_null_pointer): New.
5399 (rest_of_handle_addresof): New.
5400 (rest_of_handle_flow): New.
5401 (rest_of_handle_branch_prob): New.
5402 (rest_of_handle_if_conversion): New.
5403 (rest_of_handle_tracer): New.
5404 (rest_of_handle_loop2): New.
5405 (rest_of_handle_cse2): New.
5406 (rest_of_handle_life): New.
5407 (rest_of_handle_combine): New.
5408 (rest_of_handle_if_after_combine): New.
5409 (rest_of_handle_regmove): New.
5410 (rest_of_handle_sched): New.
5411 (rest_of_handle_old_regalloc): New.
5412 (rest_of_handle_new_regalloc): New.
5413 (rest_of_handle_regrename): New.
5414 (rest_of_handle_reorder_blocks): New.
5415 (rest_of_handle_sched2): New.
5416 (rest_of_handle_new_regalloc): New.
5417 (rest_of_handle_old_regalloc): New.
5418 (rest_of_handle_regrename): New.
5419 (rest_of_handle_reorder_blocks): New.
5420 (rest_of_handle_stack_regs): New.
5421 (rest_of_handle_machine_reorg): New.
5422 (rest_of_handle_delay_slots): New.
5423 (rest_of_handle_final): New.
5424
5425 * toplev.h (botch): Remove prototype.
5426 (do_abort): Same.
ddc9542b 5427
fef3106c
NB
54282003-05-31 Neil Booth <neil@daikokuya.co.uk>
5429
5430 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
5431 * c-opts.c: Include c-options.h and c-options.c.
5432 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
5433 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
5434 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
5435 OPT, opt_comp): Remove.
5436 (missing_arg, c_common_init_options, c_common_decode_option,
5437 write_langs): Update for macro redefinitions and enumeration
5438 name changes.
5439 * c.opt, opts.sh: New files.
5440 * doc/passes.texi: Update.
5441
0d569849
AJ
54422003-05-31 Andreas Jaeger <aj@suse.de>
5443
5444 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
5445 usage.
5446
5447 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
5448
5449 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
5450
5451 * system.h: Poison ALLOCATE_TRAMPOLINE.
5452
5453 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
5454 * system.h: Poison HANDLE_PRAGMA.
5455
e0ce2ed2
KH
54562003-05-31 Kazu Hirata <kazu@cs.umass.edu>
5457
5458 * doc/invoke.texi: Update dump file names.
5459
2ec29bbf
KG
54602003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5461
5462 * c-format.c (format_length_info, format_char_info,
5463 format_flag_spec, format_flag_pair, format_kind_info):
5464 De-const-ify structure members.
5465
4fa26a60
RS
54662003-05-31 Roger Sayle <roger@eyesopen.com>
5467
5468 * flags.h (flag_wrapv): New flag controlling overflow semantics.
5469 * toplev.c (flag_wrapv): Declare the variable with default false.
5470 (lang_independent_options): New option "-fwrapv" to set the above.
5471
0d569849 5472 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
4fa26a60
RS
5473 as x, when signed arithmetic overflow wraps around.
5474 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
5475 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
5476 overflow when flag_wrapv is true.
5477
5478 * doc/invoke.texi: Document new -fwrapv command line option.
5479 * doc/c-tree.texi: Mention that the overflow semantics of
5480 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
5481 upon both flag_wrapv and flag_trapv.
5482
5fb57097
EB
54832003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5484
5485 * doc/install.texi (mips-sgi-irix5): Add missing
5486 HTML <hr> marker.
5487
8a69f99f
EB
54882003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5489
5490 * doc/md.texi (Machine Constraints): Document
5491 missing SPARC constraints.
5492
68e4d4c5
EB
54932003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5494
5495 * doc/md.texi (Automaton pipeline description): Use
5496 "type" instead of "cpu" as the attribute in the examples.
5497
e5bcbd89
SS
54982003-05-30 Stan Shebs <shebs@apple.com>
5499
5500 * system.h: Poison OBJC_PROLOGUE.
5501
b1d673be
RS
55022003-05-30 Roger Sayle <roger@eyesopen.com>
5503
5504 * emit-rtl.c (gen_complex_constant_part): New function for getting
5505 the constant real or imaginary part of a complex constant.
5506 (gen_realpart): Use it.
5507 (gen_imagpart): Likewise.
5508
65d2d764
KH
55092003-05-30 Kazu Hirata <kazu@cs.umass.edu>
5510
5511 * doc/invoke.texi: Fix typos.
5512 * doc/rtl.texi: Likewise.
5513
5c29d24c
DD
55142003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
5515
5516 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
5517 mode.
5518 * config/h8300/crtn.asm: Likewise.
5519 * config/h8300/lib1funcs.asm: Likewise.
5520 * config/h8300/h8300.c (asm_file_start): Likewise.
5521 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
5522 h8300snelf emulations for normal mode.
5523 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
5524 emulations for normal mode.
5525
6d7d3112
DD
55262003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
5527
5528 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
5529 true if TARGET_NORMAL_MODE.
5530
0c19a26f
RS
55312003-05-30 Roger Sayle <roger@eyesopen.com>
5532
5533 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
5534 making a substitution.
5535 (dead_libcall_p): If directly replacing a libcall with a
5536 constant value produces an invalid instruction, also try forcing
5537 the constant into the constant pool.
5538 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
5539 obvious that the source is a constant.
5540 (compress_float_constant): Use set_unique_reg_note to place
5541 REG_EQUAL notes on instructions.
5542
9a38893a
EC
55432003-05-30 Eric Christopher <echristo@redhat.com>
5544
5545 * config/mips/mips.c (extern_list): Add GTY marker.
5546 (extern_head): Separate out definition. Add marker.
5547 (mips_output_external): Use ggc_alloc for extern_list
5548 allocation.
5549 (mips_output_external_libcall): Ditto.
5550
3e98a119
FW
55512003-05-30 Florian Weimer <fw@deneb.enyo.de>
5552
5553 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
5554 later.
5555
ace49484
KG
55562003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5557
5558 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
5559 warnings.
5560 (PRINT_OPERAND): Likewise.
5561
3bd4f460
RO
55622003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5563
5564 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
5565 -mdebug/-no-mdebug switches ...
5566 (MDEBUG_ASM_SPEC): ... here.
5567 Use only with gas.
5568 (EXTRA_SPECS): Initialize mdebug_asm_spec.
5569
8fdf7668
MK
55702003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
5571
5572 * gthr-gnat.c: Remove #undef UNUSED.
5573 (__gnat_default_lock, __gnat_default_unlock): Prototype.
5574 (__gnat_task_lock, __gnat_task_unlock): Make declarations
5575 prototypes.
5576 (__gnat_install_locks): Convert declaration to ISO C90, make
5577 parameter declarations prototypes, and remove blank line.
5578 * gthr-gnat.h (__gnat_install_locks): Make parameter
5579 declarations prototypes.
5580
a7db751a
JM
55812003-05-29 Jason Merrill <jason@redhat.com>
5582
5583 * Makefile.in (unstrap): Remove stage_last after make unstage1.
5584
af7387ca
RS
55852003-05-29 Roger Sayle <roger@eyesopen.com>
5586
5587 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
5588
d90f9882
RS
55892003-05-29 Roger Sayle <roger@eyesopen.com>
5590 Kaveh Ghazi <ghazi@caip.rutgers.edu>
5591
5592 PR bootstrap/10169
5593 * mips-tfile.c (main): Use getopt_long instead of getopt.
5594 Add new command line option --version to display version.
5595 Treat --verbose like -v to report a single line version.
5596 (options): New global variable for getopt_long.
5597 * mips-tdump.c (main): Use getopt_long instead of getopt.
5598 New command line options -v, --version and -verbose to display
5599 the program version number (to match mips-tfile's behavior).
5600 (options): New global variable for getopt_long.
5601
5602 * gcov.c (options): Zero-terminate getopt_long array.
5603 * gcov-dump.c (options): Likewise.
5604
5605 * Makefile.in (mips-tdump.o): Add dependency on version.h.
5606
1c36b2f9
SS
56072003-05-29 Stan Shebs <shebs@apple.com>
5608
5609 Remove OBJC_PROLOGUE everywhere.
5610 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
5611 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
5612 * config/d30v/d30v.h: Similarly.
5613 * config/ip2k/ip2k.h: Similarly.
5614 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
5615
0b82d59c
RS
56162003-05-29 Roger Sayle <roger@eyesopen.com>
5617
5618 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
5619 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
5620 (expand_unreachable_stmt): Expand unreachable while statements
5621 using genrtl_do_stmt_1.
5622
c8520e56
RS
56232003-05-29 Richard Sandiford <rsandifo@redhat.com>
5624
5625 * config/mips/mips-protos.h (mips_output_load_label): Declare.
5626 * config/mips/mips.c (mips_output_load_label): New function.
5627 (mips_output_conditional_branch): Use it.
5628 * config/mips/mips.md (jump): And here.
5629
633e4eb4
BW
56302003-05-28 Bob Wilson <bob.wilson@acm.org>
5631
5632 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
5633 (xtensa_split_operand_pair): New proto.
5634 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
5635 (smalloffset_double_mem_p): Delete.
5636 (gen_float_relational, printx, print_operand, xtensa_va_arg):
5637 Fix whitespace.
5638 (xtensa_split_operand_pair): New.
5639 (xtensa_dbx_register_number): Fix formatting.
5640 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
5641 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
5642 instead of splitting them into single-word moves. Remove unnecessary
5643 checks for reload_in_progress and reload_completed.
5644 (movdi_internal, movdf_internal): Change to post-reload split patterns.
5645 Add constraints to allow constant operands.
5646 (movsf_internal): Allow CONST_INT operands.
5647
02c67fd1
DS
56482003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
5649
358bdeee
DS
5650 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
5651 fragment i386/x-mingw32.
02c67fd1
DS
5652 * config/i386/x-mingw32: New file. Make local_includedir
5653 relative to EXEC_PREFIX.
5654
0bcbfabb
AL
56552003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
5656
5657 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
5658 (MD_STARTFILE_PREFIX): Define.
5659
291aac59
DC
56602003-05-27 Denis Chertykov <denisc@overta.ru>
5661
5662 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
5663 VOIDmode.
5664 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
5665 call of cselib_invalidate_regno.
5666
0d2a303e
DJ
56672003-05-28 Daniel Jacobowitz <drow@mvista.com>
5668
5669 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
5670 -lthread to -lpthread.
5671
6bf1ffe1 56722003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
c770ac2b
ZW
5673 Bruce Korb <bkorb@gnu.org>
5674 Arno Klaassen <arno@heho.snv.jussieu.fr>
6bf1ffe1
EB
5675
5676 * fixinc/inclhack.def: Add missing declaration of getpagesize()
5677 to unistd.h on Solaris 2.5.1.
5678 Fix prototype of recv() and send() in sys/socket.h on
5679 Solaris 2.5.1 and 2.6.
5680 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
5681 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
5682 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
5683 * fixinc/fixincl.x: Regenerate.
5684
066f50a9
JM
56852003-05-27 Jason Merrill <jason@redhat.com>
5686
5687 * tree.c (expr_first, expr_length): New fns.
5688 * tree.h: Declare them.
5689
5690 * tree.c (iterative_hash_expr): Hash commutative expressions
5691 consistently.
5692
6bf1ffe1 56932003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7a6cdb44
RK
5694
5695 * tree.h (contains_placeholder_p): Now returns bool.
5696 (CONTAINS_PLACEHOLDER_P): New macro.
5697 (type_contains_placeholder_p): New function.
5698 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
5699 (contains_placeholder_p): Now returns bool.
5700 Rework to use CONTAINS_PLACEHOLDER_P macro.
5701 (type_contains_placeholder_p): New function.
5702 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
5703 type_contains_placeholder_p.
9a38893a 5704 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
7a6cdb44
RK
5705 Use CONTAINS_PLACEHOLDER_P macro.
5706 * builtins.c (fold_builtin): Likewise.
5707 * calls.c (initialize_argument_information): Likewise.
5708 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5709 * explow.c (expr_size): Likewise.
5710 * expr.c (store_constructor, get_inner_reference): Likewise.
5711 * function.c (assign_parms): Likewise.
5712 * stor-layout.c (variable_size): Likewise.
5713
d576d043
GDR
57142003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5715
5716 * diagnostic.h (output_verbatim, verbatim): Remove printf
9a38893a 5717 attribute.
d576d043 5718
65878937
GP
57192003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5720
5721 * doc/contrib.texi (Contributors): Update Kean Johnston.
5722
e033a023
DE
57232003-05-24 David Edelsohn <edelsohn@gnu.org>
5724
5725 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
5726
4dedfc09
NN
57272003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
5728
5729 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
5730 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
5731 Replace "GNU CC" with "GCC".
5732
9589325f
MK
57332003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
5734
5735 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
5736 intermediate computation.
5737
5299653d
EC
57382003-05-23 Eric Christopher <echristo@redhat.com>
5739
5740 * config/mips/mips.md (clzsi, clzdi): New patterns.
5741
0de12fcc
GK
57422003-05-23 Geoffrey Keating <geoffk@apple.com>
5743
5744 * gcc.c (default_compilers): Use -o to specify preprocessor's output
5745 file. Make -no-integrated-cpp work when building PCH files.
5746 * objc/lang-specs.h: Likewise.
5747
6e6a1681
NN
57482003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
5749
5750 * fixinc/Makefile.in: Correct description.
5299653d 5751 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6e6a1681
NN
5752 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
5753 fixinc/genfixes: Replace "GNU CC" with "GCC".
5754
29f523be
RS
57552003-05-23 Roger Sayle <roger@eyesopen.com>
5756
65f48a0a 5757 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
29f523be
RS
5758 builtin functions (and their __builtin_* variants).
5759 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
5760 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
5761 optimizing.
5762
5763 * doc/extend.texi: Document new tan and atan builtins, and
5764 their float and long double variants.
5765
27a701c2
JT
57662003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5767
5768 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
5769 __sparcv9 in the TARGET_ARCH64 case.
5770
25f57a0e
JH
5771Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
5772
5773 * i386.c (ix86_reorg): Calls are also jumps.
5774
839844be
R
57752003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
5776
5777 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
5778 note containing an EXPR_LIST, process all the arguments.
5779
97242ddc
JH
5780Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
5781 Andreas Jaeger <aj@suse.de>
5782
5783 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
5784 do not use assertion.
5785
973a43f6
MS
57862003-05-23 Mike Stump <mrs@apple.com>
5787
5788 * tlink.c (scan_linker_output): Add support for darwin linker, as it
5789 emits unresolved symbols one per line, consuming the entire line.
5790
a27b2b71
LH
57912003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
5792 Zack Weinberg <zack@codesourcery.com>
5793
5794 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
5795 * config/m68k/m68k.c (m68k_output_function_prologue):
5796 Remove code under #if NEED_PROBE.
5797 * config/m68k/m68k.h: Don't define NEED_PROBE.
5798 * config/m68k/m68k.md: Remove "probe" insn.
5799 * doc/md.texi: Remove documentation of "probe" pattern.
5800
d3971161
DN
58012003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
5802
5803 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
5804
0dc7ee3c
EB
58052003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5806
5807 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
5808 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
5809
18c2511c
RS
58102003-05-22 Roger Sayle <roger@eyesopen.com>
5811
5812 * real.c (real_maxval): New function to return the largest finite
5813 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
5814 * real.h (real_maxval): Prototype here.
5815 * fold-const.c (fold_inf_compare): Transform comparisons against
5816 +-Infinity into comparisons against DBL_MAX (or equivalent).
5817
5f875c8f
MS
58182003-05-22 Mike Stump <mrs@apple.com>
5819
5820 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
5821 default.
5822
d892f288
DD
58232003-05-22 DJ Delorie <dj@redhat.com>
5824
5825 * calls.c (expand_call): If the arg block is going to grow
5826 downward, we need argblock to point to the top of the block,
5827 not the bottom.
5828
29495994
RK
58292003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5830
5831 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
5832
f59700f9
RK
5833 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
5834 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
5835
1f85a612
KG
58362003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5837
5838 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
5839 * m68k.c: Likewise.
5840 * m68k.h: Likewise.
5841
5ded58d0
ZW
58422003-05-22 Zack Weinberg <zack@codesourcery.com>
5843
5844 PR other/2873
5845 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
5846 expressions to prevent triggering on recent curses.h,
5847 linux/nls.h, or X11/Xlib.h.
5848 (stdio_va_list): Add _G_va_list to bypass pattern.
5849 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
5850 * fixinc/fixincl.x: Regenerate.
5851
04213688
RB
58522003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
5853
5854 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
5ded58d0 5855 switches when --target-help option is specified.
04213688 5856
fdbf04c8
EB
58572003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
5858
5859 PR bootstrap/10805
5860 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
5861 failure with Sun assembler 5.0 Alpha 03/27/98.
5862
d3d2e8f0 58632003-05-21 Loren James Rittle <ljrittle@acm.org>
d45d08f7
LR
5864
5865 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
1490fbc1 5866 to match system compiler convention.
d45d08f7 5867
81888fcd
DS
58682003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5869
6356f892 5870 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
81888fcd
DS
5871 value, not just if defined.
5872 Update copyright year.
5873
f48758e4
JDA
58742003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5875
5876 PR target/6428
5877 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
5878 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
5879 option is used without `-static'.
5880 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
5881 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
5882
7a29f483
BW
58832003-05-21 Bob Wilson <bob.wilson@acm.org>
5884
5885 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
5886 TARGET_SERIALIZE_VOLATILE): Delete.
5887 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
5888 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
5889 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
5890 "-mno-serialize-volatile".
5891 * config/xtensa/xtensa.c (print_operand): Remove checks of
5892 TARGET_SERIALIZE_VOLATILE.
5893 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5894 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
5895 "-mserialize-volatile" and "-mno-serialize-volatile" options.
5896
b190f239
NS
58972003-05-21 Nathan Sidwell <nathan@codesourcery.com>
5898
5899 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
5900 (nested_function): Likewise.
5901 (notype_nested_function): Likewise.
5902
278566a2
NC
59032003-05-21 Nick Clifton <nickc@redhat.com>
5904
5905 * config/stormy16/stormy-abi: Update overflow type for
5906 R_XSTORMY16_16 reloc.
5907
66804d9e
NS
59082003-05-21 Nathan Sidwell <nathan@codesourcery.com>
5909
5910 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
5911 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
5912 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
5913 * print-tree.c (print_node): Remove ambient-boundedness.
5914 * tree.h (tree_common): Remove bounded_flag.
5915 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
5916 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5917 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5918 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5919 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
5920 Remove.
5921 (TYPE_QUALS): Remove BOUNDED.
5922 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
5923 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5924 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5925 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
5926 VA_LIST_POINTER_DEPTH): Remove.
5927 (struct tree_type): Remove pointer_depth.
5928
58228df6
KG
59292003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5930
5931 * c-pretty-print.c (pp_c_integer_literal): Use
5932 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
5933
bc6688b4
RS
59342003-05-20 Roger Sayle <roger@eyesopen.com>
5935 Kazu Hirata <kazu@cs.umass.edu>
5936 Joern Rennecke <joern.rennecke@superh.com>
5937
5938 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
5939 setcc and jump, if they exist. If substituted instruction
5940 fails to validate, store current effort in a REG_EQUAL note.
5941 (cprop_insn): Don't attempt further substitutions if the
5942 current instruction has been deleted.
5943 (local_cprop_pass): Likewise.
5944
5945 * jump.c (redirect_jump): Also update REG_EQUAL note, if
5946 one is attached to the jump instruction.
5947 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
5948
16e31964
DS
59492003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5950
5951 PR c++/9738
5952 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
5953 even if not first.
5954
1e29b8d7
KG
59552003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5956
5957 * genautomata.c (output_description, output_automaton_units,
5958 output_state_arcs): Add missing specifiers.
5959
6c2e8d1c
BW
59602003-05-20 Bob Wilson <bob.wilson@acm.org>
5961
5962 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
5963 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
5964 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
5965 (nsau): Rename to do_nsau. Provide alternate version for use when
5966 the NSAU instruction is available.
5967 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
5968 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
5969 * config/xtensa/xtensa-config.h: Update comments to match binutils.
5970 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
5971 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
5972 (TARGET_ABS, TARGET_ADDX): Define.
5973 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
5974 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
5975 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
5976 *subx8): Set predicate condition to TARGET_ADDX.
5977 (abssi2): Set predicate condition to TARGET_ABS.
5978 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
5979 "-maddx", and "-mno-addx" options.
5980 (Xtensa Options): Likewise. Also tag some opcode names with @code.
5981
5d34c8e9
KR
59822003-05-20 Kevin Ryde <user42@zip.com.au>
5983 Wolfgang Bangerth <bangerth@dealii.org>
5984
5985 PR/10355
5986 * doc/extend.texi: Put a warning into the documentation
5987 of attribute regparm.
5988
1cd69e2b
JM
59892003-05-20 Jason Merrill <jason@redhat.com>
5990
5991 * tree.c (expr_last): New fn.
5992 * tree.h: Declare it.
5993 * objc/objc-act (expr_last): Rename to objc_expr_last.
5994
a60a9553
R
59952003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
5996
5997 * sh.c (sh_register_move_cost): Add clase for moving between
5998 FP registers and MAC registers.
5999
12df72e8
JDA
60002003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
6001
6002 * pa/milli64.S ($$mulI): Fix typo.
6003
07b7c979
MK
60042003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
6005
6006 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6007 (nonlocal_set_p): Remove initial blank line.
6008 * dwarf2out.c (simple_type_size_in_bits): Likewise.
6009 * et-forest.c (et_forest_create): Likewise.
6010 * explow.c (stabilize): Likewise.
6011 * fix-header.c (write_lbrac): Likewise.
6012 * graph.c (start_fct, node_data): Likewise.
6013 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6014 * rtlanal.c (global_reg_mentioned_p): Likewise.
6015 * tree.c (bit_position): Likewise.
6016
fb9fc9f9
AO
60172003-05-19 Alexandre Oliva <aoliva@redhat.com>
6018
6019 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6020 -lthread to -lpthread.
6021
42ad6c9e
NB
60222003-05-19 Neil Booth <neil@daikokuya.co.uk>
6023
6024 * c-opts.c (c_common_decode_option): Don't accept dollars
6025 as identifier characters in assembly.
6026 * doc/cpp.texi: Document this.
6027
4b6fe6b6
SA
60282003-05-19 Seth Arnold <sarnold@wirex.com>
6029 Aldy Hernandez <aldyh@redhat.com>
6030
5ded58d0
ZW
6031 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6032 vrsave_size twice.
4b6fe6b6 6033
ce376beb
AH
60342003-05-19 Aldy Hernandez <aldyh@redhat.com>
6035
5ded58d0 6036 * doc/tm.texi (function_arg): Fix typo.
ce376beb 6037
a01fff59
MA
60382003-05-19 Matt Austern <austern@apple.com>
6039
6040 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6041 * c-common.h (warn_invalid_offsetof): Declare.
6042 * c-common.c (warn_invalid_offsetof): Define.
6043 * doc/invoke.texi: Document -Winvalid-offsetof.
6044 * testsuite/g++.dg/other/offsetof3.C: New.
6045 * testsuite/g++.dg/other/offsetof4.C: New.
5ded58d0 6046
025d9908 60472003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5ded58d0 6048 David Edelsohn <edelsohn@gnu.org>
025d9908
KH
6049
6050 * config/rs6000/rs6000.c (rs6000_alignment_string,
6051 rs6000_alignment_flags): New variables.
6052 (rs6000_parse_alignment_option): New function.
6053 (rs6000_override_options): Call it.
6054 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6055 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6056 macros.
6057 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6058 natural alignment if TARGET_NATURAL_ALIGNMENT
6059 (ROUND_TYPE_ALIGN): Always use default record alignment if
6060 TAGET_NATURAL_ALIGNMENT.
6061 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6062 (ROUND_TYPE_ALIGN): Same.
6063 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6064 (ROUND_TYPE_ALIGN): Same.
6184e8a4
KH
6065 * doc/invoke.texi (Option Summary, PowerPC Options): Document
6066 new options.
025d9908 6067
52a8b7b8
R
60682003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
6069
6070 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6071 of a function using ASMSPEC, prepend a star.
6072
68594ce7
JM
60732003-05-19 Jason Merrill <jason@redhat.com>
6074
6075 * tree-inline.c (copy_body_r): Avoid generating &* during inline
6076 substitution.
6077
6208b55d
AM
60782003-05-19 Andrew Macleod <amacleod@redhat.com>
6079
6080 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6081 not mark assignments to the hard frame pointer as being stack
6082 frame related.
6083 (xstormy16_expand_epilogue): Mark adjustments to the stack
6084 pointer as being stack frame related.
6085
21c9500d
RS
60862003-05-19 Richard Sandiford <rsandifo@redhat.com>
6087
6088 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6089 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6090 (PREDICATE_CODES): Add hilo_operand.
6091 * config/mips/mips.c (hilo_operand): New predicate.
6092 (mips_adjust_insn_length): Account for the number nops that might
6093 be needed to avoid hardware hazards.
6094 * config/mips/mips.md (dslot): Remove attribute.
6095 (hazard): New attribute.
6096 (can_delay): Use it. Check for calls, branches & jumps.
6097 (muldi3): Use the standard dmult pattern for mips16 code.
6098 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6099
f29d1b66
RS
61002003-05-19 Richard Sandiford <rsandifo@redhat.com>
6101
6102 * config/mips/mips-protos.h (final_prescan_insn,
6103 mips_count_memory_refs, mips_fill_delay_slot): Remove.
6104 * config/mips/mips.h (delay_type, dslots_load_total,
6105 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6106 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6107 mips_load_reg3, mips_load_reg4): Remove.
6108 (MASK_STATS): Remove.
6109 (MASK_EXPLICIT_RELOCS): Reuse its value.
6110 (TARGET_STATS): Remove.
6111 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6112 Warn that -mstats is now ignored.
6113 (FINAL_PRESCAN_INSN): Undefine.
6114 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6115 (ASM_OUTPUT_REG_POP): Likewise.
6116 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6117 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6118 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6119 mips_fill_delay_slot, mips_count_memory_refs,
6120 final_prescan_insn): Remove.
6121 (output_block_move): Remove calls to mips_count_memory_refs.
6122 (print_operand): Remove printing of #nop for TARGET_STATS.
6123 (mips_output_function_epilogue): Remove TARGET_STATS code.
6124 Reorganize setting of fnnmae.
6125 * config/mips/mips.md: Remove handling of dslot statistics
6126 throughout file. Change all fcmp patterns into normal asm
6127 templates, removing calls to mips_fill_delay_slot.
6128 * doc/invoke.texi: Remove documentation of -mstats.
6129
30a38382
RS
61302003-05-19 Richard Sandiford <rsandifo@redhat.com>
6131
6132 * config/mips/mips.c (mips_class_max_nregs): Return the number of
6133 words in the mode.
6134
beb14bd5
RS
61352003-05-19 Richard Sandiford <rsandifo@redhat.com>
6136
6137 * config/mips/mips.c (override_options): Disable explicit
6138 relocs for old ABIs unless using gas.
6139
1c745a02
EC
61402003-05-18 Eric Christopher <echristo@redhat.com>
6141
6142 * config/mips/mips.h: Remove definition of g_switch_value.
6143
307b599c
MK
61442003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
6145
6146 * flags.h (g_switch_value): Change to an unsigned
6147 HOST_WIDE_INT.
6148 * toplev.c (g_switch_value): Likewise.
6149
6150 * config/alpha/alpha.c (small_symbolic_operand): Remove
1c745a02 6151 g_switch_value cast.
307b599c
MK
6152 (alpha_in_small_data_p): Cast size to an unsigned
6153 HOST_WIDE_INT.
6154
6155 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6156 unsigned HOST_WIDE_INT.
6157 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6158 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6159
6160 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6161 unsigned HOST_WIDE_INT.
6162 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6163 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6164 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6165
6166 * config/rs6000/rs6000.c (rs6000_file_start): Use
6167 HOST_WIDE_INT_PRINT_UNSIGNED.
6168 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6169 (rs6000_elf_in_small_data_p): Cast size to unsigned
6170 HOST_WIDE_INT.
6171 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6172 Remove.
6173 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6174 g_switch_set.
6175 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6176 g_switch_value cast.
6177
731ae8dd
RS
61782003-05-18 Roger Sayle <roger@eyesopen.com>
6179 Zack Weinberg <zack@codesourcery.com>
6180
6181 PR middle-end/10472
6182 * builtins.c (expand_builtin_memcpy): Call force_operand on
6183 expressions and use simplify_gen_binary to create the addition.
6184
d1b3178b
AS
61852003-05-18 Andreas Schwab <schwab@suse.de>
6186
6187 * config/m68k/m68k.md: Use define_constants for unspec numbers.
6188
094a51ff
NB
61892003-05-18 Neil Booth <neil@daikokuya.co.uk>
6190
6191 * config/sparc/sparc.h: Define sparc for now.
7d4f6041
NN
61922003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
6193
6a38414a
NN
6194 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6195
1c745a02 6196 * config/stormy16/stormy16.h: Remove about 3000 lines of
595cac16
NN
6197 target-independent comments. Update copyright notice.
6198
7d4f6041
NN
6199 * doc/collect2.texi: GNU CC -> GCC.
6200 * doc/headerdirs.texi: GNU CC -> GCC.
6201
5e0c54e5
GDR
62022003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
6203
6204 * hashtable.h (struct ht_identifier): Add data member "hash_value".
1c745a02 6205 * hashtable.c (ht_lookup): Use it when searching, remember.
5e0c54e5
GDR
6206 (ht_expand): Do not recompute.
6207 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6208
dc1f1d7f
NS
62092003-05-18 Nathan Sidwell <nathan@codesourcery.com>
6210
6211 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6212
4e2e315f
NB
62132003-05-18 Neil Booth <neil@daikokuya.co.uk>
6214
6215 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6216 Default here.
6217 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6218 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6219 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6220 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6221 config/arm/linux-elf.h, config/arm/rtems-elf.h,
6222 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6223 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6224 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6225 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6226 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6227 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6228 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6229 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6230 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6231 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6232 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6233 Don't define __ELF__.
6234 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6235 Define __ELF__.
6236 * doc/cpp.texi: Document __ELF__.
1c745a02 6237 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
4e2e315f 6238
e34d07f2
KG
62392003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6240
6241 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6242 always use stdarg.
6243 * c-errors.c (pedwarn_c99): Likewise.
6244 * c-format.c (status_warning): Likewise.
6245 * c-semantics.c (build_stmt): Likewise.
6246 * calls.c (emit_library_call, emit_library_call_value): Likewise.
6247 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6248 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6249 * diagnostic.c (build_message_string, output_printf,
6250 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6251 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6252 error_with_decl, fnotice): Likewise.
6253 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6254 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6255 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6256 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6257 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6258 dw2_asm_output_encoded_addr_rtx): Likewise.
6259 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6260 * errors.c (warning, error, fatal, internal_error): Likewise.
6261 * final.c (output_operand_lossage, asm_fprintf): Likewise.
6262 * fix-header.c (fatal): Likewise.
6263 * gcc.c (fatal, error, notice): Likewise.
6264 * gcov.c (fnotice): Likewise.
6265 * genattrtab.c (attr_rtx, attr_printf): Likewise.
6266 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6267 * gensupport.c (message_with_line): Likewise.
6268 * mips-tfile.c (fatal, error): Likewise.
6269 * protoize.c (notice): Likewise.
6270 * ra-debug.c (ra_debug_msg): Likewise.
6271 * read-rtl.c (fatal_with_file_and_line): Likewise.
6272 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6273 * tree.c (build, build_nt, build_function_type_list): Likewise.
6274
c08f71aa
NB
62752003-05-17 Neil Booth <neil@daikokuya.co.uk>
6276
6277 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6278 * gcc.c (cpp_predefines): Remove.
6279 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6280 (static_specs): Remove predefines.
6281 * system.h: Poison CPP_PREDEFINES.
6282 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6283 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6284
a7fbe404
NB
62852003-05-17 Neil Booth <neil@daikokuya.co.uk>
6286
6287 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6288 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6289 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6290 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6291
b1822ccc
NB
62922003-05-17 Neil Booth <neil@daikokuya.co.uk>
6293
3af15d58 6294 PR c/9209
b1822ccc
NB
6295 * c-common.c, c-common.h (dollars_in_ident): Remove.
6296 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6297 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6298 * cpphash.h (warned_dollar): Rename warn_dollars.
6299 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6300 Permit dollars regardless of -std=.
6301 (post_options): Set warn_dollars.
6302 * cpplex.c (forms_identifier_p): Use warn_dollars.
6303 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6304 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6305 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6306 Update documentation.
6307
a69e127b
AS
63082003-05-17 Andreas Schwab <schwab@suse.de>
6309
6310 * config/m68k/m68k.c (m68k_output_function_prologue): Use
6311 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6312 formatting a HOST_WIDE_INT.
6313 (m68k_output_function_epilogue): Likewise.
6314
2aea0b53
ZW
63152003-05-17 Zack Weinberg <zack@codesourcery.com>
6316
6317 * doc/install.texi: Remove information about desupported targets.
6318
1a8965c4
AS
63192003-05-17 Andreas Schwab <schwab@suse.de>
6320
6321 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6322 * config/m68k/linux.h: Likewise.
6323 * config/m68k/m68k-none.h: Likewise.
6324 * config/m68k/netbsd-elf.h: Likewise.
6325 * config/m68k/sgs.h: Likewise.
6326 * config/m68k/m68k.h: Likewise.
6327 * config/m68k/m68k.md: Likewise.
6328 * config/m68k/m68k.c: Likewise.
6329 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6330 constraints.
6331 * doc/invoke.texi (Option Summary): Remove -mfpa.
6332 (M680x0 Options): Likewise.
6333
2a8fa26c
DE
63342003-05-17 David Edelsohn <edelsohn@gnu.org>
6335
6336 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6337
6508bdd5
NB
63382003-05-17 Neil Booth <neil@daikokuya.co.uk>
6339
6340 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6341 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6342 config/sparc/rtemself.h, config/sparc/sol2-64.h,
6343 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6344 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6345
8d55c164
NB
63462003-05-17 Neil Booth <neil@daikokuya.co.uk>
6347
6348 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6349 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6350
9b8466f4
NB
63512003-05-17 Neil Booth <neil@daikokuya.co.uk>
6352
6353 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6354 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6355 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6356 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6357 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6358 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6359 sparc/sysv4.h,
6360 * sparc/sysv4-only.h: New.
6361
5c07bd7a
AM
63622003-05-17 Alan Modra <amodra@bigpond.net.au>
6363
6364 * function.c (assign_parms): Check for zero size args.
6365
7e53359d
KG
63662003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6367
90ff44cf
KG
6368 * cfgloopanal.c (test_for_iteration): Use string concatentation on
6369 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6370 function calls into one.
6371 * dbxout.c (dbxout_symbol): Likewise.
6372 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6373 * dwarf2asm.c (dw2_asm_output_data_uleb128,
6374 dw2_asm_output_data_sleb128): Likewise.
6375 * genrecog.c (debug_decision_2): Likewise.
6376 * loop.c (emit_prefetch_instructions): Likewise.
6377 * print-rtl.c (print_rtx): Likewise.
6378 * print-tree.c (print_node_brief, print_node): Likewise.
6379 * ra-debug.c (dump_igraph, dump_graph_cost,
6380 dump_static_insn_cost): Likewise.
6381 * ra-rewrite.c (dump_cost): Likewise.
6382 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6383 * sreal.c (dump_sreal): Likewise.
6384 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
6385 * varasm.c (assemble_vtable_entry): Likewise.
6386
7e53359d
KG
6387 * avr.c (avr_output_function_prologue,
6388 avr_output_function_epilogue, print_operand): Fix format specifier
6389 warnings.
6390 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
6391 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
6392
79406520
GK
63932003-05-16 Geoffrey Keating <geoffk@apple.com>
6394
cabfd258
GK
6395 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
6396 and ! TARGET_STRING cases.
6397
79406520
GK
6398 * doc/cppopts.texi (-undef): Fix texinfo warning.
6399
6400 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
6401 * cppfiles.c (validate_pch): When -H is used, print some information
6402 about PCH files found.
6403
190162de
RK
64042003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6405
6406 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
6407 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
6408 * config/mips/t-sr71k: Likewise.
6409
69487202
KG
64102003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6411
15a5dddc
KG
6412 * arc.c (arc_output_function_prologue,
6413 arc_output_function_epilogue): Fix format specifier warnings.
2aea0b53 6414 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
15a5dddc 6415
e0b3adcb
KG
6416 * v850.c (print_operand): Fix format specifier warnings.
6417
8745765a 6418 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
2aea0b53 6419 specifier warnings.
8745765a 6420
fd7b8952
KG
6421 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
6422 format specifier warnings.
6423
f5a1c99c
KG
6424 * ip2k.c (function_prologue, function_epilogue, print_operand):
6425 Fix format specifier warnings.
6426 * ip2k.md: Likewise.
6427
0c6b830b
KG
6428 * i960.c (i960_output_function_prologue, i960_print_operand,
6429 i960_print_operand_addr): Fix format specifier warnings.
6430
94c5db54
KG
6431 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
6432 (i370_output_function_prologue): Fix format specifier warnings.
6433 * i370.h (PRINT_OPERAND): Likewise.
6434
1bdfacf6
KG
6435 * fr30.c (fr30_print_operand): Fix format specifier warnings.
6436
5f1ed3b2
KG
6437 * dsp16xx.c (print_operand_address): Fix format specifier warning.
6438 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
6439
13a8b496
KG
6440 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
6441 specifier warnings.
6442
4a0a75dd
KG
6443 * alpha.c (print_operand_address, alpha_start_function,
6444 unicosmk_output_ssib): Use string concatentation on
6445 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6446 function calls into one.
6447 * arm.c (arm_print_operand): Likewise.
6448 * cris.c (cris_asm_output_mi_thunk): Likewise.
6449 * frv.c (frv_asm_output_mi_thunk): Likewise.
6450 * ia64.c (ia64_print_operand, process_set): Likewise.
6451 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
6452 Likewise.
6453 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
6454 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6455 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
6456 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
6457 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
6458 * s390.c (s390_assemble_integer): Likewise.
6459 * sparc.c (sparc_flat_function_prologue,
2aea0b53 6460 sparc_flat_function_epilogue): Likewise.
4a0a75dd
KG
6461 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
6462 * vax.c (vax_output_mi_thunk): Likewise.
6463
6f562bc6
KG
6464 * frv.c (frv_print_operand_memory_reference): Fix format specifier
6465 warning.
6466 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
6467
c8f4b20f
KG
6468 * m68k.c (m68k_output_function_epilogue): Fix format specifier
6469 warnings.
6470
804a0655
KG
6471 * stormy16-protos.h (xs_hi_general_operand,
6472 xs_hi_nonmemory_operand): Prototype.
6473 * stormy16.c (xstormy16_output_shift): Fix format specifier
6474 warnings.
6475
69487202
KG
6476 * cris.c: Fix format specifier warnings.
6477
ba2f4247
NC
64782003-05-16 Nick Clifton <nickc@redhat.com>
6479
6480 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
6481
674e9baa
WB
64822003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
6483
6484 * doc/bugreport.texi: Remove most of the of the preface of the
6485 bugs section.
6486
b80c0987
JJ
64872003-05-16 Jakub Jelinek <jakub@redhat.com>
6488
6489 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
6490 .save XX, r0.
6491
ad14dc5c
RS
64922003-05-15 Roger Sayle <roger@eyesopen.com>
6493
6494 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
6495
10d6c0d0
EC
64962003-05-15 Eric Christopher <echristo@redhat.com>
6497
6498 * cfgcleanup.c (merge_blocks): Fix return value.
6499
3dcd7d45
EC
65002003-05-15 Eric Christopher <echristo@redhat.com>
6501
2aea0b53
ZW
6502 * combine.c (expand_compound_operation): Make sure
6503 that zero_extend operation is profitable.
3dcd7d45 6504
36b9c271
RH
65052003-05-15 Richard Henderson <rth@redhat.com>
6506
6507 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
6508 code protected by USE_GNULIBC_1.
6509
7c942e17
ZW
65102003-05-15 Zack Weinberg <zack@codesourcery.com>
6511
6512 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
6513 remove hppa*-*-mpeix* which could not be built, and prune
6514 files from tmake_file= or tm_file= lists that don't exist.
6515
6516 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
6517 * config/alpha/t-interix, config/arm/conix-elf.h
6518 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
6519 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
6520 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
6521 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
6522 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
6523 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
6524 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
6525 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
6526 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
6527 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
6528 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
6529 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
6530 * config/m68k/tower-as.h, config/m68k/tower.h
6531 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
6532 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
6533 * config/m88k/m88k-protos.h, config/m88k/m88k.c
6534 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
6535 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
6536 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
6537 * config/mips/rtems64.h, config/mips/sni-gas.h
6538 * config/mips/sni-svr4.h, config/mips/t-ecoff
6539 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
6540 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
6541 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
6542 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
6543 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
6544 * config/romp/romp-protos.h, config/romp/romp.c
6545 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
6546 * config/rs6000/aix3newas.h, config/rs6000/mach.h
6547 * config/sparc/bsd.h, config/sparc/hal.h
6548 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
6549 * config/sparc/lynx.h, config/sparc/netbsd.h
6550 * config/sparc/sp86x-aout.h, config/sparc/splet.h
6551 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
6552 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
6553 * config/sparc/t-halos, config/sparc/t-sparcbare
6554 * config/sparc/t-splet, config/sparc/t-sunos41
6555 * config/v850/rtems.h: Delete file.
6556
a6ebc39a
AH
65572003-05-15 Aldy Hernandez <aldyh@redhat.com>
6558
7c942e17 6559 * config/rs6000/rs6000-protos.h (function_value): Protoize.
a6ebc39a 6560
7c942e17 6561 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
a6ebc39a 6562
7c942e17 6563 * config/rs6000/rs6000.c (rs6000_function_value): New.
a6ebc39a 6564
4b3c2e48
PB
65652003-05-15 Philip Blundell <philb@gnu.org>
6566
6567 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
6568 All uses updated.
6569 (arm_tune_xscale): New variable.
6570 (arm_override_options): Set it.
6571 (arm_adjust_cost): Use it in place of arm_arch_xscale.
6572 (arm_gen_load_multiple): Likewise.
6573 (arm_gen_store_multiple): Likewise.
6574 * config/arm/arm.md (is_xscale): Likewise.
6575 * config/arm/arm.h (arm_tune_xscale): Declare.
6576
c75a3ddc
PB
65772003-05-15 Philip Blundell <philb@gnu.org>
6578
6579 PR target/10730
6580 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
6581 involving invalid constants.
6582
411f7850
JDA
65832003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6584
6585 * pa.c (hppa_expand_prologue): Remove blockage.
6586
486772b1
WB
65872003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
6588
6589 * doc/bugreport.texi: Remove most of the bug reporting
6590 instructions and merge them into bugs.html.
6591
c1fefa09
MK
65922003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
6593
6594 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6595 g_switch_value to unsigned HOST_WIDE_INT.
6596
72531479
EC
65972003-05-14 Eric Christopher <echristo@redhat.com>
6598
6599 * combine.c: Fix header comments.
6600 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
6601 to all calls and prototype.
6602
e43736ad
RS
66032003-05-14 Roger Sayle <roger@eyesopen.com>
6604
6605 PR optimization/10764
72531479 6606 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
e43736ad
RS
6607 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
6608 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
6609 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
6610 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
6611 the corresponding *fyl2x_?fxf3 instructions.
6612
49e57ab0
BW
66132003-05-14 Bob Wilson <bob.wilson@acm.org>
6614
6615 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
6616 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
6617 XCHAL_HAVE_L32R): New.
6618 * config/xtensa/xtensa-protos.h (non_const_move_operand,
6619 xtensa_load_constant, xtensa_function_prologue,
6620 xtensa_function_epilogue): Delete prototypes.
6621 (xtensa_expand_prologue): New.
6622 * config/xtensa/xtensa.c (frame_size_const,
6623 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
6624 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
6625 xtensa_function_prologue): Delete.
6626 (add_operand, xtensa_mem_offset): Formatting.
6627 (move_operand): If the const16 option is available, allow any SFmode
6628 and SImode constants.
6629 (xtensa_emit_move_sequence): Inline the former contents of
6630 xtensa_load_constant with modifications to handle the const16 option.
6631 (override_options): Add xtensa_char_to_class['W'] and set it to
6632 the general register class only if the const16 option is enabled.
6633 Fix formatting. Disallow PIC when using the const16 option.
6634 (print_operand): Reorganize to switch on "letter" instead of the
6635 RTL code. Add output_operand_lossage calls for invalid cases.
6636 Add support for 't' and 'b' letters.
6637 (xtensa_expand_prologue): New function to replace
6638 xtensa_function_prologue and xtensa_reorg.
6639 (xtensa_function_epilogue): Declare this as static. Delete code
6640 to print the retw.n or retw instruction.
6641 (xtensa_return_addr): Use A0_REG instead of 0.
6642 (xtensa_rtx_costs): Add costs for using the const16 option.
6643 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
6644 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
6645 (TARGET_SWITCHES): Add "const16" and "no-const16".
6646 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
6647 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
6648 using the const16 option.
6649 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
6650 (TRAMPOLINE_SIZE): Change from 49 to 59.
6651 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
6652 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
6653 when using the const16 option.
6654 (PREDICATE_CODES): Delete non_const_move_operand.
6655 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
6656 UNSPECV_ENTRY.
6657 (movdi, movdf): If the source is a constant, always expand to a
6658 sequence of movsi insns.
6659 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
6660 (movsi_internal, movsf_internal): Add alternative using const16 insns.
6661 (movsf): Add const16 support.
6662 (entry, prologue, epilogue): New.
6663 (set_frame_ptr): Add missing mode for unspec_volatile operation.
6664 Likewise for subsequent split pattern.
6665 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
6666 "-mconst16" and "-mno-const16" options.
6667
ae49d6e5
RH
66682003-05-14 Richard Henderson <rth@redhat.com>
6669
6670 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
6671 to be DImode register. Merge load_symptr.
6672 * config/ia64/ia64.md (load_symptr): Remove.
6673
2adb9af1
RH
66742003-05-14 Richard Henderson <rth@redhat.com>
6675
6676 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
6677 DEFERRED_CONSTANT_P.
6678 * integrate.c (copy_rtx_and_substitute): Update use.
6679 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
6680 to the copy generated.
6681 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
6682 of the constant to see if we should emit.
6683 (mark_constant): Similarly.
6684 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
6685
bb84cb12
DE
66862003-05-14 David Edelsohn <edelsohn@gnu.org>
6687
6688 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
6689 move record condition.
6690 (movdi_internal2): Same.
6691
3ec6c6ee
NS
66922003-05-14 Nathan Sidwell <nathan@codesourcery.com>
6693
7d63a2fa
NS
6694 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
6695 (GCOV_TAG_*) Force type to gcov_unsigned_t.
6696 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
6697 (struct gcov_var): Remove modified. Add start, length, offset,
6698 overread. Have buffer array for libgcov.
6699 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
6700 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
6701 * gcov-io.c (gcov_open): Set mode, do not read anything.
6702 (gcov_close): Write final block.
6703 (gcov_write_block, gcov_allocate): New.
6704 (gcov_write_bytes): Make static. Write or allocate buffer.
6705 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
6706 null.
6707 (gcov_write_string): Adjust.
6708 (gcov_write_tag)
6709 (gcov_write_length): Adjust. Flush the block.
6710 (gcov_write_tag_length): Buffer can never be null.
6711 (gcov_read_bytes): Make static. Read in block.
6712 (gcov_sync): Moved here. Adjust.
6713 (gcov_seek): Moved here. Adjust.
6714 * coverage.c (read_counts_file): Adjust.
6715 * gcov-dump.c (print_prefix): Add position parameter.
6716 (flag_dump_positions): New flag.
6717 (options, main, print_usage): Add it.
6718 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
6719 tag_summary): Adjust.
6720 * gcov.c (read_graph_file, read_count_file): Adjust.
6721 * libgcov.c (gcov_exit): Adjust.
6722
990f4800
NS
6723 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
6724 (libgcov.a): Depend on libgcc.a.
6725 (gcov.o, gcov-dump.o): Add gcov-io.c.
6726 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
72531479 6727
3ec6c6ee
NS
6728 * loop.c (check_dbra_loop): Factor common test.
6729
c62347f0
BE
67302003-05-14 Ben Elliston <bje@wasabisystems.com>
6731
6732 * doc/md.texi (Automaton pipeline description): Grammar fixes.
6733
18dbd950
RS
67342003-05-14 Richard Sandiford <rsandifo@redhat.com>
6735
6736 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
6737 (TARGET_INITIALIZER): Include it.
6738 * target.h (struct gcc_target): Add machine_dependent_reorg field.
6739 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
2f9bb7c5 6740 * system.h: Poison MACHINE_DEPENDENT_REORG.
18dbd950
RS
6741
6742 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
6743 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
6744 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6745 (alpha_handle_trap_shadows): Remove "first insn" parameter.
6746 (alpha_align_insns): Likewise.
6747 (alpha_reorg): Likewise. Make static. Update calls to above
6748 functions.
6749
6750 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
6751 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
6752 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6753 (arm_reorg): Remove parameter. Make static.
6754
6755 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
6756 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
6757 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6758 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
6759 Remove parameter.
6760
6761 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
6762 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
6763 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6764 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
6765 Remove parameter.
6766
6767 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
6768 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
6769 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
6770
6771 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
6772 * config/frv/frv.c: Remove orphaned comment.
6773
6774 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
6775 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
6776 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6777 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
6778 Remove parameter.
6779
6780 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
6781 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
6782 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6783 (emit_insn_group_barriers): Remove "first insn" parameter.
6784 (emit_all_insn_group_barriers): Likewise.
6785 (ia64_reorg): Likewise. Make static. Update calls to above functions.
6786 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
6787
6788 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
6789 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
6790 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6791 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
6792 Remove parameter.
6793
6794 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
6795 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
6796 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6797 (m68hc11_reorg): Make static. Remove parameter.
6798
6799 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
6800 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
6801 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6802 (conditionalize_optimization): Remove parameter.
6803 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
6804 Make static. Update call to conditionalize_optimization.
6805
6806 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
6807 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
6808 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6809 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
6810 Make static.
6811
6812 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
6813 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
6814 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6815 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
6816 Remove parameter.
6817
6818 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
6819 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
6820 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6821 (pa_combine_instructions): Remove "first insn" parameter.
6822 (remove_useless_addtr_insns): Likewise.
6823 (pa_reorg): Likewise. Make static. Update calls to above functions.
6824
6825 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
6826 commented-out definition.
6827
6828 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
6829 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
6830 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6831 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
6832 Remove parameter.
6833
6834 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
6835 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
6836 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6837 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
6838 Remove parameter.
6839 (sh_output_mi_thunk): Call sh_reorg directly.
6840 * config/sh/sh.md: Update comment.
6841
6842 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
6843 commented-out definition.
6844
6845 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
6846 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
6847 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6848 (v850_reorg): Make static. Remove parameter.
6849
6850 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
6851 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
6852 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6853 (xtensa_reorg): Make static. Remove parameter.
6854
6855 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
6856 (TARGET_MACHINE_DEPENDENT_REORG): Document.
6857
2306d91c
RH
68582003-05-13 Richard Henderson <rth@redhat.com>
6859
6860 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
6861 the old decl had instantiated DECL_RTL.
6862
c2d635bc
MS
68632003-05-13 Mike Stump <mrs@apple.com>
6864
6865 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
6866
7aabff18
JJ
68672003-05-13 Janis Johnson <janis187@us.ibm.com>
6868
6869 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
6870 HOST_WIDE_INT argument.
6871
03307888
JM
68722003-05-13 Jason Merrill <jason@redhat.com>
6873
6874 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
6875
6876 * tree.c (iterative_hash_expr): New fn.
6877
6878 * c-semantics.c (emit_local_var): Don't mess with temp slots if
6879 there's no initializer.
6880
d660cefe
RS
68812003-05-13 Richard Sandiford <rsandifo@redhat.com>
6882
6883 * final.c (final_scan_insn): Apply the effects of frame-related
6884 delay slot insns before emitting a delayed branch.
6885
c1f1978f
NC
68862003-05-13 Nick Clifton <nickc@redhat.com>
6887
6888 * config/mcore/mcore.md (jump): Use emit_jump_insn.
6889
7641be90
UW
68902003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6891
6892 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
6893 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
6894
f26aca6d
DD
68952003-05-12 DJ Delorie <dj@redhat.com>
6896
6897 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
6898 (emit_push_insn): Don't use push when the source alignment is less
6899 than the stack's push rounding.
6900
fa6ef813
ZW
69012003-05-13 Zack Weinberg <zack@codesourcery.com>
6902
6903 * diagnostic.c (output_format): Add support for %m.
6904 (output_printf, output_verbatim, diagnostic_set_info,
6905 verbatim): Set err_no field of the text_info structure being
6906 initialized.
6907 (fatal_io_error): Delete function.
6908 * diagnostic.h (text_info): Add err_no field.
6909 * toplev.h (fatal_io_error): Delete prototype.
6910
6911 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
6912 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
6913 * objc/objc-act.c: Replace all calls to fatal_io_error with
6914 calls to fatal_error; add ": %m" to the end of all the affected
6915 error messages.
6916
a2a6a79b
ZW
69172003-05-13 Zack Weinberg <zack@codesourcery.com>
6918
6919 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
6920 * rtl.h: Prototype it.
6921 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
6922 when appropriate.
6923
c707d0b0
UW
69242003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6925
6926 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
6927 ("*iorsi3_oi"): Likewise.
6928
9af66e58
RE
69292003-05-13 Richard Earnshaw <rearnsha@arm.com>
6930
6931 * arm.md (compare_scc): Use shorter sequence for EQ case.
6932 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
6933 (and_scc_scc): Ensure split only applies when there is a dominance
6934 of the comparisons.
6935 (and_scc_scc_nodom): New insn-and-split pattern.
6936
7f68692f
RS
69372003-05-13 Richard Sandiford <rsandifo@redhat.com>
6938
6939 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
6940 to _Unwind_SetGRPtr().
6941
88e80294
ME
69422003-05-13 Michael Eager <eager@mvista.com>
6943
6944 * Makefile.in: Initialize program_transform_cross_name from
6945 @program_transform_name@ instead of target_alias.
6946
c4501e62
JJ
69472003-05-12 Janis Johnson <janis187@us.ibm.com>
6948 Alan Modra <amodra@bigpond.net.au>
6949 Jakub Jelinek <jakub@redhat.com>
6950
6951 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
6952 * configure: Rebuild.
6953 * config/rs6000/rs6000-protos.h: Update.
6954 * config/rs6000/rs6000.c (rs6000_tls_size): New.
6955 (rs6000_tls_size_string): New.
6956 (rs6000_parse_tls_size_option): New.
6957 (rs6000_legitimize_tls_address): New.
6958 (rs6000_tls_get_addr): New.
6959 (rs6000_got_sym): New.
6960 (rs6000_tls_symbol_ref): New.
6961 (rs6000_tls_symbol_ref_1): New.
6962 (rs6000_get_some_local_dynamic_name): New.
6963 (rs6000_get_some_local_dynamic_name_1): New.
6964 (TARGET_HAVE_TLS): New.
6965 (TARGET_CANNOT_FORCE_CONST_MEM): New.
6966 (rs6000_override_options): Handle -mtls-size option.
6967 (constant_pool_expr_1): Handle TLS symbols.
6968 (rs6000_legitimize_address): Handle TLS symbols.
6969 (rs6000_tls_referenced_p): New.
6970 (rs6000_legitimate_address): Handle TLS symbols.
6971 (rs6000_emit_move): Handle TLS symbols.
6972 (print_operand): Handle TLS symbols.
6973 (uses_TOC): Handle TLS symbols.
6974 (rs6000_emit_prologue): Use symbol for unspec constant.
6975 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
6976 (some_ld_name): New.
6977 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
6978 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
6979 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
6980 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6981 Support TLS.
6982 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
6983 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
6984 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
6985 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
6986 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
6987 tls_tls_64): New.
6988 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
6989
6cfae22a
NB
69902003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
6991
6992 * Makefile.in (stage2_build, stage3_build, stage4_build):
6993 Set BUILD_CC to the same as CC.
6994
517958ba
NB
69952003-05-12 Neil Booth <neil@daikokuya.co.uk>
6996
6997 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
6998
74601584
AS
69992003-05-12 Andreas Schwab <schwab@suse.de>
7000
7001 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7002 as unused.
7003 (bundling): Initialize 'pos'.
7004 (ia64_expand_builtin): Initialize 'rmode'.
7005
f08b4d88
DE
70062003-05-12 David Edelsohn <edelsohn@gnu.org>
7007
7008 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7009 (ASM_OUTPUT_ALIGNED_COMMON): Same.
7010 (ASM_OUTPUT_LOCAL): Same.
7011
d3e0dffb
JH
7012Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
7013
7014 * varasm.c (output_constant): Fix underflow.
7015
96ef4bdc
MM
70162003-05-12 Mark Mitchell <mark@codesourcery.com>
7017
7018 PR other/10745
7019 * configure.in: Correct detection of GNU ld version number.
7020 * configure: Regenerated.
7021
9804f5fb
ZW
70222003-05-12 Zack Weinberg <zack@codesourcery.com>
7023
7024 * diagnostic.c (diagnostic_for_decl): Take a
7025 diagnostic_context argument. Restructure to be consistent
7026 with diagnostic_report_diagnostic.
7027 (diagnostic_count_diagnostic): Now static. Take a
7028 diagnostic_info argument, not just a diagnostic_t. Some code
7029 moved here from internal_error. Move a case label for
7030 clarity.
7031 (diagnostic_action_after_output): New function. Code moved
7032 here from internal_error and fatal_error.
7033 (bug_report_request): New #define so that this text appears in
7034 only one place.
7035 (diagnostic_report_diagnostic): Update to match changes to
7036 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
7037 (diagnostic_set_info): Call gettext here.
7038
7039 (pedwarn): Update comment. Don't call gettext here.
7040 (sorry): Use report_diagnostic. Don't call gettext here.
7041 (fatal_error): Remove final fnotice and exit, but call
7042 real_abort to prevent warnings about noreturn function returning.
7043 (internal_error): Likewise. Don't do ICE suppression here nor
7044 call context->internal_error.
7045 (warning_with_decl): Suppress for decls in system headers.
7046 Adjust call to diagnostic_for_decl.
7047 (pedwarn_with_decl): Likewise.
7048 (error_with_decl): Adjust call to diagnostic_for_decl.
7049 (error_recursion): Use bug_report_request.
7050
7051 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7052 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7053 diagnostic_count_diagnostic.
7054
f64f0687
JDA
70552003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7056
7057 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7058
c394cdb7
JH
7059Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
7060
212e2065 7061 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
c394cdb7
JH
7062 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7063 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
7064
70498da3
RS
70652003-05-12 Roger Sayle <roger@eyesopen.com>
7066
7067 * doc/rtl.texi: Document zero_extract as a valid destination
7068 of a set insn.
7069
ce250a20
RE
70702003-05-12 Richard Earnshaw <rearnsha@arm.com>
7071
7072 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7073 '.'. Change all local symbol definitions and references to use LSYM.
7074
58e15542
JH
7075Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
7076
7077 * expr.h (assemble_static_space): Update prototype.
7078 * output.h (assemble_zeros, output_constant): Likewise.
7079 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7080 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7081 it 64bit clean.
7082 * elf.h (ASM_OTUPUT_SKIP): Likewise.
7083 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7084 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7085 Expect HOST_WIDE_INT operand.
7086 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7087 Expect HOST_WIDE_INT operand.
7088 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7089 Expect HOST_WIDE_INT operand.
7090 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7091 HOST_WIDE_INT operand.
7092 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7093 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7094 * aout.h (ASM_OTUPUT_SKIP): Likewise.
7095 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7096 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7097 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7098 * frv.h (ASM_OTUPUT_SKIP): Likewise.
7099 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7100 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7101 Make it 64bit
7102 clean.
7103 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7104 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7105 Make it 64bit clean.
7106 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7107 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7108 HOST_WIDE_INT operand
7109 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7110 Expect HOST_WIDE_INT operand
7111 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7112 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7113 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7114 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7115 Likewise.
7116 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7117 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7118 Likewise.
7119 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7120 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7121 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7122 ASM_OUTPUT_SKIP): Likewise.
7123 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7124 Likewise.
7125 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7126 ASM_OUTPUT_SKIP): Likewise.
7127 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7128 ASM_OUTPUT_SKIP): Likewise.
7129 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7130 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7131 ASM_OUTPUT_SKIP): Likewise.
7132 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7133 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7134 ASM_OUTPUT_SKIP): Likewise.
7135 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7136 Likewise.
7137 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7138 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7139 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7140 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7141 ASM_OUTPUT_SKIP): Make it 64bit clean.
7142 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7143 Make it 64bit clean.
7144 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7145 ASM_OUTPUT_SKIP): Make it 64bit clean.
7146 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7147 64bit clean.
7148 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7149 HOST_WIDE_INT argument
7150 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7151 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7152 HOST_WIDE_INT argument
7153 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7154 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7155 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7156 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7157 HOST_WIDE_INT argument
7158 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7159 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7160 * varasm.c (asm_output_bss, asm_output_aligned_bss,
7161 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7162 HOST_WIDE_INT argument
7163
9804f5fb 71642003-05-10 Steven Bosscher <steven@gcc.gnu.org>
7660e67e
SB
7165
7166 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7167 favor of walk_tree_without_duplicates. Add comments.
7168
76abd4c6
JZ
71692003-05-12 Josef Zlomek <zlomekj@suse.cz>
7170
7171 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
9804f5fb 7172 (struct alloc_pool_def): New element 'id'.
76abd4c6
JZ
7173 * alloc-pool.c (fancy_abort): Extern function prototype.
7174 (abort): Macro which uses fancy_abort.
7175 (struct allocation_object_def): New structure.
7176 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7177 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7178 (last_id): New variable.
7179 (create_alloc_pool): Add the offset of u.data to size of element,
7180 increase and use last_id.
7181 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7182 (pool_alloc): Likewise. Set ID for elements.
7183 (pool_free): Check whether the PTR was allocated from POOL.
7184
66ea6f4c
RH
71852003-05-11 Richard Henderson <rth@redhat.com>
7186
7187 PR c/10675
7188 * c-decl.c: Include hashtab.h.
7189 (detect_field_duplicates): New.
7190 (finish_struct): Use it.
7191 * Makefile.in (c-decl.o): Update.
7192 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7193 (component_decl_list, component_decl_list2,
7194 components, components_notype): Build list in reverse order.
7195 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
7196
9804f5fb 7197 * tree.c (chainon): Special case op2 null as well.
66ea6f4c
RH
7198 Reorg for clarity.
7199
358997e2
RS
72002003-05-11 Roger Sayle <roger@eyesopen.com>
7201
7202 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7203 to implement log, logf and logl built-ins as inline x87 intrinsics.
7204 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7205 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7206 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7207
7208 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7209 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7210
ffa916ba
KG
72112003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7212
9804f5fb 7213 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
04f3680d 7214
ffa916ba
KG
7215 * sparc.c (print_operand): Fix uninitialized warning.
7216
91f4cfe3
ZD
72172003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7218
7219 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7220 real insns.
7221 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7222 condition.
7223
ac38d8da
NB
72242003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7225
7226 * doc/cpp.texi: Fix typos.
7227
82b1c974
UW
72282003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7229
7230 * config/s390/s390.c (s390_function_arg_float): New function.
7231 (s390_function_arg_pass_by_reference): Use it.
7232 (s390_function_arg_advance): Likewise.
7233 (s390_function_arg): Likewise.
7234 (s390_va_arg): Likewise
7235
6d70e6be
NS
72362003-05-11 Nathan Sidwell <nathan@codesourcery.com>
7237
7238 * coverage.h (coverage_counter_alloc): New function.
7239 * function.h (struct function): Remove arc_profile flag.
7240 * coverage.c (fn_ident): Remove.
7241 (fn_b_ctrs, no_coverage): New.
7242 (get_coverage_counts): Use current_function_funcdef_no.
7243 (coverage_counter_alloc): New.
7244 (coverage_counter_ref): Adjust.
7245 (coverage_begin_output): Check no_coverage. Use
7246 current_function_funcdef_no.
7247 (coverage_end_function): Likewise.
7248 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7249 than clearing flag_inline_functions. Do not clear arc_profile
7250 flag.
7251 * function.c (prepare_function_start): Do not set arc_profile
7252 flag.
7253 * profile.c (instrument_edges): Return number of instrumented
7254 edges. Use a for loop.
7255 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7256 local to here and simplify. Use profile_arc_flag not arc_profile
7257 flag.
7258 (find_spanning_tree): Reformat.
7259 * toplev.c (rest_of_compilation): Use profile_arc_flags and
7260 flag_test_coverage rather than arc_profile flag.
7261
78d0a54d
GDR
72622003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7263
7264 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7265
a71c8ddc
RK
72662003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7267
7268 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7269
6e270179 72702003-05-11 Bruno Haible <bruno@clisp.org>
9804f5fb 7271
6e270179
NB
7272 * cppfiles.c (find_or_create_entry): Preserve errno.
7273
72742003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7275
7276 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7277 cpplib as it's a Standard Predefined Macro.
7278 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7279 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
7280 __STDC_HOSTED__ appropriately.
7281 * cpplib.h (_cpp_init_builtins): Update.
7282 * fix-header.c (read_scan_file): Update.
7283 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7284
f333504d
GDR
72852003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7286
7287 PR C++/689
7288 PR C++/9257
7289 * c-opts.c (c_common_decode_option): Don't set
7290 warn_ctor_dtor_privacy wen -Wall.
7291 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7292
6e5d72ba
AO
72932003-05-10 Alexandre Oliva <aoliva@redhat.com>
7294
7295 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7296 patch.
7297
59650e48
ZW
72982003-05-10 Zack Weinberg <zack@codesourcery.com>
7299
7300 * diagnostic.c: Reorder functions for clarity, putting all the
7301 functions in the "error" family next to each other, and
7302 likewise all the functions in the "error_with_decl" family.
7303 Some other routines were moved too. Add comments.
7304 (vbuild_message_string): Fold into sole caller.
7305
7306
34dc173c
UW
73072003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7308
7309 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7310 (EH_RETURN_HANDLER_RTX): Likewise.
7311 (expand_builtin_eh_return): Do not copy stack adjustment
7312 if EH_RETURN_STACKADJ_RTX is not defined.
7313 (expand_eh_return): Likewise. Also, do not pass stack
7314 adjustment as argument to the eh_return pattern.
7315 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7316 because EH_RETURN_STACKADJ_RTX is not defined.
7317 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7318 is not defined, treat stack pointer like a regular register.
7319 (uw_init_context_1): Set up fake initial stack pointer register.
7320 (uw_install_context_1): Do not compute stack adjustment if
7321 EH_RETURN_STACKADJ_RTX is not defined.
7322
7323 * config/i386/i386.md ("eh_return"): Remove first argument.
7324 * config/mips/mips.md ("eh_return"): Likewise.
7325 * config/rs6000/rs6000.md ("eh_return"): Likewise.
7326 * config/sh/sh.md ("eh_return"): Likewise.
7327
7328 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7329
a64d0bc6
AA
73302003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
7331
7332 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7333
9b514d25
NS
73342003-05-10 Nathan Sidwell <nathan@codesourcery.com>
7335
7336 * defaults.h (GCOV_TYPE_SIZE): Remove.
7337 * gcov-io.h (gcov_type): Set to specific mode int on target.
7338 (gcov_unsigned_t, gcov_position_t): New.
7339 (GCOV_TYPE_NODE): New.
7340 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7341 (GCOV_COUNTERS_SUMMABLE): New.
7342 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7343 gcov_ctr_info, gcov_info): Adjust types.
7344 (gcov_var): Adjust types.
7345 (gcov_write_unsigned, gcov_write_tag,
7346 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7347 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7348 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7349 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7350 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7351 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7352 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7353 __gcov_init, __gcov_merge_add): Adjust gcov types.
7354 * coverage.c (ctr_merge_functions): Constify.
7355 (ctr_names): New.
7356 (read_counts_file): Adjust gcov types. Only summarize & merge
7357 summable counters.
7358 (coverage_counter_ref): Use GCOV_TYPE_NODE.
7359 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7360 build_ctr_info_value, build_gcov_info): Adjust types.
7361 * profile.c (branch_prob): Adjust gcov types.
7362 * gcov_dump (dump_file): Adjust gcov types.
7363
03f1640c
RE
73642003-05-10 Richard Earnshaw <rearnsha@arm.com>
7365
59650e48 7366 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
03f1640c
RE
7367 constants.
7368 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
59650e48 7369 * arm.c (arm_select_dominance_cc_mode): Renamed from
03f1640c
RE
7370 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
7371 Callers updated.
7372 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7373
3ee10665
RS
73742003-05-09 Roger Sayle <roger@eyesopen.com>
7375
7376 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
7377 as unsigned to avoid signed/unsigned comparison warnings.
7378
0bd0703d
BW
73792003-05-09 Bob Wilson <bob.wilson@acm.org>
7380
7381 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
7382 instruction if the Xtensa density option is enabled.
7383
1476c9d9
MK
73842003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
7385
7386 * mklibgcc.in: Remove extra quotes.
7387
36e8d515
MM
73882003-05-09 Mark Mitchell <mark@codesourcery.com>
7389
7390 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
7391 of int_ftype_void.
7392
f8a30250
AO
73932003-05-09 Alexandre Oliva <aoliva@redhat.com>
7394
7395 * reload1.c (reload_cse_move2add): Don't turn an implicit
7396 truncation into a self-set in the narrow mode.
7397
e912eadf
RE
73982003-05-09 Richard Earnshaw <rearnsha@arm.com>
7399
7400 * arm.md (clzsi2): The CLZ instruction is predicable.
7401
638db43e
BW
74022003-05-09 Bob Wilson <bob.wilson@acm.org>
7403
7404 * config/xtensa/xtensa.c: Formatting.
7405
5675294b
DN
74062003-05-09 Diego Novillo <dnovillo@redhat.com>
7407
7408 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
7409 instead of TREE_OPERAND to access the operand of a
7410 CONSTRUCTOR node.
7411
ec0f4995
DN
74122003-05-09 Diego Novillo <dnovillo@redhat.com>
7413
7414 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
7415 one operand.
7416
3c4b6438
GDR
74172003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7418
7419 * toplev.h (warning_with_file_and_line): Don't declare.
7420 (error_with_file_and_line): Likewise.
7421 * diagnostic.c (error_with_file_and_line): Remove.
7422 (warning_with_file_and_line): Likewise.
7423
49468c8b
GDR
74242003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7425
7426 * c-parse.in (if_stmt_locus): New object.
7427 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
7428 (select_or_iter_stmt rule): Likewise.
7429 (if_stmt_file): Remove.
7430 (if_stmt_line): Likewise.
7431 * jump.c: include "diagnostic.h"
59650e48 7432 (never_reached_warning): Don't use warning_with_file_and_line.
49468c8b
GDR
7433 * Makefile.in (jump.o): Add dependce on diagnostic.h
7434
c6b97fac
AM
74352003-05-09 Alan Modra <amodra@bigpond.net.au>
7436
7437 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
7438 Move code handling pieces not larger than a word to..
7439 * function.c (assign_parms): ..here, but use change_address instead
7440 of adjust_address and operand_subword, and expand_binop instead of
7441 expand_shift. Adjust calls to move_block_from_reg.
7442 * expr.h (move_block_from_reg): Update declaration.
7443 (copy_blkmode_from_reg): Formatting.
7444 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
7445 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
7446 move_block_from_reg calls.
7447 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7448 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7449 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7450 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
7451 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7452 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7453 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
7454 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7455 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
7456
06d22853
DD
74572003-05-08 DJ Delorie <dj@redhat.com>
7458
7459 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
7460 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
7461 variable-sized types).
7462 (xstormy16_function_arg): New. Pass them that way too.
7463 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
7464 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
7465
d0affb9f
AH
74662003-05-08 Aldy Hernandez <aldyh@redhat.com>
7467
59650e48
ZW
7468 * mklibgcc.in: Use mkinstalldirs when installing multilib
7469 directories.
d0affb9f 7470
ddf8ec7e
R
74712003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
7472
7473 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
7474 instead of CODE_FOR_jump
7475
67f7893c
GDR
74762003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
7477
7478 * objc/objc-act.c (error_with_ivar): Don't use
59650e48 7479 error_with_file_and_line.
67f7893c
GDR
7480 (warn_with_method): Don't use warning_with_file_and_line.
7481
c8608cd6
GDR
74822003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
7483
7484 * stmt.c (emit_locus): New macro.
7485 (emit_filename): Remove.
7486 (emit_lineno): Likewise.
7487 (struct stmt_status): Replace members x_emit_filename and
7488 x_emit_lineno with x_emit_locus.
7489 (set_file_and_line_for_stmt): Adjust.
67f7893c 7490 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
c8608cd6
GDR
7491 (warn_if_unused_value): Likewise.
7492 (check_seenlabel): Likewise.
7493
95035b6f
GDR
74942003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
7495
7496 * c-decl.c (define_label): Tidy. Don't use any of
7497 error_with_file_and_line or warning_with_file_and_file.
7498 (pending_xref_error): Likewise.
7499 (store_parm_decls): Likewise.
7500 (current_function_prototype_locus): New object. Package from
7501 current_function_prototype_file and current_function_prototype_line.
7502 (start_function): Use it.
7503 (current_function_prototype_file): Remove.
7504 (current_function_prototype_line): Remove;
7505
7dc61d6c
KG
75062003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7507
7508 * builtins.c (readonly_data_expr): New function.
7509 (expand_builtin_memmove): Optimize any rodata source, not just
7510 strings.
7511
044075ac
DM
75122003-05-07 David Mosberger <davidm@hpl.hp.com>
7513
59650e48 7514 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
044075ac 7515
8231b3f9
RH
75162003-05-07 Richard Henderson <rth@redhat.com>
7517
7518 * config/i386/i386.c (ix86_split_long_move): Fix base register
7519 mode for XFmode splits for TARGET_64BIT.
7520
0212907f
RH
75212003-05-07 Richard Henderson <rth@redhat.com>
7522
7523 * sched-ebb.c (schedule_ebb): Supply the correct starting
7524 block number to save_line_notes.
7525
c079e6fe
RH
75262003-05-07 Richard Henderson <rth@redhat.com>
7527
7528 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
7529 (dump_file): Likewise.
7530
c35b64c2
DM
75312003-05-07 David Mosberger <davidm@hpl.hp.com>
7532
59650e48 7533 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
c35b64c2 7534 forget to preserve gp.
59650e48
ZW
7535 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
7536
7537 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
7538 .prologue directive.
7539 Use .skip instead of data8 for .bss section to make Intel
7540 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
7541 explicit in the .mib bundles and remove the unnecessary stop
7542 bits. Replace local labels with normal labels, to make ias
7543 happy. Don't register __do_global_ctors_aux here, do it in
7544 crtend.asm instead.
7545
7546 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
7547 __do_global_ctors_aux in .init_array section instead of
7548 declaring it as a hidden global. Replace local labels with
7549 ordinary labels to make ias happy.
c35b64c2 7550
a944ceb9
RH
75512003-05-07 Richard Henderson <rth@redhat.com>
7552
59650e48
ZW
7553 PR c++/10570
7554 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
7555 * flags.h, toplev.c, doc/invoke.texi: Likewise.
a944ceb9 7556
59650e48
ZW
7557 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
7558 * unwind.inc (_Unwind_DeleteException): Check for null
7559 exception_cleanup.
a944ceb9 7560
59650e48
ZW
7561 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
7562 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
7563 * unwind.h: Declare them.
7564 * libgcc-std.ver (GCC_3.3): Export them.
a944ceb9 7565
9330e977
RH
75662003-05-07 Richard Henderson <rth@redhat.com>
7567
a21d83cd 7568 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
9330e977
RH
7569 not _Unwind_Word.
7570
046e4e36
ZW
75712003-05-07 Zack Weinberg <zack@codesourcery.com>
7572
7573 * stmt.c (force_label_rtx): New function, based on logic
7574 formerly found in expand_expr.
7575 * expr.h: Prototype it.
7576 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
7577 appropriate.
7578 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
7579
7580 * print-tree.c (debug_tree): Free the table after we're done
7581 with it. Use putc.
7582
12850cf2
AH
75832003-05-07 Aldy Hernandez <aldyh@redhat.com>
7584
046e4e36
ZW
7585 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
7586 Unreverse arguments for __ev_subw.
12850cf2 7587
046e4e36 7588 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
12850cf2 7589
54350d48
NC
75902003-05-07 Nick Clifton <nickc@redhat.com>
7591
7592 * config/stormy16/stormy-abi: Update to include
7593 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
7594 R_XSTORMY16_12 relocs.
7595
ffea5d1e
AM
75962003-05-07 Alan Modra <amodra@bigpond.net.au>
7597
7598 * function.c (assign_parms): Correct reversed reg_parm_stack_space
7599 test. Add partial in-regs size to stack_args_size.
7600
da635858
GP
76012003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7602
7603 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
7604 as a C only option.
7605
474f141e
NS
76062003-05-07 Nathan Sidwell <nathan@codesourcery.com>
7607
7608 * gcov-io.h (GCOV_LOCKED): New #define.
7609 (GCOV_LINKAGE): Make sure it is #defined.
7610 (gcov_write_string, gcov_write_tag, gcov_write_length,
7611 gcov_read_string, gcov_time): Poison in libgcov.
7612 (gcov_seek_end): Remove.
7613 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
7614 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
7615 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
7616 GCOV_TAG_SUMMARY_LENGTH): New #defines.
7617 (gcov_write_tag, gcov_write_length): Not in libgcov.
7618 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
7619 (gcov_write_tag, gcov_write_length): Not in libgcov.
7620 (gcov_write_tag_length): New.
7621 (gcov_write_summary): Use gcov_write_tag_length.
7622 * libgcov.c: Always #include gcov-io.h.
7623 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
7624 (GCOV_LINKAGE): Define to nothing for L_gcov.
7625 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
7626 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
7627 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
7628 (read_count_file): Likewise.
7629 * gcov-dump.c (dump_file): Likewise.
7630 * coverag.c (read_counts_file): Likewise.
7631
6cbeaa7e
MM
76322003-05-06 Mark Mitchell <mark@codesourcery.com>
7633
7634 PR other/10658
7635 * gcc.c (process_command): Update copyright date.
7636
26979a17
PE
76372003-05-06 Phil Edwards <pme@gcc.gnu.org>
7638
7639 * doc/install.texi (mips-*-*): Add note about libstdc++.
7640
14b56832
DD
76412003-05-06 DJ Delorie <dj@redhat.com>
7642
7643 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
7644 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
7645 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
7646
2c2bc09b
NB
76472003-05-06 <neil@cat.daikokuya.co.uk>
7648
7649 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
7650 and -Wstrict-prototypes if C++.
7651
2f3f95e9
AH
76522003-05-06 Aldy Hernandez <aldyh@redhat.com>
7653
046e4e36 7654 * config/rs6000/linuxspe.h: New file.
2f3f95e9 7655
046e4e36 7656 * config.gcc: Add powerpc-*-linux-gnuspe* target.
2f3f95e9 7657
8b689196
RH
76582003-05-06 Richard Henderson <rth@redhat.com>
7659
046e4e36 7660 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8b689196
RH
7661 previous frame didn't save sp. Clear sp for next frame.
7662 (uw_install_context_1): Honor saved sp from frame.
7663
5b0f0db6
RS
76642003-05-06 Richard Sandiford <rsandifo@redhat.com>
7665
7666 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
7667 (mips_move_1word, mips_move_2words): Remove declaration.
7668 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
7669 (mips_restore_gp): Remove insn argument.
7670 * config/mips/mips.h (FP_REG_RTX_P): New macro.
7671 * config/mips/mips.c (volatile_buffer): Remove.
7672 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
7673 (mips_move_1word, mips_move_2words): Remove, replacing with...
7674 (mips_output_move): ...this new function.
7675 (mips_restore_gp): Remove insn argument. Adjust for above changes.
7676 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
7677 handling of floating-point constants. Handle zero CONST_DOUBLE
7678 arguments.
7679 (mips_annotate_frame_insn): Replace with...
7680 (mips_set_frame_expr): ...this, which just takes one argument.
7681 (mips_frame_set): Change the register argument to an rtx.
7682 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
7683 check whether moves should be split. Use mips_split_64bit_move
7684 to split them. Use mips_subword to generate the high and low
7685 parts of a paired FPR. Adjust calls to frame_set and
7686 mips_set_frame_expr.
7687 (mips_expand_prologue): Simplify due to above changes.
7688 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
7689 targets, replacing xisting register-only versions.
7690 (UNSPEC_STORE_DF_HIGH): New unspec.
7691 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
7692 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
7693 (*paradoxical_extendhidi2): Remove.
7694 (movdi_internal, movdi_internal2): Use mips_output_move.
7695 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
7696 (movsf_internal1, movsf_internal2): Likewise.
7697 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
7698 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
7699 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
7700 Add m <- G alternative.
7701 (load_df_low, load_df_high, store_df_low): New patterns.
7702 (movhi_internal): Use @ template instead of calling a function.
7703 Remove unnecessary 'z' alternatives.
7704 (movqi_internal): Likewise.
7705 (exception_receiver): Update call to mips_restore_gp.
7706
e8b84d3d
RS
77072003-05-06 Richard Sandiford <rsandifo@redhat.com>
7708
7709 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
7710 (mips_delegitimize_address): Declare.
7711 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
7712 (FIND_BASE_TERM): Define.
7713 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7714 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
7715 Handle small-data addresses.
7716
e82a312b
RS
77172003-05-05 Roger Sayle <roger@eyesopen.com>
7718
7719 * real.c (real_powi): New function to calculate the value of
7720 a real raised to an integer power, i.e. pow(x,n) for int n.
7721 (real_sqrt): Convert to using the faster do_add, do_multiply
7722 and do_divide API for consistency with the rest of real.c.
7723 * real.h (real_powi): Prototype here.
7724 * builtins.c (fold_builtin): Avoid local variable mode when
7725 evaluating sqrt at compile time. Attempt to evaluate pow at
7726 compile-time, by checking for an integral exponent.
7727
905e8651
RH
77282003-05-05 Richard Henderson <rth@redhat.com>
7729
7730 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
7731
88467101
DB
77322003-05-05 David O'Brien <obrien@FreeBSD.org>
7733
7734 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
7735 other FreeBSD ports.
7736 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
cb1f476f 7737 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
88467101 7738
6ccfe27c
JJ
77392003-05-05 Janis Johnson <janis187@us.ibm.com>
7740
7741 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
7742 expanded variables.
7743 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
7744
10b6a274
ZW
77452003-05-05 Zack Weinberg <zack@codesourcery.com>
7746
7747 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
7748 * varasm.c (struct varasm_status): Add deferred_constants field.
7749 (n_deferred_strings): Delete variable.
7750 (n_deferred_constants): New #define.
7751 (struct constant_descriptor_tree): Kill next and label fields.
7752 (const_hash_table, MAX_HASH_TABLE): Delete.
7753 (const_desc_htab): New static variable.
7754 (const_hash): Rename const_desc_hash, and make it fit the
7755 hashtab.h interface.
7756 (const_desc_eq): New.
7757 (const_hash_1, compare_constant): Const-ify arguments.
7758 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
7759 SYMBOL_REFs. Clarify comments. Don't set desc->label.
7760 (output_constant_def): Do the lookup/insert using the
7761 hashtab.h interface. Don't muck with n_deferred_constants or
7762 DEFERRED_CONSTANT_P here.
7763 Always call maybe_output_constant_def_contents.
7764 (maybe_output_constant_def_contents): Take a pointer to the
7765 descriptor, not the EXP and RTL separately. Return
7766 immediately if this constant is not deferred. Defer output of
7767 everything, except writable string constants. Update
7768 n_deferred_constants here.
7769 (output_constant_def_contents): Now takes just one argument,
7770 an rtx. Clear DEFERRED_CONSTANT_P here.
7771 (mark_constant_pool): Update for rename of n_deferred_strings.
7772 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
7773
7774 (init_varasm_status): Clear p->deferred_constants.
7775 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
7776
68ef8841
KG
77772003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7778
7779 * builtins.c (expand_builtin_stpcpy): Only expand when the length
7780 of the source string can be evaluated at compile-time.
7781
9938b5d9
AH
77822003-05-05 Aldy Hernandez <aldyh@redhat.com>
7783
10b6a274 7784 * testsuite/gcc.c-torture/compile/simd-6.c: New.
9938b5d9 7785
10b6a274 7786 * c-typeck.c (digest_init): Handle arrays of vector constants.
9938b5d9 7787
e3e9f108
JJ
77882003-05-05 Jakub Jelinek <jakub@redhat.com>
7789
7790 * builtins.c (expand_builtin_mempcpy): New function.
7791 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
7792 ignored into strcpy no matter what arguments it has.
7793 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
7794 expand_builtin_mempcpy.
7795
6035d635
AH
77962003-05-05 Aldy Hernandez <aldyh@redhat.com>
7797
10b6a274 7798 * testsuite/gcc.dg/20030505.c: New.
6035d635 7799
10b6a274
ZW
7800 * c-typeck.c (convert_for_assignment): Opaque pointers can
7801 interconvert.
6035d635 7802
10b6a274
ZW
7803 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
7804 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
7805 (spe_init_builtins): Rename all pv2si_type_node to
7806 opaque_p_V2SI_type_node.
7807 Remove declaration of pv2si_type_node.
7808 (is_ev64_opaque_type): Accept opaque pointers.
6035d635 7809
36b29d7d
GK
78102003-05-05 Geoffrey Keating <geoffk@apple.com>
7811
bc9ec0e0
GK
7812 * config/rs6000/rs6000.c (validate_condition_mode): Use
7813 flag_finite_math_only.
7814 (rs6000_reverse_condition): Never return UNKNOWN; use
7815 flag_finite_math_only.
7816 (rs6000_generate_compare): Use flag_finite_math_only.
7817 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
7818 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
10b6a274 7819 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
bc9ec0e0 7820
36b29d7d
GK
7821 * toplev.c (check_global_declarations): Suppress not-used warning
7822 for volatile variables.
7823
9e5f281f
OH
78242003-05-05 Olivier Hainque <hainque@act-europe.fr>
7825
10b6a274
ZW
7826 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
7827 usage of bitfield instructions for mode1 != BLKmode, only ignoring
7828 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
7829 (store_field): Likewise.
9e5f281f 7830
f5119d10
AH
78312003-05-05 Aldy Hernandez <aldyh@redhat.com>
7832
10b6a274
ZW
7833 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
7834 evsubifw to builtins accepting 5-bit unsigned constants.
7835 (easy_vector_constant): Return if V1DImode. Fix typo.
f5119d10 7836
25ecd459
AH
78372003-05-05 Aldy Hernandez <aldyh@redhat.com>
7838
10b6a274 7839 * config/rs6000/spe.h: Revert licensing change from last patch.
25ecd459 7840
9be13211
DD
78412003-05-05 DJ Delorie <dj@redhat.com>
7842
7843 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
7844 before reload, but defer the split until after.
7845 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
7846 to match.
7847
2c9d95ef
DE
78482003-05-05 David Edelsohn <edelsohn@gnu.org>
7849
7850 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
7851 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
7852
1e77e673
ZD
78532003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7854
7855 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
10b6a274 7856 is defined.
1e77e673 7857
00362064
KG
78582003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7859
7860 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
7861 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
7862 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
7863
7864 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
7865 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
7866 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
7867 New.
7868
7869 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
7870 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
7871
7872 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
7873 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
7874 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
7875 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
7876 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
7877 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
7878 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
7879 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
7880 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
7881 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
7882 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
7883 BUILT_IN_STRDUP): Add "nonnull" attribute.
7884
ad26fb41
RK
78852003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7886
c1853da7
RK
7887 * expr.c (store_field): Don't clobber TEMP in shift: it might be
7888 a variable.
7889 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
7890 whose purpose is to step up the alignment.
7891 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
7892
ad26fb41
RK
7893 * stor-layout.c (compute_record_mode): Relax restriction
7894 on fields crossing word boundaries forcing BLKmode.
7895
1fecc266
NB
78962003-05-04 Neil Booth <neil@daikokuya.co.uk>
7897
7898 * cppinit.c (cpp_create_reader, post_options): Warn about
7899 trigraphs unless explicity set or -trigraphs.
7900 * cpplex.c (warn_in_comment): New.
7901 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
7902 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
7903 * doc/cppopts.texi, doc/cpp.texi: Update.
7904
09780dfb
ZD
79052003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7906
7907 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
7908 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
7909 namespace clash.
7910 (GCOV_MERGE_FUNCTIONS): New.
7911 (gcov_merge_fn): Declare.
7912 (struct gcov_ctr_info): New field "merge".
7913 (__gcov_merge_add): Declare.
7914 * coverage.c (ctr_merge_functions): New.
7915 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
7916 of gcov_ctr_info type.
7917 * libgcov.c (__gcov_merge_add): New.
7918 (gcov_exit): Call a hook to merge values of counters.
7919
c71f2ffd
GDR
79202003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7921
7922 * toplev.h (pedwarn_with_file_and_line): Don't declare.
7923 * diagnostic.c (pedwarn_with_file_and_line): Remove.
7924
3d885683
GDR
79252003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7926
7927 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
7928
8c9b38d7
KG
79292003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7930
7931 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
7932 expand_builtin_frame_address): Update prototypes.
7933 (expand_builtin_constant_p, expand_builtin_strlen,
7934 expand_builtin_strcpy, expand_builtin_memset,
7935 expand_builtin_bzero, expand_builtin_args_info,
7936 expand_builtin_frame_address): Pass in just the argument(s)
7937 needed, not the entire expression `exp'.
7938 (expand_builtin): Update all calls to these functions.
7939
9c80ff25
RH
79402003-05-03 Richard Henderson <rth@redhat.com>
7941
7942 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
7943 <BUILT_IN_DWARF_SP_COLUMN>: New.
7944 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
7945 (BUILT_IN_DWARF_SP_COLUMN): New.
7946 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
7947 (expand_builtin_dwarf_sp_column): New.
7948 * except.h: Update to match.
7949 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
7950 (execute_cfa_program): Record location expression address
7951 before extracting length.
7952 (uw_update_context_1): Install old CFA into stack pointer column.
7953 (uw_init_context_1): Set cfa_reg to stack pointer column.
7954
4d588c14
RH
79552003-05-03 Richard Henderson <rth@redhat.com>
7956
7957 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
7958 return bool.
7959 (toc_relative_expr_p): Likewise.
7960 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
7961 (legitimate_constant_pool_address_p): Move from rs6000.h, change
7962 into a function, downcase all users.
7963 (legitimate_small_data_p): Likewise.
7964 (legitimate_offset_address_p): Likewise.
7965 (legitimate_indexed_address_p): Likewise.
7966 (legitimate_indirect_address_p): Likewise.
7967 (legitimate_lo_sum_address_p): Likewise.
7968 (rs6000_mode_dependent_address): Likewise.
7969 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
7970 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
7971 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
7972 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
7973 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
7974 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
7975 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
7976 * config/rs6000/rs6000-protos.h: Update.
7977
8d90f9c0
GK
79782003-05-03 Geoffrey Keating <geoffk@apple.com>
7979
b39358e1
GK
7980 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
7981 (REVERSE_CONDITION): Define.
7982
b7053a3f
GK
7983 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
7984 to branch_positive_comparison_operator.
7985 (ccr_bit): Check that sCOND conditions are actually a positive bit.
7986 (print_operand): Remove %D substitution.
7987 (rs6000_emit_sCOND): Generate complement operation to ensure that
7988 sCOND input is a positive bit.
7989 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
7990 same order as bCOND, and add the missing ones. Remove the %D
7991 substitutions from the scc patterns.
7992
8d90f9c0
GK
7993 * simplify-rtx.c (simplify_relational_operation): Add case for
7994 ! (fabs(x) < 0.0).
7995
8882ac3a
BK
79962003-05-03 Bruce Korb <bkorb@gnu.org>
7997
7998 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
7999 in fixincl.x
8000 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8001
bd879e9a
AH
80022003-05-03 Aldy Hernandez <aldyh@redhat.com>
8003
4d588c14 8004 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
bd879e9a 8005
87f85ea0
ZW
80062003-05-03 Zack Weinberg <zack@codesourcery.com>
8007
8008 PR c/10604
8009 * c-common.c (warn_sign_compare): Initialize to -1.
8010 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8011 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8012 for C++ only.
8013 (c_common_post_options): Set warn_sign_compare from extra_warnings
8014 if it's still -1 at this point.
8015
8016 * toplev.c (maybe_warn_unused_parameter): New static variable.
8017 (set_Wextra): New static function.
8018 (W_options): Remove "extra".
8019 (decode_W_option): Call set_Wextra.
8020 (independent_decode_option): Likewise.
8021 (set_Wunused): Cooperate with set_Wextra in setting
8022 warn_unused_parameter.
8023 (rest_of_compilation): No need to check extra_warnings as
8024 well as warn_uninitialized.
8025
8026 * c-typeck.c (build_binary_op, build_conditional_expr):
8027 No need to check extra_warnings as well as warn_sign_compare.
8028 (internal_build_compound_expr): No need to check extra_warnings
8029 as well as warn_unused_value.
8030 * function.c (expand_function_end): No need to check extra_warnings
8031 as well as warn_unused_parameter.
8032 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8033 as well as warn_unused_value.
8034
8035 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8036
8037 * Makefile.in: Disable -Werror for gengtype-lex.o.
8038
ee960939
OH
80392003-05-03 Olivier Hainque <hainque@act-europe.fr>
8040
8041 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8042 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8043 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8044 * calls.c (emit_call_1): Likewise.
87f85ea0 8045 (expand_call): For calls initializing constant memory, replace
ee960939
OH
8046 emission of standalone mem /u clobber with function usage entry.
8047 * expr.c (emit_block_move_via_libcall): Likewise.
8048 * cse.c (count_reg_usage, case EXPR_LIST): New case.
8049 * flow.c (propagate_one_insn): Pass entire operand of
8050 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8051 * integrate.c (try_constants): For CALL_INSNs, substitute constants
8052 within the FUNCTION_USAGE also.
8053 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8054 FUNCTION_USAGE lists.
8055 * reload1.c (replace_pseudos_in): Renamed.
8056 (reload): Use it for clobbers surviving until the end of the reload.
8057
3923e410
RK
80582003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8059
13cf99ec
RK
8060 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8061 gen_lowpart on non-integer modes.
8062
3923e410
RK
8063 * stor-layout.c (place_field): When adjusting offset_align, use
8064 desired_align, not DECL_ALIGN.
8065
070588f0
NS
80662003-05-03 Nathan Sidwell <nathan@codesourcery.com>
8067
8068 * c-decl.c (pending_invalid_xref_file): Remove.
8069 (pending_invalid_xref_line): Remove.
8070 (pending_invalid_xref_location): New.
8071 (lookup_label): Use location_t and input_location directly.
8072 (lookup_tag): Likewise.
8073 (pending_xref_error): Likewise.
8074 (c_expand_body_1): Likewise.
8075 * c-common.c (x_expand_start_cond): Likewise.
8076 * c-semantics.c (genrtl_for_stmt): Likewise.
8077 (find_reachable_label): Likewise.
8078 * expr.c (expand_expr): Likewise.
8079 * integrate.c (output_inline_function): Likewise.
8080 * tree-inline.c (find_alloca_call): Likewise.
8081 (find_builtin_longjmp_call): Likewise.
8082 * gcc.c (input_filename): Make static.
87f85ea0 8083
b259a9a6
RS
80842003-05-03 Richard Sandiford <rsandifo@redhat.com>
8085
969c6c43
RS
8086 * config/mips/mips.md: Fix comment typo.
8087
b259a9a6
RS
8088 * config/mips/mips.c (mips_integer_op): New structure.
8089 (MIPS_MAX_INTEGER_OPS): Define.
8090 (mips_const_insns): Use mips_build_integer to determine the number
8091 of instructions needed to load a CONST_INT.
8092 (move_operand): Reject compound CONST_INTs.
8093 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8094 (mips_move_integer): New fn.
8095 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8096 (mips_legitimize_move): Only legitimize constants when moving
8097 word or subword values.
8098
28068c2c
MK
80992003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
8100
8101 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8102
685828f7
KG
81032003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8104
8105 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8106 modifying it.
8107
d9e95c63
FH
81082003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8109 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8110
8111 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8112 Hernandez, and Kazu Hirata. Update Richard Henderson.
8113
7454096f
GK
81142003-05-02 Geoffrey Keating <geoffk@apple.com>
8115
b86fe7b4
GK
8116 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8117 to tentative declaration.
87f85ea0 8118
20bfcd69
GK
8119 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8120 (SYMBOL_FLAG_SMALL_V4): Delete.
8121 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8122 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8123 (rs6000_elf_in_small_data_p): Add extra section names. Add
8124 comment about TREE_PUBLIC test.
8125
7454096f
GK
8126 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8127 expand_stmt on result of expand_unreachable_stmt.
8128
3f4a3170
GP
81292003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8130
8131 * doc/contrib.texi (Contributors): Add Daniel Berlin.
8132
473f51b6
DE
81332003-05-02 David Edelsohn <edelsohn@gnu.org>
8134
8135 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8136 number of automata.
8137
8138 * config/rs6000/rs6000.c (symbol_ref_operand): Check
8139 SYMBOL_REF_FUNCTION_P on AIX.
8140 (current_file_function_operand): Same.
8141 * config/rs6000/rs6000.md (call,call_value): Force non-function
8142 symbol_ref into register on AIX.
8143
e7949876
AM
81442003-05-02 Alan Modra <amodra@bigpond.net.au>
8145
8146 * calls.c (struct arg_data): Move offset, slot_offset, size and
8147 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
8148 (initialize_argument_information): Adjust call to locate_and_pad_parm.
8149 Delete alignment_pad var. Don't calculate slot_offset here.
8150 (emit_library_call_value_1): Delete alignment_pad, offset and size
8151 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
8152 Adjust call to locate_and_pad_parm. Don't tweak arg size for
8153 partial in-regs here. Formatting fixes.
8154 * expr.h (struct locate_and_pad_arg_data): New struct.
8155 (locate_and_pad_parm): Adjust declaration.
8156 * function.c (assign_parms): Localize vars. Use "locate" instead of
8157 other arg location vars. Don't invoke FUNCTION_ARG or
8158 FUNCTION_INCOMING_ARG unless pretend_named is different from
8159 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
8160 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
8161 Use slot_offset for stack home of reg parms. Correct test for
8162 parm passed in memory. Formatting fixes.
8163 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
8164 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
8165 Correct initial_offset_ptr handling. Localize vars. Always pad
8166 locate->offset even when in_regs.
8167
6060edcb
NS
81682003-05-02 Nathan Sidwell <nathan@codesourcery.com>
8169
8170 * Makefile.in (TREE_H): Replace location.h with input.h.
8171 (GTFILES) Remove location.h
8172 (gt-lists.h): Replace gt-location.h with gt-input.h
8173 * input.h (input_filename, input_line): Remove variables.
8174 (location_s, location_t): Move from location.h.
8175 (input_location): New.
8176 (input_filename, input_line): New #defines.
8177 * location.h: Remove.
8178 * tree.h: Replace location.h with input.h.
8179 (input_filename, input_line): Remove.
8180 * diagnostic.h: Replace location.h with input.h.
8181 * gcc.h (input_filename, input_filename_length): Remove declarations.
8182 * toplev.c (input_filename, input_line): Remove.
8183 (input_location): Define.
8184 (push_srcloc, pop_srcloc): Adjust.
8185 * diagnostic.c (diagnostic_report_current_module): Adjust.
8186
f8000836
NC
81872003-05-02 Nick Clifton <nickc@redhat.com>
8188
8189 * configure.in: Add xstormy16 to list of targets that has a nop
8190 instruction and hence which can be tested to see if the
8191 assembler supports the --gdwarf2 switch.
8192 * configure: Regenerate.
8193
409f52d3 81942003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
87f85ea0
ZW
8195
8196 PR target/8257
8197 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8198 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8199 Avoid undefined shifts by making the shift operand unsigned.
8200
57458e8a
DD
82012003-05-01 DJ Delorie <dj@redhat.com>
8202
8203 * reload.c (find_reloads): Also check that all of a multi-reg
8204 value is in the class.
8205
774cb6d1
NS
82062003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8207
8208 * scan.h (lineno): Revert the rename here.
8209
e1a4211d
SS
82102003-05-01 Stan Shebs <shebs@apple.com>
8211
8212 * config/darwin.c (darwin_encode_section_info): Call
8213 default_encode_section_info.
8214
02ca7595
DE
82152003-05-01 David Edelsohn <edelsohn@gnu.org>
8216
8217 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8218 (movsi_internal1): Use new mfjmpr attribute.
8219 (movhi_internal): Same.
8220 (movqi_internal): Same.
8221 (movcc_internal1): Same.
8222 (movdi_internal64): Same.
8223 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8224 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8225 * config/rs6000/40x.md: Add fpu_405.
8226 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8227 into power4misc automata. Remove extraneous parentheses.
8228 * config/rs6000/440.md: New file.
8229 * config/rs6000/rs6000.c (processor_target_table): Add 440,
8230 440fp. Rename 405f to 405fp.
8231 (function_arg_padding): Correct formatting.
8232 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8233
3b895f8e
NS
82342003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8235
d479d37f
NS
8236 * input.h (lineno): Rename to ...
8237 (input_line): ... here.
8238 * tree.h (lineno): Rename to ...
8239 (input_line): ... here.
8240 * scan.h (lineno): Rename to ...
8241 (input_line): ... here.
8242 * toplev.c (lineno): Rename to ...
8243 (input_line): ... here.
8244 (push_srcloc, pop_srcloc): Rename lineno to input_line.
8245 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8246 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8247 store_parm_decls, c_expand_body_1): Likewise.
8248 * c-errors.c (pedwarn_c99): Likewise.
8249 * c-format.c (status_warning): Likewise.
8250 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8251 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8252 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8253 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8254 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8255 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8256 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8257 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8258 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8259 * coverage.c (create_coverage): Likewise.
8260 * diagnostic.c (pedwarn, sorry, error, fatal_error,
8261 internal_error, warning, diagnostic_report_current_module,
8262 inform): Likewise.
8263 * expr.c (expand_expr): Likewise.
8264 * integrate.c (expand_inline_function,
8265 output_inline_function): Likewise.
8266 * rtl-error.c (file_and_line_for_asm): Likewise.
8267 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8268 walk_tree): Likewise.
8269 * tree.c (make_node): Likewise.
8270 * ada, cp, f, java, objc, treelang: Likewise.
8271 * objc/objc-act.c (objc_init): Rename lineno to input_line.
8272 (build_module_descriptor, build_selector_translation_table,
8273 build_protocol_template, build_method_prototype_list_template,
8274 build_category_template, build_selector_table,
8275 build_class_template, build_super_template, build_ivar_template,
8276 build_ivar_list_template, build_method_list_template,
8277 build_method_template, add_instance_variable): Likewise.
8278
3b895f8e
NS
8279 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8280 name from input_filename.
8281
cafe096b
EC
82822003-04-30 Eric Christopher <echristo@redhat.com>
8283 Richard Sandiford <rsandifo@redhat.com>
8284
8285 * configure: Regenerate from patches below.
8286 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8287 for all symbolic operands.
8288 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8289 to function.
8290 * config/mips/linux.h: Fix typo.
8291 * Merge from mips-3_4-rewrite branch:
8292
8293 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
8294
87f85ea0
ZW
8295 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8296 handling local labels when TARGET_ABICALLS.
cafe096b
EC
8297
8298 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
8299
87f85ea0
ZW
8300 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8301 integer argument.
8302 (mips_expand_call): Likewise.
8303 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8304 (FIXED_REGISTERS): Clear $31 entry.
8305 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8306 (EPILOGUE_USES): Define.
8307 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8308 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8309 (override_options): Add a 'j' register class.
8310 (mips_expand_call): Handle sibcalls
8311 (mips_expand_epilogue): Handle epilogues for sibcalls.
8312 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8313 (sibcall_epilogue): New pattern.
8314 (call, call_value): Adjust calls to mips_expand_call.
8315 (sibcall, sibcall_value): New expanders.
8316 (sibcall_internal, sibcall_value_internal): New patterns.
8317 (sibcall_value_multiple_internal): New pattern.
cafe096b
EC
8318
8319 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
8320
87f85ea0
ZW
8321 * config/mips/mips.md (extended_mips16): New attribute.
8322 (define_attr length): Default to 8 if extended_mips16 == yes.
8323 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8324 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8325 (call_internal): Set extended_mips16 to yes for direct jumps.
8326 Remove redundant mode attribute.
8327 (call_value_internal, call_value_multiple_internal): Likewise.
8328 (call_split): Remove redundant mode attribute.
8329 (call_value_split, call_value_multiple_split): Likewise.
cafe096b 8330
87f85ea0
ZW
8331 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
8332 of unaligned offsets.
cafe096b 8333
0d569849 8334 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
87f85ea0 8335 of SYMBOL_GENERAL.
cafe096b
EC
8336
8337 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8338
87f85ea0
ZW
8339 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8340 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8341 for mips16 code.
cafe096b
EC
8342
8343 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8344
87f85ea0 8345 * config/mips/mips.h (ADDRESS_COST): Define.
cafe096b
EC
8346
8347 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
8348
87f85ea0
ZW
8349 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8350 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
8351 * config/mips/mips.md: Replace 'R' constraints with 'U'.
cafe096b
EC
8352
8353 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
8354
87f85ea0
ZW
8355 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
8356 of a two-instruction sequence. Add register->memory alternative.
8357 (truncdihi2, truncdiqi2): Likewise.
8358 Rework shift/truncate instructions so that they only handle right
8359 shifts of 32 (or more, in the case of arithmetic shifts).
8360 Add patterns for truncate/sign-extend.
cafe096b
EC
8361
8362 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8363
87f85ea0
ZW
8364 * configure.in (mips*-*-*): Check for explicit relocation support.
8365 * configure: Regenerate.
cafe096b
EC
8366
8367 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8368
87f85ea0
ZW
8369 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8370 and -mno-explicit-relocs.
8371 (MASK_EXPLICIT_RELOCS): Define.
8372 (TARGET_EXPLICIT_RELOCS): Use it.
8373 (mips_split_addresses): Remove declaration.
8374 * config/mips/mips.c (override_options): Update comment for
8375 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
cafe096b
EC
8376
8377 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8378
87f85ea0
ZW
8379 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
8380 a CONST as identity. Check the return value of gen_lowpart_common.
cafe096b
EC
8381
8382 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8383
87f85ea0
ZW
8384 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
8385 references for TARGET_EXPLICIT_RELOCS.
8386 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
8387 !TARGET_MIPS16.
cafe096b
EC
8388
8389 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8390
87f85ea0
ZW
8391 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
8392 (addsi3): Remove redundant constraints.
8393 (addsi3_internal): Use separate register & constant alternatives.
8394 Use a 'Q' constraint and "addiu" insn for the latter.
8395 (adddi3_internal_3, addsi3_internal_2): Likewise.
cafe096b
EC
8396
8397 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8398
87f85ea0
ZW
8399 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
8400 (mips_expand_unaligned_store): Declare.
8401 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
8402 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
8403 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
8404 (UNSPEC_ULD, UNSPEC_USD): Remove.
8405 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
8406 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
8407 (extv, extzv): Use mips_expand_unaligned_load.
8408 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
8409 predicate for operand 3.
8410 (movsi_ulw, movsi_usw): Replace with...
8411 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
8412 (movdi_uld, movdi_usd): Likewise replace with...
8413 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
cafe096b
EC
8414
8415 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
8416
87f85ea0
ZW
8417 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
8418 * config/mips/mips.h (LEA_REGS): New register class.
8419 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
8420 (GR_REG_CLASS_P): Include LEA_REGS.
8421 (DANGEROUS_FOR_LA25_P): New macro.
8422 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
8423 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
8424 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
8425 entries to LEA_REGS.
8426 (mips_global_pic_constant_p): New function.
8427 (override_options): Add 'e' register constraint.
8428 (mips_secondary_reload_class): Return LEA_REGS when reloading
8429 a dangerous constant into a class containing $25.
8430 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
8431 (movsi_internal): Likewise.
cafe096b
EC
8432
8433 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8434
87f85ea0
ZW
8435 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
8436 * config/mips/mips.md (call_split): New insn.
8437 (call_value_split, call_value_multiple_split): New insns.
8438 (call_internal): Turn into a define_insn_and_split. Split the
8439 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
8440 (call_value_internal, call_value_multiple_internal): Likewise.
cafe096b
EC
8441
8442 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8443
87f85ea0
ZW
8444 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
8445 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
8446 (mips_encode_section_info): Don't take symbol visibility into
8447 account if TARGET_ABICALLS. Add more commentary.
8448 * config/mips/mips.md: Add commentary above reloc constants.
cafe096b
EC
8449
8450 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
8451
87f85ea0
ZW
8452 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
8453 from mips_legitimize_move. Legitimize constant pool references.
8454 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
8455 a REG_EQUAL note to the last instruction.
cafe096b
EC
8456
8457 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
8458
87f85ea0
ZW
8459 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
8460 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
8461 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
8462 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
8463 * config/mips/mips.md (UNSPEC_HIGH): New constant.
8464 (UNSPEC_RELOC_GPREL16): Rename to...
8465 (RELOC_GPREL16): ...this.
8466 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
8467 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
8468 (macro_calls): New attribute.
8469 (length): Use it to set the default length of calls. Don't allow
8470 calls to have delay slots if macro_calls is "yes".
8471 (luisi, luidi): New patterns.
8472 (lowsi, lowdi): Use '%R' to print the relocation.
8473 (lowdi_extend): Remove.
8474 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
8475 (call_internal): Merge alternatives. Always use "jal".
8476 (call_value_internal, call_value_multiple_internal): Likewise.
8477 (reloc_gprel16): Remove.
8478 * config/mips/mips.c (mips_got_alias_set): New variable.
8479 (mips_classify_constant): Handle the new relocation constants.
8480 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
8481 (mips_symbolic_address_p): Return false if generating explicit relocs.
8482 Otherwise allow local PIC symbols to have an offset.
8483 (mips_splittable_symbol_p): New function.
8484 (mips_classify_address): Use it to check whether a LO_SUM is valid.
8485 (mips_const_insns): Always accept HIGH.
8486 (call_insn_operand): Don't accept global symbols if using explicit
8487 relocs.
8488 (move_operand): Don't accept HIGH when generating PIC.
8489 (mips_reloc, mips_lui_reloc): New functions.
8490 (mips_force_temporary): Remove MODE argument. Expect VALUE to
8491 be a valid right-hand-side for a SET pattern.
8492 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
8493 (mips_emit_high): New function.
8494 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
8495 case. Use mips_splittable_symbol_p to check whether a LO_SUM
8496 address should be used. Use mips_emit_high to generate the
8497 high part of such an address. Adjust the global symbol + offset
8498 case to match the change to mips_force_temprorary.
8499 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
8500 If generating explicit-reloc PIC, load the address of global
8501 symbols from the GOT. Use mips_emit_high to emit the high part
8502 of an address.
8503 (mips_simplify_dwarf_addr): New function.
8504 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
8505 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
8506 (mips_expand_call): Load the addresses of global functions using
8507 %call* relocs if generating explicit-reloc PIC. Don't generate
8508 an exception_receiver pattern.
8509 (override_options): Initialize mips_got_alias_set.
6356f892 8510 (print_relocation): Remove in favor of...
87f85ea0
ZW
8511 (mips_reloc_string): ...this new function.
8512 (print_operand): Handle '%R'. Use mips_reloc_string.
8513 (print_operand_address): Use print_operand to print the symbolic
8514 part of a LO_SUM address.
8515 (mips_output_function_prologue): Use .cprestore, reverting last patch.
8516 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
8517 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
8518 for local symbols.
cafe096b
EC
8519
8520 2003-02-02 Eric Christopher <echristo@redhat.com>
8521
0d569849 8522 * config/mips/mips.c (mips_sign_extend): Remove.
87f85ea0
ZW
8523 * config/mips/mips-protos.h: Ditto.
8524 * config/mips/mips.md (movdi_internal2_extend): Remove.
8525 (extendsidi2): Fix mode of convert_memory_address.
cafe096b
EC
8526
8527 2003-01-24 Eric Christopher <echristo@redhat.com>
8528
87f85ea0
ZW
8529 * config/mips/mips.md: Rewrite zero_extend* and extend*
8530 patterns. Use explicit instructions and split after reload
8531 for register extensions.
8532 (ashlsi3_internal1_extend): New combiner pattern for
8533 shift and extend combinations.
8534 * config/mips/mips.h: Change Pmode back to ptr_mode
8535 for performance enhancement.
8536 * combine.c (expand_compound_operation): Make sure
8537 that zero_extend operation is profitable.
cafe096b
EC
8538
8539 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
8540
87f85ea0
ZW
8541 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
8542 addresses depend on ptr_mode rather than Pmode.
8543 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
8544 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
8545 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
8546 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
8547 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
8548 condition for selecting cpaddsi or cpadddi: use cpadd instead.
8549 (tablejump_internal1): Remove condition.
8550 (tablejump_internal2): Change condition to TARGET_64BIT.
8551 (cpaddsi): Rename to...
8552 (cpadd): ...this.
8553 (cpadddi): Remove.
cafe096b
EC
8554
8555 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
8556
87f85ea0
ZW
8557 * config/mips/mips-protos.h (mips16_constant_after_function_p,
8558 mips_address_cost, mips_check_split, double_memory_operand,
8559 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
8560 pic_address_needs_scratch, symbolic_operand): Remove declarations.
8561 (mips_legitimate_address_p): Return bool.
8562 (mips_address_insns, mips_fetch_insns, mips_const_insns,
8563 mips_legitimize_address, mips_legitimize_move,
8564 mips_expand_call): Declare.
8565 (mips_return_addr): Move outside #ifdef RTX_CODE.
8566
8567 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
8568 (PIC_FN_ADDR_REG): New reg_class.
8569 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
8570 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
8571 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
8572 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
8573 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
8574 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
8575 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
8576 (LEGITIMATE_PIC_OPERAND): Undefine.
8577 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
8578 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
8579 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
8580 (FUNCTION_MODE): Change to SImode.
8581 (CONST_COSTS): Use mips_const_insns to calculate the cost of
8582 most constants. Treat const_artih_operands specially if they
8583 occur in a PLUS or MINUS.
8584 (CONSTANT_POOL_COST): New macro.
8585 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
8586 Add LO_SUM handling.
8587 (ADDRESS_COST): Undefine.
8588 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
8589 Add CONST to the list of codes for arith_operand. Add LABEL_REF
8590 to call_insn_operand and remove CONST_INT.
8591
8592 * config/mips/mips.c: Include integrate.h.
8593 (SINGLE_WORD_MODE_P): New macro.
8594 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
8595 (mips_constant_info, mips_address_info): New structs.
8596 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
8597 (mips_classify_constant, mips_classify_symbol,
8598 mips_valid_base_register_p, mips_symbolic_address_p,
8599 mips_classify_address, mips_symbol_insns,
8600 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
8601 mips_fetch_insns, mips_force_temporary, mips_add_offset,
8602 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
8603 mips_print_relocation): New functions.
8604 (const_arith_operand): New operand predicate.
8605 (arith_operand): Use it.
8606 (mips_const_double_ok, mips16_simple_memory_operand,
8607 simple_memory_operand, double_memory_operand, mips_check_split,
8608 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
8609 mips16_gp_offset_p, mips16_output_gp_offset,
0d569849 8610 mips16_constant_after_function_p, mips16_constant): Remove.
87f85ea0
ZW
8611 (call_insn_operand): Be more fussy about symbolic constants.
8612 Use register_operand.
8613 (move_operand): Use mips_symbolic_address_p to check symbolic
8614 operands and general_operand to check the rest.
8615 (symbolic_operand): Use mips_classify_constant.
8616 (mips_legitimate_address_p): Use mips_classify_address.
8617 (mips_move_1word): Combine handling of symbolic addresses.
8618 Remove special treatment of gp-relative loads for TARGET_MIPS16.
8619 (move_move_2words): Likewise. Assume addresses are offsettable
8620 if they need to refer to more than one word. Add HIGH handling.
8621 (mips_restore_gp): Use ptr_mode for the GP save slot.
8622 (mips_expand_call): New function, combining the old mips.md
8623 call and call_internal define_expands. If the address isn't
8624 a call_insn_operand, force it into a register. For SVR4 PIC,
8625 emit an exception_receiver instruction after the call.
8626 (override_options): Only override flag_pic for TARGET_ABICALLS
8627 if it is currently zero. Allow mips_split_addresses when
8628 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
8629 Add new register class letter, 'c'.
8630 (print_operand): Use mips_classify_constant for constant operands.
8631 (print_operand_address): Use mips_classify_address.
8632 (mips_output_function_prologue): Don't use .cprestore.
8633 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
8634 via the frame pointer if current_function_calls_eh_return.
8635 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
8636 to mark whether a symbol is local or global.
8637 (build_mips16_call_stub): Expect the address of the function rather
8638 than a MEM reference to it. Update call generation sequences.
8639 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
8640 small-data adjustments.
8641
8642 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
8643 length for loads and stores.
8644 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
8645 (define_attr type): Add const and prefetch.
8646 (define_attr length): Use mips_const_insns for const instructions.
8647 Use mips_fetch_insns for load and store instructions.
8648 (define_attr single_insn): New.
8649 (define_attr can_delay): Use it.
8650 (define_attr abicalls): Remove.
8651 (define_delay): Use can_delay. Always allow calls to have delay slots.
8652 (addsi3_internal_2): Add 'Q' constraint.
8653 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
8654 (high): Remove.
8655 (lowsi): Renamed from low.
8656 (lowdi): New pattern.
8657 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
8658 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
8659 (loadgp): Change operand 0 to an immediate_operand.
8660 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
8661 beforehand.
8662 (cpaddsi, cpadddi): New patterns.
8663 (tablejump_internal3, tablejump_internal4): Remove define_expands
8664 and associated define_splits.
8665 (call, call_value): Use mips_expand_call.
8666 (call_internal): New, replacing all existing call_internal* insns.
8667 (call_value_internal): Likewise call_value_internal*.
8668 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
8669 (untyped_call): Remove if (operands[0]) magic.
8670 (prefetch_si_address, prefetch_si): Change type to "prefetch".
8671 (prefetch_di_address, prefetch_di): Likewise.
8672 (leasi, leadi): Remove.
8673 (reloc_gprel16): New.
8674
8675 * config/mips/5400.md (ir_vr54_hilo): Include const type.
8676 * config/mips/5500.md (ir_vr55_hilo): Likewise.
8677 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
cafe096b
EC
8678
8679 2003-01-08 Eric Christopher <echristo@redhat.com>
8680
87f85ea0
ZW
8681 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
8682 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
8683 configure check for libgloss.
8684 * config/mips/elf64.h: Ditto.
8685 * config/mips/mips.c: Remove ABI_MEABI.
8686 * config/mips/mips.h: Ditto.
cafe096b
EC
8687
8688 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
8689
87f85ea0
ZW
8690 Fix merge fallout.
8691 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
8692 (muldi3_internal): Remove outdated comment.
8693 (*muls_di, *umuls_di): Fix comment and 64-bitness.
8694 (*smsac_di, *umsac_di): Likewise. Reformat.
8695 (umulsi3_highpart): Minor formatting tweaks.
8696 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
8697 redundant scratch operand. Minor formatting tweak.
8698 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
8699 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
8700 (smulsi3_highpart): As for the unsigned version.
8701 (smulsi3_highpart_internal): Likewise.
8702 (smulsi3_highpart_mulhi_internal): Likewise.
8703 (smulsi3_highpart_neg_mulhi_internal): Likewise.
8704 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
8705 (*smul_acc_di): Remove duplicated pattern.
8706 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
8707 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
8708 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
cafe096b
EC
8709
8710 2002-10-22 Eric Christopher <echristo@redhat.com>
8711
87f85ea0
ZW
8712 * config/mips/mips-protos.h (mips_return_addr): New.
8713 * config/mips/mips.c (mips_return_addr): New.
8714 (movdi_operand): Remove.
8715 (se_register_operand): Ditto.
8716 (se_reg_or_0_operand): Ditto.
8717 (se_uns_arith_operand): Ditto.
8718 (se_arith_operand): Ditto.
8719 (se_nonmemory_operand): Ditto.
8720 (extend_operator): Ditto.
8721 (highpart_shift_operator): Ditto.
8722 (mips_initial_elimination_offset): Remove return address pointer
8723 elimination.
8724 (mips_reg_names): Remove $ra.
8725 (mips_regno_to_class): Ditto.
8726 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
8727 and TARGET_64BIT.
8728 (POINTER_BOUNDARY): Remove.
8729 (POINTERS_EXTEND_UNSIGNED): Define to 0.
8730 (PROMOTE_MODE): Promote to Pmode.
8731 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
8732 (Pmode): Define to TARGET_64BIT.
8733 (FUNCTION_MODE): Define as Pmode.
8734 (mips_args): Remove deleted functions.
8735 (SIZE_TYPE): Depend on POINTER_SIZE.
8736 (PTRDIFF_TYPE): Ditto.
8737 (FIXED_REGISTERS): Fix extra registers.
8738 (CALL_USED_REGISTERS): Ditto.
8739 (CALL_REALLY_USED_REGISTERS): Ditto.
8740 (RAP_REG_NUM): Remove.
8741 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
8742 (RETURN_ADDR_RTX): Define to mips_return_addr.
8743 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
8744 (CAN_ELIMINATE): Ditto.
8745 * config/mips/mips.md: For DImode patterns, take into account
8746 deletions above. Split mulsidi patterns into sign_extend and
8747 zero_extend.
cafe096b
EC
8748
8749 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
87f85ea0
ZW
8750 Michael Meissner <meissner@redhat.com>
8751
8752 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
8753 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
8754 mop up unnecessarly moves through LO.
8755 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
8756 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
8757 change mtlo/macc sequences into mul/add sequences when a three-
8758 address mul is available.
8759 (*macc2): New pattern. Add a define_peephole2 to generate it.
8760 (*mul_sub_si): Fix contraint for operand 5.
8761 (*muls): Use in 32-bit code as well.
8762 (*msac): Likewise. Use msub instead of msac in vr5500 code
8763 if the destination is LO. Remove duplicate define_split.
8764 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
8765 (*msac_di): Likewise. Fix formatting.
8766 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
8767 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
8768 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
8769 (*xmulsi3_neg_highpart_mulhi): Likewise.
8770 (*mul_acc_64bit_di): Remove.
8771 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
cafe096b
EC
8772
8773 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
8774
87f85ea0
ZW
8775 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
8776 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
8777 (MULTILIB_DIRNAMES): Remove long32.
8778 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
8779 (MULTILIB_REDUNDANT_DIRS): Remove.
cafe096b
EC
8780
8781 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
8782
87f85ea0
ZW
8783 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
8784 * gcc.c (driver_self_specs): New variable.
8785 (do_self_spec): New function.
8786 (main): Use it to process driver_self_specs.
cafe096b
EC
8787
8788 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
8789
87f85ea0
ZW
8790 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
8791 Remove DImode define_split for !TARGET_64BIT.
8792 (anddi3): Remove !TARGET_64BIT support from here as well.
8793 Change operand 2's predicate to se_uns_arith_operand.
8794 Add constant alternatives to define_insn.
8795 (iordi3, xordi3, *nordi3): Likewise.
8796 (anddi3_internal1, xordi3_immed): Remove.
cafe096b
EC
8797
8798 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
8799
87f85ea0
ZW
8800 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
8801 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
8802 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
8803 * config/mips/mips.md: Apply same renaming here.
cafe096b
EC
8804
8805 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
8806
87f85ea0
ZW
8807 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
8808 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
8809 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
8810 * config/mips/mips.md (define_attr cpu): Remove r4320.
8811 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
cafe096b
EC
8812
8813 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
8814
87f85ea0
ZW
8815 * config/mips/mips.c (mips16_strings): New variable.
8816 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
8817 symbol in mips16_strings. Free the list.
8818 (mips_encode_section_info): Keep track of local strings.
cafe096b
EC
8819
8820 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
8821
87f85ea0
ZW
8822 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
8823 (sordered_df, sordered_sf): Remove.
8824 * config/mips/mips.c (get_float_compare_codes): New fn.
8825 (gen_int_relational, gen_conditional_move): Use it.
cafe096b
EC
8826
8827 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
8828
87f85ea0
ZW
8829 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
8830 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
8831 * config/mips/mips.c (fcc_register_operand): New function.
8832 (mips_emit_fcc_reload): New function, extracted from reload_incc.
8833 (override_options): Allow TFmode values in float registers
8834 if ISA_HAS_8CC.
8835 * cnfig/mips/mips.md (reload_incc): Change destination prediate
8836 to fcc_register_operand. Remove misleading source constraint.
8837 Use mips_emit_fcc_reload.
0d569849 8838 (reload_outcc): Duplicate reload_incc.
cafe096b
EC
8839
8840
44c8a5f8
DN
88412003-04-30 Diego Novillo <dnovillo@redhat.com>
8842
8843 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
8844
5d638f70
GK
88452003-04-30 Geoffrey Keating <geoffk@apple.com>
8846
8847 * tree-inline.c (inlinable_function_p): Back out last change, it's
8848 unnecessary.
8849
5e26df64
SB
88502003-04-30 Steven Bosscher <steven@gcc.gnu.org>
8851
8852 * ggc-page.c (TREE_EXP_SIZE): Define.
8853 (extra_order_size_table): New entry for expr trees with
8854 two operands.
8855
fba020b1
GDR
88562003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
8857
8858 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
8859 (c_expand_start_cond): Adjust.
8860 (c_expand_end_cond): Don't use warning_with_file_and_file.
8861 (shadow_warning): Likewise.
8862
62216ea0
NS
88632003-04-30 Nathan Sidwell <nathan@codesourcery.com>
8864
8865 * tree.h (DECL_POINTER_DEPTH): Remove.
8866 (struct tree_decl): Remove pointer_depth.
cafe096b 8867
d1908feb
JJ
88682003-04-30 Janis Johnson <janis187@us.ibm.com>
8869
8870 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
8871 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
8872 (rs6000_xcoff_encode_section_info): Remove.
8873 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
8874 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
8875 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
8876 Use SYMBOL_REF_FLAGS.
8877 (rs6000_elf_encode_section_info): Call default_encode_section_info for
8878 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
8879 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
8880 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
8881 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
8882 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
8883
0e42348d
GDR
88842003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
8885
8886 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
8887
dad78426
AS
88882003-04-30 Andreas Schwab <schwab@suse.de>
8889
8890 * doc/extend.texi (Other Builtins): Enclose multiple word data
8891 type in braces for @deftypefn.
8892
4c80872c
RK
88932003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8894
5826955d
RK
8895 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
8896
4c80872c
RK
8897 * doc/install.texi (--enable-threads): Document "gnat" option.
8898
10256cf5
GDR
88992003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
8900
8901 * diagnostic.h (output_formatted_scalar): Tweak.
8902 * diagnostic.c (output_long_decimal): Likewise.
8903 (output_unsigned_decimal): Likewise.
8904 (output_long_unsigned_decimal): Likewise.
8905 (output_octal): Likewise.
8906 (output_long_octal): Likewise.
8907 (output_hexadecimal): Likewise.
8908 (output_long_hexadecimal): Likewise.
8909 (output_pointer): New function.
8910 (output_format): Use it. Recognize "%p" format specifier.
8911
b2a7fa89
ZD
89122003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8913
8914 * function.c (purge_addressof_1): Postpone insn in fewer cases.
8915
a6fdc086
GK
89162003-04-29 Geoffrey Keating <geoffk@apple.com>
8917
505b0fd6
GK
8918 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
8919 call abort() after running out of stack space.
8920
a6fdc086
GK
8921 * c-typeck.c (function_types_compatible_p): Ignore incompatible
8922 'volatile' qualifiers on a function's return type in GNU mode.
8923
9c0631a7
AH
89242003-04-29 Aldy Hernandez <aldyh@redhat.com>
8925
87f85ea0
ZW
8926 * expr.c (emit_group_load): Dump parallels of simd types to
8927 memory.
9c0631a7 8928
74719742
VM
89292003-04-29 Vladimir Makarov <vmakarov@redhat.com>
8930
8931 * genautomata.c (add_vect): Check undefined value for range type
8932 too.
8933
baade80b
PE
89342003-04-29 Phil Edwards <pme@gcc.gnu.org>
8935
8936 * configure.in: More general test for cmp --ignore-initial.
8937 * configure: Regenerate.
8938
84d8756d
RK
89392003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8940
0384674e
RK
8941 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
8942 (layout_decl, place_field): Likewise.
8943 Also make minor type and whitespace changes.
8944
84d8756d
RK
8945 * tree.c (save_expr): Don't fold a COMPONENT_REF.
8946
0219237c
OH
89472003-04-29 Olivier Hainque <hainque@act-europe.fr>
8948
8949 * calls.c (expand_call): When modes of target and valreg match, force
8950 sibcall failure when target is a MEM.
8951
b9538b2e
GK
89522003-04-29 Geoffrey Keating <geoffk@apple.com>
8953
b3d627e2
GK
8954 * tree-inline.c (inlinable_function_p): Don't support inlining
8955 functions using varargs.
8956
f4ddb75b
GK
8957 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
8958
0366359a
GK
8959 * dwarf2out.c (output_call_frame_info): No need to output EH
8960 unwind information if all_throwers_are_sibcalls.
8961
e55614ca
GK
8962 * c-semantics.c (expand_unreachable_stmt): Return a tree.
8963 (expand_stmt): Update for change to expand_unreachable_stmt.
8964 (expand_unreachable_if_stmt): Likewise.
8965
b9538b2e
GK
8966 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
8967
72e940d2
JM
89682003-04-29 Jason Merrill <jason@redhat.com>
8969
8970 PR middle-end/10336
cafe096b 8971 * jump.c (never_reached_warning): Really stop looking if we reach
72e940d2
JM
8972 the beginning of the function.
8973
9193479f
BW
89742003-04-29 Bob Wilson <bob.wilson@acm.org>
8975
8976 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
8977 Remove redundant macros.
8978 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
8979 (LOCAL_LABEL_PREFIX): Define unconditionally.
8980 (NO_DOT_IN_LABEL): Clarify comment.
8981 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
8982 definition to "long int".
8983
b0501ec1
AK
89842003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
8985
8986 bootstrap/10452
8987 * gengtype-yacc.y: Improve portability.
8988
8e720e8b
ZW
89892003-04-29 Zack Weinberg <zack@codesourcery.com>
8990
8991 * config.gcc: Install obsolete target list for GCC 3.3.
8992 * doc/install.texi: Mention in specific-target instructions
8993 that certain configurations are deprecated.
8994
1be3f80f
ZW
89952003-04-29 Zack Weinberg <zack@codesourcery.com>
8996
8997 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
8998
8e854b76
KL
89992003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9000
9001 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9002 * gcc.c (display_help): Likewise.
9003 * toplev.c (f_options): Likewise.
9004 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9005 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9006 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9007 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9008 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9009
267594f3
R
90102003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
9011
9012 * varasm.c (default_assemble_visibility): Use assemble_name.
9013
667b43dd
DB
90142003-04-29 David O'Brien <obrien@FreeBSD.org>
9015
9016 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
5b51b1f5
DB
9017 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9018 (SIZE_TYPE): New macro.
fbf17dab
DB
9019 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9020 (SET_ASM_OP): New macro.
9021 (HANDLE_SYSV_PRAGMA): New macro.
9022 (ASM_WEAKEN_LABEL): New macro.
667b43dd 9023
a833faa5
MM
90242003-04-28 Mark Mitchell <mark@codesourcery.com>
9025
9026 PR c++/10180
9027 * tree-inline.c (expand_call_inline): Call push_srcloc when
9028 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
9029
a72bf3e9
MS
90302003-04-28 Mike Stump <mrs@apple.com>
9031
9032 * gdbinit.in: Update to reflect new identifier structure.
9033
0864034e
ZW
90342003-04-28 Zack Weinberg <zack@codesourcery.com>
9035
9036 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9037 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9038 struct tree_complex, struct tree_vector): Remove RTL field.
9039 (CONSTRUCTOR_ELTS): Use elt 0.
9040 * tree.def (CONSTRUCTOR): Delete first of its two operands.
9041 * varasm.c (output_constant_def): Remove early exit if
9042 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
9043 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9044 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9045 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9046
9661b15f
JJ
90472003-04-28 Jakub Jelinek <jakub@redhat.com>
9048
9049 * c-decl.c (finish_decl): When prototype with asmspec is found
9050 for built-in, adjust built_in_decls as well as expr.c decls.
9051 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9052 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9053 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9054
8707fe93
RH
90552003-04-28 Richard Henderson <rth@redhat.com>
9056
0864034e
ZW
9057 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9058 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9059 integral constant mult operand.
9060 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9061 (const_smulsi3_highpart_v8plus): Likewise.
9062 (const_smulsi3_highpart): Likewise.
9063 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9064 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9065 (const_umulsi3_highpart_v8plus): Likewise.
9066 (const_umulsi3_highpart): Likewise.
8707fe93 9067
ff4cb2e7
DB
90682003-04-28 David O'Brien <obrien@FreeBSD.org>
9069
9070 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9071 Define as 1.
9072
495d8dd6
DB
90732003-04-28 David O'Brien <obrien@FreeBSD.org>
9074
9075 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9076
e31603c4
JJ
90772003-04-28 Jakub Jelinek <jakub@redhat.com>
9078
9079 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9080 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9081 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9082 functions.
9083 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9084
dbe983a8
NC
90852003-04-28 Nick Clifton <nickc@redhat.com>
9086
9087 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9088
afc6aaab
ZW
90892003-04-27 Zack Weinberg <zack@codesourcery.com>
9090
9091 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9092 output_constant_def, use its result instead of TREE_CST_RTL (exp).
9093 Can assume it has the form (mem (symbol_ref ".LCxxx")).
9094 (expand_expr <COMPONENT_REF>): Can always just extract the
9095 relevant field of a CONSTRUCTOR.
9096 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9097 ARRAY_RANGE_REF>): Make control flow explicit.
9098 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9099 an INTEGER_CST.
9100
860992e6
KH
91012003-04-27 Kazu Hirata <kazu@cs.umass.edu>
9102
9103 * reload1.c (reg_set_luid): Fix a comment typo.
9104
32a61907
ZW
91052003-04-27 Zack Weinberg <zack@codesourcery.com>
9106
9107 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9108 struct deferred_string, const_str_htab): Kill.
9109 (n_deferred_strings): New static variable.
9110 (build_constant_desc): Set SYMBOL_REF_DECL of the new
9111 symbol_ref to point to the constant.
9112 (output_constant_def): When a deferred string is forced out,
9113 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9114 (mark_constant): Likewise.
9115 (maybe_output_constant_def_contents): When deferring a string
9116 constant, just set STRING_POOL_ADDRESS_P and increment
9117 n_deferred_strings.
9118 (mark_constant_pool): Check n_deferred_strings, not the size
9119 of const_str_htab.
9120 (init_varasm_once): No need to create const_str_htab.
9121
9122 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9123 SYMBOL_REF_DECL points to a constant.
9124
293107d1
ZW
91252003-04-26 Zack Weinberg <zack@codesourcery.com>
9126
9127 * varasm.c (output_constant_def): Split out two new static
9128 functions, build_constant_desc and maybe_output_constant_def_contents.
9129 Restructure for comprehensibility. Don't call
9130 output_addressed_constants. Treat defstr being non-NULL for
9131 STRING_POOL_ADDRESS_P constants as an invariant.
9132 (struct deferred_string): Remove labelno field.
9133 (output_constant_def_contents): Kill labelno argument. Call
9134 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
9135 asm_out.internal_label.
9136 (mark_constant): Update call to output_constant_def_contents.
9137 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9138 constants as an invariant.
9139
12969f45
RH
91402003-04-26 Richard Henderson <rth@redhat.com>
9141
9142 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9143 (ix86_expand_call, ix86_rtx_consts): Likewise.
9144
5cc2f4f3
KG
91452003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9146
9147 * doc/md.texi (cmpstr): Document additional restrictions.
9148
09b04f2d
NB
91492003-04-26 Neil Booth <neil@daikokuya.co.uk>
9150
9151 * flags.h (time_report): Remove.
9152 * timevar.c (timevar_enable): New.
9153 (TIMEVAR_ENABLE): Remove, use timevar_enable.
9154 (timevar_init): Rename from init_timevar.
9155 * timevar.h (timevar_init): Rename from init_timevar.
9156 * toplev.c (time_report): Make static.
9157 (do_compile): Conditionally call init_timevar first.
9158 (preprocess_options): Move some code to do_compile.
9159
3e35d143
SC
91602003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9161
9162 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9163
e6dc0cc6
NB
91642003-04-26 Neil Booth <neil@daikokuya.co.uk>
9165
9166 * _cpp_lex_direct: Remove pointless code.
9167
5936c7e7
SC
91682003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9169
9170 * doc/extend.texi (Function Attributes): Document "near" and "far"
9171 for 68HC11 and 68HC12.
9172
85a43a2f
RK
91732003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9174
9175 * expr.c (store_field): When making temporary for store, don't
9176 make it TYPE_QUAL_CONST.
9177
09e4ab56
PE
91782003-04-25 Phil Edwards <pme@gcc.gnu.org>
9179
9180 * toplev.c (read_integral_parameter): Use "argument" in error
9181 message to distinguish it from actual invalid options.
9182
ab409f1b
BW
91832003-04-25 Bob Wilson <bob.wilson@acm.org>
9184
9185 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9186 addition of __PIC__ and __pic__ macros.
9187 * config/xtensa/xtensa.h: Clean up indentation.
9188
6a2b287f
BW
91892003-04-25 Bob Wilson <bob.wilson@acm.org>
9190
9191 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9192 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
9193 (SUBTARGET_CPP_SPEC): Define.
9194 (LIB_SPEC): Delete.
9195 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9196 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9197 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9198 Define.
9199 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9200 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9201
60986d64
L
92022003-04-25 H.J. Lu <hjl@gnu.org>
9203
9204 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9205 for return mode.
9206 (ia64_expand_builtin): Set rmode to SImode for
9207 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9208 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9209 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9210 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9211
c7a5cf61
PE
92122003-04-25 Phil Edwards <pme@gcc.gnu.org>
9213
9214 * configure.in (make_compare_target): Test for GNU cmp and set this
9215 variable appropriately.
9216 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9217 compare4-lean): Rename actual targets to slowcompare*. New compare*
9218 targets depend on names based on make_compare_target.
9219 * configure: Regenerated.
9220
f5bdba44
RH
92212003-04-25 Richard Henderson <rth@redhat.com>
9222
9223 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9224 to clobber ar.pfs and ar.unat.
9225 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9226 fix test for spilling ar.pfs to the stack.
9227
92282003-04-25 Richard Henderson <rth@redhat.com>
8f4e6caf 9229
293107d1
ZW
9230 PR opt/10315
9231 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9232 checks during reload; use validize_mem instead of adjust_address.
8f4e6caf 9233
eda833e3
BE
92342003-04-26 Ben Elliston <bje@wasabisystems.com>
9235
9236 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9237 return values from recog_memoized().
9238
9feff114
JDA
92392003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9240
9241 PR opt/8705
9242 * gcse.c (try_replace_reg): On a successful substitution of a constant
9243 into a single set, try to simplify the source of the set.
9244 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9245 constant source.
9246
59325650
NB
92472003-04-24 Neil Booth <neil@daikokuya.co.uk>
9248
9249 * cpplex.c (cpp_token_len): Tighten up.
9250 (cpp_token_as_text): Need extra byte now.
9251 * cpplib.c (glue_header_name): Need extra 2 bytes.
9252 * cppmacro.c (cpp_macro_definition): Need extra byte.
9253
b746b8cb
AK
92542003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
9255
9256 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
293107d1 9257 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
b746b8cb
AK
9258 where they might be not present. Use their _sp64 equivalent
9259 instead.
9260
019238b7
JH
9261Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
9262
9263 * i386.md (cvtsi2sdq): Fix typo in previous patch.
293107d1 9264
39f6c4c8
KW
92652003-04-24 Krister Walfridsson <cato@df.lth.se>
9266
9267 * configure.in: Check whether mbstowcs works.
9268 * configure, config.in: Regenerate.
9269 * intl.c: Use HAVE_WORKING_MBSTOWCS.
9270
0c79f08b
L
92712003-04-24 H.J. Lu <hjl@gnu.org>
9272
9273 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9274 for __sync_bool_compare_and_swap_di for int return type.
9275
9276 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9277 Change return type to int.
9278 (__sync_bool_compare_and_swap): Likewise.
9279
26f74aa3
JH
9280Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
9281
9282 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
9283 looking for fallthru edge.
9284
9285 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9286 Fix.
9287 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9288 athlon-fvector): New.
9289 (athlon_*): Revisit to match new optimization guide.
9290 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
9291 * i386.md (cvt??2?? patterns): Fix modes.
9292 (fistp patterns): Set modes.
9293
9294 Accidentaly commited with my earlier reload patch:
9295 PR c/10308
9296 * reload.c (find_reloads_address_1): Reload plus at the place of
9297 index register.
293107d1 9298
796621e8
NS
92992003-04-24 Nathan Sidwell <nathan@codesourcery.com>
9300
9301 New GCOV_TAG_FUNCTION layout
9302 * coverage.c (struct function_list): Replace name with ident.
9303 (struct counts_entry): Likewise.
9304 (fn_ident): New.
9305 (htab_counts_entry_hash, htab_counts_entry_eq,
9306 htab_counts_entry_del): Adjust.
9307 (reads_count_file, get_coverage_counts,
9308 coverage_begin_output, coverage_end_function): Adjust.
9309 (build_fn_info_type, build_fn_info_value): Likewise.
9310 * gcov-dump.c (tag_function): Adjust.
9311 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9312 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9313 * gcov.c (struct function_info): Add ident.
9314 (read_graph_file, read_count_file): Adjust.
9315 * libgcov.c (gcov_exit): Adjust.
9316
6ff76c36
RH
93172003-04-23 Richard Henderson <rth@redhat.com>
9318
9319 PR opt/8300
9320 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9321 after initialize_uninitialized_subregs; update reg info assuming
9322 new pseudos were created.
9323
6338b358
NB
93242003-04-23 Neil Booth <neil@daikokuya.co.uk>
9325
9326 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9327 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9328 (lex_string): Take cpp_string with full spelling.
9329 (cb_ident): Update.
9330 (c_lex): Update diagnostics.
9331 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9332 (create_literal): New.
9333 (lex_string): Unterminated literals have type CPP_OTHER.
9334 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
9335 for CPP_OTHER.
9336 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9337 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9338 * cpplib.c (parse_include, do_line, do_linemarker,
9339 destringize_and_run): Update for token storing full spelling.
9340 * cpplib.h: Update token spelling types.
9341 * cppmacro.c (stringify_arg, check_trad_stringification):
9342 Update for token storing full spelling.
9343
011fd56b
UW
93442003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
9345
9346 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9347
7052a099
RE
93482003-04-23 Richard Earnshaw <rearnsha@arm.com>
9349
9350 * arm.h (TARGET_OPTIONS): Add value field.
9351
f0ddce84
MM
93522003-04-23 Mark Mitchell <mark@codesourcery.com>
9353
9354 * doc/extend.texi: Remove duplicate 2003 copyright date.
9355
cdb23767
NS
93562003-04-23 Nathan Sidwell <nathan@codesourcery.com>
9357
9358 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9359 (libgcov.a): Depends on LIBGCC_DEPS.
9360 * basic-block.h (profile_info): Moved here from coverage.h. Made
9361 a pointer.
9362 * coverage.c (struct function_list): Fixed array of counter types.
9363 (struct counts_entry): Keyed by counter type, contains summary.
9364 (profile_info): Moved to profile.c.
9365 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9366 vars.
9367 (profiler_label): Remove.
9368 (ctr_labels): New.
9369 (set_purpose, label_for_tag, build_counter_section_fields,
9370 build_counter_section_value, build_counter_section_data_fields,
9371 build_counter_section_data_values, build_function_info_fields,
9372 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9373 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9374 build_ctr_info_value, build_gcov_info): New.
9375 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9376 (reads_counts_file): Adjust.
9377 (get_coverage_counts): Takes counter number. Add summary
9378 parameter. Adjust.
9379 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
9380 create counter array labels.
9381 (coverage_end_function): Adjust.
9382 (create_coverage): Adjust.
9383 (find_counters_section): Remove.
9384 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
9385 (struct section_info, struct profile_info): Remove.
9386 (profile_info): Moved to basic-block.h.
9387 (coverage_counter_ref): Takes a counter number.
9388 (get_coverage_counts): Takes a counter number. Added summary
9389 parameter.
9390 (find_counters_section): Remove.
9391 * gcov-dump.c (tag_arc_counts): Rename to ...
9392 (tag_counters): ... here. Adjust.
9393 (tag_table): Move tag_counters to 3rd entry. Remove
9394 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
9395 (dump_file): Check for counter tag values here.
9396 (tag_summary): Adjust.
9397 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
9398 * gcov-io.h (GCOV_LOCKED): New.
9399 (GCOV_TAG_ARC_COUNTS): Rename to ...
9400 (GCOV_TAG_COUNTS_BASE): ... here.
9401 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
9402 Remove.
9403 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
9404 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
9405 GCOV_TAG_IS_COUNTER): New.
9406 (struct gcov_ctr_summary): New.
9407 (struct gcov_summary): Adjust.
9408 (struct gcov_counter_section): Remove.
9409 struct gcov_counter_section_data): Remove.
9410 (struct gcov_function_info): Rename to ...
9411 (struct gcov_fn_info): ... here. Adjust.
9412 (struct gcov_ctr_info): New.
9413 (struct gcov_info): Adjust.
9414 * gcov.c (read_count_file): Adjust.
9415 (output_lines): Adjust.
9416 * libgcov.c (gcov_exit): Adjust.
9417 (__gcov_flush): Adjust.
9418 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
9419 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
9420 probably_never_executed_bb_p, compute_frequency_function): Adjust
9421 profile_info use.
9422 * profile.c (struct counts_entry): Remove.
9423 (profile_info): Define here.
9424 (get_exec_counts): Adjust get_coverage_counts call.
9425 (compute_branch_probablilities): Remove find_counters_section
9426 call.
9427 (gen_edge_profiler): Adjust coverage_counter_ref call.
9428 * tracer.c (tail_duplicate): Adjust profile_info use.
9429
2be3b5ce
RS
94302003-04-23 Roger Sayle <roger@eyesopen.com>
9431
9432 PR optimization/10339
9433 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
9434 directly instead of unsafely transforming call into a memcmp.
9435 (expand_builtin_strncmp): Likewise.
9436
c57ddcf1
RS
94372003-04-22 Roger Sayle <roger@eyesopen.com>
9438
9439 * alias.c (mark_constant_function): Check for constancy and
9440 purity even of void functions. Update both the function decl
9441 and the cgraph RTL info with the results.
9442
c1a19acb
RS
94432003-04-22 Roger Sayle <roger@eyesopen.com>
9444
9445 * real.c (do_add): Change to return a bool indicating that the
9446 result of the operation may be inexact due to loss of precision.
9447 (do_multiply): Likewise.
9448 (do_divide): Likewise.
9449
c2e9147c
GK
94502003-04-22 Geoffrey Keating <geoffk@apple.com>
9451 Loren James Rittle <ljrittle@acm.org>
9452
9453 * dwarf2out.c (fde_table_allocated): Mark with GTY.
9454 (decl_die_table_allocated): Likewise.
9455 (abbrev_die_table_allocated): Likewise.
9456 (line_info_table_allocated): Likewise.
9457 (separate_line_info_table_allocated): Likewise.
9458 (pubname_table_allocated): Likewise.
9459 (arange_table_allocated): Likewise.
9460 (ranges_table_allocated): Likewise.
9461 (decl_die_table_in_use): Unconditionalize; mark with GTY.
9462 (abbrev_die_table_in_use): Likewise.
9463 (line_info_table_in_use): Likewise.
9464 (separate_line_info_table_in_use): Likewise.
9465 (pubname_table_in_use): Likewise.
9466 (arange_table_in_use): Likewise.
9467 (ranges_table_in_use): Likewise.
9468 (have_location_lists): Likewise.
9469 (emitcount): New GTY-marked static, moved...
9470 (maybe_emit_file): ...from here.
9471 (label_num): New GTY-marked static, moved...
9472 (gen_internal_sym): ...from here.
9473
4da2eb6b
RH
94742003-04-22 Richard Henderson <rth@redhat.com>
9475
293107d1
ZW
9476 PR 8866
9477 * rtl.h (MEM_NOTRAP_P): New.
9478 (MEM_COPY_ATTRIBUTES): Copy it.
9479 * rtlanal.c (may_trap_p): Check it.
9480 * expr.c (do_tablejump): Set it.
4da2eb6b
RH
9481 * doc/rtl.texi (Flags): Document it.
9482
293107d1 9483 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
4da2eb6b 9484
c1238896
OH
94852003-04-22 Olivier Hainque <hainque@act-europe.fr>
9486
9487 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
9488 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
9489
6d412a7b
VC
94902003-04-22 Vincent Celier <celier@gnat.com>
9491
293107d1
ZW
9492 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
9493 --enable-threads=gnat.
9494 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
9495 * configure.in: Add gnat to the list of thread packages
9496 * configure: Rebuild.
9497 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6d412a7b 9498
b78f9414
NB
94992003-04-22 Neil Booth <neil@daikokuya.co.uk>
9500
9501 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
f945b4e0
DP
9502
95032003-04-22 Devang Patel <dpatel@apple.com>
9504
b78f9414
NB
9505 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
9506 parameter count.
f945b4e0 9507 (_cpp_copy_replacement_text): Same.
293107d1 9508
1067694a
NB
95092003-04-22 Neil Booth <neil@daikokuya.co.uk>
9510
9511 * c-lex.c (c_lex): Handle CPP_OTHER differently.
9512 * cppexp.c (_cpp_parse_expr): Similarly.
9513 * cpplex.c (SPELL_CHAR): Remove.
9514 (_cpp_lex_direct): Stray chars are saved as byte strings.
9515 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
9516 handle SPELL_CHAR.
9517 (cpp_avoid_paste): Update handling of CPP_OTHER.
9518 * cpplib.h: Spell CPP_OTHER like a number.
9519 (struct cpp_token): Remove member c.
9520 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
9521
77c915d8
DT
95222003-04-22 David Turner <novalis@gnu.org>
9523
9524 * gbl-ctors.h: Add special license exception.
9525 * libgcc2.h: Likewise.
9526 * tsystem.h: Likewise.
9527 * gcov-io.h: Likewise.
9528
85e50b6b
DE
95292003-04-22 David Edelsohn <edelsohn@gnu.org>
9530
9531 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
9532 macro defaulting to original BRANCH_COST heuristic.
9533 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
9534
9535 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
9536
00c060a4
AH
95372003-04-22 Aldy Hernandez <aldyh@redhat.com>
9538
293107d1 9539 * config/rs6000/t-spe: Merge in t-fprules into file.
00c060a4 9540
293107d1 9541 * config.gcc: Add t-spe to powerpc-eabispe.
00c060a4 9542
e4d72771
KJ
95432003-04-22 Kean Johnston <jkj@sco.com>
9544
9545 * tlink.c (recompile_files): Add missing '=' to putenv calls
9546
ad27e65a
NS
95472003-04-22 Nathan Sidwell <nathan@codesourcery.com>
9548
9549 * ginclude/stddef.h: Provide C++ safe offsetof.
9550
277b3b18
R
95512003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
9552
9553 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
9554 for reg notes, if there are no substitutions, just use a SUBREG.
9555
b2dd096b
MM
95562003-04-21 Mark Mitchell <mark@codesourcery.com>
9557
9558 * Makefile.in (calls.o): Depend on except.h.
9559 * calls.c: Include except.h.
9560 (emit_call_1): Call note_eh_region_may_contain_throw if
9561 appropriate.
9562 * except.c (eh_region): Add may_contain_throw.
9563 (expand_eh_region_end_cleanup): Do not include handler code when
9564 it cannot be reached.
9565 (note_eh_region_may_contain_throw): New function.
9566 * except.h (note_eh_region_may_contain_throw): New function.
9567
bfc6c67e
MM
95682003-04-21 Mark Mitchell <mark@codesourcery.com>
9569
9570 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
9571 changes.
9572
95b1c7b6
AH
95732003-04-21 Aldy Hernandez <aldyh@redhat.com>
9574
293107d1
ZW
9575 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
9576 64-bit long doubles.
95b1c7b6 9577
6a48df45
OH
95782003-04-21 Olivier Hainque <hainque@act-europe.fr>
9579
3cd58fd7
OH
9580 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
9581 a number of conversions required for type consistency and previously
9582 stripped off by STRIP_NOPS.
9583
6a48df45
OH
9584 * calls.c (expand_call): Prevent sibcall optimization for calls to
9585 nested subprograms.
9586
0d2f38ee 9587 * expmed.c (extract_bit_field): Reverse operands of && condition to
293107d1 9588 prevent a potential division by zero in the previously first branch.
0d2f38ee
OH
9589 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
9590
c3cdeef4
JB
95912003-04-21 Joel Brobecker <brobecker@gnat.com>
9592
9593 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
9594 (subrange_type_die): Likewise.
9595 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
9596 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
9597
ca29da43
NS
95982003-04-21 Nathan Sidwell <nathan@codesourcery.com>
9599
293107d1
ZW
9600 Break out coverage routines to new file.
9601 * Makefile.in (COVERAGE_H): New variable
9602 (C_OBJS): Add coverage.o
9603 (coverage.o): New target.
9604 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
9605 dependencies.
9606 (GTFILES): Adjust.
9607 (gt-coverage.h): New target.
9608 (gt-profile.h): Remove.
9609 * profile.h: Remove. Move to ...
9610 * coverage.h: ... here. New. #include gcov-io.h.
9611 * gcov-io.h: Move function definitions to ...
9612 * gcov-io.c: ... here. New.
9613 * profile.c: Move coverage routines to coverage.c.
9614 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
9615 end_branch_prob): Adjust.
9616 * coverage.c: New. Coverage routines from profile.c
9617 (coverage_counter_ref, coverage_init, coverage_finish,
9618 coverage_end_function, coverage_begin_output,
9619 coverage_counter_ref, get_coverage_counts): Define.
9620 * gcov-dump.c, gcov.c: #include gcov-io.c.
9621 * libgcov.c: Likewise. Adjust.
9622 * loop-init.c: Don't #include profile.h
9623 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
9624 * rtl.h: Add coverage prototypes.
9625 * toplev.c (compile_file): Init coverage, not branch_prob.
9626 Always call coverage_finish.
9627 (rest_of_compilation): Call coverage_end_function.
ca29da43 9628
1774b213 96292003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
dd0fbae2
MK
9630
9631 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
9632
74eb4b3e
NB
96332003-04-21 Neil Booth <neil@daikokuya.co.uk>
9634
9635 * c-ppoutput.c (cb_include): Don't take a cpp_token.
9636 * cppfiles.c: Don't undef strcmp.
9637 (find_include_file): Don't take a cpp_token. Check for empty
9638 file names.
9639 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
9640 (cpp_push_include): Simplify.
9641 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
9642 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
9643 (parse_include): Similary. Don't check for zero-length filenames.
9644 (do_include_common, do_pragma_dependency): Update accordingly.
9645 * cpplib.h (struct cpp_callbacks): Change prototype of include.
9646
337f4314 96472003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
293107d1 9648
9e91ce11
RK
9649 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
9650 details of conflict handling.
293107d1 9651
26b84487
RK
9652 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
9653 when conversion overflows.
9654
1a96dc46
RK
9655 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
9656
337f4314
RK
9657 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
9658 before clearing.
9659
3819b963
MM
96602003-04-21 Mark Mitchell <mark@codesourcery.com>
9661
9662 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
9663 have the same form as the old RTL.
9664
0e7a8c4b
AJ
96652003-04-21 Andreas Jaeger <aj@suse.de>
9666
293107d1 9667 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
0e7a8c4b 9668
b39b8084
CL
96692003-04-20 Chris Lattner <sabre@nondot.org>
9670 Zack Weinberg <zack@codesourcery.com>
9671
9672 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
9673 genrtl_cleanup_stmt. Correct comment at head of
9674 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
9675
9676 * stmt.c (struct nesting): Kill n_function_calls.
9677 (expand_start_bindings): Don't set
9678 thisblock->data.block.n_function_calls.
9679 (expand_end_bindings): Compare function_call_count against 0.
9680 (expand_cleanups): Kill DONT_DO argument; all callers passed
9681 NULL_TREE. All callers updated to match.
9682
b20cbca2
ZW
96832003-04-20 Zack Weinberg <zack@codesourcery.com>
9684
9685 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
9686 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
9687 (output_constant_def): Remove code predicated on
9688 defer_addressed_constants_flag.
9689
9690 * output.h: Remove prototypes of deleted functions.
9691 * c-typeck.c (constructor_subconstants_deferred): Kill.
9692 (struct initializer_stack): Remove 'deferred' field.
9693 (start_init): Remove all references to the above.
9694 (finish_init): Likewise. Also remove never-executed call to
9695 output_deferred_addressed_constants. Pull assignment to
9696 defstr out of if expression.
9697
41c32c98
NB
96982003-04-20 Neil Booth <neil@daikokuya.co.uk>
9699
9700 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
9701 NOTE_NEWLINE): Remove.
9702 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
9703 to handle new form of line note type.
9704
c6a2438a
ZW
97052003-04-20 Zack Weinberg <zack@codesourcery.com>
9706
9707 * target.h (encode_section_info): Add new argument carrying
9708 the RTL to be modified by the hook.
9709
9710 * varasm.c (make_decl_rtl, output_constant_def): Update calls
9711 to encode_section_info.
9712 (default_encode_section_info): Take and use RTL argument,
9713 don't use TREE_CST_RTL or DECL_RTL.
9714 * output.h: Update prototype of default_encode_section_info.
9715 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
9716 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9717 Update calls to encode_section_info.
9718
9719 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
9720 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
9721 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
9722 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
9723 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
9724 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
9725 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
9726 except for PE dllimport/dllexport. Update calls to
9727 default_encode_section_info.
9728
9729 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
9730 Update prototypes.
9731
9732 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
9733
8c7d377f
JDA
97342003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9735
9736 PR/8705
9737 * pa.md (movccfp): New expander.
9738 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
9739 Reverse fcmp conditions.
9740
1052bb09
MM
97412003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
9742
9743 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
9744 of operand 1 correctly.
9745
299f79b5
NS
97462003-04-20 Nathan Sidwell <nathan@codesourcery.com>
9747
9748 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
9749 * gcov.c (output_lines): Don't be so fussy about going past EOF.
9750
1613e52b
NB
97512003-04-20 Neil Booth <neil@daikokuya.co.uk>
9752
9753 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
9754 (cppcharset.o): New target.
9755 * c-lex.c (is_extended_char): Move to cppcharset.c.
9756 (utf8_extend_token): Delete.
9757 * cppcharset.c: New file.
9758 * cpphash.h (_cpp_valid_ucn): New.
9759 * cpplex.c (lex_identifier): Update prototype.
9760 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
9761 escapes.
9762 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
9763 in cppcharset.c.
9764 (lex_number, lex_identifier, cpp_parse_escape): Update.
9765 (_cpp_lex_direct): Update to handle UCNs.
9766 (cpp_avoid_paste): Don't paste to form a UCN.
9767
0a45ec5c
RS
97682003-04-19 Roger Sayle <roger@eyesopen.com>
9769
9770 * builtins.c (expand_builtin): Don't expand a pure or const
9771 built-in function if the result will be ignored and none of
9772 its arguments are volatile.
9773
16477cc5
KJ
97742003-04-19 Kean Johnston <jkj@sco.com>
9775
9776 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
9777 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
9778 target fragment now: t-sco5; dont compile crti.o.
9779 * config/i386/sco5.h: major overhaul to remove all COFF remnants
9780 and to use elfos.h for most definitions.
9781 (BSS_SECTION_ASM_OP): set correct segment attributes.
9782 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
9783 (DWARF2_UNWIND_INFO): Always set to 1.
9784 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
9785 (MD_STARTFILE_PREFIX_1): Define.
9786 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
9787 (DEFAULT_LINKER): Define if not specified to configure.
9788 (CTORS_SECTION_ASM_OP): Remove COFF crud.
9789 (DTORS_SECTION_ASM_OP): Remove COFF crud.
9790 (WINT_TYPE): Define.
9791 (SDB_DEBUGGING_INFO): Remove.
9792 (EXTRA_SECTIONS): Likewise.
9793 (EXTRA_SECTION_FUNCTIONS): Likewise.
9794 (CTOR_LIST_BEGIN): Likewise.
9795 (CTOR_LIST_END): Likewise.
9796 (INIT_SECTION_FUNCTION): Likewise.
9797 (FINI_SECTION_FUNCTION): Likewise.
9798 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
9799 (LOCAL_LABEL_PREFIX): Likewise.
9800 (NON_SAVING_SETJMP): Likewise.
9801 (RETURN_POPS_ARGS): Likewise.
9802 (ASM_OUTPUT_SKIP): Likewise.
9803 (TARGET_ASM_NAMED_SECTION): Likewise.
9804 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
9805 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
9806 (ASM_OUTPUT_IDENT): Likewise.
9807 (ASM_OUTPUT_CASE_LABEL): Likewise.
9808 (ASM_OUTPUT_ASCII): Likewise.
9809 (ASM_OUTPUT_LIMITED_STRING): Likewise.
9810 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9811 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9812 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9813 (ASM_FINISH_DECLARE_OBJECT): Likewise.
9814 (ASM_DECLARE_OBJECT_NAME): Likewise.
9815 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
9816 (ASM_DECLARE_FUNCTION_NAME): Likewise.
9817 (ASM_DECLARE_RESULT): Likewise.
9818 (ASM_WEAKEN_LABEL): Likewise.
9819 (SUPPORTS_WEAK): Likewise.
9820 (APPLY_RESULT_SIZE): Likewise.
9821 (LPREFIX): Likewise.
9822 (ALIGN_ASM_OP): Likewise.
9823 (ASCII_DATA_ASM_OP): Likewise.
9824 (IDENT_ASM_OP): Likewise.
9825 (ASM_SHORT): Likewise.
9826 (ASM_LONG): Likewise.
9827 (TYPE_ASM_OP): Likewise.
9828 (SIZE_ASM_OP): Likewise.
9829 (STRING_ASM_OP): Likewise.
9830 (SKIP_ASM_OP): Likewise.
9831 (EH_FRAME_SECTION_ASM_OP): Likewise.
9832 (READONLY_DATA_SECTION_ASM_OP): Likewise.
9833 (INIT_SECTION_ASM_OP): Likewise.
9834 (FINI_SECTION_ASM_OP): Likewise.
9835 (TEXT_SECTION_ASM_OP): Likewise.
9836 (DATA_SECTION_ASM_OP): Likewise.
9837 (TYPE_OPERANT_FORMAT): Likewise.
9838 (ASM_SPEC): Remove COFF code.
9839 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
9840 cause -pg to emit an error; use pcrt1elf.o with -pp
9841 (ENDFILE_SPEC): Likewise.
9842 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
9843 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
9844 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
9845 add -z alt_resolve to support weak symbols the way GCC wants them.
9846 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
9847 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
9848 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
9849 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
9850 (CRTSTUFF_T_CFLAGS_S): Define.
9851 (MULTILIB_OPTIONS): Likewise.
9852 (MULTILIB_DIRNAMES): Likewise.
9853 (MULTILIB_MATCHES): Likewise.
9854 (MULTILIB_EXTRA_OPTS): Likewise.
9855 (LIBGCC): Likewise.
9856 (INSTALL_LIBGCC): Likewise.
9857 (crti.o): Remove.
9858 * config/i386/t-sco5gas: Remove.
9859 * doc/install.texi: Updated for new OpenServer instructions.
9860 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
9861
de0656cf
KJ
98622003-04-19 Kean Johnston <jkj@sco.com>
9863
9864 * fixinc/check.tpl: Allow user to over-ride diff program.
9865 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
9866 (sco_math): Added test for SCO math header files.
9867 (sco_regset): Added check for conflicts with ieeefp.h.
9868 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
9869 * fixinc/fixincl.x: Regenerated
9870 * fixinc/tests/base/math.h: Added sco_math tests.
9871 * fixinc/tests/base/string.h: New file.
9872 * fixinc/tests/base/sys/regset.h: New file.
9873
6f572ac2
NB
98742003-04-19 Neil Booth <neil@daikokuya.co.uk>
9875
9876 * cpphash.h (struct cpp_buffer): Remove backup_to.
9877 * cpplex.c (BACKUP, get_effective_char): Die.
9878 (_cpp_skip_block_comment): Assume '*' is location on entry.
9879 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
9880 (IF_NEXT_IS): Update.
9881 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
9882
ced2ad76
MK
98832003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
9884
9885 * README.Portability: Move to a new section and obsolete K+R
9886 portability issues.
9887
07015444
JH
9888Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
9889
9890 * rtlanal.c (subreg_offset_representable_p): Fix call of
9891 subreg_lowpart.
9892
bced6edf
NB
98932003-04-19 Neil Booth <neil@daikokuya.co.uk>
9894
9895 * cpphash.h (struct cpp_reader): New member warned_dollar.
9896 * cpplex.c (continues_identifier_p): New function.
9897 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
9898 lex_number and lex_string, and simplify.
9899 (parse_slow, unescaped_terminator_p): Die.
9900 (_cpp_lex_direct): Update.
9901
a259f218
RK
99022003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9903
9904 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
9905
8555daff
NS
99062003-04-19 Nathan Sidwell <nathan@codesourcery.com>
9907
9908 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
6356f892 9909 fork behavior.
8555daff 9910
4e1f0f8e
NB
99112003-04-19 Neil Booth <neil@daikokuya.co.uk>
9912
9913 * cppexp.c (eval_token): Permit true and false even if pedantic.
9914
bf805def
NB
99152003-04-19 Neil Booth <neil@daikokuya.co.uk>
9916
9917 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
9918
26aea073
NB
99192003-04-19 Neil Booth <neil@daikokuya.co.uk>
9920
9921 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
9922 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
9923 (struct include_file): Remove fefcnt, mapped members.
9924 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
9925 (read_include_file): Don't use mmap, terminate buffers in '\r'.
9926 (purge_cache): Don't use munmap.
9927 * cpphash.h (CPP_BUF_COLUMN): Update.
9928 (lexer_state): Remove lexing_comment.
9929 (struct _cpp_line_note): New.
9930 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
9931 next_line and need_line. Remove col_adjust and saved_flags.
9932 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
9933 _cpp_skip_block_comment, scan_out_logical_line): New.
9934 (_cpp_init_mbchar): Remove.
9935 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
9936 (cpp_read_main_file): Set line to 1 earlier.
9937 (post_options): -traditional-cpp doesn't want trigraphs.
9938 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
9939 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
9940 _cpp_get_fresh_line): New.
9941 (handle_newline, skip_escaped_newlines, trigraph_p,
9942 continue_after_nul, _cpp_init_mbchar): Remove.
9943 (get_effective_char): Update.
9944 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
9945 (skip_line_comment): Simplify.
9946 (skip_whitespace, parse_identifier, parse_slow, parse_number,
9947 parse_string): Update.
9948 (cpp_lex_direct): Use clean lines and process line notes. Update.
9949 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
9950 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
9951 directly.
9952 (_cpp_handle_directive): Don't set saved_flags.
9953 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
9954 cpp_undef, handle_assertion, cpp_push_buffer): Update.
9955 (_cpp_pop_buffer): Free notes.
9956 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
9957 * cpppch.c (cpp_read_state): \n terminate buffer.
9958 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
9959 (copy_comment): Use _cpp_skip_block_comment.
9960 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
9961 Simplify.
9962 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
9963 save_replacement_text): Update.
9964 (scan_out_logical_line): Update to use clean lines and process
9965 line notes.
9966 * fix-header.c (read_scan_file): Update.
9967
7008a11b
DR
99682003-04-18 Douglas B Rupp <rupp@gnat.com>
9969
9970 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
9971 null begin parameter (as well as pointer to null).
9972 (__deregister_frame_info_bases): Likewise.
9973
21102f25
RK
99742003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9975
34d21fe3
RK
9976 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
9977 hard or virtual register and copy into pseudo if replacement fails.
9978
9979 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
dd4ff203 9980
21102f25
RK
9981 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
9982
e59baa1f
OH
99832003-04-18 Olivier Hainque <hainque@act-europe.fr>
9984
38afb23f
OH
9985 * calls.c (expand_call): Move special case for constructor calls
9986 to right place. Ensures constructor calls used to initialize
c6a2438a 9987 arguments get a clean outgoing argument block for themselves.
38afb23f
OH
9988 Move check for stack deallocation completeness until after last
9989 deallocation. Add stack_pointer_delta to set of state
9990 variables saved and restored along with current stack_level.
c6a2438a
ZW
9991
9992 * integrate.c (expand_inline_function): Ensure non-const actuals
9993 don't end up const in the caller's flow after conversion to possibly
9994 const formal type.
e59baa1f 9995
8dcea3f3
VC
99962003-04-18 Vincent Celier <celier@gnat.com>
9997
c6a2438a
ZW
9998 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
9999 and *_DIV_EXPR as TRUNC_*_EXPR.
8dcea3f3 10000
3e378f14
MM
100012003-04-18 Mark Mitchell <mark@codesourcery.com>
10002
10003 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10004 for orphaned jump tables.
10005
1b0d0e84
KH
100062003-04-18 Kazu Hirata <kazu@cs.umass.edu>
10007
10008 * reload1.c: Revert my previous patch on 2002-04-17.
10009
906042f5
GP
100102003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10011
10012 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10013 Add Segher Boessenkool.
10014
38a31425
AS
100152003-04-18 Alexander Sotirov <sluncho@mirizma.org>
10016
10017 PR c/9177
10018 * c-decl.c (c_expand_body): Don't garbage collect the function
10019 body if we are going to dump it later.
10020
59c60a98
RH
100212003-04-18 Richard Henderson <rth@redhat.com>
10022
10023 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10024 (alpha_end_function): Don't set them.
10025 (decl_in_text_section): Remove.
10026 (alpha_encode_section_info): Remove.
10027 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10028 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10029 sections, rather than decl_in_text_section results.
10030
c553b702
RS
100312003-04-18 Roger Sayle <roger@eyesopen.com>
10032
10033 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10034 and SIGN_EXTRACT.
10035
6a29edea
EB
100362003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
10037
10038 PR optimization/7675
10039 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10040 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10041 nested functions if they refer to declarations from parent functions.
10042 * stmt.c (expand_decl): Don't put automatic variables in registers
10043 if the DECL_NONLOCAL flag is set.
10044
4d3eb89a
HPN
100452003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10046
10047 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10048 consider those to be movable where the source matches
10049 want_to_gcse_p.
10050 (update_ld_motion_stores): In comment, refer to
10051 compute_ld_motion_mems for validity of replacement.
10052
04c5580f
JH
10053Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
10054
d101590b 10055 * gcov-dump.c (tag_summary): Remove max_sum
ca29da43
NS
10056 * gcov-io.h (gcov_summary, gcov_write_summary,
10057 gcov_read_summary): Kill max_sum.
10058 * libgcov.c (gcov_exit): Do one pass over the data. Make error
10059 message more verbose.
10060
10061 * emit-rtl.c (subreg_hard_regno): Check that register is
10062 representable.
293107d1 10063
04c5580f
JH
10064 * reload.c (reload_inner_reg_of_subreg): When register is not
10065 representable, reload the whole thing.
10066 (find_reloads): Likewsie.
10067 * rtlanal.c (subreg_representable_p): New function.
10068
10069 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
10070 allow negative probabilities for edges from the call to exit.
ca29da43
NS
10071 (branch_prob): Do not add fake edges for functions that may return
10072 twice.
04c5580f 10073
c409ea0d
DD
100742003-04-17 DJ Delorie <dj@redhat.com>
10075
10076 * toplev.c (target_options): Add value field.
10077 (set_target_switch): Handle target options with values.
10078 * doc/tm.texi: Document how fixed vs variable target
10079 options work.
10080 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10081 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10082 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10083 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10084 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10085 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10086 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10087 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10088 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10089 Add value initializer to target options.
10090
36801818
LR
100912003-04-07 Loren James Rittle <ljrittle@acm.org>
10092
10093 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10094
a211395b
KH
100952003-04-17 Kazu Hirata <kazu@cs.umass.edu>
10096
10097 * reload1.c (move2add_last_cc0): New.
10098 (reload_cse_move2add): Detect implicit sets.
10099 (move2add_note_store): Notice a store into cc0.
10100
220a35cc
RS
101012003-04-17 Roger Sayle <roger@eyesopen.com>
10102
10103 PR c/10375
10104 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10105 function attributes.
10106
7ed0620a 101072003-04-17 Janis Johnson <janis187@us.ibm.com>
46b2356d
JJ
10108
10109 * doc/sourcebuild.texi (Test Suites): Document support for testing
10110 binary compatibility (moved from testsuite/README.compat).
10111
3907500b
RH
101122003-04-17 Richard Henderson <rth@redhat.com>
10113
10114 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10115
d22b2e54
SL
101162003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
10117
c6a2438a
ZW
10118 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10119 the one provided by the FSF.
d22b2e54 10120
616de62f
GP
101212003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10122
10123 * doc/install.texi (Binaries): Update URL and list of platforms
10124 provided by ftp.thewrittenword.com.
10125
f2dd0c42
RH
101262003-04-17 Richard Henderson <rth@redhat.com>
10127
10128 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10129 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10130 * config/xtensa/xtensa.md (call, call_value): Likewise.
10131
50d1ff6a
RH
101322003-04-17 Richard Henderson <rth@redhat.com>
10133
10134 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10135 (print_operand_address): Likewise.
10136 (ep_memory_operand): Likewise.
10137 (special_symbolref_operand): Likewise.
10138 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10139 (v850_encode_section_info): Call default_encode_section_info.
10140 (v850_strip_name_encoding): Remove.
10141 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10142 (ASM_OUTPUT_LABELREF): Remove.
10143 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10144 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10145 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10146 (ENCODED_NAME_P): Remove.
10147 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10148 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10149 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10150
e7d687bb
RH
101512003-04-17 Richard Henderson <rth@redhat.com>
10152
10153 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10154 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10155 SYMBOL_REF_FUNCTION_P.
10156
72628c61
RH
101572003-04-17 Richard Henderson <rth@redhat.com>
10158
10159 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10160 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10161 (text_segment_operand): Likewise.
10162
675ff4c7
RH
101632003-04-17 Richard Henderson <rth@redhat.com>
10164
10165 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10166 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10167 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10168 (sh_encode_section_info): Remove.
10169 (sh_strip_name_encoding): Remove.
10170 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10171 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10172 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10173 (ASM_OUTPUT_LABELREF): Remove.
10174 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10175 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10176
114278e7
RH
101772003-04-17 Richard Henderson <rth@redhat.com>
10178
10179 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10180 (tls_model_chars): Remove.
10181 (larl_operand): Use SYMBOL_REF_FLAGS.
10182 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
c6a2438a 10183 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
114278e7
RH
10184 (s390_output_mi_thunk): Likewise.
10185 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10186 (s390_function_profiler): Likewise.
10187 (s390_encode_section_info): Use default_encode_section_info
10188 and SYMBOL_FLAG_ALIGN1.
10189 (s390_strip_name_encoding): Remove.
10190 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10191 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10192 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10193
e95ef187
RH
101942003-04-17 Richard Henderson <rth@redhat.com>
10195
10196 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10197 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10198 (print_operand_address): Likewise.
10199
10200 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10201 * config/ns32k/ns32k.c (expand_block_move): Don't check
10202 flag_unroll_loops.
10203
6cd4a764
RH
102042003-04-17 Richard Henderson <rth@redhat.com>
10205
10206 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10207 SYMBOL_REF_FLAG.
10208
89e6b702
RH
102092003-04-17 Richard Henderson <rth@redhat.com>
10210
10211 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10212
10213 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10214 (SYMBOL_REF_MODEL): New.
10215 (LIT_NAME_P): Move from m32r.h.
10216 (m32r_select_section): Remove.
10217 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10218 (m32r_strip_name_encoding): Remove.
10219 (m32r_in_small_data_p): New.
10220 (small_data_operand): Use SYMBOL_REF_SMALL_P.
10221 (addr24_operand): Use SYMBOL_REF_MODEL.
10222 (call26_operand): Likewise.
10223 (addr32_operand): Tidy.
10224 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10225 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10226 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10227 (READONLY_DATA_SECTION_ASM_OP): Remove.
10228 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10229 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10230 (TARGET_ASM_SELECT_SECTION): Remove.
10231 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10232 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10233 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10234 (ASM_OUTPUT_LABELREF): Remove.
10235
ec94fc00
RH
102362003-04-17 Richard Henderson <rth@redhat.com>
10237
10238 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10239 (encode_section_info): Remove.
10240 * config/ip2k/ip2k-protos.h: Update.
10241
1b8135a4
RH
102422003-04-17 Richard Henderson <rth@redhat.com>
10243
c6a2438a 10244 * varasm.c (default_encode_section_info): Don't set
1b8135a4
RH
10245 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10246 * config/i370/i370.c (i370_encode_section_info): Remove.
10247 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10248 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10249 * config/i370/i370.md (movsi): Likewise.
10250
10251 * config/i370/t-i370: Add missing backslash.
10252
6d7fe8b3
EB
102532003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10254
10255 * doc/invoke.texi (inline-limit): Fix pasto.
10256
dc66a1c4
RH
102572003-04-17 Richard Henderson <rth@redhat.com>
10258
10259 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10260 (small_call_insn_operand): Use it.
10261 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10262 (h8300_eightbit_constant_address_p): Use it.
10263 (SYMBOL_FLAG_TINY_DATA): New.
10264 (h8300_tiny_constant_address_p): Use it.
10265 (h8300_encode_label, h8300_strip_name_encoding): Remove.
10266 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10267 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10268 (ASM_OUTPUT_LABELREF): Remove.
10269
90a63880
RH
102702003-04-16 Richard Henderson <rth@redhat.com>
10271
0f6e5d45
RH
10272 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
10273 all users with SYMBOL_REF_SMALL_P.
10274 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10275 (frv_encode_section_info): Remove.
10276 (frv_strip_name_encoding): Remove.
10277 (frv_in_small_data_p): Merge tests from encode_section_info.
10278 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10279 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10280 (SDATA_NAME_P): Remove.
10281 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10282 (ASM_OUTPUT_LABELREF): Remove.
10283 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10284
90a63880
RH
10285 * config/frv/frv.c (frv_asm_out_constructor): New.
10286 (frv_asm_out_destructor): New.
10287 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10288 (DTORS_SECTION_ASM_OP): New.
10289 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10290 (ASM_OUTPUT_DESTRUCTOR): Remove.
10291
5c93e01b
RH
102922003-04-16 Richard Henderson <rth@redhat.com>
10293
10294 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10295 SYMBOL_REF_LOCAL_P; abort if not pic.
10296 (cris_encode_section_info): Remove.
10297
11467df2
RH
102982003-04-16 Richard Henderson <rth@redhat.com>
10299
10300 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10301 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10302
10303 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10304 flag_inline_trees.
10305
74b66b3c
RH
103062003-04-16 Richard Henderson <rth@redhat.com>
10307
10308 * config/avr/avr.c (avr_encode_section_info): Remove.
10309 (avr_insert_attributes): New.
10310 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10311 (avr_assemble_integer): Likewise.
10312
8cbd5ce0
RH
103132003-04-16 Richard Henderson <rth@redhat.com>
10314
10315 * arc.c (arc_encode_section_info): Remove.
c6a2438a 10316 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
8cbd5ce0
RH
10317 (arc_print_operand, arc_print_operand_address): Likewise.
10318 * arc.h (EXTRA_CONSTRAINT): Likewise.
10319
96c6931d
RS
103202003-04-16 Roger Sayle <roger@eyesopen.com>
10321
10322 * c-semantics.c (find_reachable_label): New function to find a
10323 potentially reachable label in an expression.
10324 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10325 assumes the start of the IF_STMT is unreachable (dead) code.
10326 (expand_unreachable_stmt): Similar to expand_stmt but assumes
10327 the start of the statement list is unreachable (dead) code.
10328 (genrtl_if_stmt): If the controlling expression of the IF
10329 is constant, use expand_unreachable_stmt for the THEN or ELSE
10330 clause as appropriate.
10331 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
10332 the body of a SWITCH statement.
10333 (expand_stmt): The code immediately following a "return",
10334 "break", "continue" or "goto" is unreachable.
10335 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10336
3568b0ef
RH
103372003-04-16 Richard Henderson <rth@redhat.com>
10338
10339 * rtl.h (MEM_ALIAS_SET): Update documentation.
10340 * doc/rtl.texi (Special Accessors): New node.
10341 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10342
60fa6660
AO
103432003-04-16 Alexandre Oliva <aoliva@redhat.com>
10344
10345 * reload1.c (reload_cse_noop_set_p): Return false if mode of
10346 SET_DEST is not the same as that returned by...
10347 * cselib.h (cselib_reg_set_mode): ... new function.
10348 * cselib.c (cselib_reg_set_mode): Define it.
10349 (REG_VALUES): Document semantics of first element as set mode.
10350 (cselib_subst_to_values): Skip first element if ELT is NULL.
10351 (cselib_lookup): Likewise. Insert past the first element.
10352 (cselib_invalidate_regno): NULLify first element.
10353 (cselib_record_set): Set first element.
10354
15b19a7d
OH
103552003-04-16 Olivier Hainque <hainque@act-europe.fr>
10356
c6a2438a
ZW
10357 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10358 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10359 * tree.h: Add prototypes for the two new functions.
10360 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10361 updates introduced in the previous revision by call to saved_expr_p.
10362 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
a9ecacf6 10363
c6a2438a
ZW
10364 * expr.c (store_field): Force usage of bitfield instructions when
10365 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10366 (expand_expr, case BIT_FIELD_REF): likewise.
15b19a7d 10367
f2d80e7e
MM
103682003-04-16 Mark Mitchell <mark@codesourcery.com>
10369
10370 PR middle-end/8866
10371 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10372 jumptables.
10373
1cdbd630
RH
103742003-04-16 Richard Henderson <rth@redhat.com>
10375
10376 * config/ia64/ia64.c (sdata_symbolic_operand): Use
10377 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
10378 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10379 (function_operand): Use SYMBOL_REF_FUNCTION_P.
10380 (ia64_expand_load_address): Likewise.
10381 (ia64_assemble_integer): Likewise.
10382 (ia64_encode_section_info): Remove.
10383 (ia64_strip_name_encoding): Remove.
10384 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
10385 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
10386
d055668e
RH
103872003-04-16 Richard Henderson <rth@redhat.com>
10388
10389 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
10390 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
10391 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
10392 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10393 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
10394 (global_symbolic_operand): Similarly.
10395 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
10396 (tls_symbolic_operand_type): Likewise.
10397 (alpha_encode_section_info): Use default_encode_section_info.
10398 (alpha_strip_name_encoding): Remove.
10399 (get_tls_get_addr): Split out from ...
10400 (alpha_legitimize_address): ... here.
10401 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
10402 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
10403 (alpha_initialize_trampoline): Use init_one_libfunc.
10404 (alpha_setup_incoming_varargs): Mark unused parameters.
10405 (alpha_initial_elimination_offset): Likewise.
10406 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
10407 (unicosmk_unique_section): Use default_strip_name_encoding.
10408 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
10409
ffd25996
AH
104102003-04-16 Aldy Hernandez <aldyh@redhat.com>
10411
c6a2438a 10412 * config.gcc: Add t-spe for eabispe.
ffd25996 10413
c6a2438a 10414 * config/rs6000/t-spe: New.
ffd25996 10415
7f0ea82e
R
104162003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
10417
10418 Re-apply this patch:
10419
10420 2002-05-16 Dale Johannesen <dalej@apple.com>
10421 * combine.c (cant_combine_insn_p): Reenable combinations
10422 involving hard regs unless CLASS_LIKELY_SPILLED_P.
10423
c328adfa
JDA
104242003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10425
10426 PR/10271
10427 * pa-protos.h (function_arg): Remove last argument.
10428 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
c6a2438a 10429 * pa.h (struct hppa_args): Add member incoming.
c328adfa
JDA
10430 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
10431 member incoming.
10432 (FUNCTION_ARG): Revise call to function_arg.
10433 (FUNCTION_INCOMING_ARG): Delete.
10434
f9c1196a
ZW
104352003-04-15 Zack Weinberg <zack@codesourcery.com>
10436
10437 * configure.in: Unify the code which creates symlinks to a
10438 just-built as, ld, objdump, and nm with the code that detects
10439 their presence for purposes of feature tests.
10440 * configure: Regenerate.
10441
0b78a9b6
ZW
104422003-04-15 Zack Weinberg <zack@codesourcery.com>
10443
10444 * varasm.c (output_constant_def): Do not consult
10445 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
10446 (after_function_constants, output_after_function_constants): Delete.
10447 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
10448 * config/mips/mips-protos.h, config/mips/mips.c
10449 (mips16_constant_after_function_p): Delete.
10450 * config/mips/mips.h: Delete #if-0-ed definition of
10451 CONSTANT_AFTER_FUNCTION_P.
10452 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
10453 mention of CONSTANT_AFTER_FUNCTION_P in comment.
10454
03907fbd
GK
104552003-04-15 Geoffrey Keating <geoffk@apple.com>
10456
10457 * tree.c (next_decl_uid): Mark with GTY.
10458 (next_type_uid): Likewise.
10459
9959c8c7
R
104602003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
10461
10462 PR target/9594:
10463 * sh.c (barrier_align): Also recognize stuff_delay_slot as
10464 an indicator that a barrier was created by branch splitting.
10465
c8b718ba
MM
104662003-04-15 Mark Mitchell <mark@codesourcery.com>
10467
10468 * c-decl.c (implicitly_declare): Copy declarations that are going
10469 to be placed in a local scope.
10470
f5034c5e
JM
104712003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
10472
10473 * invoke.texi (Spec Files): Wrap if-exists-else example.
10474 (MCore): Remove duplicate @itemx entries and @opindex entries.
10475
7344f3d7
UW
104762003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
10477
10478 * unwind.inc (_Unwind_Backtrace): New function.
10479 * unwind.h (_Unwind_Backtrace): Declare it.
10480 * libgcc-std.ver (_Unwind_Backtrace): Export it.
10481
9547e8fd
JM
104822003-04-14 Jason Merrill <jason@redhat.com>
10483
10484 PR middle-end/10336, c++/10401
0b78a9b6 10485 * jump.c (never_reached_warning): Also stop looking if we reach the
9547e8fd
JM
10486 beginning of the function.
10487
55adc7bd
KG
104882003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10489
10490 PR target/10338
10491 PR bootstrap/10198
10492 PR bootstrap/10140
10493 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
10494
d2b54839
R
104952003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
10496
10497 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
10498
d0ccc658
RK
104992003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10500
10501 * optabs.c (expand_binop): In multi-word add cases, ensure
10502 XTARGET is copied to TARGET if they are different.
10503
29921faf
OH
105042003-04-15 Olivier Hainque <hainque@act-europe.fr>
10505
10506 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
10507 to region, possible after integration of function with unreachable
10508 regions that were optimized away.
10509
ff3867ae
JJ
105102003-04-15 Jakub Jelinek <jakub@redhat.com>
10511
10512 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
10513 instead of TOC_REGISTER in epilogue in
10514 current_function_calls_eh_return functions.
10515
f4e92987
MM
105162003-04-14 Mark Mitchell <mark@codesourcery.com>
10517
db0b376e
MM
10518 * doc/extend.texi (Empty Structures): Correct description of G++'s
10519 handling of these structures.
10520
f4e92987
MM
10521 * c-decl.c (grokdeclarator): Reject extern redeclarations of
10522 static variables.
10523
629f6514
JJ
105242003-04-14 Janis Johnson <janis287@us.ibm.com>
10525
615158e2
JJ
10526 * config/rs6000/rs6000.md (define_constants): Define constants for
10527 all UNSPEC usage, including new values for TLS support.
10528 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
10529 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
10530 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
10531 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
10532 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
10533 eh_set_lr_di): Use them.
10534 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
10535 rs6000_emit_epilogue) Use them.
10536
629f6514
JJ
10537 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
10538
8951a635
NB
105392003-04-14 Neil Booth <neil@daikokuya.co.uk>
10540
10541 * Makefile.in (c-opts.o): Use custom action.
10542
798a3935
DR
105432003-04-14 Douglas B Rupp <rupp@gnat.com>
10544
10545 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
10546
2443af37
RK
105472003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10548
0d3c8800
RK
10549 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
10550 handle "superflat arrays" in Ada.
10551
2443af37
RK
10552 * integrate.c (expand_inline_function): Don't inline if would
10553 lose /u on a BLKmode TARGET.
10554
8cb5fbbf
JB
105552003-04-14 Joel Brobecker <brobecker@gnat.com>
10556
39d658e3
JB
10557 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
10558 extracted from dbxout_type.
10559 (dbxout_range_type): print large bounds in octal format.
10560 (dbxout_type): Replace extracted code by call to
10561 print_int_cst_bounds_in_octal_p.
10562
0b78a9b6
ZW
10563 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
10564 of DW_LANG_Ada83 for Ada units.
8cb5fbbf 10565
9ceca302
OH
105662003-04-14 Olivier Hainque <hainque@act-europe.fr>
10567
41ee3204
OH
10568 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
10569 temporary used to round CONST_INT sizes.
10570
4694840a
OH
10571 * tree.c (int_fits_type_p): Extract generic checks from the case
10572 of constant type bounds. Refine the checks against constant type
10573 bounds to allow for possible decisions against each of these bounds
10574 without requiring both bounds to be constant.
10575 (tree_int_cst_msb): Put back.
10576 * tree.h (tree_int_cst_msb): Likewise.
10577
4147232b
OH
10578 * global.c (global_conflicts): Prevent allocation of call clobbered
10579 hard regs to pseudos live across abnormal edges, as later passes are
10580 not ready to handle them.
10581
0b78a9b6
ZW
10582 * fold-const.c (fold): Reorder tests for conditional expressions.
10583
10584 * expr.c (highest_pow2_factor): Return unsigned.
10585 * expr.h (offset_address): Likewise.
10586 * emit-rtl.c (offset_address): POW2 argument now unsigned.
cbcafd35 10587
712b7a05
RS
105882003-04-14 Roger Sayle <roger@eyesopen.com>
10589
10590 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
10591 string literals at compile-time.
10592
15d4fd98
RS
105932003-04-14 Roger Sayle <roger@eyesopen.com>
10594
10595 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
10596 comparison operation and c1/c2 are floating point constants into
10597 x swap(cmp) (c1 - c2).
10598
2fcb395c
VM
105992003-04-14 Vladimir Makarov <vmakarov@redhat.com>
10600
10601 * genautomata.c (output_translate_vect): Fix a typo in loop
10602 condition.
10603
747a0d9d
HPN
106042003-04-14 Hans-Peter Nilsson <hp@axis.com>
10605
10606 PR target/10377
10607 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
10608 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
10609 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
10610 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
10611 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
10612 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
10613 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
10614 ("*extopqihi_swap_side", "*extopqisi_swap_side")
10615 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
10616 When next to constraint R, replace constraint i with n.
10617
58e6ae30
JH
10618Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
10619
10620 PR opt/10024
10621 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
10622
88657a26
KL
106232003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10624
10625 * doc/contrib.texi (Contributors): Correct my entry.
10626
7f685e17
RS
106272003-04-13 Roger Sayle <roger@eyesopen.com>
10628
10629 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
10630 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
10631 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
10632 implies DECL_BUILT_IN to simplify logic.
10633 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
10634
1331d16f
RS
106352003-04-13 Roger Sayle <roger@eyesopen.com>
10636
10637 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
10638 (BT_FN_PTR_SIZE_SIZE): Likewise.
10639 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
10640 New built-in functions for malloc, calloc and strdup respectively.
10641 * calls.c (special_function_p): No need to handle malloc-like
10642 functions any longer. ECF_MALLOC is set via built-in attributes.
10643
10644 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
10645
10646 * doc/extend.texi: Document these new built-in functions.
10647
9cb65f92
KG
106482003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10649
10650 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
10651 (expand_builtin_stpcpy): New.
10652 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
10653 * builtins.def: Add mempcpy & stpcpy support.
10654 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
10655
5de601cf
NC
106562003-04-13 Nick Clifton <nickc@redhat.com>
10657
10658 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
10659 "GCC".
10660 * config/rs6000/40x.md, config/rs6000/603.md,
10661 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
10662 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
10663 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
10664 config/rs6000/aix43.h, config/rs6000/aix51.h,
10665 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
10666 config/rs6000/altivec.h, config/rs6000/altivec.md,
10667 config/rs6000/beos.h, config/rs6000/darwin.h,
10668 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
10669 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
10670 config/rs6000/freebsd.h, config/rs6000/gnu.h,
10671 config/rs6000/host-darwin.c, config/rs6000/linux.h,
10672 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
10673 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
10674 config/rs6000/netbsd.h, config/rs6000/power4.md,
10675 config/rs6000/rios1.md, config/rs6000/rios2.md,
10676 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
10677 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10678 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
10679 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
10680 config/rs6000/spe.md, config/rs6000/sysv4.h,
10681 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
0b78a9b6 10682 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5de601cf 10683
50d440bc
NC
106842003-04-13 Nick Clifton <nickc@redhat.com>
10685
10686 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
10687 support for -mcall-aix switch.
10688 * config/rs6000/eabiaix.h: Delete.
10689 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
10690 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
10691 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
10692 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
10693 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
10694 debug_stack_info, output_function_profiler,
10695 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
10696 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
10697 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
10698 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
10699 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
10700 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
10701 multilibs.
10702 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
10703 (MULTILIB_EXCEPTIONS): Delete.
10704 (MULTILIB_MATCHES): Remove mcall-aix matches.
10705
10706 * doc/fragments.texi: Replace -mcall-aix example with an ARM
10707 one.
10708 * doc/install.texi: Delete powerpc-*-eabiaix target.
10709 * doc/invoke.texi: Remove documentation of mcall-aix switch.
10710 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
10711 * config.gcc: Delete powerpc-*-eabiaix target.
10712
62b9c42c
KH
107132003-04-13 Kazu Hirata <kazu@cs.umass.edu>
10714
10715 * doc/invoke.texi: Fix typos.
10716 * doc/tm.texi: Likewise.
10717
6d0c8bb1
ZW
107182003-04-12 Zack Weinberg <zack@codesourcery.com>
10719
10720 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
10721
dcf92453
ZW
107222003-04-12 Zack Weinberg <zack@codesourcery.com>
10723
10724 * tree.c (build_constructor): New function.
10725 * tree.h: Prototype it.
10726
10727 * c-typeck.c (build_c_cast, pop_init_level)
10728 * profile.c (build_function_info_value, build_gcov_info_value)
10729 (create_profiler):
10730 Use build_constructor.
10731
10732 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
10733
10734 * objc/objc-act.c (build_constructor):
10735 Rename objc_build_constructor. Use build_constructor.
10736 (build_objc_string_object, objc_add_static_instance)
10737 (init_def_list, init_objc_symtab, init_module_descriptor)
10738 (generate_static_references, build_selector_translation_table)
10739 (build_descriptor_table_initializer, generate_descriptor_table)
10740 (build_protocol_initializer, build_ivar_list_initializer)
10741 (generate_ivars_list, build_dispatch_table_initializer)
10742 (generate_dispatch_table, generate_protocol_list)
10743 (build_category_initializer, build_shared_structure_initializer):
10744 Update to match.
10745
c85b28e8
ZW
107462003-04-12 Zack Weinberg <zack@codesourcery.com>
10747
10748 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
10749
cebcfdc8
SC
107502003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10751
dcf92453 10752 * config/m68hc11/m68hc11-protos.h
cebcfdc8
SC
10753 (m68hc11_eq_compare_operator): Declare
10754 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
10755 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
10756 (d_register_operand): Check the operand mode.
10757 (hard_addr_reg_operand): Likewise.
10758
0ae32ec0
SC
107592003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10760
10761 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
10762 pattern for dbcc/ibcc generation for 68HC12.
10763 ("doloop_end"): New pattern.
10764 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
10765 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
10766 ("m68hc12_dbcc_dec_qi"): New pattern.
10767 ("m68hc12_dbcc_inc_qi"): New pattern.
10768 (split): Add split for the above when we can't use dbcc/ibcc due to
10769 reloading.
10770 (peephole2): Add peephole2 to generate the above when possible.
10771
a67bac5f
SC
107722003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10773
10774 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
10775 mode of operand 0.
10776 (peephole2 optimize const load): Likewise for operand 2.
10777 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
10778 clobbers CC_REGNUM.
10779 ("*rotrhi3_with_carry"): Likewise.
10780 (ashift:DI 1 split): Update pattern to create the above rotate.
10781 (lshiftrt:DI 1 split): Likewise.
10782
09214424
SC
107832003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10784
10785 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
10786 ("tstqi_z_used" split): Use it.
10787 ("cmphi_z_used"): Likewise.
10788 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
10789 ("cmpqi_z_used"): Likewise.
10790
355b81d5
MM
107912003-04-12 Mark Mitchell <mark@codesourcery.com>
10792
10793 PR c++/7910
10794 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
10795
2bd02043
ZW
107962003-04-12 Zack Weinberg <zack@codesourcery.com>
10797
10798 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
10799 * configure, config.in: Regenerate.
10800 * intl.c (gcc_gettext_width): New function.
10801 * intl.h: Prototype it.
10802
96cd9069
SC
108032003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10804
10805 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
10806 recognize -mnorelax.
10807 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
10808 (REG_CLASS_NAMES): Add its name.
10809 (REG_CLASS_CONTENTS): Define its content.
10810
c364c3a6
SC
108112003-04-12 Stephane Carrez <stcarrez@nerim.fr>
10812
10813 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
10814 parameters so that offsets are valid for far definition.
10815 (__mulsi3): Likewise and use ret to return.
10816 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
10817
09501938
DE
108182003-04-12 David Edelsohn <edelsohn@gnu.org>
10819
10820 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
10821
ff3d4e83
AO
108222003-04-12 Alexandre Oliva <aoliva@redhat.com>
10823
17a15c67
AO
10824 * mklibgcc.in (libgcc-stage-start): For every multilib directory
10825 containing a libgcc.a, move lib* to the corresponding stage dir.
10826
ff3d4e83
AO
10827 * Makefile.in (stage1-start, stage2-start, stage3-start,
10828 stage4-start): Move $(SPECS) to specs in stage dir.
10829 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
10830 back as $(SPECS).
10831
9e6ccb98
AO
10832 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
10833 object files from the non-libgcc/ multilib directories as well.
10834
ba05abd3
GK
108352003-04-11 Geoffrey Keating <geoffk@apple.com>
10836
0aaafe73
GK
10837 * profile.c (read_counts_file): Initialise 'checksum'.
10838
d5b9108c
GK
10839 * emit-rtl.c (gen_rtx): Really correct typo.
10840
a37db56b
GK
10841 PR c++/9393
10842 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
10843 * configure.in: Check for gettimeofday.
10844 * tree.c (flag_random_seed): Define.
10845 (default_flag_random_seed): New.
10846 (append_random_chars): Use flag_random_seed rather than trying
10847 to acquire randomness here.
10848 * tree.h (default_flag_random_seed): Declare.
10849 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
10850 descriptions.
10851 (decode_f_option): Handle -frandom-seed.
10852 (print_switch_values): Call default_flag_random_seed.
10853 * flags.h (flag_random_seed): Declare.
10854 * configure: Regenerate.
10855 * config.in: Regenerate.
10856 * config/alpha/t-crtfm: Use -frandom-seed.
2bd02043 10857
ba05abd3
GK
10858 * doc/extend.texi (Empty Structures): New.
10859
df026186
GK
10860 * c-pch.c: Include flags.h. Add comments to routines.
10861 (struct c_pch_validity): New.
10862 (get_ident): Update PCH file version number.
10863 (pch_init): Output current debugging type.
10864 (c_common_valid_pch): Check debugging type.
10865 * Makefile.in (c-pch.o): Update dependencies.
10866 * flags.h (debug_type_names): Declare.
10867 * toplev.c (debug_type_names): Move out of decode_g_option.
10868
15c812e3
EC
108692003-04-11 Eric Christopher <echristo@redhat.com>
10870
10871 * emit-rtl.c (gen_rtx): Fix typos.
10872
a73071bc
RH
108732003-04-11 Richard Henderson <rth@redhat.com>
10874
10875 * emit-rtl.c (gen_rtx): Zero '0' fields.
10876
ca06cfe6
RH
108772003-04-11 Richard Henderson <rth@redhat.com>
10878
10879 PR c++/10202
10880 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
10881 not COMPLETE_TYPE_P for re-invoking layout_decl.
10882
d2d42a91
SL
108832003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
10884
10885 * doc/bugreport.texi: Fix paragraph breaking between sections
10886 in preparation for TeXinfo's paragraph indentation fixes.
10887 * doc/extend.texi: Ditto.
10888 * doc/invoke.texi: Ditto.
10889 * doc/objc.texi: Ditto.
10890 * doc/gcov.texi: Wrap 'gcov' in @command{}.
10891 * doc/invoke.texi (Darwin Options): Add a preamble.
10892
2ae5ae57
RH
108932003-04-11 Richard Henderson <rth@redhat.com>
10894
10895 * config/i386/i386.c (tls_model_chars): Remove.
10896 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
10897 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10898 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10899 (tls_symbolic_operand_1): Likewise.
10900 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
10901 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
10902 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
10903 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
10904 bits "copied from i386.h" with default_encode_section_info.
10905
52859c77
RH
109062003-04-11 Richard Henderson <rth@redhat.com>
10907
10908 * rtl.def (SYMBOL_REF): Add two 0 fields.
10909 * gengtype.c (adjust_field_rtx_def): Handle them.
10910 * print-rtl.c (print_rtx): Print them.
10911 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
10912 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
10913 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
10914 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
10915 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
10916 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
10917 (SYMBOL_FLAG_MACH_DEP): New.
10918 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
10919 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
10920 (assemble_static_space): Set SYMBOL_REF_FLAGS.
10921 (assemble_trampoline_template): Likewise.
10922 (output_constant_def, force_const_mem): Likewise.
10923 (default_encode_section_info): New.
10924 * output.h: Declare it.
10925 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
10926
68d28100
RH
109272003-04-11 Richard Henderson <rth@redhat.com>
10928
10929 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
10930 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
10931 * optabs.c (init_optabs): Initialize them.
10932 (init_libfuncs): Use init_one_libfunc.
10933 * calls.c (expand_call): Use gcov_flush_libfunc.
10934 * expr.c (store_constructor): Use setbits_libfunc.
10935 * function.c (expand_main_function): Use init_one_libfunc.
10936 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
10937
11fe27a5
MM
109382003-04-11 Mark Mitchell <mark@codesourcery.com>
10939
10940 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
10941 documentation; add DECL_FRIEND_CONTEXT.
10942
f401d0f5
JDA
109432003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10944
10945 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
10946 notes on linker selection and configuration for 64-bit HP-UX port.
10947 * doc/invoke.texi (hppa): Remove hppa text from description for
10948 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
10949 and -threads options.
10950
10951 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
10952 libc.a on libdld.sl when -static is specified and -nolibdld is not
10953 specified.
10954 * pa64-hpux.h (LIB_SPEC): Likewise.
10955 * pa-hpux11.h (LIB_SPEC): Likewise.
10956 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
10957 is not specified.
10958
43451169
ZW
109592003-04-11 Zack Weinberg <zack@codesourcery.com>
10960
10961 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
10962 not IDENTIFIER_LOCAL_VALUE.
10963
a46666a9
RH
109642003-04-11 Richard Henderson <rth@redhat.com>
10965
10966 PR c/10201
10967 * expr.c (expand_expr): Move DECL_RTL frobbing ...
10968 * stor-layout.c (layout_decl): ... here.
10969
6d2f9dd3
JM
109702003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
10971
10972 * doc/invoke.texi: Eliminate extra white-space caused by
10973 @gccoptlist{ on its own line.
10974 * doc/invoke.texi: Ensured there are two spaces between each option.
10975 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10976 Added @gol to options that didn't have them.
10977
94de45d9
NS
109782003-04-11 Nathan Sidwell <nathan@codesourcery.com>
10979
10980 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
10981 gcov-iov.h.
10982
10983 Simplify interface to gcov reading and writing.
10984 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
10985 gcov_alloc, gcov_modified, gcov_errored): Move into ...
10986 (struct gcov_var gcov_var): ... this static structure.
10987 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
10988 Return void.
10989 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
10990 read object.
10991 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
10992 (gcov_reserve_length): Remove.
10993 (gcov_write_tag): New.
10994 (gcov_write_length): Adjust.
10995 (gcov_read_summary, gcov_write_summary): Adjust.
10996 (gcov_eof, gcov_ok): Rename to ...
10997 (gcov_is_eof, gcov_is_error): ... here. Return error code.
10998 (gcov_save_position, gcov_resync): Rename to ...
10999 (gcov_position, gcov_seek): ... here.
11000 (gcov_skip, gcov_skip_string): Remove.
11001 (gcov_error): Remove.
11002 (gcov_open, gcov_close): Adjust.
11003 * gcov.c (find_source): Take const char *, copy it on allocation.
11004 (read_graph_file): Adjust.
11005 (read_count_file): Adjust.
11006 * libgcov.c (gcov_exit): Adjust.
11007 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11008 tag_arc_counts, tag_summary): Return void. Adjust.
11009 (struct tag_format): Adjust proc member.
11010 (dump_file): Adjust gcov calls.
11011
7a615b25
AO
110122003-04-11 Alexandre Oliva <aoliva@redhat.com>
11013
11014 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11015 mkfixinc.sh.
11016 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11017 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11018 build != host sysrooted builds.
11019 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11020 TARGET_SYSTEM_ROOT even on sysrooted natives.
11021 * configure: Rebuilt.
11022
339a28b9
ZW
110232003-04-10 Zack Weinberg <zack@codesourcery.com>
11024
11025 * c-decl.c (struct binding_level): Add shadowed_tags and
11026 function_body; remove this_block, tag_transparent, and
11027 subblocks_tag_transparent; update comments.
11028 (clear_binding_level, lookup_tag_reverse): Kill.
11029 (make_binding_level): Use ggc_alloc_cleared or memset.
11030 (lookup_tag): Remove struct binding_level* parameter. All
11031 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11032 current_binding_level->tags if asked for thislevel_only or if
11033 we might have to diagnose "struct foo; union foo;"
11034 (pushlevel): Ignore argument. Do not push another binding
11035 level on the transition from the parameters to the top level
11036 of the function body; just tweak the flags and proceed.
11037 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
11038 a function body, separate the parameter list from the
11039 top-level local variables.
11040 (set_block): Do nothing.
11041 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11042 shadowed_tags if necessary.
11043 (warn_if_shadowing): Nuke the special case for local shadowing
11044 parameter.
11045 (pushdecl): Do not create a shadow entry if we are replacing
11046 an older decl in the same binding level.
11047 (pushdecl_function_level): Tweak for new way of indicating
11048 function scope.
11049 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11050 (start_function): Don't set subblocks_tag_transparent.
11051 (finish_function): Fix up the binding_level stack for totally
11052 empty functions. Otherwise, don't call poplevel.
11053
11054 * c-common.c (shadow_warning): MANDATORY argument is no longer
11055 necessary. Always use plain warning.
11056 * c-common.h: Update to match.
11057
11058 * cfglayout.c (scope_to_insns_initialize): Clear block when we
11059 hit the FUNCTION_DECL.
11060 * function.c: Do not create cyclic tree structure.
11061
110622003-04-10 Zack Weinberg <zack@codesourcery.com>
11063
11064 * c-tree.h (struct lang_identifier): Replace global_value,
11065 local_value members with symbol_value, tag_value. Kill
11066 implicit_decl and limbo_value.
11067 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11068 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11069 C_MISSING_PROTOTYPE_WARNED): Kill.
11070 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11071 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11072 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11073 (implicit_decl_warning, lookup_name_current_level,
11074 record_function_scope_shadow): Don't prototype.
11075 (pushdecl_function_level): Prototype.
11076
11077 * c-decl.c (truly_local_externals): New variable.
11078 (struct binding_level): Adjust commentary.
11079 (get_function_binding_level, clear_limbo_values,
11080 record_function_scope_shadow): Kill.
11081 (lookup_name_current_level, implicit_decl_warning): Are now static.
11082 (any_external_decl, record_external_decl): New static functions.
11083 (clone_underlying type): Split out of pushdecl.
11084 (c_print_identifier): Update to match changes to struct
11085 lang_identifier.
11086 (poplevel): Delete #if 0 block. Make externals invisible
11087 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
11088 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
11089 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11090 (duplicate-decls): For real parm decl after a forward decl,
11091 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
11092 foo(...) { } with only a warning. Say whether a previous
11093 declaration was implicit.
11094 (warn_if_shadowing): Now handles all shadowing, not just
11095 local-over-local. Clarify comments.
11096 (pushdecl): Rewritten. There is no longer a distinction
11097 between global and local symbol values; they're all
11098 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
11099 DECL_EXTERNAL decls, and use any_external_decl to check
11100 against previous externals. Kill #if 0 blocks. Don't
11101 tolerate error_mark_node being NULL.
11102 (pushdecl_top_level): Handle only those cases which
11103 Objective C (the only user) needs.
11104 (pushdecl_function_level): New function.
11105 (implicitly_declare): Create ordinary decls with
11106 C_DECL_IMPLICIT set. Recycle old decls, however they got
11107 created.
11108 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11109 for C_DECL_INVISIBLE symbols.
11110 (lookup_name_current_level): Likewise. Use chain_member.
11111 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11112 Use pushdecl_function_level.
11113 (builtin_function): Use C_DECL_INVISIBLE.
11114 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11115 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11116 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11117 (identifier_global_value): Same. Must scan
11118 global_binding_level in extremis.
11119
11120 * c-typeck.c (undeclared_variable): New static function, split
11121 from build_external_ref.
11122 (build_external_ref): Use DECL_CONTEXT, not
11123 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11124 an instance variable. Restructure for clarity.
11125 * objc/objc-act.c: Use identifier_global_value, not
11126 IDENTIFIER_GLOBAL_VALUE.
11127
6d9c4c83
JW
111282003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
11129
11130 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11131 not Working Paper.
11132 * doc/invoke.texi (C++ Dialect Options): Same.
11133
06790e5f
ZW
111342003-04-10 Zack Weinberg <zack@codesourcery.com>
11135
11136 * tree.c (tree_operand_check_failed): New function.
11137 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11138 TREE_RTL_OPERAND_CHECK): New checking macros.
11139 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11140 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11141 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11142 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11143 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11144 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11145 checking macros.
11146
f90e4dea
JH
11147Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
11148
11149 PR inline-asm/8803
11150 * function.c (instantate_virtual_regs): Verify that all ASM statements
11151 match after the virutal regs instantiation.
11152
08744705
SE
111532003-04-10 Steve Ellcey <sje@cup.hp.com>
11154
11155 * ia64-protos.h (addp4_optimize_ok): New.
11156 * ia64.c (addp4_optimize_ok): New.
11157 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11158 (*ptr_extend_plus_2): Ditto.
11159
267b28bd
SE
111602003-04-10 Steve Ellcey <sje@cup.hp.com>
11161
11162 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11163 not with convert_memory_address.
11164 (store_constructor): Ditto, and same for copy_size_rtx.
11165 (expand_expr): Ditto.
11166
021bad8e
DR
111672003-04-10 Douglas B Rupp <rupp@gnat.com>
11168
11169 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11170
1839841c
BW
111712003-04-10 Bob Wilson <bob.wilson@acm.org>
11172
11173 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11174 even if it is configured to be write-through.
11175
e23795ea
UW
111762003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11177
11178 * config/s390/s390.c (larl_operand): Do not allow symbols
11179 marked with '@'.
11180 (s390_encode_section_info): Mark symbols with forced 1-byte
11181 alignment with '@'.
11182 (s390_strip_name_encoding): Strip '@'.
11183 (legitimize_pic_address): Handle symbols that are not valid
11184 LARL operands in 64-bit mode.
11185
0bb7378d
AH
111862003-04-10 Andrew Haley <aph@redhat.com>
11187
11188 * tree-inline.c (inlinable_function_p): Disable inlining for
11189 synchronized methods.
11190
009ed910
SB
111912003-04-09 Steven Bosscher <steven@gcc.gnu.org>
11192
11193 * c-common.h (lang_statement_code_p): Remove declaration.
11194 (statement_code_p): Ditto.
11195 (c_common_stmt_codes): Define; list of c-common statement codes.
11196 (statement_code_p): New extern declaration.
11197 (STATEMENT_CODE_P): Define.
11198 (INIT_STATEMENT_CODES): Define.
11199 * c-common.c (statement_code_p): Kill the function, declare
11200 as an array of bools instead.
11201 (lang_statement_code_p): Remove.
11202 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11203 (c_safe_from_p): Ditto.
11204 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11205 to initialize the statement_code_p array.
11206 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11207 statement_code_p.
11208 (copy_tree_r): Ditto.
11209 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11210 statement tree codes.
11211 * cp/lex.c (cxx_init): Add missing print line break. Use
11212 INIT_STATEMENT_CODES to initialize the statement_code_p array.
11213 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11214 instead of statement_code_p.
11215 * cp/pt.c (tsubst_expr): Ditto.
11216 * cp/tree.c (verify_stmt_tree_r): Ditto.
11217 (cp_statement_code_p): Remove.
11218 (init_tree): Don't set lang_statement_code_p, it's gone.
11219
496324d0
DN
112202003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
11221 Zack Weinberg <zack@codesourcery.com>
11222
11223 * regrename.c (struct du_chain): Use a bitfield for reg_class.
11224 * cse.c (struct qty_table_elem, struct table_elt, struct set):
11225 Use bitfields for fields holding enum rtx_code or
11226 enum machine_mode values. Add comments explaining size choices.
11227
9c951124
AO
112282003-04-09 Alexandre Oliva <aoliva@redhat.com>
11229
11230 * config/fp-bit.c (unpack_d): Handle pair of doubles with
11231 different signs correctly.
11232
d1c9693e
VM
112332003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11234
11235 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11236 (reg_pending_barrier): Make it of the enumeration type.
11237 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11238 TRUE_BARRIER.
11239 (sched_analyze): Ditto.
11240 (sched_analyze_insn): Ditto. Use anti-dependencies for
11241 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11242 (init_deps_global): Initialize the barrier as NO_BARRIER.
06790e5f 11243
f32360c7
VM
112442003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11245
11246 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11247 Check that asm insn starts on a new cycle. Add nops after asm
11248 insn to end bundle.
11249 (bundling): Move insn type evaluation from the loop. Call
11250 issue_nops_and_insn with the new parameter. Ignore changing
11251 position for nops after asm insn.
11252
0913e4b4
AO
112532003-04-09 Alexandre Oliva <aoliva@redhat.com>
11254
11255 * optabs.c: Comment that gen_add2_insn and others may actually
11256 return emitted insns, if the gen functions turn out to return
11257 emitted insns.
11258 * reload1.c (reload_cse_move2add): Cope with emitted insns from
11259 gen_add2_insn.
11260
21515593
RH
112612003-04-09 Richard Henderson <rth@redhat.com>
11262
11263 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11264 but not tls_symbolic_operand.
11265 (ia64_expand_load_address): Remove scratch operand.
11266 (ia64_expand_tls_address): Split out from ia64_expand_move.
11267 (ia64_expand_move): Split symbolics only after reload.
11268 (ia64_emit_cond_move): New.
11269 * config/ia64/ia64-protos.h: Update.
11270 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11271 (symbolic splitter): Accept SImode operands too.
11272 (cmove splitter): Use ia64_emit_cond_move.
11273
66d6bf1f
NC
112742003-04-09 Nick Clifton <nickc@redhat.com>
11275
11276 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11277 newer.
11278 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11279 instead of -mno-fpu.
11280 * config/arm/semi.h (ASM_SPEC): Likewise.
11281 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11282 but only if -msoft-float is specified pass. Otherwise pass
11283 -mfpu=softvfp.
06790e5f 11284
22659ac9
ZD
112852003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11286
11287 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11288 free_EXPR_LIST_node.
11289
5fce2c65
RS
112902003-04-08 Roger Sayle <roger@eyesopen.com>
11291
11292 * fold-const.c (fold): Use "fold" following build in more places.
11293 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11294 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11295
531878a6
RS
112962003-04-08 Roger Sayle <roger@eyesopen.com>
11297
11298 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
11299 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11300 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11301 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11302 Delete function scope "fcode" variable to avoid shadowing.
11303
c583e7c3
KB
113042003-04-08 Kevin Buettner <kevinb@redhat.com>
11305
11306 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11307 Take into account DWARF_INITIAL_LENGTH_SIZE.
11308
5a82c0b1
HPN
113092003-04-08 Hans-Peter Nilsson <hp@axis.com>
11310
11311 * reorg.c (fill_slots_from_thread): When considering changing the
11312 insn following a reg-to-reg copy insn to use the source reg of the
11313 copy, bail out if there's overlap between the registers.
11314
8a5275eb
ZD
113152003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11316
11317 * function.c (postponed_insns): New.
11318 (purge_addressof_1): Postpone processing of insns if addressofs
11319 are not put into stack.
06790e5f 11320 (purge_addressof): Process postponed insns.
8a5275eb 11321
ac55736a
R
113222003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11323
11324 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11325 this is FP_MODE_DOUBLE .
11326 * sh.c (ra.h): #include.
11327 (push_regs): Add second parameter. Changed all callers.
11328 If necessary, set fpscr before saving floating point registers.
11329 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11330 do saves / restores with SZ == 1.
11331 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11332 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
11333 registers are being restored, restore FPSCR only after restoring them.
11334
3fdaa45a
AH
113352003-04-08 Aldy Hernandez <aldyh@redhat.com>
11336
496324d0
DN
11337 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11338 regardless of architecture.
11339 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
3fdaa45a 11340
490dbac7
R
113412003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11342
11343 * sh.c (push_regs, calc_live_regs): Return int. Take single
11344 HARD_REG_SET * parameter. Changed all callers.
11345
799b33a0
JH
11346Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
11347
11348 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11349 GOTOFF operand.
11350 (legitimize_pic_address): Move plus outside the unspec.
11351 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
11352 for validity.
11353
3e71e002
NS
113542003-04-08 Nathan Sidwell <nathan@codesourcery.com>
11355
11356 * gcov-io.h (gcov_save_position): Remove __inline__ from
11357 declaration.
11358
7ba4ca63
MK
113592003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
11360
11361 * doc/install.texi: Use @command and @samp for single- and
11362 multi-word commands respectively.
11363 * doc/makefile.texi: Likewise.
11364 * doc/sourcebuild.texi: Likewise.
11365
f8d4be57 113662003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
496324d0 11367 Richard Henderson <rth@redhat.com>
f8d4be57 11368
496324d0
DN
11369 PR c/9516
11370 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
6356f892 11371 favor of looping and tail recursion for TREE_LIST and binops.
f8d4be57 11372
760e8e42
ZD
113732003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11374
11375 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11376 for insns without luid.
11377
b0a3412c
GN
113782003-04-07 Glen Nakamura <glen@imodulo.com>
11379
11380 PR opt/8634
11381 * explow.c (maybe_set_unchanging): Don't flag non-static const
11382 aggregate type initializers with RTX_UNCHANGING_P.
11383
c5a1e3d6
RH
113842003-04-07 Richard Henderson <rth@redhat.com>
11385
496324d0
DN
11386 PR opt/8634
11387 * function.c (purge_addressof_1): Don't try arithmetics for
11388 unchanging memories.
c5a1e3d6 11389
138d4703
JJ
113902003-04-07 Janis Johnson <janis187@us.ibm.com>
11391
11392 * doc/sourcebuild.texi (Test Suites): Document testing support for
11393 gcov and profile-directed optimizations; describe gcc.misc-tests.
11394
1d5b4e0b
JH
11395Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
11396
11397 PR target/10077
11398 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
11399
60ba917e
EB
114002003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11401
11402 * doc/rtl.texi (Comparison operations): Update to
11403 record the allowed comparison modes.
11404
2abe3e28
AH
114052003-04-07 Aldy Hernandez <aldyh@redhat.com>
11406
496324d0
DN
11407 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
11408 V2SI_type_node to opaque_V2SI_type_node. Rename all
11409 V2SF_type_node to opaque_V2SF_type_node.
11410 (rs6000_init_builtins): Define opaque_V2SI_type_node and
11411 opaque_V2SF_type_node.
11412 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
11413 opaque_V2SF_type_node are opaque types.
2abe3e28 11414
9a318d30
R
114152003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
11416
11417 * gcse.c (replace_store_insn): Use single_set.
11418
546d2adb
NS
114192003-04-07 Nathan Sidwell <nathan@codesourcery.com>
11420
11421 Change gcov file interface to single file at a time.
11422 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
11423 Convert to C89 prototypes.
11424 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
11425 gcov_error, gcov_modified): New static variables.
11426 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
11427 functions.
11428 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11429 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11430 (gcov_read_summary, gcov_write_summary): Adjust.
11431 (gcov_save_position, gcov_reserve_length, gcov_write_length):
11432 Adjust.
11433 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
11434 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
11435 (da_file_position, da_file_seek, da_file_write, da_file_read):
11436 Remove.
11437 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
11438 * gcov.c (gcov_type): Don't typedef here.
11439 (IN_GCOV): #define
11440 (read_graph_file, read_count_file): Adjust.
11441 * gcov-dump.c (gcov_type): Don't typedef here.
11442 (IN_GCOV): #define.
11443 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
11444 Remove FILE parameter, adjust.
11445 (struct tag_format): Adjust proc member.
11446 (dump_file): Adjust.
11447 * libgcov.c (IN_LIBGCOV): #define.
11448 (gcov_exit): Adjust.
11449 * loop-init.c: Don't #include gcov-io.h
11450 * profile.c (struct counts_entry): New structure to hold counter
11451 values.
11452 (struct section_reference, struct da_index_entry): Remove.
11453 (bbg_file, da_file): Remove.
11454 (htab_counts_index_hash, htab_counts_index_eq,
11455 htab_counts_index_del): Replace with ...
11456 (htab_counts_entry_hash, htab_counts_entry_eq,
11457 htab_counts_entry_del): ... these.
11458 (cleanup_counts_index, index_counts_file): Remove.
11459 (read_counts_file): New function.
11460 (get_exec_counts): Adjust.
11461 (compute_branch_probabilities): Don't free the exec counts here.
11462 (branch_prob): Adjust.
11463 (init_branch_prob): Adjust.
11464 (end_branch_prob): Adjust.
11465
5da702b1
AH
114662003-04-07 Aldy Hernandez <aldyh@redhat.com>
11467
496324d0
DN
11468 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11469 -mfloat-gprs.
5da702b1 11470
496324d0
DN
11471 * config/rs6000/rs6000.c: Delete rs6000_fprs.
11472 Declare rs6000_float_gprs.
11473 Declare rs6000_float_gprs_string.
11474 (rs6000_parse_float_gprs_option): New.
11475 (rs6000_override_options): Genericize rs6000_parse_* calls to use
11476 rs6000_parse_yes_no_option.
11477 Change check for cpu=8540, to use TARGET_E500.
11478 (rs6000_parse_isel_option): Delete.
11479 (rs6000_parse_spe_option): Delete.
11480 (rs6000_parse_vrsave_option): Delete.
5da702b1 11481
496324d0
DN
11482 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
11483 Define rs6000_float_gprs_string.
11484 (TARGET_OPTIONS): Add rs6000_float_gprs option.
5da702b1 11485
496324d0 11486 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5da702b1 11487
496324d0 11488 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5da702b1 11489
cde1d5bf
JH
11490Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
11491
11492 PR opt/10024
11493 * cfglayout.c (cfg_layout_redirect_edge):
11494 Redirect any branch edges unified with the fallthru one.
11495 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
11496 case fallthru edges when called via cfglayout.c
11497
d5019ba3
R
114982003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
11499
11500 * c-typeck.c (output_init_element): Check for type == error_mark_node.
11501
093b05b6
KH
115022003-04-07 Kazu Hirata <kazu@cs.umass.edu>
11503
11504 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
11505 split.
11506 (a splitter): Do zero-extension via HImode.
11507
9a94f7f3
JM
115082003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
11509
11510 * doc/invoke.texi: Eliminate extra white-space caused by
11511 @gccoptlist{ on its own line.
11512 * doc/invoke.texi: Ensured there are two spaces between each option.
11513 * doc/invoke.texi: Re-wrapped option lines that were too wide.
11514 Added @gol to options that didn't have them.
11515
85ebf0c6
JM
115162003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
11517
11518 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
11519
d78e771d
ZW
115202003-04-06 Zack Weinberg <zack@codesourcery.com>
11521
11522 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
11523 at the sizes of the relevant structures, rather than relying
11524 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
11525 sizes of any such we don't know about. Use
11526 lang_hooks.identifier_size for IDENTIFIER_NODE.
11527
11528 (initializer_zerop): Use CONSTRUCTOR_ELTS.
11529 * tree.def: Update commentary. Make fourth element of
11530 the definition for all 'c' and 'x' nodes zero.
11531
11532 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
11533 * langhooks-def.h: Update to match.
11534 * langhooks.c: New default, lhd_tree_size.
11535
11536 * c-common.def (SRCLOC): Kill.
11537 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
11538 Remove entirely - was already #if-ed out.
11539
11540
48a79342
ZW
115412003-04-06 Zack Weinberg <zack@codesourcery.com>
11542
11543 * mklibgcc.in: Use a here document to avoid running afoul of
11544 shells that generate control-A from "echo \1".
11545
993f19a8
AH
115462003-04-06 Aldy Hernandez <aldyh@redhat.com>
11547
d78e771d
ZW
11548 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
11549 option.
993f19a8 11550
d78e771d
ZW
11551 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11552 rs6000_spe.
993f19a8 11553
d78e771d 11554 * config/rs6000/eabi.h (TARGET_E500): Define.
993f19a8 11555
d78e771d
ZW
11556 * config/rs6000/rs6000.h (TARGET_E500): Define.
11557 (TARGET_OPTIONS): Add spe= option.
11558 Declare rs6000_spe and rs6000_spe_string extern.
993f19a8 11559
d78e771d
ZW
11560 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
11561 Change TARGET_SPE to TARGET_E500.
11562 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
11563 !TARGET_FPRS.
11564 (print_operand): Same.
11565 (rs6000_generate_compare): Same.
11566 (output_cbranch): Same.
11567 (rs6000_spe): Declare.
11568 (rs6000_spe_string): Declare.
11569 (rs6000_override_options): Call rs6000_parse_spe_option.
11570 (rs6000_parse_spe_option): New.
993f19a8 11571
95ec27aa
SB
115722003-04-06 Steven Bosscher <steven@gcc.gnu.org>
11573
11574 * hashtable.c (gcc_obstack_init): Delete this function
11575 and everything related to it.
11576 * hashtable.h: Remove prototype.
11577 * bitmap.c (bitmap_element_allocate): Cleanup redundant
11578 defines. Cleanup some unnecessary whitespace.
11579 * defaults.h (obstack_chunk_alloc): Redefine with
11580 appropriate casts for libiberty obstacks.
11581 (obstack_chunk_free): Ditto.
11582 (OBSTACK_CHUNK_SIZE): Define, default to 0.
11583 (gcc_obstack_init): Define as a call to _obstack_begin.
11584 * tree.c (print_obstack_statistics): Delete this unused
11585 function.
11586 * tree.h (obstack): Don't forward-declare.
11587 (print_obstack_statistics): Delete prototype.
11588 (print_obstack_name): Ditto.
11589 (gcc_obstack_init): Ditto.
11590 * rtl.h (gcc_obstack_init): Ditto.
11591 * java/jv-scan.c (gcc_obstack_init): Delete this
11592 function, its prototype and related defines.
11593 * java/jvgenmain.c (gcc_obstack_init): Delete this
11594 function, and related defines.
11595 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
11596 (obstack_chunk_free): Ditto
11597
62e64b0b
GK
115982003-04-06 Geoffrey Keating <geoffk@apple.com>
11599
11600 * dbxout.c (dbxout_handle_pch): Move prototype out from
11601 #if defined DBX_DEBUGGING_INFO.
11602
10b7602f
NS
116032003-04-05 Nathan Sidwell <nathan@codesourcery.com>
11604
11605 * gcov.c (struct arc_info): Replace local_span with cycle.
11606 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
11607 (solve_flow_graph): Set is_call_return.
11608 (add_line_counts): Adjust. In block mode, blocks attach to last line.
11609 (accumulate_line_counts): Find graph cycles, not spanning tree.
11610 (output_branch_count): Adjust.
11611 (output_lines): Adjust.
11612 * doc/gcov.texi: Update.
11613
910c46b5
KH
116142003-04-06 Kazu Hirata <kazu@cs.umass.edu>
11615
11616 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
11617 the second alternative to "#".
11618
ef378bbe
KH
116192003-04-05 Kazu Hirata <kazu@cs.umass.edu>
11620
11621 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
11622 (single_zero_operand): Likewise.
11623
873ceaab
DB
116242003-04-05 Daniel Berlin <dberlin@dberlin.org>
11625
11626 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
11627 * df.c: Include alloc-pool.h, not obstack.h.
11628 (df_ref_obstack): Remove.
11629 (df_ref_pool, df_link_pool): Add pools.
11630 (df_alloc): Init the new pools.
11631 (df_free): And free them.
11632 (df_link_create): Use the pools.
11633 (df_ref_create): Ditto.
11634
5be86fec
KH
116352003-04-05 Kazu Hirata <kazu@cs.umass.edu>
11636
11637 * simplify-rtx.c: Fix formatting.
11638
984e25ac
DE
116392003-04-05 Andrew Pinski <apinski@apple.com>
11640
11641 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
11642 reg with reg1 == reg2 and offset1 = -8.
11643
116442003-04-05 David Edelsohn <edelsohn@gnu.org>
11645
11646 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
11647 multiply costs. Correct Power4 divide costs.
11648 * config/rs6000/power4.md: Restore multiply and FP latency.
11649
94f24ddc
ZD
116502003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11651
11652 * alias.c (find_base_term): Export.
11653 * rtl.h (find_base_term): Declare.
11654 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
11655 instead of flag_exceptions. Move test for parameter passing ...
11656 (store_killed_in_insn): ... here.
11657
92441f83
GP
116582003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11659
11660 PR bootstrap/10267
11661 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
11662 for configuring.
11663
33b49800
GK
116642003-04-04 Geoffrey Keating <geoffk@apple.com>
11665
11666 * dbxout.c (scope_labelno): Add GTY.
11667 (have_used_extensions): Add GTY.
11668 (source_label_number): Add GTY.
11669 (lastfile): Add GTY.
11670 (lastfile_is_base): New.
11671 (base_input_file): New.
11672 (dbxout_handle_pch): New.
11673 (dbx_debug_hooks): Add handle_pch.
11674 (xcoff_debug_hooks): Likewise.
11675 (dbxout_function_end): Remove scope_labelno.
11676 (dbxout_init): Set base_input_file.
11677 (dbxout_handle_pch): New.
11678 (dbxout_source_file): Honour lastfile_is_base.
11679 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
11680 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
11681 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
11682 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
11683 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
11684 * debug.h (struct gcc_debug_hooks): Add handle_pch.
11685 * c-pch.c (pch_init): Don't call start_source_file, but do call
11686 handle_pch.
11687 (c_common_write_pch): Call handle_pch.
11688 (c_common_read_pch): Don't call start_source_file,
06790e5f 11689 or end_source_file.
33b49800 11690
bb056a77
OH
11691Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
11692
d78e771d
ZW
11693 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
11694 use of default attributes to agree MEM_ALIGN macro.
bb056a77 11695
08b0f5f9
JB
11696Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
11697
d78e771d 11698 * dbxout.c (dbxout_type): When printing type index of range type
08b0f5f9
JB
11699 whose bounds are printed in octal format, print type of parent type if
11700 it exists so enumerated type descriptions are not transformed
d78e771d 11701 into unsigned types.
08b0f5f9 11702
45ca2106
KH
117032003-04-04 Kazu Hirata <kazu@cs.umass.edu>
11704
11705 * config/h8300/h8300-protos.h: Add a prototype for
11706 compute_a_shift_cc.
11707 * config/h8300/h8300.c (shift_one): Update the CC status.
11708 (shift_two): Likewise.
11709 (output_a_shift_cc): Set cc_inline and cc_special.
11710 (compute_a_shift_cc): New.
11711 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
11712
7c2aa9d7
RH
117132003-04-04 Richard Henderson <rth@redhat.com>
11714
11715 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
11716
0705a2a2
LR
117172003-04-04 Loren James Rittle <ljrittle@acm.org>
11718
11719 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
11720 * fixinc/fixincl.x: Rebuilt.
11721 * fixinc/tests/base/stdio.h: Regenerated.
11722
1a482881
NS
117232003-04-04 Nathan Sidwell <nathan@codesourcery.com>
11724
11725 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
11726
5d806217
R
11727Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
11728
11729 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
11730 (NORMAL_MODE).
11731 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
11732
0dc5ac92 117332003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
06790e5f 11734
0dc5ac92
GP
11735 * doc/contrib.texi (Contributors): Add entries for Wolfgang
11736 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
11737 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
11738 Danny Smith, and Ulrich Weigand.
11739 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
11740 entry.
11741
5eb7ad07
NC
117422003-04-04 Nick Clifton <nickc@redhat.com>
11743
11744 * config/sparc/sol2-bi.h: Revert previous delta.
11745 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
11746
fdf3bb57
NC
117472003-04-04 Nick Clifton <nickc@redhat.com>
11748
11749 * config/v850/v850.c (expand_prologue): Only use register save
11750 helper functions if long calls are not being used.
11751 Add a clobber of r11 id using long calls.
11752 (pattern_is_ok_for_prologue): Account for the extra clobber.
11753 (construct_save_jarl): Likewise.
11754 * config/v850/v850.md (prolog pattern): Do not use this pattern
11755 for v850e's.
11756
ad3f5759
AS
117572003-04-04 Andreas Schwab <schwab@suse.de>
11758
11759 * stor-layout.c (layout_decl): Avoid syntax error in last change
11760 when PCC_BITFIELD_TYPE_MATTERS is defined but not
11761 EMPTY_FIELD_BOUNDARY.
11762
ed2e5902
JM
117632003-04-03 Jason Merrill <jason@redhat.com>
11764
11765 PR c/10175
11766 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
11767 Look backwards for a line note.
11768
7b43d104
NB
117692003-04-03 Neil Booth <neil@daikokuya.co.uk>
11770
11771 * fix-header.c (read_scan_file): Defer switch processing.
11772
d24ecd21
MA
117732003-04-03 Matt Austern <austern@apple.com>
11774
11775 * cpppch.c (reset_ht): Remove.
11776 (cpp_read_state): Remove loop to reset hashtable identifiers.
11777 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
11778 after pch file is written.
11779 * ggc.h (gt_pch_fixup_stringpool): Declare.
11780 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
11781 hashnode's value to another hashtable, then clear the original.
11782 (saved_ident_hash): Define.
11783 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
11784 store definitions in ident_hash, and clear ident_hash.
11785 (gt_pch_fixup_stringpool): Define. Restore definitions from
11786 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
11787
bcc53e2a
JH
11788Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
11789
11790 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
11791
773eae39
EB
117922003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11793
11794 PR optimization/10157
11795 * gcse.c (can_copy_p): Rename it to can_copy.
11796 (can_copy_init_p): Remove.
11797 (compute_can_copy): Use can_copy instead of can_copy_p.
11798 (can_copy_p): New exported function. Call compute_can_copy.
11799 (hash_scan_set): Use it.
11800 (gcse_main): Don't call compute_can_copy.
11801 (bypass_jumps): Don't call compute_can_copy.
11802 * rtl.h (can_copy_p): Declare.
11803 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
11804 copy if the mode doesn't support copy operations.
11805
78d55cc8
JM
118062003-04-03 Jason Merrill <jason@redhat.com>
11807
613fa146
JM
11808 * Makefile.in (unstrap): Also remove stage_last.
11809
7bf6b23d
JM
11810 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
11811 (dwarf2out_source_line): Don't do anything if line==0.
11812
78d55cc8 11813 * stor-layout.c (do_type_align): New fn, split out from...
06790e5f 11814 (layout_decl): ...here. Do all alignment calculations for
78d55cc8
JM
11815 FIELD_DECLs here.
11816 (update_alignment_for_field): Not here.
11817 (start_record_layout, debug_rli): Remove unpadded_align.
11818 * tree.h (struct record_layout_info_s): Remove unpadded_align.
11819 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
11820 or DECL_MODE on the CONST_DECLs.
11821 (finish_struct): Don't mess with DECL_ALIGN.
11822
d10f5ecf
JH
11823Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
11824
11825 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
11826
11827Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
8d3b0953 11828
70aadfcc
R
11829 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
11830 function is an interrupt handler.
11831
11832 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
11833 restoring target registers with EH_RETURN_STACKADJ_RTX; use
11834 multiple registers in round-robin fashion.
8d3b0953 11835
de94b46c
KG
118362003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11837
11838 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
11839 * system.h (CHAR_BITFIELD): New.
11840
203dcb74
KH
118412003-04-03 Kazu Hirata <kazu@cs.umass.edu>
11842
11843 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
11844 and LE.
11845 (another peephole2): Likewise.
11846
dc00aebd
NC
118472003-04-03 Nick Clifton <nickc@redhat.com>
11848
11849 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
d78e771d 11850 (DEF_ARCH64_SPEC): Likewise.
dc00aebd 11851
a94f136b
JH
11852Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
11853
11854 * i386.c (constant_address_p): Use legitimate_constant_p.
11855 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
11856
9a2dd2dd
KH
118572003-04-02 Kazu Hirata <kazu@cs.umass.edu>
11858
11859 * config/h8300/h8300-protos.h: Add a prototype for
11860 gtle_operator.
11861 * config/h8300/h8300.c (gtle_operator): New.
11862 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
11863 gtle_operator.
11864 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
11865 and LE.
11866
378683cf
RH
118672003-04-02 Richard Henderson <rth@redhat.com>
11868
11869 * libgcc-std.ver (_Unwind_GetCFA): New.
11870 * unwind-dw2.c (_Unwind_GetCFA): New.
11871 * unwind-libunwind.c (_Unwind_GetCFA): New.
11872 * unwind-sjlj.c (_Unwind_GetCFA): New.
11873 * unwind.h: Declare it.
11874
a67a3220
JH
11875Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
11876
11877 PR inline-asm/8088
11878 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
11879 when MMX/SSE is not available.
11880
11292480
MS
118812003-04-02 Mike Stump <mrs@apple.com>
11882
11883 * doc/install.texi (Specific): Update pointers to apple.com.
11884
a94f136b 11885Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
a5b378d6
JH
11886
11887 * i386.c (override_options): Disable red zone by default on i386.
06790e5f 11888 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
a5b378d6
JH
11889 Do not test TARGET_64BIT together with TARGET_RED_ZONE
11890
8fc9a7ba
KH
118912003-04-02 Kazu Hirata <kazu@cs.umass.edu>
11892
11893 * config/h8300/h8300.md (a peephole2): Tighten the condition.
11894
496e1c4b
RH
118952003-04-02 Richard Henderson <rth@redhat.com>
11896
11897 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
11898
d98cd543
KH
118992003-04-02 Kazu Hirata <kazu@cs.umass.edu>
11900
11901 * config/h8300/h8300.md (a peephole2): New.
11902
b30abdf2
RH
119032003-04-02 Richard Henderson <rth@redhat.com>
11904
11905 * except.c (sjlj_find_directly_reachable_regions): Recognize when
11906 must-not-throw region has been deleted.
11907
ad5eeaa9
RH
119082003-04-02 Richard Henderson <rth@redhat.com>
11909
d78e771d
ZW
11910 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
11911 optimization when flag_exceptions not enabled.
ad5eeaa9 11912
be12c2b0
VM
119132003-04-02 Vladimir Makarov <vmakarov@redhat.com>
11914
11915 * config/rs6000/rs6000.c
11916 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
11917 macros.
11918 (rs6000_issue_rate): Add case for 8540.
11919 (rs6000_use_sched_lookahead): New function.
11920
11921 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
11922 units into MU ones.
11923 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
11924 reservation before retirement.
11925 (ppc8540_multiply, ppc8540_load, ppc8540_store,
11926 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
11927 Remove additional cycle in the reservation before retirement.
11928 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
11929 reservation of ppc8540_issue.
06790e5f 11930
f875310e
AS
119312003-04-02 Andreas Schwab <schwab@suse.de>
11932
11933 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
11934
125ca8fd
RH
119352003-04-01 Richard Henderson <rth@redhat.com>
11936
d78e771d
ZW
11937 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
11938 notes for nothrow calls if flag_forced_unwind_exceptions.
11939 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
11940 (sjlj_find_directly_reachable_regions): Likewise.
11941 (reachable_handlers): Likewise.
11942 (can_throw_external): Likewise.
11943 (collect_one_action_chain): Record cleanups after catch-all and
11944 must-not-throw if flag_forced_unwind_exceptions.
11945 * flags.h (flag_forced_unwind_exceptions): Declare.
11946 * toplev.c (flag_forced_unwind_exceptions): New.
11947 (lang_independent_options): Add it.
125ca8fd
RH
11948 * doc/invoke.text: Add it.
11949
8f744ea9
DM
119502003-04-01 David Mosberger <davidm@hpl.hp.com>
11951
d78e771d
ZW
11952 * config/ia64/crti.asm: Clean up trailing whitespace.
11953 Remove trailing hashes (#) from identifiers.
8f744ea9 11954
d78e771d 11955 * config/ia64/crtn.asm: Ditto.
8f744ea9 11956
d78e771d
ZW
11957 * config/ia64/crtend.asm: Remove trailing hashes (#) from
11958 identifiers.
11959 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
11960 directives. Drop explicit bundling---it just makes the code
11961 harder to read. Don't save/restore gp needlessly.
8f744ea9 11962
d78e771d
ZW
11963 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
11964 identifiers (they're only needed if the identifier would clash
11965 with a register name otherwise).
11966 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
11967 directives. Drop explicit bundling---it just makes the code
11968 harder to read.
11969 (__do_jv_register_classes): Ditto.
11970 (.fini_array): Remove "progbits" (newer
11971 assemblers don't like wrong section-types).
11972 (.init_array): Ditto.
8f744ea9 11973
e129b3f9
RS
119742003-04-01 Roger Sayle <roger@eyesopen.com>
11975
11976 PR fortran/9974
15d4fd98 11977 * gcse.c (reg_killed_on_edge): New function to test whether the
e129b3f9
RS
11978 given reg is overwritten by any instruction queued on an edge.
11979 (bypass_block): Ignore substitutions killed on incoming edges.
11980 Don't bypass outgoing edges that have queued instructions.
11981
fe0002ee
AO
119822003-04-01 Alexandre Oliva <aoliva@redhat.com>
11983
11984 * real.h (EXP_BITS): Make room for...
11985 (struct real_value): ... added canonical bit.
11986 (struct real_format): Added pnan.
11987 (mips_single_format, mips_double_format, mips_extended_format,
11988 mips_quad_format): New.
11989 * real.c: Copy p to pnan in all formats.
11990 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
11991 (real_nan): Use pnan to compute significand's shift.
11992 (real_identical): Disregard significand in canonical
11993 NaNs.
11994 (real_hash): Likewise. Take signalling into account.
11995 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
11996 Disregard significand bits in canonical NaNs. Set all bits of
11997 canonical NaN if !qnan_msb_set.
11998 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
11999 qnan_msb_set to tell the base double format.
12000 (ibm_extended_format): Use 53 as pnan.
12001 (mips_single_format, mips_double_format, mips_extended_format,
12002 mips_quad_format): Copied from the corresponding ieee/ibm
12003 formats, with qnan_msb_set false.
12004 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12005 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12006 * config/mips/mips.c (override_options): Use mips_single_format
12007 and mips_double_format. Default TFmode to mips_quad_format.
12008 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12009 * config/mips/t-irix6: Likewise.
12010 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12011 * config/fp-bit.c (pack_d, unpack_d): Obey it.
12012
481a8181
GK
120132003-04-01 Geoffrey Keating <geoffk@apple.com>
12014
12015 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12016 (live_image_destructor): Reset image to initial state.
12017 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12018
375ffbe6
EB
120192003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
12020
12021 * config/sparc/sparc.c (input_operand): Accept bare
12022 CONSTANT_P_RTX operands.
12023
47a3dae1
ZD
120242003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12025
12026 * gcse.c (struct ls_expr): Added pattern_regs field.
12027 (ldst_entry): Initialize it.
12028 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12029 (store_ops_ok): Use regs precomputed by them.
12030 (find_loads, store_killed_in_insn, load_kills_store): Change return
12031 type to bool.
12032 (store_killed_before, store_killed_after): Take position of register
12033 set in account.
12034 (reg_set_info): Store position of the setter.
12035 (gcse_main): Enable store motion.
12036 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12037 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12038 sharing.
12039 (simple_mem): Enable store motion of non-symbol mems.
12040 (regvec): Type changed.
12041 (LAST_AVAIL_CHECK_FAILURE): New.
12042 (compute_store_table_current_insn): New.
12043 (build_store_vectors): Computation of availability and anticipatability
12044 moved ...
12045 (compute_store_table, find_moveable_store): ... here.
12046 (delete_store): Remove senseless comment.
12047 (store_motion): Reorganize.
12048
77d4f3a4
KB
120492003-04-01 Kevin Buettner <kevinb@redhat.com>
12050
12051 * config/mips/mips.c (override_options): Provide mappings for
12052 HI_REGNUM and LO_REGNUM.
12053 * config/mips/mips.h (MD_DBX_FIRST): Define.
12054
7d4444ea
FS
120552003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12056
12057 * combine.c (merge_outer_ops): Fix typo.
12058
12059 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12060
9259f3b0
DE
120612003-04-01 David Edelsohn <edelsohn@gnu.org>
12062
12063 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12064 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12065 imul_compare. Add lmul_compare.
12066 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
12067 in second pair of dispatch slots. Model stores more accurately.
12068 Tweak multiply model. Add bypasses for CR instructions dependent
12069 on complicated compares.
12070 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12071 (muldi3): Add lmul_compare patterns.
12072 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12073 and FPSTORE_UX to split instructions and add COMPARE,
12074 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12075 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12076 (rs6000_rtx_costs): Separate POWER4 multiply case.
12077
7fe317e4
UW
120782003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
12079
12080 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12081 Do nothing if __builtin_return_address was not used.
12082
e1fea6ee
JH
12083Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
12084
12085 * i386.md (test patterns): Allow memory operand in operand1.
12086
d744e06e
AH
120872003-02-31 Aldy Hernandez <aldyh@redhat.com>
12088
d78e771d
ZW
12089 * testsuite/gcc.c-torture/execute/simd-3.c: New.
12090
12091 * expr.c (expand_expr): Handle VECTOR_CST.
12092 (const_vector_from_tree): New.
12093
12094 * varasm.c (output_constant): Handle VECTOR_CST.
12095
12096 * c-typeck.c (digest_init): Build a vector constant from a
12097 VECTOR_TYPE.
12098
12099 * config/rs6000/rs6000.c: Remove prototype for
12100 easy_vector_constant.
12101 (easy_vector_constant): Add mode parameter. Rewrite to handle
12102 more easy constants.
12103 (rs6000_emit_move): Pass mode to easy_vector_constant.
12104 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12105 (emit_easy_vector_insn): New.
12106 (easy_vector_same): New.
12107 (EASY_VECTOR_15): New macro.
12108 (EASY_VECTOR_15_ADD_SELF): New macro.
12109 (bdesc_2arg): Rename to xorv2si3.
12110 (easy_vector_constant_add_self): New.
12111 (input_operand): Allow vector constants.
12112
12113 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12114 easy_vector_constant, easy_vector_constant_add_self.
12115 (EXTRA_CONSTRAINT): Add 'W'.
12116
12117 * config/rs6000/rs6000-protos.h: Add prototype for
12118 easy_vector_constant, emit_easy_vector_insn.
12119
12120 * config/rs6000/altivec.md (xorv8hi3): New.
12121 (xorv16qi3): New.
12122 Remove all _const0 patterns.
12123 (movv4si_internal): Rewrite to use code. Add vector constant to
12124 vector alternative. Add splitter.
12125 (movv8hi_internal): Same.
12126 (movv16qi_internal): Same.
12127 (movv4sf_internal): Same.
12128 Change the unspecs for vspltis* to use constants.
12129
12130 * config/rs6000/spe.md ("xorv4hi3"): New.
12131 ("spe_evxor"): Rename to xorv2si3.
12132 ("xorv1di3"): New.
12133 Remove all _const0 patterns.
12134 (movv2si_internal): Rewrite to use code. Add vector constant to
12135 alternatives. Add splitter.
12136 (movv4hi_internal): Add vector constant to alternatives.
12137 (movv1di_internal): Same.
12138 (movv2sf_internal): Same.
d744e06e 12139
46e33d43
MM
121402003-03-31 Mark Mitchell <mark@codesourcery.com>
12141
12142 PR c/9936
12143 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12144 variably-sized arrays in parameters.
12145 (set_save_expr_context): New function.
12146 (c_expand_body): Use it, via walk_tree.
12147
73a39fc4
EC
121482003-03-31 Eric Christopher <echristo@redhat.com>
12149
12150 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12151 (combinable_i3pat): Remove call to expand_field_assignment and
12152 #if 0'd code.
12153
6b665219
MM
121542003-03-31 Mark Mitchell <mark@codesourcery.com>
12155
12156 PR c++/10278
12157 * c-common.c (finish_label_address_expr): Handle the
12158 error_mark_node.
12159
6c06208f
RH
121602003-03-31 Richard Henderson <rth@redhat.com>
12161
12162 * real.c (real_identical): Reorg so as to not compare
12163 signalling for normals.
12164
11789584
SC
121652003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12166
12167 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12168
c25292ce
SC
121692003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12170
12171 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12172 notes as they are boggus.
12173 (m68hc11_gen_movqi): Likewise.
12174
07faf2d6
SC
121752003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12176
12177 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12178 save the soft registers after the frame pointer so that gdb can unwind
12179 the frame more easily.
12180 (expand_epilogue): Likewise in opposite order; allow to use X register
12181 as scratch if the return value is by reference.
12182
adff28c3
JM
121832003-03-31 Jason Merrill <jason@redhat.com>
12184
12185 PR java/10145
12186 * stor-layout.c (update_alignment_for_field): Respect
12187 DECL_USER_ALIGN for zero-length bitfields, too.
12188 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12189 fields.
12190
c419b113
MA
121912003-03-31 Matt Austern <austern@apple.com>
12192
12193 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12194 (count_defs): Keep track of number of defs as well as total size.
12195 (write_defs): Put every definition in cpp_savedstate's defs array.
12196 (comp_hashnode): Define. Comparison function for qsort.
12197 (cpp_write_pch_deps): Sort definitions before writing them.
12198 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12199 (collect_ht_nodes): Define.
12200 (cpp_valid_state): When verifying that undefined identifiers in
12201 the pch file are still undefined, read a sorted list of undefined
12202 identifiers, collect all defined identifiers into a sorted list,
12203 and walk through both lists to make sure there's no match.
73a39fc4 12204
ef3a7d56
KH
122052003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12206
12207 * config/h8300/h8300.md (a peephole2): New.
12208
5ccd517a
MM
122092003-03-31 Michael Matz <matz@suse.de>
12210
12211 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12212
122132003-03-31 Segher Boessenkool <segher@koffie.nl>
c8ae788f
SB
12214
12215 PR target/10177
12216 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12217 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12218 all call-clobbered registers as used.
12219
7f1fc38e
MM
122202003-03-31 Michael Matz <matz@suse.de>
12221
12222 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12223 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12224
27283c73
NS
122252003-03-31 Nathan Sidwell <nathan@codesourcery.com>
12226
12227 * gcov.c: Add -a & -u options.
12228 (struct arc_info): Add local_span, is_call_non_return,
12229 is_nonlocal_return, is_unconditional flags, remove is_call flag.
12230 (struct block_info): Add flags, is_call_site, is_nonlocal_return
12231 members. Make encodings a union with span member.
12232 (struct function_info): Add blocks_executed, line, src, line_next
12233 members.
12234 (struct coverage_info): Make branches a union with blocks member.
12235 (struct source_info): Add functions member.
12236 (object_summary, program_count): New global variables.
12237 (flag_all_blocks, flag_unconditional): New flags.
12238 (find_source, output_branch_count): New functions.
12239 (print_usage): Adjust.
12240 (options): Adjust.
12241 (process_args): Adjust.
12242 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12243 <GCOV_TAG_BLOCKS>: Read flags.
12244 <GCOV_TAG_LINES>: Adjust.
12245 (read_count_file): Process SUMMARY tags.
12246 (solve_flow_graph): Set is_unconditional and clear is_call_site
12247 appropriately.
12248 (add_branch_counts): Adjust. Don't count unconditional branches.
12249 (add_line_counts): Deal with all-blocks mode, accumulate block
12250 coverage.
12251 (accumulate_line_counts): Adjust, generate local spanning tree for
12252 all-blocks mode.
12253 (output_lines): Adjust.
12254 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12255 * doc/gcov.texi: Document.
12256
212d9313
KH
122572003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12258
63855aa6 12259 * config/h8300/h8300.md: Organize peephole2's that transform
212d9313
KH
12260 (compare (reg:HI) (const_int)).
12261
03f2ea93
RS
122622003-03-31 Roger Sayle <roger@eyesopen.com>
12263
12264 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12265 (init_emit_once): Initialize dconstm2 and dconsthalf here.
12266 * real.h (dconstm2, dconsthalf): Add prototypes here.
12267 * real.c (real_sqrt): Use dconsthalf rather than local copy.
12268 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12269 exp(x/2.0) remember to fold the division if possible.
12270 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12271 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12272 1.0/(x*x) and pow(x,0.5) as sqrt(x).
12273
155de338
KH
122742003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12275
12276 * config/h8300/h8300.md (a new peephole2): New.
12277
98d3d336
RS
122782003-03-31 Richard Sandiford <rsandifo@redhat.com>
12279
12280 * gcse.c (simple_mem): Return false for floating-point accesses
12281 if flag_float_store is true.
12282
6b2d1c9e
RS
122832003-03-30 Roger Sayle <roger@eyesopen.com>
12284
12285 * gcse.c (gcse_constant_p): New function to identify constants
12286 suitable for constant propagation, including COMPARE with two
12287 integer constant arguments.
12288 (hash_scan_set): Use gcse_constant_p.
12289 (find_avail_set): Likewise.
12290 (cprop_insn): Likewise.
12291 (do_local_cprop): Likewise.
12292 (find_implicit_sets): Likewise.
12293 (find_bypass_set): Likewise.
12294
af829441
MK
122952003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
12296
12297 * except.h: Remove definition of varray_type.
12298
3d1f4922
RH
122992003-03-30 Richard Henderson <rth@redhat.com>
12300
12301 PR opt/10011, opt/10252:
d78e771d
ZW
12302 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12303 before post-gcse cse pass.
3d1f4922 12304
9311f3f6
RS
123052003-03-30 Roger Sayle <roger@eyesopen.com>
12306
12307 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12308
ececa172
DD
123092003-03-30 DJ Delorie <dj@redhat.com>
12310
12311 * profile.c (instrument_edges): Make sure any newly created
12312 jump insns have correct jump label info.
12313
e1233a7d
RH
123142003-03-30 Richard Henderson <rth@redhat.com>
12315
12316 * cfgbuild.c (make_edges): Use tablejump_p.
12317 * cfgcleanup.c (label_is_jump_target_p): Likewise.
12318 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12319 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12320 (try_redirect_by_replacing_jump): Likewise.
12321 (redirect_edge_and_branch): Likewise.
12322 * cse.c (fold_rtx): Likewise.
12323 * jump.c (delete_related_insns): Likewise.
12324 * rtlanal.c (get_jump_table_offset): Likewise.
12325 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12326
78e68f88
GDR
123272003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
12328
d78e771d
ZW
12329 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12330 (STRICT2_WARN): Likewise.
73a39fc4 12331
15dda4d3
KG
123322003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12333
12334 PR other/6955
12335 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12336 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12337
5bf92e20
RH
123382003-03-30 Richard Henderson <rth@redhat.com>
12339
12340 PR c/10083
12341 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12342 don't zero_extend const inputs.
12343
9a8075a1
KH
123442003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12345
12346 * reload1.c (reload_cse_move2add): Fix a comment typo.
12347
f3926c48
KH
123482003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12349
12350 * config/h8300/h8300.md (a peephole2): Remove useless code.
12351
39ecf301
KH
123522003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12353
12354 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12355 (*iorsi3_and_lshiftrt): Likewise.
12356 (*iorsi3_zero_extract): Likewise.
12357
d4048ff6
KH
123582003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12359
12360 * config/h8300/h8300.md (*insv_si_8_8): New.
12361 (*insv_si_8_8_lshiftrt_8): Likewise.
12362 (a peephole2): Likewise.
12363
62d08205
GP
123642003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12365
60ef8bdd 12366 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
73a39fc4 12367 Uniformly use bugfix instead of bug fix.
60ef8bdd
GP
12368
123692003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
73a39fc4 12370
62d08205
GP
12371 PR doc/895
12372 * ONEWS: Remove those items that already appear in the EGCS
12373 release notes on our web pages.
12374
e87a88d3
AM
123752003-03-29 Alan Modra <amodra@bigpond.net.au>
12376
12377 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
12378 TARGET_HARD_FLOAT. Reformat.
12379 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
12380
ce4a8f7d
ACY
123812003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
12382
12383 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
12384 work on Solaris 2.5.1.
12385
12f76820
KH
123862003-03-28 Kazu Hirata <kazu@cs.umass.edu>
12387
12388 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
12389 section of h8300.md
12390 (*addsi3_and_nor_r_1): Likewise.
12391
7d798969
UW
123922003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
12393
12394 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
12395 set up before any trapping memory access if flag_non_call_exceptions.
12396
00dcfe80
AM
123972003-03-29 Alan Modra <amodra@bigpond.net.au>
12398
12399 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
12400
12401 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
12402
d869a8c4
NN
124032003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
12404
12405 * configure.in: Clarify comments.
12406 * configure: Regenerate.
12407
5c033b9f
UW
124082003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
12409
73a39fc4 12410 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
5c033b9f
UW
12411 label even if pool empty when generating PIC.
12412 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
12413
d18ad191
KH
124142003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
12415 Dhananjay Deshpande <dhananjayd@kpit.com>
12416
12417 PR target/10205
12418 * config/h8300/h8300.c (h8300_initial_elimination_offset):
12419 Correct the offset computation when TARGET_NORMAL.
12420
0c85dbfd
EB
124212003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12422
12423 PR target/10067
12424 * config/sparc/sparc.md (jump pattern): Correct order
12425 when issuing the annuling marker.
12426
f7670e7b
EB
124272003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12428
12429 PR c/8281
12430 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
12431 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12432
c9280dfe
AM
124332003-03-28 Alan Modra <amodra@bigpond.net.au>
12434
12435 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12436 globalize_label.
12437 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
73a39fc4 12438 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
c9280dfe
AM
12439 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12440 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12441 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12442 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12443 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12444
e81eb37f
AM
124452003-03-28 Alan Modra <amodra@bigpond.net.au>
12446
12447 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
12448 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
12449 notes after hoisting.
12450 (load_mems): Adjust replace_loop_mems call.
12451
1ce324c3 124522003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
d78e771d 12453 Richard Henderson <rth@redhat.com>
1ce324c3
EB
12454
12455 PR target/10114 and PR target/10084
12456 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
12457
c6cf19a8
RH
124582003-03-27 Richard Henderson <rth@redhat.com>
12459
12460 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
12461
9ddae796
RS
124622003-03-27 Roger Sayle <roger@eyesopen.com>
12463
12464 * fold-const.c (fold_inf_compare): New function to simplify FP
12465 comparisons against +Infinity or -Infinity.
12466 (fold): Optimize floating point comparisons against Infs and NaNs.
12467
01e60c33
JJ
124682003-03-27 Janis Johnson <janis187@us.ibm.com>
12469
12470 * libgcov.c: Provide only dummy functions if libc is not available.
12471
ad59ba20
RH
124722003-03-27 Richard Henderson <rth@redhat.com>
12473
12474 * real.h (struct real_value): Add signalling.
12475 (EXP_BITS): Decrement.
12476 * real.c (get_canonical_qnan): Don't set MSB-1.
12477 (get_canonical_snan): Likewise. Set signalling.
12478 (real_identical): Compare signalling.
12479 (round_for_format): Remove force-one-bit on code.
12480 (real_nan): Likewise. Set signalling.
12481 (encode_ieee_single): Add force-one-bit code; honor signalling.
12482 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
12483 (decode_ieee_single): Set signalling.
12484 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
12485
940bbb74
OH
124862003-03-27 Olivier Hainque <hainque@act-europe.fr>
12487
12488 PR ada/9953
12489 * ada/Makefile.in (gnatlib configuration for HPUX): Split
12490 the general section for HPUX into specific sections for
12491 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
12492 11 case.
12493
c7d325c8
GN
124942003-03-27 Glen Nakamura <glen@imodulo.com>
12495
12496 PR opt/10087
12497 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
12498 while incrementing giv.
12499 (record_biv): Check for duplicate biv locations and
12500 set (struct induction *) v->same if found.
12501
f18ab437
DM
125022003-03-27 David Mosberger <davidm@hpl.hp.com>
12503
d78e771d
ZW
12504 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
12505 v0.9 API change: replace read of UNW_REG_HANDLER with
12506 unw_get_proc_info().
12507 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
12508 with unw_get_proc_info().
12509 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
12510 unw_get_proc_info().
f18ab437 12511
eaff4b90
VM
125122003-03-27 Vladimir Makarov <vmakarov@redhat.com>
12513
12514 * config/rs6000/8540.md: Use presence_set instead of absence_set.
12515
3684a055
RH
125162003-03-26 Richard Henderson <rth@redhat.com>
12517
12518 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
12519
de132314
RS
125202003-03-26 Roger Sayle <roger@eyesopen.com>
12521
12522 PR bootstrap/10051, PR bootstrap/10169.
12523 * mips-tfile.c (init_file): Don't provide a static initializer.
12524 (initialize_init_file): Initialize the contents of init_file.
12525 (add_file): Call initialize_init_file if not already initialized.
12526
6f84708a
UW
125272003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
12528
12529 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
12530 registers used for global asm variables.
12531 (s390_frame_info, s390_arg_frame_offset): Likewise.
12532 (s390_emit_prologue, s390_emit_epilogue): Likewise.
12533
5e8006fa
VM
125342003-03-26 Vladimir Makarov <vmakarov@redhat.com>
12535
d78e771d 12536 * config/rs6000/8540.md: New file.
73a39fc4 12537
5e8006fa
VM
12538 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
12539 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
12540 reservations for imul.
12541
12542 * config/rs6000/rs6000.md: Include 8540.md. Change
12543 delayed_compare onto mult_compare for insns generating
12544 multiplication.
12545 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
12546 New type attribute values.
12547
12548 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
12549 fpsimple instead of fp.
12550 (*divsf3_gpr): Use type vecfdiv instead of fp.
12551 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
12552 instead of vecfloat.
12553 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
12554 (spe_brinc): Use type brinc instead of veccomplex.
12555 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
12556 veccomplex.
12557 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
12558 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
12559 *movv2sf_internal): Define type attribute values for all
12560 alternatives.
12561 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
12562 of fpcompare.
12563 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
12564 instead of fpcompare.
73a39fc4 12565
29ae9364
DE
125662003-03-26 David Edelsohn <edelsohn@gnu.org>
12567
12568 * config/rs6000/power4.md: Allow delay between dispatch and
12569 function units for simple instructions. Correct store units.
12570 Allow branch to occupy as many dispatch slots as necessary.
12571
be565ad7
JJ
125722003-03-26 Jakub Jelinek <jakub@redhat.com>
12573
12574 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
12575 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
12576 zero extend old to it.
12577 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
12578 operand.
12579
27e484bc
EB
125802003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
12581
12582 PR target/7784
12583 * reload.c (find_reloads_address): Handle
12584 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
12585 all base registers.
12586
b47161ec
MA
125872003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
12588
12589 PR other/10203
12590 * version.c: Reference the GCC web site in the URL.
12591
611f0729
AM
125922003-03-26 Alan Modra <amodra@bigpond.net.au>
12593
12594 * c-incpath.c (add_standard_paths): Add both "translated" and
12595 non-translated header paths.
12596
e4e7d312
LR
125972003-03-25 Loren James Rittle <ljrittle@acm.org>
12598
12599 * doc/install.texi (*-*-freebsd*): Update with known status.
12600
2e2255ff
JM
126012003-03-21 Jason Merrill <jason@redhat.com>
12602
12603 PR optimization/10171
12604 * unroll.c (unroll_loop): Don't delete the jump at the end unless
12605 we also delete a jump at the beginning.
12606
8725a499
SC
126072003-03-25 Stephane Carrez <stcarrez@nerim.fr>
12608
12609 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
12610 contributor.
12611
3504dad3
JH
12612Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
12613
12614 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
12615 constants are not expensive.
12616
cb9a1d9b
JH
12617Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
12618
12619 PR opt/10056
12620 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
12621 jump jumping to the next instruction.
12622 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12623
d6d05f8d
GP
126242003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12625
12626 * doc/passes.texi (Passes): Properly document that we do not
12627 perform jump2 any longer; remove command-line option -dJ.
12628
d2fc7725
EB
126292003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
12630
12631 PR optimization/8746
12632 * config/i386/i386.md (and promoting splitters): Disable HImode to
12633 SImode promoting when the sign bit matters and is not preserved, or
12634 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
12635 for size.
12636
beb14cfe
KH
126372003-03-24 Kazu Hirata <kazu@cs.umass.edu>
12638
12639 * config/h8300/h8300.md (a peephole2): Extend to support loads
12640 in QImode and HImode.
12641
dbcedbc4
SC
126422003-03-24 Stephane Carrez <stcarrez@nerim.fr>
12643
12644 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
12645 _return_far
12646 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
12647 (MULTILIB_EXCEPTIONS): Likewise.
12648 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
12649 by calling some board support routine.
12650 ("call_value"): Likewise.
12651 ("*return_void"): Likewise for return.
12652 ("*return_16bit"): Likewise.
12653 ("*return_32bit"): Likewise.
12654 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
12655 for 68HC11 too.
73a39fc4 12656 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
dbcedbc4
SC
12657 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
12658 -mlong-calls for 68HC11.
12659 * config/m68hc11/larith.asm (declare_near): New macro.
12660 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
12661 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
12662 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
12663 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
12664 (__mulhi32): Likewise.
12665 (ret): Update macro for 68HC11.
12666 (__far_trampoline): Implement for 68HC11.
12667 (__call_a16, __call_a32, __return_void, __return_16): New support
12668 routines for 68HC11 memory bank switching calling support.
12669 (__return_32): Likewise.
12670
696fe23c
NB
126712003-03-24 Neil Booth <neil@daikokuya.co.uk>
12672
12673 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
12674
05253aed
JJ
126752003-03-24 Janis Johnson <janis187@us.ibm.com>
12676
12677 * doc/install.texi (Testing): Mention test result links from build
12678 status pages.
12679
f8928391
MM
126802003-03-24 Mark Mitchell <mark@codesourcery.com>
12681
12682 * function.c (put_var_into_stack): Change bool parameter to int.
12683 (gen_mem_addressof): Likewise.
12684 * rtl.h (gen_mem_addressof): Likewise.
12685 * tree.h (put_var_into_stack): Likewise.
12686 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
12687 gen_mem_addressof or put_var_into_stack.
12688 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
12689 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
12690
b980d725
KH
126912003-03-24 Kazu Hirata <kazu@cs.umass.edu>
12692
12693 * config/h8300/h8300.md (a peephole2): New.
12694
2ff1fb45
JJ
126952003-03-24 Jakub Jelinek <jakub@redhat.com>
12696
12697 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
12698
8b5777db
GP
126992003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12700
12701 * doc/contrib.texi (Contributors): Update Janis Johnson.
12702
02484af9
EB
127032003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12704
12705 PR target/10072
12706 * combine.c (simplify_if_then_else): Check that the mode
12707 has MODE_INT class before applying the (OP Z (mult COND C2))
12708 transformation.
12709
941bc659
EB
127102003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12711
12712 PR optimization/9414
12713 * config/sparc/sparc.md (widening peepholes): Use
12714 widen_memory_access instead of change_address.
12715
f29a2bd1
MM
127162003-03-23 Mark Mitchell <mark@codesourcery.com>
12717
12718 PR c++/7086
12719 * c-typeck.c (c_mark_addressable): Adjust calls to
12720 put_var_into_stack.
12721 * expr.c (expand_expr): Likewise.
12722 * function.c (put_var_into_stack): Add rescan parameter. Do not
12723 call fixup_var_refs when rescan is false.
12724 (gen_mem_addressof): Likewise.
12725 (assign_parms): Adjust calls to put_var_into_stack.
12726 (setjmp_protect): Likewise.
12727 (setjmp_protect_args): Likewise.
12728 * rtl.h (gen_mem_addressof): Change prototype.
12729 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
12730 * tree.h (put_var_into_stack): Change prototype.
12731
fa9b4904
AB
127322003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
12733
b099daeb 12734 PR middle-end/9967
fa9b4904
AB
12735 * builtins.c (expand_builtin_fputs): When optimizing for size,
12736 don't transform fputs into fwrite.
12737
068d2c9d
MM
127382003-03-23 Glen Nakamura <glen@imodulo.com>
12739
12740 PR c/8224
12741 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
12742 when signedness changes for division or modulus.
12743
c967e28c
AM
127442003-03-24 Alan Modra <amodra@bigpond.net.au>
12745
12746 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12747 globalize_label.
12748
766dec0e
RS
127492003-03-23 Roger Sayle <roger@eyesopen.com>
12750
12751 PR c/10178
12752 * stmt.c (expand_end_case_type): Check for overflow in range when
12753 determining whether to use a bit-test implementation.
12754
ef3e9886
RH
127552003-03-23 Richard Henderson <rth@redhat.com>
12756
12757 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
12758 before flow2.
12759 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
12760
bd2eae18
RH
127612003-03-23 Richard Henderson <rth@redhat.com>
12762
12763 PR opt/10116
12764 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
12765 from then_bb or else_bb after flow2.
12766
62c9aa5f
ZW
127672003-03-23 Zack Weinberg <zack@codesourcery.com>
12768
12769 * configure.in: Check whether it is necessary to link against
12770 libm to use ldexp.
12771 * configure: Regenerate.
12772 * Makefile.in: Add LDEXP_LIB substitution variable.
12773
4d1da12a
KH
127742003-03-23 Kazu Hirata <kazu@cs.umass.edu>
12775
12776 * config/h8300/h8300.md: Fix comment typos.
12777
7772f0a9
JDA
127782003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12779
12780 * pa.c (output_cbranch): Fix typo in comment.
12781
3ce6bef0
RH
127822003-03-22 Richard Henderson <rth@redhat.com>
12783
12784 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
12785 after reload.
12786
7a9cdb10
DD
127872003-03-22 DJ Delorie <dj at redhat dot com>,
12788 Bruce Korb <bkorb at gnu dot org>
12789
12790 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
12791 buggy Solaris 2.6 mutex/cond initializers.
12792 (solaris_mutex_init): Rename to solaris_mutex_init_2.
12793 * fixinc/fixincl.x: Regenerate.
12794 * fixinc/tests/base/pthread.h: Update.
00af168c
BK
12795 * fixinc/fixincl.c(initialize): be explicit about the default case
12796 and indicate verbose level when being very, very verbose.
12797 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7a9cdb10 12798
8330e2c6
AJ
127992003-03-22 Andreas Jaeger <aj@suse.de>
12800
12801 * config/i386/i386.c (ix86_init_machine_status): Return value.
12802
02a57c73
JDA
128032003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12804
12805 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
12806 conditional branch to the following instruction. Use next_real_insn
12807 instead of next_active_insn.
12808 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
12809 instead of next_active_insn.
12810
97c6f7ad
UW
128112003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
12812
c967e28c
AM
12813 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
12814 instead of 'm' constraint in forced-split alternatives.
97c6f7ad
UW
12815 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
12816 VALIDATE_ADDRESS parameter to operand_subword.
12817
c8fcf20c
KH
128182003-03-22 Kazu Hirata <kazu@cs.umass.edu>
12819
12820 * config/h8300/h8300.c (notice_update_cc): Correctly handle
12821 the case where the set destination is STRICT_LOW_PART.
12822
21c0e624
SS
128232003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
12824
12825 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
12826 c30 instead of a c40 processor.
12827
70e1b8fc
AM
128282003-03-22 Alan Modra <amodra@bigpond.net.au>
12829
12830 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
12831
d9b2742a
ZW
128322003-03-21 Zack Weinberg <zack@codesourcery.com>
12833
12834 * c-common.c: Include intl.h.
12835 (shadow_warning): Rewrite to allow better diagnostic translations.
12836 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
12837 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
12838 use it throughout.
12839 * Makefile.in (c-common.o): Add intl.h.
12840
cbbf876b
NN
128412003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
12842
bea41393
NN
12843 * config.gcc: Remove 'float_format'.
12844
cbbf876b
NN
12845 * fixproto: Define NULL and size_t in generated stdlib.h and
12846 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
12847 Rearrange file generation loop for readability. Generate time.h,
12848 string.h if missing.
12849 * tsystem.h: Include <string.h>, <time.h> unconditionally.
12850 * config.gcc: Blow away POSIX defines.
12851
84fcbe0a
SC
128522003-03-22 Stephane Carrez <stcarrez@nerim.fr>
12853
12854 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
12855
639a8102
SC
128562003-03-22 Stephane Carrez <stcarrez@nerim.fr>
12857
12858 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
12859 writing .interrupt command.
12860 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
12861 if it's a far or near function.
12862 ("call_value"): Likewise.
12863 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
12864 near attributes.
12865 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
12866 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
12867 (m68hc11_initial_elimination_offset): Set current_function_far
12868 according to attributes.
12869 (expand_prologue): Likewise.
12870 (trap_handler_symbol): New global to keep track of trap handlers.
12871 (m68hc11_encode_section_info): Mark symbol as far if needed; set
12872 trap symbol.
12873 (m68hc11_is_far_symbol): New function.
12874 (m68hc11_is_trap_symbol): New function.
12875 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
12876 (m68hc11_is_trap_symbol): Declare.
12877
62c9aa5f 128782003-03-21 Jan Hubicka <jh@suse.cz>
d7394366
JH
12879
12880 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
12881 only when amount of saved regs changed.
12882 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
12883 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
12884
62c9aa5f 128852003-03-21 Jan Hubicka <jh@suse.cz>
5dc96d60
JH
12886
12887 PR inline-asm/7916
12888 * function.c (instantiate_virtual_regs_lossage): New function.
12889 (instantiate_virtual_regs_1): Use it.
12890 (instantiate_virtual_regs): Do not continue in substition when insn has
12891 been deleted.
12892
c5c15353
KH
128932003-03-21 Kazu Hirata <kazu@cs.umass.edu>
12894
12895 * combine.c (make_field_assignment): Fix a warning.
12896
5c1c25f0
KH
128972003-03-21 Kazu Hirata <kazu@cs.umass.edu>
12898
12899 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
12900
6b13641d
DJ
129012003-03-21 Dale Johannesen <dalej@apple.com>
12902
12903 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
12904 priority for R2 on Darwin.
12905 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
12906
6e814b8d
KH
129072003-03-21 Kazu Hirata <kazu@cs.umass.edu>
12908
12909 * combine.c (make_field_assignment): Remove unnecessary AND
12910 when storing into zero_extract.
12911
2d295af5
ZW
129122003-03-21 Zack Weinberg <zack@codesourcery.com>
12913
12914 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
12915 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
12916 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
12917 in comment.
12918
c0510d84
DD
129192003-03-21 DJ Delorie <dj@redhat.com>
12920
12921 * optabs.c (init_integral_libfuncs): Make sure we init at least up
12922 to "long long" size words.
12923
fe86047c
UW
129242003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
12925
12926 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
12927 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
12928 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
12929
526278c9
VR
129302003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12931
12932 PR doc-bug/9813
12933 * doc/extend.texi: Move misplaced paragraph about underscores in
12934 variables in macros.
12935
731458a4 129362003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2d295af5 12937 Richard Henderson <rth@redhat.com>
731458a4
EB
12938
12939 PR optimization/8366
12940 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
12941 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
12942 PIC+SYMBOLIC_CONST in other modes than Pmode.
12943 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
12944 the form PIC+SYMBOLIC_CONST as mode dependent.
12945
f3cd0185
DD
129462003-03-21 DJ Delorie <dj@redhat.com>
12947
12948 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
12949 sure we always emit at least one insn.
12950
70e5e841
CF
129512003-03-21 Christopher Faylor <cgf@redhat.com>
12952
12953 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
12954 stub t-cygming. Use common target header cygming.h. Add extra
12955 c_target_obj and cxx_target_obj file. Default cygwin to posix
12956 threading. Enforce i386 as float format.
12957 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
12958 Remove cygwin.h as target header. Use common target header
12959 cygming.h Enforce i386 as float format. Correct typo.
12960 * config/i386/cygming.h: New file, containing definitions
12961 common to mingw32 and cygwin.
12962 * config/i386/cygwin.h: Remove definitions common to cygwin and
12963 mingw. Simplify special spec logic. Define "wrappers" around
12964 certain include path defines to accommodate -mno-cygwin.
12965 Remove some #if 0'ed code.
2d295af5 12966 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
70e5e841
CF
12967 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
12968 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
12969 * config/i386/mingw32.h: Remove definitions common to cygwin and
12970 mingw.
12971 (EXTRA_OS_CPP_BUILTINS): Adjust.
12972 (TARGET_VERSION): Define.
12973 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
12974 mingw32.h definitions.
12975 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
12976 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
12977 Add compilation rules for cygwin1.o cygwin2.o.
12978 * config/i386/cygwin1.c: New file.
12979 * config/i386/cygwin2.c: New file.
12980 * config/i386/t-cygming: New makefile stub.
12981
4bddea4c
RH
129822003-03-20 Richard Henderson <rth@redhat.com>
12983
12984 * fold-const.c (extract_muldiv_1): Revert changing order of
12985 operands in case MULT_EXPR of 2003-02-16 patch.
12986
b3411d7e 129872003-03-20 Daniel Berlin <dberlin@dberlin.org>
06790e5f 12988 Merge changes from new-regalloc-branch
b3411d7e
DB
12989
12990 From Michael Matz <matz@suse.de>
12991 * df.c (df_ref_record_1): Move init of loc to safe point.
12992 Only recurse on interesting things in parallels.
12993 Handle CLASS_CANNOT_CHANGE_MODE smarter.
12994 (df_uses_record): Ditto.
2d295af5 12995
b3411d7e
DB
12996 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
12997 it's already okay to use memory operands in (IE doesn't require
12998 adding another insn or anything).
12999
05d482b9
RH
130002003-03-20 Richard Henderson <rth@redhat.com>
13001
13002 PR middle-end/6348
13003 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13004 different from word_mode.
13005
86a36a0e
KH
130062003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13007
13008 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13009 source operand to those that can be extracted with bld.
13010
228692e2
RE
130112003-03-20 Richard Earnshaw <rearnsha@arm.com>
13012
13013 PR 10066
13014 * arm.md (UNSPEC_PIC_BASE): New constant.
13015 (pic_add_dot_plus_four): Wrap with unspec.
13016 (pic_add_dot_plus_eight): Likewise.
13017
d0940a55
KH
130182003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13019
13020 * config/h8300/h8300.md (*insv_si_1_n): New.
13021 (*insv_si_1_n_lshiftrt): Likewise.
13022
c876997f
RS
130232003-03-20 Roger Sayle <roger@eyesopen.com>
13024
13025 * fold-const.c (fold_mathfn_compare): New function to simplify
13026 comparisons against built-in math functions. Fold comparisons
13027 of sqrt against constants.
13028 (fold): Call fold_mathfn_compare when appropriate.
13029
952a6df7
RE
130302003-03-20 Richard Earnshaw <rearnsha@arm.com>
13031
13032 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13033 information.
13034
8826ff0f
PB
130352003-03-20 Per Bothner <pbothner@apple.com>
13036
13037 Various cleanups to help compile server.
13038
b4e46cea
PB
13039 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
13040 and pass that to _cpp_init_hashtable.
13041 (cpp_read_main_file): Drop hash_table* argument; don't call
13042 _cpp_init_hashtable.
13043 * cpplib.h: Update declarations to match.
13044 * c-opts.c (c_common_init_options): Pass ident_hash to
13045 cpp_create_reader.
13046 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
13047 * fix-header.c (read_scan_file): Likewise pass NULL table to
13048 cpp_create_reader rather than cpp_read_main_file.
13049
13050 * cppfiles.c (cpp_rename_file): Generalized and renamed
13051 to cpp_change_file.
13052 * cpplib.h: Update declaration to match.
13053 * c-opts.c (push_command_line_line, finish_options): Change
13054 cpp_rename_file calls to cpp_change_file.
2d295af5 13055
8826ff0f 13056 * line-map.c (add_line_map): Allow leaving the outermost file.
2d295af5 13057 Allowing entering an outermost-file after the initial time.
8826ff0f
PB
13058
13059 * toplev.c (pop_srcloc): Allow popping from initial file.
13060
015c3186
KH
130612003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
13062
13063 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13064
101cb92a
KH
130652003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13066
13067 * config/h8300/h8300.md (a peephole2): New.
13068
f4613a2e
KH
130692003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13070
13071 * config/h8300/h8300.md (*addsi3_and_r_1): New.
13072 (*addsi3_and_not_r_1): Likewise.
13073
31260fb8
LR
130742003-03-19 Loren James Rittle <ljrittle@acm.org>
13075
13076 * Makefile.in (STRICT2_WARN): Add @WERROR@.
13077 (GCC_WARN_CFLAGS): Remove $(WERROR).
13078 (fixinc.sh-warn): New.
13079 * ada/Make-lang.in (ada-warn): Add $(WERROR).
13080 * cp/Make-lang.in (cp-warn): Add $(WERROR).
13081 * f/Make-lang.in (f-warn): Add $(WERROR).
13082 * java/Make-lang.in (java-warn): Add $(WERROR).
13083 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13084
2bd3ecad
NN
130852003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
13086
13087 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13088 langhooks-def.h (lhd_tree_dump_dump_tree),
13089 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13090 Change return type from 'int' to 'bool'. Replace 0 and 1 with
13091 true and false in return statements.
13092
9eb0ef7a
KB
130932003-03-19 Kevin Buettner <kevinb@redhat.com>
13094
13095 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13096 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13097 DWARF_INITIAL_LENGTH_SIZE.
13098 (output_compilation_unit_header, output_pubnames, output_aranges)
13099 (output_line_info): Output 0xffffffff escape value for 64-bit
13100 DWARF extension.
13101 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13102
8b5642e0 131032003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
0796c16a
UW
13104
13105 * config/s390/s390.c (s390_preferred_reload_class): Do not
13106 force constants to the pool unless necessary.
13107 (s390_decompose_address): Prefer to use pointer as base,
13108 not index register.
13109 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13110 Q alternative.
2d295af5 13111 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
0796c16a
UW
13112 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13113 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13114 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13115 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13116
62c9aa5f 131172003-03-19 Jan Hubicka <jh@suse.cz>
d9b40e8d
JH
13118
13119 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13120 * i386.c (use_fast_prologue_epilogue): Remove.
13121 (ix86_frame): New field save_regs-using_mov;
13122 (ix86_compute_frame_layout): Decide on fast prologues;
13123 allocate saved registers in red zone.
13124 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13125
31488c64
NC
131262003-03-19 Nick Clifton <nickc@redhat.com>
13127
13128 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13129
685d0e07
JDA
131302003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13131
13132 PR 10062
13133 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13134 * pa-protos.h (output_lbranch): New prototype.
13135 * pa.c (compute_frame_size): Change size of the frame marker on the
13136 64-bit ports to 48 bytes.
13137 (pa_output_function_prologue): Document why SAVE_SP is set.
13138 (hppa_expand_prologue): Save previous stack pointer into frame marker
13139 on targets which use the hpux unwind library.
13140 (output_cbranch): Use output_lbranch.
13141 (output_lbranch): New function to output long unconditional branches.
13142 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13143 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13144 64-bit ports.
13145 * pa.md (jump): Use output_lbranch.
13146 (allocate_stack): New expander for dynamic stack allocation.
13147
6a04f4e0
AM
131482003-03-19 Alan Modra <amodra@bigpond.net.au>
13149
178274da
AM
13150 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13151 when debugging on XCOFF targets. Delete "abi" temp.
13152
6a04f4e0
AM
13153 PR target/10073
13154 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13155
6b2300b3
JJ
131562003-03-18 Jakub Jelinek <jakub@redhat.com>
13157
13158 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13159 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13160 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13161
13162 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13163 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13164 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13165
5ba6918e
GK
131662003-03-18 Geoffrey Keating <geoffk@apple.com>
13167
6788f5ca
GK
13168 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13169 the result of machopic_function_base_name.
13170 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13171 string rather than a static array.
13172
5ba6918e
GK
13173 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13174
13175 * gengtype.c: Include rtl.h.
13176 (enum rtx_code): Don't define.
13177 (rtx_format): Make declaration match rtl.h.
13178 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
13179 users.
13180 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13181 * Makefile.in (gengtype.o): Update dependencies.
13182
e0ec941e
AS
131832003-03-18 Andreas Schwab <schwab@suse.de>
13184
13185 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
13186 martin@blom.org.
13187
8291cc0e
GK
131882003-03-18 Geoffrey Keating <geoffk@apple.com>
13189
f83b236e
GK
13190 * function.c (next_block_index): Mark with GTY.
13191
8291cc0e
GK
13192 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13193
b39eb2f9
RH
131942003-03-18 Richard Henderson <rth@redhat.com>
13195
13196 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13197 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13198 until after reload.
13199
6c537d03
RH
132002003-03-18 Richard Henderson <rth@redhat.com>
13201
13202 * builtins.c (expand_builtin_unop): New target_mode operand;
13203 use it to convert the result to the correct mode.
13204 (expand_builtin): Update all callers.
13205
fe03d631
UW
132062003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
13207
13208 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13209
62c9aa5f 132102003-03-18 Jan Hubicka <jh@suse.cz>
45183e03 13211
75fbf7d9
JH
13212 * i386.md: Fix previous commit that mistakely applied the patch
13213 twice.
13214
45183e03
JH
13215 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13216 canonicalized.
13217 (memrefs_conflict_p): Likewise.
13218 (addr_side_effect_eval): Canonicalize the constructed address.
13219
62c9aa5f 132202003-03-18 Jan Hubicka <jh@suse.cz>
8dfa3bb0
JH
13221
13222 * i386.md (cvtts?2si peep2): New.
13223
1e788887
KH
132242003-03-18 Kazu Hirata <kazu@cs.umass.edu>
13225
13226 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13227
94e001a9
AS
132282003-03-18 Andreas Schwab <schwab@suse.de>
13229
13230 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13231 for format.
13232
bdaa131b
JM
132332003-03-17 Jason Merrill <jason@redhat.com>
13234
13235 PR c++/10091
13236 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13237 an unaligned member of TREE_ADDRESSABLE type.
13238
ffcfcb5f
AM
132392003-03-18 Alan Modra <amodra@bigpond.net.au>
13240
13241 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13242 (TARGET_PROFILE_KERNEL): Define.
13243 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13244 (PROFILE_BEFORE_PROLOGUE): Don't define.
13245 (PROFILE_KERNEL): Remove hacks.
13246 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13247 (rs6000_stack_info): No need to save lr if just for profiling when
70e1b8fc
AM
13248 TARGET_PROFILE_KERNEL.
13249 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
ffcfcb5f
AM
13250 (output_function_profiler): Localize label generation. Emit code
13251 for kernel profiling.
13252
9b98dc74
KH
132532003-03-17 Kazu Hirata <kazu@cs.umass.edu>
13254
13255 * config/h8300/h8300-protos.h: Add a prototype for
13256 byte_accesses_mergeable_p.
13257 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13258 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13259 (a splitter): Likewise.
13260 (*iorsi3_ashift_16_ashift_24): Likewise.
13261 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13262
d41c4351
KG
132632003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13264
13265 * dwarf2asm.h: Delete obsolete comment.
13266 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13267 dw2_asm_output_pcrel, dw2_asm_output_addr,
13268 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13269 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13270 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13271 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13272
6970c06a
ZW
132732003-03-17 Zack Weinberg <zack@codesourcery.com>
13274
13275 * c-tree.h (struct lang_identifier): Remove error_locus field.
13276 (IDENTIFIER_ERROR_LOCUS): Kill.
13277 (record_function_scope_shadow): New prototype.
13278 * c-typeck.c (build_external_ref): Don't complain if
13279 decl is error_mark_node. When not at file scope, bind the
13280 decl's local value to error_mark_node to suppress further
13281 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13282
13283 * c-decl.c (get_function_binding_level): New static function.
13284 (record_function_scope_shadow): New exported function.
13285 (c_make_fname_decl): Use get_function_binding_level.
13286
405a98aa
SE
132872003-03-17 Steve Ellcey <sje@cup.hp.com>
13288
13289 * stmt.c (tail_recursion_args): Call promote_mode to set
13290 unsignedp flag correctly before calling convert_move.
13291
df86c7e2
ZD
132922003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13293
13294 * loop-unroll.c (decide_peel_completely,
13295 decide_unroll_constant_iterations, decide_unroll_stupid,
13296 decide_unroll_runtime_iterations, decide_peel_simple): Set
13297 loop->has_desc.
13298
62c9aa5f 132992003-03-17 Jan Hubicka <jh@suse.cz>
dbccdc42
JH
13300
13301 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13302
b36a8cc2
OH
133032003-03-17 Olivier Hainque <hainque@act-europe.fr>
13304
13305 * function.c (assign_parms): For a struct value address passed as
13306 first argument, delay the function's result RTL setup code until
13307 after the emission of parameter conversions.
6970c06a 13308
94833648
DL
133092003-03-17 Dave Love <fx@gnu.org>
13310 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
aeefc21d
DL
13311
13312 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13313 __arch64__ to match Compaq cc.
13314
783e2989
NB
133152003-03-17 Neil Booth <neil@daikokuya.co.uk>
13316
13317 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13318 (c_common_init): Set EBCDIC in cpp options.
13319 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13320 not conditional compilation.
13321 * cpplib.h (struct cpp_options): New entry EBCDIC.
13322
72ecfc60
NB
133232003-03-17 Neil Booth <neil@daikokuya.co.uk>
13324
13325 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13326
47009d11
MH
133272003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13328
13329 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13330 argument to 0 for redirect_jump.
47009d11 13331
bafb714b
MM
133322003-03-16 Mark Mitchell <mark@codesourcery.com>
13333
13334 PR c++/8805
13335 * except.c (eh_region_u_cleanup): Add prev_try.
13336 (expand_eh_region_end_cleanup): Set it.
13337 (reachable_handlers): Use it to skip over cleanup blocks.
13338
30492adf
AJ
133392003-03-17 Andreas Jaeger <aj@suse.de>
13340
13341 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13342
7b3464ee
AM
133432003-03-17 Alan Modra <amodra@bigpond.net.au>
13344
13345 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13346 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13347 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13348 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13349
4f5c0f7e
RH
133502003-03-16 Richard Henderson <rth@redhat.com>
13351
6970c06a
ZW
13352 * simplify-rtx (simplify_binary_operation): Don't abort for
13353 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
4f5c0f7e 13354
3c298c88
RH
133552003-03-16 Richard Henderson <rth@redhat.com>
13356
6970c06a
ZW
13357 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13358 optimize_size as well.
3c298c88 13359
fe91bac5
SC
133602003-03-16 Stephane Carrez <stcarrez@nerim.fr>
13361
13362 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13363 for D register to specify the low part of it, aka B.
13364 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13365 the register if we are loading 1 or -1 to it; avoid using temp
13366 register when moving X/Y to Y/X.
13367 (m68hc11_gen_movqi): Likewise.
13368 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13369
ddc67067
MM
133702003-03-14 Mark Mitchell <mark@codesourcery.com>
13371
13372 PR optimization/9016
13373 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13374 into the constant pool.
13375
0a71919d
FH
133762003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
13377
13378 PR target/9164
13379 * tree.c (get_narrower): For extensions with unchanged bit number,
13380 return the unsignedness of the outer mode.
13381
46ea50cb
RS
133822003-03-16 Roger Sayle <roger@eyesopen.com>
13383
13384 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
13385 to avoid "may be used uninitialized" warning on ia64-hpux.
13386 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
13387
012c387f
AJ
133882003-03-16 Andreas Jaeger <aj@suse.de>
13389
13390 * configure.in: Improve check for memcheck.h.
13391 * configure: Regenerated.
13392
7d1c4aae
NB
133932003-03-16 Neil Booth <neil@daikokuya.co.uk>
13394
13395 * doc/cppopts.texi: Remove documentation of -A-.
13396
e20798d1
ZW
133972003-03-15 Zack Weinberg <zack@codesourcery.com>
13398
13399 * doc/libgcc.texi: Remove @tie.
13400
4af16369
JZ
134012003-03-15 Josef Zlomek <zlomekj@suse.cz>
13402
13403 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
13404 (rtx_pair): Added new element update_label_nuses, renamed to
13405 replace_label_data.
13406 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
13407 replace_label_data instead of rtx_pair.
13408 * loop.c (load_mems): Likewise.
13409 * rtlanal.c (replace_label): Replace label in pool constants and in
13410 INSN_LIST (in REG_LABEL note).
13411 (subrtx_p): Renamed to rtx_referenced_p.
13412 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
13413 LABEL_REF with CODE_LABEL, traverse constants from pool.
13414
d2184e79
AH
134152003-03-15 Aldy Hernandez <aldyh@redhat.com>
13416 Zack Weinberg <zack@codesourcery.com>
13417
13418 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
13419 * doc/libgcc.texi: New file.
13420 * doc/interface.texi: Delete paragraph about libgcc interface.
13421 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
13422
8cadae7e
JM
134232003-03-15 Jason Merrill <jason@redhat.com>
13424
ae0e5982
JM
13425 PR debug/9039
13426 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
13427
8cadae7e
JM
13428 PR debug/6387
13429 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
13430 function DIEs at toplevel.
13431 (decls_for_scope): At -g1, don't descend into subblocks.
13432
2436a91b
UW
134332003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
13434
13435 * varasm.c (struct rtx_const): Change type of un.addr member
13436 to struct holding an additional 'symbol' member.
13437 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
13438 with equal string addresses as equal.
13439 (simplify_subtraction): Adapt to struct rtx_const change.
13440
151c68c3
NB
134412003-03-15 Neil Booth <neil@daikokuya.co.uk>
13442
13443 * fix-header.c (read_scan_file): Read main file before handling -D.
13444
6a87d634
RS
134452003-03-15 Roger Sayle <roger@eyesopen.com>
13446
13447 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
13448 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
13449 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
13450 (find_sub_basic_blocks): Likewise.
13451 * cgraphunit.c (cgraph_expand_functions): Likewise.
13452 * dwarf2out.c (prune_unused_types): Likewise.
13453 * expr.c (store_field): Likewise.
13454 * genextract.c (print_path): Likewise.
13455 * haifa-sched.c (schedule_insn): Likewise.
13456 * lcm.c (compute_antinout_edge): Likewise.
13457 * loop-unroll.c (decide_peel_once_rolling): Likewise.
13458 * ra-colorize.c (ra_colorize_free_all): Likewise.
13459 * ra-debug.c (dump_igraph): Likewise.
13460 (debug_hard_reg_set): Likewise.
13461 * reg-stack.c (reg_to_stack): Likewise.
13462 * rtlanal.c (refers_to_regno_p): Likewise.
13463 * tracer.c (layout_superblocks): Likewise.
13464
49c46444
NB
134652003-03-15 Neil Booth <neil@daikokuya.co.uk>
13466
13467 * fix-header.c (read_scan_file): Fix thinko.
13468
1fe668e5
GN
134692003-03-15 Glen Nakamura <glen@imodulo.com>
13470
13471 * reload1.c (choose_reload_regs): Use && instead of ||
13472 with REG_CANNOT_CHANGE_MODE_P condition.
13473
c1bad961
NB
134742003-03-15 Neil Booth <neil@daikokuya.co.uk>
13475
13476 * Makefile.in: Update.
13477 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
13478 * c-lex.c (init_c_lex): Register builtins hook is dead.
13479 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
13480 (c_common_decode_option): Don't call cpp_handle_option.
13481 Handle -A, -D and -U.
13482 (handle_deferred_opts): Simplify.
13483 (finish_options): Define builtins and command line macros.
13484 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
13485 * cppinit.c: Don't include intl.h.
13486 (init_builtins): Rename cpp_init_builtins. No hook to call.
13487 (init_library): Don't need to sort options.
13488 (cpp_create_reader): Don't set pending.
13489 (cpp_destroy): Don't free pending.
13490 (struct pending_option, cl_directive_handler, struct cpp_pending,
13491 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
13492 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
13493 cl_options, cpp_handle_option): Remove.
13494 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
13495 cpp_finish_options): Remove.
13496 (cpp_init_builtins): New.
13497 * fix-header.c (read_scan_file): Update to handle -D. Fix
13498 handling of -I. Replace call to cpp_finish_options.
13499
d8eed979
MH
135002003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13501
13502 PR optimization/9387
13503 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
13504 for conditional returns.
13505
af75fb67
JM
135062003-03-14 Jason Merrill <jason@redhat.com>
13507
13508 PR optimization/6871
13509 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
13510
255c10b1
NB
135112003-03-14 Neil Booth <neil@daikokuya.co.uk>
13512
13513 * c-opts.c (finish_options): New.
13514 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
13515 (missing_arg): Handle OPT_include and OPT_imacros.
13516 (c_common_init, c_common_parse_file): Use finish_options.
13517 (handle_deferred_opts): Update.
13518 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
13519 (cpp_finish_options): Don't handle -imacros here.
13520 (no_fil): Remove.
13521 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
13522
027fbf43
JJ
135232003-03-14 Jakub Jelinek <jakub@redhat.com>
13524
13525 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
13526 rs6000_maybe_dead if !fromprolog.
13527
23345bbb
NB
135282003-03-14 Neil Booth <neil@daikokuya.co.uk>
13529
13530 * Makefile.in: Update.
13531 * c-common.h (fe_file_change, pp_file_change): New.
13532 * c-lex.c (init_c_lex): Don't set cb_file_change.
13533 (c_common_parse_file): Move to c-opts.c.
13534 (cb_file_change): Rename fe_file_change.
13535 * c-opts.c: Include debug.h.
13536 (warn_unused_macros, include_cursor): New.
13537 (push_command_line_include, cb_file_change): New.
13538 (COMMAND_LINE_OPTIONS): Handle -include.
13539 (c_common_decode_option): Use local warn_unused_macros.
13540 Handle OPT_include.
13541 (c_common_post_options): Set file change callback.
13542 (handle_deferred_opts): Skip -include. Don't free the array.
13543 (c_common_init): Call cpp_finish_options here, and push an
13544 initial -include file.
13545 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
13546 (preprocess_file): Don't call cpp_finish_options.
13547 (init_pp_output): Don't set the file change callback.
13548 (pp_file_change): Return if no line commands or no output.
13549 * cpphash.h (next_include_file, first_unused_line): Remove.
13550 * cppinit.c (include_head, include_tail): Remove.
13551 (cpp_destroy): Don't free -include chain.
13552 (cpp_finish_options): Don't handle -include, or worry about
13553 -Wunused-macros.
13554 (_cpp_maybe_push_include_file): Remove.
13555 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
13556 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
13557 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
13558 Used flag is set based upon the state of the warn_unused_macros
13559 flag, and so use of first_unused_line is unnecessary.
13560
62c9aa5f 135612003-03-13 Jan Hubicka <jh@suse.cz>
cd648cec
JH
13562
13563 * cselib.c (clear_table): Do not take argument; always clear just
13564 used slots.
13565 (cselib_process_insn): Update call of clear_table
13566 (cselib_init): Do not call clear_table.
13567 (cselib_finish): Clear table.
13568
13569 * cse.c (count_reg_usage): Do not check side_effects_p.
13570 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
13571 like noop.
13572 (find_reg_equal_equiv_note): Do not use find_reg_note.
13573
35d9c403
RH
135742003-03-14 Richard Henderson <rth@redhat.com>
13575
13576 PR target/9700
1fe668e5 13577 * config/alpha/alpha.c (alpha_va_start): Account for
35d9c403
RH
13578 current_function_pretend_args_size in the AP offset.
13579
13580 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
13581 (INITIAL_ELIMINATION_OFFSET): Move out of line.
13582 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
13583 (alpha_initial_elimination_offset) New.
13584 * config/alpha/alpha-protos.h: Update.
13585
f43f4314
JJ
135862003-03-14 Jakub Jelinek <jakub@redhat.com>
13587
13588 * stmt.c (expand_start_case): Call emit_queue ().
13589
35d9c403
RH
135902003-03-14 Chris Demetriou <cgd@broadcom.com>
13591 Alexandre Oliva <aoliva@redhat.com>
a0a89ed0
CD
13592
13593 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
13594 words in new abis.
13595
f650843f
EB
135962003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
13597
13598 PR optimization/8396
13599 * tree-inline.c (initialize_inlined_parameters): Make sure the value
13600 of read-only constant arguments is passed with the right type.
13601
a721a601
SB
136022003-03-14 Steven Bosscher <steven@gcc.gnu.org>
13603
13604 * doc/extend.texi (Function Names): Make the example compilable.
13605
a12f8290
DE
136062003-03-13 David Edelsohn <edelsohn@gnu.org>
13607
13608 * config/rs6000/rs6000.c (processor_target_table): Really allow
13609 GP optional instructions on Power4.
13610
136112003-03-13 Roger Sayle <roger@eyesopen.com>
36dbb93d
RS
13612
13613 * calls.c (flags_from_decl_or_type): Factor and remove redundant
13614 conditional tests.
13615
c4775f82
MS
136162003-03-13 Mike Stump <mrs@apple.com>
13617
13618 * ggc-page.c (struct page_entry): Remove varray.h header.
13619 Add index_by_depth field.
13620 Remove save_in_use_p field.
13621 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
13622 by_depth_max, by_depth, and save_in_use fields.
13623 (INITIAL_PTE_COUNT): Add.
13624 (save_in_use_p_i): Add.
13625 (save_in_use_p): Add.
13626 (adjust_depth): Add.
13627 (move_ptes_to_front): Add.
13628 (push_depth): Add.
13629 (push_by_depth): Add.
13630 (prefetch): Add.
13631 (free_page): Add support for and use faster data structures.
13632 (ggc_alloc): Likewise.
13633 (init_ggc): Likewise.
13634 (ggc_recalculate_in_use_p): Likewise.
13635 (ggc_pop_context): Likewise.
13636 (clear_marks): Likewise.
13637 (ggc_pch_read): Likewise.
13638 * Makefile.in (ggc-page.o): Remove varray.h.
13639
3bed2930
NN
136402003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
13641
7210d5ae
NN
13642 * ChangeLog: Rotated last year's entries to...
13643 * ChangeLog.8: New.
13644
1fe668e5 13645 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
3bed2930
NN
13646 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
13647 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
13648 config/ia64/ia64-protos.h, config/ia64/ia64.c,
13649 config/ia64/ia64.h, config/ia64/ia64.md,
13650 config/ia64/itanium1.md, config/ia64/itanium2.md,
13651 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
13652 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
13653
3bd104d1
AH
136542003-03-13 Aldy Hernandez <aldyh@redhat.com>
13655
d2184e79
AH
13656 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
13657 Differentiate endianness.
13658 (s6000_override_options): Use cpu type instead of TARGET_SPE.
3bd104d1 13659
2ed0b52a
NC
136602003-03-13 Nick Clifton <nickc@redhat.com>
13661
b17fe233 13662 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
d2184e79
AH
13663 LDM instructions with writeback enabled.
13664 (output_return_instruction): Likewise.
b17fe233 13665
2ed0b52a
NC
13666 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
13667 (CALL_USED_REGISTERS): Remove definition.
13668 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
13669
f1384257
AM
136702003-03-13 Alan Modra <amodra@bigpond.net.au>
13671
13672 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
13673 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
13674 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
13675 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
13676 (rs6000_legitimize_address): Formatting.
13677 (rs6000_emit_move): Likewise.
13678 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
13679 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
13680 (rs6000_elf_select_section): Comment reason for shlib being
13681 set for ABI_AIX.
13682 (rs6000_elf_unique_section): Likewise.
13683 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
13684 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
13685 as well as flag_pic.
13686 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13687 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
13688 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
13689
599aedd9
RH
136902003-03-13 Richard Henderson <rth@redhat.com>
13691
13692 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
13693
13694 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13695 (ia64_gp_save_reg): Remove.
13696 (struct ia64_frame_info): Move to the beginning of the file;
13697 add reg_save_gp.
13698 (ia64_expand_call): Rearrange for new call patterns.
13699 (ia64_reload_gp): New.
13700 (ia64_split_call): New.
13701 (ia64_compute_frame_size): Allocate reg_save_gp.
13702 (ia64_expand_prologue): Save reg_save_gp.
13703 (ia64_expand_epilogue): Don't restore gp.
13704 (ia64_hard_regno_rename_ok): Remove R4 hack.
13705 (ia64_function_ok_for_sibcall): New.
1fe668e5 13706 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
599aedd9
RH
13707 call try_split on sibcall pattern.
13708 * config/ia64/ia64-protos.h: Update.
13709 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
13710 Rename from nopic versions. Confiscate 2nd argument to call as
13711 a marker.
13712 (call_pic, call_value_pic, sibcall_pic): Remove.
13713 (call_gp, call_value_gp, sibcall_gp): New.
13714 (builtin_setjmp_setup): Remove.
13715 (builtin_setjmp_receiver): Call ia64_reload_gp.
13716
e7d9d16b
NN
137172003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13718
1fe668e5 13719 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
2ff8f7ac
NN
13720 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
13721 "GNU CC" with "GCC".
13722
4db9c756
NN
13723 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
13724 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13725 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
13726 GCC, not GNU CC.
13727
63b025a5
NN
13728 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
13729 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
13730
54a7b573
NN
13731 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
13732 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
13733 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
13734 "GNU CC" with "GCC".
13735
301ee2f3
NN
13736 * config/v850/lib1funcs.asm, config/v850/rtems.h,
13737 config/v850/v850-c.c, config/v850/v850-protos.h,
13738 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
13739 GCC, not GNU CC.
13740
e7d9d16b
NN
13741 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
13742 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
13743 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
13744 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
13745 GNU CC.
13746
93c98498
BK
137472003-03-12 Benjamin Kosnik <bkoz@redhat.com>
13748
13749 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
13750
e531258e
NN
137512003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13752
706ae11c
NN
13753 * fixinc/fixinc.interix: Remove dead code (most of it).
13754 * fixinc/fixinc.dgux: Remove.
13755
e531258e
NN
13756 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
13757 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
13758
eab9e742
JDA
137592003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13760
13761 * pa.c (pa_init_builtins): Fix warning.
13762
03d0dce1
SE
137632003-03-12 Steve Ellcey <sje@cup.hp.com>
13764
13765 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
13766 (ASM_OUTPUT_XDATA_SHORT): Remove.
13767 (ASM_OUTPUT_XDATA_INT): Remove.
13768 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
13769 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
13770 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
13771 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
13772
847311f4
AL
137732003-03-12 Andrew Lewycky <andrew@mxc.ca>
13774
13775 PR c++/7050
13776 * expr.c (store_expr): Don't attempt to store void-typed trees,
13777 just evaluate them for side effects.
13778
c19b12cb
NB
137792003-03-12 Neil Booth <neil@daikokuya.co.uk>
13780
13781 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
13782 * cppinit.c (push_include): Move with changes to cppfiles.c.
13783 (cpp_read_main_file): Mark named operators here...
13784 (cpp_finish_options): ...not here. Update.
13785 (_cpp_maybe_push_include_file): Update.
13786 * cpplib.h (cpp_push_include, cpp_rename_file): New.
13787
ad9c4d9f
NN
137882003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13789
847311f4
AL
13790 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
13791 _gcc_COMPUTE_GAS_VERSION.
13792 * configure.in: Use them.
13793 * configure: Regenerate.
ad9c4d9f 13794
8d49831d
BW
137952003-03-12 Bob Wilson <bob.wilson@acm.org>
13796
d2184e79 13797 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8d49831d 13798 to detect carry.
d2184e79 13799 (subdi3): Reorder emitted instructions.
8d49831d 13800
bfa2615f
AJ
138012003-03-12 Andreas Jaeger <aj@suse.de>
13802
13803 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
13804 NETBSD_OS_CPP_BUILTINS_LP64.
13805
73458fb7
NN
138062003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13807
13808 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
13809 Rearrange. Reorganize.
13810 * configure.in: Rearrange.
13811 * configure: Regenerate.
13812
00530a21
AJ
138132003-03-12 Andreas Jaeger <aj@suse.de>
13814
d2184e79
AH
13815 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
13816 LP64 targets.
00530a21 13817
d2184e79
AH
13818 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
13819 _LP64.
00530a21 13820
d2184e79
AH
13821 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
13822 _LP64 macros here.
13823 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
00530a21 13824
d2184e79
AH
13825 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
13826 NETBSD_OS_CPP_BUILTINS_LP64.
13827 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
13828 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
00530a21 13829
d2184e79 13830 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
00530a21 13831
62c9aa5f 138322003-03-12 Jan Hubicka <jh@suse.cz>
5474eed5
JH
13833
13834 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
13835
8c35a61a 138362003-03-12 Daniel Jacobowitz <drow@mvista.com>
59a7f9bf
DJ
13837
13838 Fix PR target/9797 and PR c/9853.
13839 * stmt.c (expand_decl_init): Call push_temp_slots () and
13840 pop_temp_slots ().
13841
62c9aa5f 138422003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
1aa03f38
R
13843
13844 * sh.c: Include basic-block.h.
13845 (sh_output_mi_thunk, emit_load_ptr): New functions.
13846 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
13847
6f8c9bd1
NC
138482003-03-12 Nick Clifton <nickc@redhat.com>
13849
13850 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
13851 (CALL_USED_REGISTERS): Likewise.
13852 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
13853 describing how this value is calculated.
13854
b2522d2b
HPN
138552003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
13856
13857 * configure.in (rlim_t): Define to long if no valid definition
13858 found in sys/resource.h.
13859 * config.in, configure: Regenerate.
13860
f7248b51
NB
138612003-03-12 Neil Booth <neil@daikokuya.co.uk>
13862
13863 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
13864 TARGET_OS_CPP_BUILTINS.
13865 * config/mcore/mcore-pe.h: Similarly.
13866 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
13867 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
13868
8a7d6cb3
EB
138692003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
13870
13871 PR c/9928
13872 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
13873 only if it is a VAR_DECL.
13874
db1077d3
EB
138752003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
13876
13877 PR optimization/9888
13878 * config/i386/i386.md (jcc_1): Fix range.
13879 (jcc_2): Likewise.
13880 (jump): LIkewise.
13881 (doloop_end_internal): Likewise.
13882
6ca23bff 138832003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1fe668e5 13884
6ca23bff
DS
13885 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
13886 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
13887 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
13888 DLL_IMPORT_EXPORT_PREFIX and "i."
13889 (i386_pe_dllexport_name_p): Here.
13890 (i386_pe_dllimport_name_p): Here.
d2184e79 13891 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
6ca23bff
DS
13892 not 9 chars when getting identifier name.
13893 (i386_pe_mark_dllimport): Here.
13894 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
13895 not 9 chars when getting identifier name. Correct comment.
13896 (i386_pe_strip_name_encoding): Here. Add comments for different
13897 cases.
13898 (gen_fastcall_suffix): Break down xmalloc() argument to
13899 components.
13900 (gen_stdcall_suffix): Likewise.
13901 Update copyright year.
13902
9b73c90a
EB
139032003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
13904
13905 PR optimization/9888
13906 * config/i386/i386.md (movsi_1): Remove special alternatives
13907 for %eax register.
13908 (movsi_1_nointernunit): Likewise.
13909 (movhi_1): Likewise.
13910 * config/i386/i386.c (memory_address_length): Do not use
13911 short displacement when there is no base.
13912 (ix86_attr_length_address_default): Handle LEA instructions.
13913
21282b1e
NB
139142003-03-12 Neil Booth <neil@daikokuya.co.uk>
13915
13916 * c-cppbuiltin.c (builtin_define_std): Make non-static.
13917
7358f10d
LR
139182003-03-11 Loren James Rittle <ljrittle@acm.org>
13919
13920 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
13921 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
13922 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
13923 * config/freebsd.h (CPP_PREDEFINES): Remove.
13924 (TARGET_OS_CPP_BUILTINS): New.
13925 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
13926 instead of TARGET_OS_CPP_BUILTINS.
13927 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
13928
d00bc0a2
GK
139292003-03-11 Geoffrey Keating <geoffk@apple.com>
13930
13931 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
13932
9b7b447f
AH
139332003-03-11 Aldy Hernandez <aldyh@redhat.com>
13934
d2184e79
AH
13935 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
13936 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
9b7b447f 13937
d2184e79 13938 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
9b7b447f 13939
62c9aa5f 139402003-03-11 Alexandre Oliva <aoliva@redhat.com>
18a47d21
AO
13941
13942 * toplev.c (independent_decode_option): Return success for --help,
13943 --target-help and --version.
13944
62c9aa5f 139452003-03-11 Alexandre Oliva <aoliva@redhat.com>
c0a579df
AO
13946
13947 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
13948 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
13949 specified.
13950 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
13951 DRIVER_SELF_SPECS.
13952 (LINK_SPEC): Let endian options affect the linker emulation name.
13953
62c9aa5f 139542003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
ea45c4b0
R
13955
13956 * sh.md (reload_inqi): Fix mode for source in second set.
13957
62c9aa5f 139582003-03-11 Jan Hubicka <jh@suse.cz>
7101fb18
JH
13959
13960 * cselib.c (cselib_invalidate_mem_1): Move too ...
13961 (cselib_invalidate_mem): ... here; use new list
13962 (dummy_val, first_containing_mem): New static variables.
13963 (clear_table): Initialize first_containing_mem.
13964 (discard_useless_values): Compact the containing_mem list.
13965 (add_mem_for_addr): Add to the list.
13966 * cselib.h (cselib_val): Add next_containing_mem.
13967
b5044283
AH
139682003-03-11 Aldy Hernandez <aldyh@redhat.com>
13969
d2184e79
AH
13970 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
13971 instructions for e500.
b5044283 13972
cd6a5007
NB
139732003-03-11 Neil Booth <neil@daikokuya.co.uk>
13974
13975 * Makefile.in: Update.
13976 * c-cppbuiltin.c: Include tm_p.h.
13977
41f3a930
AH
139782003-03-11 Aldy Hernandez <aldyh@redhat.com>
13979
d2184e79 13980 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
41f3a930 13981
d2184e79
AH
13982 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
13983 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
13984 (_Unwind_SetGR): Same.
13985 (_Unwind_GetGRPtr): New.
13986 (_Unwind_SetGRPtr): New.
13987 (uw_update_context_1): Use accesor functions instead of accessing
13988 context->reg[] directly.
13989 (uw_install_context_1): Same.
13990 (execute_cfa_program): Same.
13991 (__frame_state_for): Same.
41f3a930 13992
d2184e79
AH
13993 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
13994 the synthetic register offset.
41f3a930 13995
d2184e79 13996 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
41f3a930 13997
d2f55c5c
HPN
139982003-03-11 Hans-Peter Nilsson <hp@axis.com>
13999
14000 * config/cris/cris.md: Remove lingering EGCS reference.
14001 ("*extopqihi_side_biap"): For HI operation, match
14002 cris_additive_operand_extend_operator, not
14003 cris_operand_extend_operator. Adjust condition.
14004 ("*extopqihi_side", "*extopqihi"): Ditto.
14005 ("*extopqisi_side_biap"): Correct operand numbers in condition.
14006 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14007 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14008 ("*extophisi_swap"): Ditto.
14009 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14010 PLUS, not cris_operand_extend_operator. Adjust condition and
14011 output template.
14012 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14013 * config/cris/cris.h (PREDICATE_CODES): Add
14014 cris_additive_operand_extend_operator.
14015 * config/cris/cris.c (cris_additive_operand_extend_operator):
14016 New predicate.
14017
37bd08f8
HP
140182003-03-11 Hartmut Penner <hpenner@de.ibm.com>
14019
14020 * df.c (read_modify_subreg_p): Change from static to global.
14021 * df.h (read_modify_subreg_p): Add prototype.
14022 * sched-deps.c (sched_analyze_1): Generate true dependency for
1fe668e5 14023 strict_low_part, certain subregs and zero/sign_extract.
37bd08f8 14024
cb60f38d
NB
140252003-03-11 Neil Booth <neil@daikokuya.co.uk>
14026
14027 * Makefile.in: Update.
14028 * c-common.c: Don't include real.h or except.h.
14029 (REGISTER_PREFIX): Remove.
14030 (builtin_define_std, builtin_define_with_value,
14031 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14032 builtin_define_type_max, builtin_define_type_precision,
14033 builtin_define_float_constants): Move to c-cppbuiltin.c.
14034 (c_stddef_cpp_builtins): New.
14035 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14036 * c-cppbuiltin.c: New, extracted from c-common.c.
14037 (define__GNUC__): New.
14038 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14039 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14040 (cpp_unique_options): Don't support no-gcc.
14041 (do_spec_1): Remove support of version specs.
14042 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14043 * doc/passes.texi: Update.
14044 * doc/tm.texi: Update.
14045
31ca3635
AH
140462003-03-10 Aldy Hernandez <aldyh@redhat.com>
14047
d2184e79 14048 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
31ca3635 14049
ab82a49f
AP
140502003-03-10 Andrew Pinski <apinski@apple.com>
14051
14052 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14053 is on should not get here.
14054 (machopic_indirect_data_reference): If dynamic-no-pic is on just
14055 generate high/low parts of the address.
14056 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14057 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14058 symbol and labels with a new reg. Dynamic-no-pic does not have a
14059 pic_offset_table_rtx.
14060 (machopic_select_section): Change references of flag_pic to
1fe668e5 14061 MACHOPIC_INDIRECT.
ab82a49f
AP
14062 (machopic_asm_out_destructor): Likewise.
14063 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14064 reference of flag_pic to MACHOPIC_INDIRECT.
14065 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14066 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14067 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14068 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14069 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14070 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14071 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14072 (TARGET_DYNAMIC_NO_PIC): Define.
14073 (SUBTARGET_SWITCHES): Define, have sub-target switches for
1fe668e5 14074 dynamic-no-pic.
ab82a49f
AP
14075 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14076 rs6000_override_options to here. Dynamic-no-pic overrides
14077 pic.
14078 (CC1_SPEC): Change from not static then pic to not static and not
14079 dynamic-no-pic then pic.
14080 * config/rs6000/rs6000.c (rs6000_override_options): Move the
14081 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14082 (rs6000_legitimize_reload_address): Add case for loading floating in
14083 dynamic-no-pic.
14084 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
14085 of flag_pic to MACHOPIC_INDIRECT.
14086 (secondary_reload_class): Conditional change the reference of
14087 flag_pic to MACHOPIC_INDIRECT.
14088 (rs6000_output_mi_thunk): Change reference of flag_pic to
14089 MACHOPIC_INDIRECT.
14090 (output_profile_hook): Likewise.
14091 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14092 * config/rs6000/rs6000.md (movdf_low): Add the case for
14093 MACHO_DYNAMIC_NO_PIC_P.
14094 (call): Change references for flag_pic in TARGET_MACHO to
14095 MACHOPIC_INDIRECT.
14096 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14097 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
14098 * doc/invoke.texi (-mdynamic-no-pic): Document.
87d7d780
DP
14099
141002003-03-10 Devang Patel <dpatel@apple.com>
1fe668e5 14101
87d7d780
DP
14102 PR c++/9394
14103 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14104 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14105 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14106 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14107 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14108 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1fe668e5 14109
6b856d15
SB
141102003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
14111
14112 PR optimization/7189
14113 * toplev.c (rest_of_compilation): Move
14114 check_function_return_warnings up to just after
14115 delete_unreachable_blocks.
14116
2d8d15b7
SC
141172003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14118
14119 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14120 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14121 Declare.
14122 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14123 for reg rename optimization to avoid using Z and Y registers.
14124
0e01d661
SC
141252003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14126
14127 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14128 when adding to X and Y since leax/leay are fast.
14129 ("*addhi3"): Accept 'I' constraint when adding to address register.
14130 ("rotlhi3"): Operand 1 must be a register_operand.
14131 (peephole2): New peephole to optimize some adds.
14132 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14133 to represent -2 .. 2 small integer range.
14134
ae5b570e
SC
141352003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14136
14137 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14138 each 16-bit rotation.
14139
52999738
ZW
141402003-03-10 Zack Weinberg <zack@codesourcery.com>
14141
14142 * c-opts.c (add_prefixed_path): Don't use concat. When
14143 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14144 cpp_GCC_INCLUDE_DIR_len characters.
14145
5c242421
SB
141462003-03-10 Segher Boessenkool <segher@koffie.nl>
14147
52999738 14148 * testsuite/gcc.dg/altivec-9.c: New file.
5c242421 14149
52999738
ZW
14150 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14151 (rs6000_emit_prologue): Use rs6000_frame_related instead.
5c242421 14152
b4053702
AH
141532003-03-10 Aldy Hernandez <aldyh@redhat.com>
14154
52999738
ZW
14155 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14156 vectors.
14157 (__ev_convert_u64): Remove macro. Define as inline.
14158 (__ev_convert_s64): Same.
b4053702 14159
c19de7aa
AH
141602003-03-10 Aldy Hernandez <aldyh@redhat.com>
14161
52999738
ZW
14162 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14163 (rs6000_stack_t): Add spe_64bit_regs_used.
c19de7aa 14164
52999738
ZW
14165 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14166 spe_64bit_regs_used, and use it to determine the size of the
14167 frame.
14168 (spe_func_has_64bit_regs_p): New.
14169 (spe_synthesize_frame_save): New.
14170 (rs6000_frame_related): Handle SPE synthetic registers.
14171 (rs6000_emit_prologue): Only save in 64-bits if the function used
14172 any registers in 64-bit mode.
14173 (rs6000_emit_epilogue): Same, but for restore.
c19de7aa 14174
29ad9694
RE
141752003-03-10 Richard Earnshaw <rearnsha@arm.com>
14176
14177 * arm.h (enum floating_point_type): Delete. Replace with...
14178 (enum fputype): ... new.
14179 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
14180 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14181 * arm.md (attr fpu): Reworked for new underlying enum values.
14182 * arm.c (arm_fpu_arch): Now enum fputype.
14183 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
14184 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14185 Update uses of arm_fpu_arch and arm_fpu_tune.
14186
39811184
JZ
141872003-03-10 Josef Zlomek <zlomekj@suse.cz>
14188
52999738 14189 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
39811184
JZ
14190 (try_crossjump_to_edge): Replace refereces to one jump table by
14191 references to identical jump table.
14192 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14193 (replace_label): Moved to rtlanal.c.
14194 (struct rtx_pair): Moved to rtl.h.
52999738 14195 * rtl.h (struct rtx_pair): Moved from loop.c.
39811184
JZ
14196 (replace_label): New extern function.
14197 (subrtx_p): New extern function.
14198 (tablejump_p): New extern function.
52999738 14199 * rtlanal.c (replace_label): Moved from loop.c.
39811184
JZ
14200 (subrtx_p_1): New static function.
14201 (subrtx_p): New function.
14202 (tablejump_p): New function.
14203
62c9aa5f 142042003-03-10 Jan Hubicka <jh@suse.cz>
ec3ae3da 14205
912b79e7
JH
14206 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14207
ec3ae3da
JH
14208 * cfgcleanup.c (merge_blocks): Return where to iterate next.
14209 (try_optimize_cfg): Use return value of merge_blocks
14210
e0fd3e7a
MM
142112003-03-10 Michael Matz <matz@suse.de>
14212
14213 * cfg.c (unchecked_make_edge): New.
14214 (cached_make_edge): Use it.
14215 * basic-block.h (unchecked_make_edge): Declare.
14216 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14217
82955615
RE
142182003-03-10 Richard Earnshaw <rearnsha@arm.com>
14219
14220 * fpa.md: New file. Move all patterns relating to FPA co-processor
14221 to here...
14222 * arm.md: ... from here.
14223 (cirrus.md, fpa.md): Include at end of description.
14224 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14225 (pic_load_addr_based): Remove register constraint from expander.
14226 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14227 (sordered, sungt, sunle, sunge, sunlt): Likewise.
14228 (eh_epilogue, tablejump): Likewise.
14229
22672fc4
RK
142302003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14231
14232 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14233 on operands if it has a PLACEHOLDER_EXPR.
14234
f7b3ab8a
DE
142352003-03-09 David Edelsohn <edelsohn@gnu.org>
14236 Mostafa Hagog
14237
14238 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14239 condition.
14240
cc956ba2
NB
142412003-03-09 Neil Booth <neil@daikokuya.co.uk>
14242
14243 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14244 * config/ip2k/ip2k.h: Similarly.
14245 * config/m32r/m32r.h: Similarly.
14246 * config/m68hc11/m68hc11.h: Similarly.
14247 * config/mn10200/mn10200.h: Similarly.
14248 * config/mn10300/mn10300.h: Similarly.
14249 * config/pdp11/pdp11.h: Similarly.
14250 * config/v850/v850.h: Similarly.
14251 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14252 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14253 * config/mips/iris3.h: Remove #if 0 block.
14254
142552003-03-09 Roger Sayle <roger@eyesopen.com>
14256 Joern Rennecke <joern.rennecke@superh.com>
14257
14258 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14259 pending argument upon return from handle_braces here.
14260 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14261
6544fbcb
RS
142622003-03-09 Roger Sayle <roger@eyesopen.com>
14263 Joern Rennecke <joern.rennecke@superh.com>
14264
14265 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14266 pending argument upon return from handle_braces here.
14267 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14268
e1a04212
FS
142692003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14270
14271 * varasm.c (make_decl_one_only): Use declare_weak().
14272
4677862a
JDA
142732003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14274
14275 PR middle-end/9986
14276 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14277 after the common builtins.
14278 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14279 * pa.c (TARGET_INIT_BUILTINS): Define.
14280 (pa_init_builtins): New function.
14281
14282 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14283 space has been allocated for the outgoing arguments, set the arg
14284 pointer for a call emitted after virtuals have been instantiated
14285 using the stack pointer offset, otherwise abort.
14286
2de12bc4
DD
142872003-03-09 DJ Delorie <dj@redhat.com>
14288
14289 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14290
17136dde
RE
142912003-03-09 Richard Earnshaw <rearnsha@arm.com>
14292
14293 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14294 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14295 conversion to integer.
14296 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14297
f937d5e6
RS
142982003-03-09 Roger Sayle <roger@eyesopen.com>
14299
14300 * builtins.def: Fix typo and improve grammar.
14301 * loop-unroll.c (decide_peel_completely): Tidy log message.
14302
c5979bc6
KH
143032003-03-09 Kazu Hirata <kazu@cs.umass.edu>
14304
14305 * config/h8300/h8300.md (*tstsi_upper_bit): New.
14306 (*iorsi3_e2f): Likewise.
14307
4f4ebda3
KH
143082003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14309
14310 * config/h8300/h8300.c (h8300_and_costs): Return the number of
14311 assembly instructions needed.
14312 (h8300_shift_costs): Likewise.
14313
c366ade5
HPN
143142003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
14315
02af0d9b
HPN
14316 * config/cris/aout.h (ENDFILE_SPEC): Undef.
14317
a3600c71
HPN
14318 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14319 moves from here ...
14320 * expr.c (emit_move_insn_1): ... to here.
14321
a6e464ae
HPN
14322 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14323 (TARGET_OS_CPP_BUILTINS): New macro.
14324 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14325 (TARGET_OS_CPP_BUILTINS): New macro.
14326 (CPP_PREDEFINES): Don't define. Move old definitions and...
14327 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14328 (TARGET_CPU_CPP_BUILTINS): New macro.
14329 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14330 definitions and the optional __PIC__, __pic__ and
14331 __NO_UNDERSCORES__ definitions to...
14332 (TARGET_OS_CPP_BUILTINS): New macro.
14333
d8a25128
HPN
14334 * flags.h (flag_leading_underscore): Declare.
14335
c366ade5
HPN
14336 * c-opts.c (c_common_post_options): On fopen failure, return
14337 false, not NULL.
14338
32b0bbaa
HPN
143392003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14340
14341 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14342 config.h.
14343 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14344 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14345
ad220576
NB
143462003-03-08 Neil Booth <neil@daikokuya.co.uk>
14347
14348 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14349 CPP_PREDEFINES.
14350 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14351 CPP_PREDEFINES.
14352
4bfec483
NB
143532003-03-08 Neil Booth <neil@daikokuya.co.uk>
14354
14355 * c-common.h (c_common_init, c_common_post_options): Update.
14356 * c-objc-common.c (c_objc_common_init): Update for new prototype.
14357 * c-opts.c (saved_lineno): New.
14358 (c_common_post_options, c_common_init): Update prototypes,
14359 move call to cpp_read_main_file from latter to former.
14360 * c-tree.h (c_ojbc_common_init): Update.
14361 * langhooks-def.h (lhd_post_options): New.
14362 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14363 * langhooks.c (lhd_post_options): New.
14364 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14365 * toplev.c (no_backend): New.
14366 (process_options): Call post_options hook and set main_input_filename
14367 and input_filename here.
14368 (lang_dependent_init, do_compile): post_options hook moved to
14369 process_options.
14370 * objc/objc-act.c (objc_init): Update prototype.
14371 * objc/objc-act.h (objc_init): Update prototype.
14372
9dd04ab5
RS
143732003-03-08 Roger Sayle <roger@eyesopen.com>
14374
14375 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14376 a complex or vector type, using a load in the original mode.
14377
62c9aa5f 143782003-03-08 Jan Hubicka <jh@suse.cz>
988d1653
JH
14379
14380 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
14381 * gt-cgraph.h: New GC file.
14382 * cgraph.c (known_fns): New static variable.
14383 (cgraph_node): Add the decl into varray.
14384
73ba39fc
HPN
143852003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14386
14387 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
14388
3b684012
RE
143892003-03-08 Richard Earnshaw <rearnsha@arm.com>
14390
14391 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
14392 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
14393 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
14394 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
14395 All callers changed.
14396 * arm.md, arm.h, arm-protos.h: Updated.
14397
14398 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
14399 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
14400 * arm.c (arm_regno_class, f_register_operand): Updated.
14401
fa5848c7
HPN
144022003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14403
14404 * config/cris/cris.h: Remove EGCS references.
1fe668e5 14405 (CPP_SPEC): Remove "-$".
fa5848c7
HPN
14406 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
14407
4555be98
NB
144082003-03-08 Neil Booth <neil@daikokuya.co.uk>
14409
14410 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
14411 preference to CPP_PREDEFINES.
14412
39a91264
NB
144132003-03-08 Neil Booth <neil@daikokuya.co.uk>
14414
14415 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
14416
9571a6b9
KH
144172003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14418
14419 * config/h8300/h8300.md (*extzv_16_8): New.
14420
62c9aa5f 144212003-03-08 Jan Hubicka <jh@suse.cz>
18d13f34
JH
14422
14423 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
14424 * cgraph.h: (cgraph_local_info): Add can_inline_once
14425 (cgraph_global_info): Add inline_once.
14426 (cgraph_node): Add previous.
14427 (cgraph_remove_node): New.
14428 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
14429 function.
14430 (cgraph_optimize): Call it.
14431 (cgraph_finalize_function): Set inlinable flags.
14432 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
14433 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
14434 (cgraph_expand_function): Likewise.
52999738 14435 * cgraph.c
18d13f34
JH
14436 (cgraph_node): Put nodes into doubly linked chain.
14437 (cgraph_remove_node): New function.
14438 * flags.h (flag_inline_functions_called_once): Declare.
14439 * tree-inline.c: Include cgraph.h
14440 (inlinable_functions_p): Add extra argument to bypass limits.
14441 (expand_call_inline): Obey cgraph flag.
14442 * tree-inline.h (tree_inlinable_function_p): Update prototype.
14443
72b8d451
ZD
144442003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14445
14446 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
14447 irreducible loops.
14448
14449 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
14450 loops info correctly.
14451
ed97aa66
EB
144522003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
14453
14454 PR middle-end/7796
14455 * unroll.c (calculate_giv_inc): Handle constants being
14456 loaded with LSHIFTRT.
14457
d7b53ca4
DE
144582003-03-07 David Edelsohn <edelsohn@gnu.org>
14459
14460 * config/rs6000/rs6000.c (processor_target_table): Do not disable
14461 GP optional instructions on Power3, Power4, 620, and 630.
14462
3dc575ff
KH
144632003-03-07 Kazu Hirata <kazu@cs.umass.edu>
14464
14465 * calls.c: Fix comment formatting.
14466 * cfgloopanal.c: Likewise.
14467 * cfgloopmanip.c: Likewise.
14468 * combine.c: Likewise.
14469 * dwarf2out.c: Likewise.
14470 * ggc-common.c: Likewise.
14471 * langhooks.c: Likewise.
14472 * loop-unroll.c: Likewise.
14473 * loop.c: Likewise.
14474 * ra-build.c: Likewise.
14475 * sbitmap.c: Likewise.
14476 * toplev.c: Likewise.
14477
9bcd9715
JW
144782003-03-07 James E Wilson <wilson@tuliptree.org>
14479
ed97aa66 14480 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
9bcd9715 14481
6e5c4eaf
GK
144822003-03-07 Geoffrey Keating <geoffk@apple.com>
14483
14484 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
14485 support -no-integrated-cpp.
14486
14487 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
14488 than langhooks.name.
14489
50aac998
MM
144902003-03-07 Michael Matz <matz@suse.de>
14491
14492 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
14493 (DF_FOR_REGALLOC): New.
14494 * df.c (df_ref_record): Set DF_REF_STRIPPED.
14495 (read_modify_subreg_p): Simplify.
14496 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
14497 Use DF_FOR_REGALLOC.
14498 * ra.h (struct web): New member subreg_stripped.
14499 (invalid_mode_change_regs): Declare.
14500 * ra.c (invalid_mode_change_regs): New.
14501 (init_ra): Initialize it.
14502 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
14503 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14504 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
14505 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
14506 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
14507
37f74dcf
RE
145082003-03-07 Richard Earnshaw <rearnsha@arm.com>
14509
14510 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
14511 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
14512 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
14513 machine description file from ...
14514 * cirrus.md: ... here.
14515
203b3521
KH
145162003-03-06 Kazu Hirata <kazu@cs.umass.edu>
14517
14518 * config/h8300/h8300.md (a peephole2): Don't use
14519 reg_overlap_mentioned_p.
14520
8643e92d
GK
145212003-03-06 Geoffrey Keating <geoffk@apple.com>
14522
14523 * c-pch.c: Include langhooks.h.
14524 (IDENT_LENGTH): New.
14525 (get_ident): New.
14526 (pch_ident): Delete.
14527 (pch_init): Use get_ident, IDENT_LENGTH.
14528 (c_common_valid_pch): Likewise. Also, use actual language
14529 in warning message.
14530 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
14531
14532 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
14533 c-parse.in.
14534 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
14535 gt-objc-objc-act.h.
14536 (gt-objc-objc-act.h): New rule.
14537 * objc/lang-specs.h: Support PCH.
14538 * objc/objc-act.c: Include gt-objc-objc-act.h.
14539 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
14540 (build_selector_reference_decl): Move idx out, mark for PCH.
14541 (build_class_reference_decl): Likewise.
14542 (build_objc_string_decl): Move *_idx out, mark for PCH.
14543 (build_tmp_function_decl): Move xxx out, mark for PCH.
14544
7f3d8013
DJ
145452003-03-06 Dale Johannesen <dalej@apple.com>
14546
14547 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
14548 global functions for inlining on Darwin.
14549
14484a78
VM
145502003-03-06 Vladimir Makarov <vmakarov@redhat.com>
14551
14552 * haifa-sched.c (schedule_block): Don't call reorder when sorting
14553 is prohibited.
14554
9d10c9a9
NB
145552003-03-06 Neil Booth <neil@daikokuya.co.uk>
14556
14557 * Makefile.in (c-ppoutput.o): Update.
14558 * c-common.h (init_pp_output): New.
14559 (preprocess_file): Update.
14560 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
14561 Register builtins.
14562 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
14563 Make call to cpp_read_main_file common to whether preprocessing
14564 or not. Don't register builtins.
14565 * c-ppoutput.c: Include c-pragma.h.
14566 (setup_callbacks): Rename init_pp_output.
14567 (preprocess_file): No longer setup callbacks or call
14568 cpp_read_main_file.
14569 * cpphash.h (_cpp_init_mbchar): New.
14570 * cppinit.c (init_library): Call _cpp_init_mbchar.
14571 * cpplex.c (_cpp_init_mbchar): New.
14572
37f5242b
RS
145732003-03-06 Roger Sayle <roger@eyesopen.com>
14574
14575 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
14576 MEM, try loading the MEM into a register and taking the low-part
14577 of that, to help CSE see the use of the MEM in its true mode.
14578
c876997f 145792003-03-05 Tom Tromey <tromey@redhat.com>
f3922fd2
DD
14580
14581 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
14582 Define.
14583
c876997f 145842003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
f3922fd2
DD
14585
14586 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
14587 operand 2.
14588 ("*ineqbranchsi"): Likewise.
14589
c876997f 145902003-03-05 Andrew Haley <aph@cambridge.redhat.com>
f3922fd2
DD
14591
14592 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
14593 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
14594 register store followed by a stack increment.
14595
c876997f 145962003-03-05 Chris Moller <cmoller@redhat.com>
f3922fd2
DD
14597
14598 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
14599 to inhibit saving CARRY_REGS.
14600
14601 * config/stormy16/stormy16.c (xs_hi_general_operand):
14602 added predicate to detect and error-out on out-of-range
14603 const_ints for movhi.
52999738 14604 * config/stormy16/stormy16.md (movhi): use
f3922fd2
DD
14605 xs_hi_general_operand.
14606
14607 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
14608 added a check for local vbl size overflow.
14609 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
14610 added predicate to detect and error-out on out-of-range
14611 const_ints for addhi and subhi.
52999738 14612 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
f3922fd2
DD
14613 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
14614
14615 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14616 add a term to accept PRE_MODIFY addresses.
14617 * config/stormy16/stormy16.c (xstormy16_expand_move):
14618 add code to expand PRE_MODIFY addresses to an add followed
14619 by a move.
14620
4c28216d
JM
146212003-03-06 Jason Merrill <jason@redhat.com>
14622
14623 * tree-inline.c (inlinable_function_p): Revert earlier change
14624 pending investigation.
14625
0135f343
KH
146262003-03-06 Kazu Hirata <kazu@cs.umass.edu>
14627
14628 * config/h8300/h8300.md (a new peephole2): New.
14629
62c9aa5f 146302003-03-06 Jan Hubicka <jh@suse.cz>
5c2e00ee
JH
14631
14632 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
14633
323658ea
ZD
146342003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14635
14636 * dwarf2out.c (size_of_die): Compute size of external reference to
14637 die correctly.
14638
2b18b49b
HPN
146392003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
14640
14641 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
14642 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
14643 expanders.
14644
1a71a5b0
RS
146452003-03-05 Roger Sayle <roger@eyesopen.com>
14646
14647 * expr.h (lang_expand_expr): Delete obsolete prototype.
14648
26d249eb
KH
146492003-03-05 Kazu Hirata <kazu@cs.umass.edu>
14650
14651 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
14652
8b41a8da
KH
146532003-03-05 Kazu Hirata <kazu@cs.umass.edu>
14654
14655 * config/h8300/h8300.md (a peephole2): Generalize to
14656 accept a memory operand.
14657
62c9aa5f 146582003-03-05 Olivier Hainque <hainque@act-europe.fr>
39ee7fa9
OH
14659
14660 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
14661 * config/alpha/alpha.c (print_operand, case '+'): New.
14662 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
14663 (call_value_osf_1_noreturn): Likewise.
14664
62c9aa5f 146652003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
cda26058
RK
14666
14667 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
14668 (expand_end_bindings): Likewise.
14669
98857de8
JDA
146702003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14671
14672 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
14673 (epilogue): Don't generate return_external_pic when emitting PA 2.0
14674 code.
14675
96714395
AH
146762003-03-05 Aldy Hernandez <aldyh@redhat.com>
14677
52999738 14678 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
96714395 14679
52999738 14680 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
96714395 14681
52999738 14682 * hooks.c (hook_rtx_rtx_null): New.
96714395 14683
52999738 14684 * hooks.h (hook_rtx_rtx_null): Protoize.
96714395 14685
52999738
ZW
14686 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
14687 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
96714395 14688
52999738 14689 * target.h (struct gcc_target): Add dwarf_register_span.
96714395 14690
52999738
ZW
14691 * dwarf2out.c (multiple_reg_loc_descriptor): New.
14692 (one_reg_loc_descriptor): New.
14693 (reg_loc_descriptor): Add support for values that span more than
14694 one register.
96714395 14695
62c9aa5f 146962003-03-05 Jan Hubicka <jh@suse.cz>
b255a036
JH
14697
14698 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
14699 * alias.c: Include cgraph.h
14700 (mark_constant_function): Use cgraph_rtl_info.
14701 * calls.c: Include cgraph.h
14702 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
14703 calls.
14704 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
14705 * cgraph.c (cgraph_rtl_info): New function.
14706 * cgraph.h (cgraph_rtl_info): Declare
14707 (cgraph_rtl_info): Likewise.
14708 * function.h (struct function): Add recursive_call_emit.
14709 * toplev.c: Include cgraph.h.
14710 (rest_of_compilation): Set preferred_incoming_stack_boundary.
14711
0eb933a0
KH
147122003-03-05 Kazu Hirata <kazu@cs.umass.edu>
14713
14714 * config/h8300/h8300.c (output_simode_bld): Clear the
14715 destination first if possible.
14716 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
14717 alternative.
14718 (extzv_1_r_inv_h8300hs): Likewise.
14719
35b07080
ZD
147202003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14721
14722 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
14723 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
14724 * cfgloop.c (flow_loop_free): Made global.
14725 (establish_preds): New static function.
14726 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
14727 (get_loop_exit_edges): New.
14728 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
14729 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
14730 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
14731 loops.
14732 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
14733 removability of an edge.
14734 (fix_irreducible_loops): New static function.
14735 (find_path, remove_path): Add ability to remove enclosing loops.
14736 (unloop): New.
14737 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
14738 flags.
14739 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
14740 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
14741 not neccessary.
14742 (decide_peel_completely, peel_loops_completely): Allow complete peeling
14743 of non-duplicable once rolling loops.
14744 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
14745
62c9aa5f 147462003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
bb182d23
R
14747
14748 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
14749 for align_jumps is 4.
14750
14751 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
14752 use GENERAL_REGS.
14753
f2d0440f
SC
147542003-03-05 Stephane Carrez <stcarrez@nerim.fr>
14755
14756 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
14757 according to va_arg type.
14758 (EXPAND_BUILTIN_VA_ARG): Remove.
14759 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
14760 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
14761
165b263e
DE
147622003-03-05 David Edelsohn <edelsohn@gnu.org>
14763
14764 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
14765 else clauses.
14766
8c38a24f
MM
147672003-03-05 Michael Matz <matz@suse.de>
14768
14769 * i386/i386.c (ix86_save_reg): Also test
14770 current_function_uses_const_pool.
14771
336d0d96
MM
147722003-03-05 Michael Matz <matz@suse.de>
14773
14774 * unwind.h: Add the GPL exception.
14775 * Makefile.in (USER_H): Add unwind.h.
14776
be2fa211
EB
147772003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
14778
14779 PR c/9799
14780 * c-typeck.c (push_init_level): Add sanity check.
14781
62c9aa5f 147822003-03-05 Jan Hubicka <jh@suse.cz>
dafc5b82
JH
14783
14784 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
14785 RTL inlining is done.
14786
14787 * cgraphunit.c (cgraph_mark_local_functions): New local function.
14788 (cgraph_optimize): Mark local functions.
14789 * i386-protos.h (init_cumulative_args): Update prototype.
14790 * i386.c (init_cumulative_args): Use register passing convention for
14791 local functions.
14792
14793 * cgraph.c (cgraph_global_info_ready): New global variable
14794 (cgraph_local_info, cgraph_global_info): New functions.
14795 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
14796 structures.
14797 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
14798 Declare.
14799 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
14800 (cgraph_mark_functions_to_output): Use inline_many.
14801 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
14802 (cgraph_expand_functions): Expand inline functions last.
14803 (cgraph_optimize): Do not emit uneeded functions.
14804
006c9f4a
SE
148052003-03-04 Steve Ellcey <sje@cup.hp.com>
14806
14807 * expr.c (convert_modes): Check for legal hard register.
14808
65ebbf81
TT
148092003-03-04 Tom Tromey <tromey@redhat.com>
14810
14811 * doc/sourcebuild.texi (Front End Directory): Document tags.
14812 * configure: Rebuilt.
14813 * configure.in (target_list): Added tags.
14814 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
14815 TAGS files by reference.
14816 * objc/Make-lang.in (objc.tags): New target.
14817
ec4a0419
ZD
148182003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14819
14820 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
14821 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
14822 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
14823 gcov_read_string, gcov_write_length): Modified to enable reading/
14824 writing of whole .da file just once.
14825 (da_file_open, da_file_close, da_file_eof, da_file_error,
14826 da_file_position, da_file_seek, da_file_write, da_file_read): New
14827 functions.
14828 (actual_da_file, actual_da_file_position, actual_da_file_length,
14829 actual_da_file_buffer, actual_da_file_buffer_size): New static
14830 functions.
14831 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
14832 just once.
14833
14834
79dbeefc
AS
148352003-03-04 Andreas Schwab <schwab@suse.de>
14836
14837 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
14838 offset without frame pointer.
14839
3ac1a319
SE
148402003-03-04 Steve Ellcey <sje@cup.hp.com>
14841
14842 * expr.c (expand_expr): Call promote_mode to set unsignedp.
14843
db720d9a
DJ
148442003-03-04 Daniel Jacobowitz <drow@mvista.com>
14845
14846 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
14847 * configure: Regenerated.
14848 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
14849
9a79ab7e
AJ
148502003-03-04 Andreas Jaeger <aj@suse.de>
14851
14852 * configure.in: Check for <memcheck.h>.
52999738 14853 * configure: Regenerated.
9a79ab7e
AJ
14854
14855 * config.in: Define HAVE_MEMCHECK_H.
14856
14857 * ggc-common.c: Use <memcheck.h> if available instead of
14858 <valgrind.h>.
14859 * ggc-page.c: Likewise.
14860 * cppfiles.c: Likewise.
14861
a8f0e848
KH
148622003-03-04 Kazu Hirata <kazu@cs.umass.edu>
14863
14864 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
14865
2ad1815d
EB
148662003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14867
14868 PR c/9262
14869 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
14870 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
14871
62c9aa5f 148722003-03-04 Jan Hubicka <jh@suse.cz>
e2483ef7
JH
14873
14874 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
14875 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
14876 for -O3.
14877
34a86c2b
NN
148782003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
14879
14880 * configure.in: Delete three unused variables. Move a variable
14881 definition closer to its use. Simplify use_collect2 logic. Start to
14882 organize. Simplify tests for in-tree gas and ld.
14883 * configure: Regenerate.
14884
63973df3
NB
148852003-03-04 Neil Booth <neil@daikokuya.co.uk>
14886
14887 * Makefile.in: Update.
14888 * c-common.c (flag_no_line_commands, flag_no_output,
14889 flag_dump_macros, flag_dump_includes): New.
14890 * c-common.h (flag_no_line_commands, flag_no_output,
14891 flag_dump_macros, flag_dump_includes, preprocess_file): New.
14892 (init_c_lex): Update prototype.
14893 * c-lex.c (init_c_lex): Update prototype; move some code to
14894 c_common_init.
14895 * c-opts.c (preprocess_file): Subsume into c_common_init.
14896 (c_common_decode_option): Update flags.
14897 (c_common_init): Move code from preprocess_file and init_c_lex.
14898 (sanitize_cpp_opts): Update.
14899 * c-ppoutput.c: New, cppmain.c almost verbatim.
14900 * cpphash.h (struct printer): Remove.
14901 (struct cpp_reader): Remove print.
14902 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
14903 cpp_preprocess_file): Remove.
14904 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
14905 and dump_includes.
14906 * cppmain.c: Remove.
14907 * doc/passes.texi: Update.
14908
95f3f59e
JDA
149092003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14910
14911 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
14912 (assign_stack_local_1): Perform overall stack alignment only when
6356f892 14913 STACK_ALIGNMENT_NEEDED is nonzero.
95f3f59e
JDA
14914 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
14915
14916 * pa.c (compute_frame_size): Rename fsize to size. Account for
14917 alignment to a word boundary before general register save block. Only
14918 account for double-word alignment before floating point register save
14919 block if one or more are saved. Don't allocate space for %r3 when
14920 frame pointer is needed.
14921 (hppa_expand_prologue): Include alignment to word boundary in local
14922 frame size.
14923 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
14924 (STACK_ALIGNMENT_NEEDED): Define.
14925
234c071b
KB
149262003-03-04 Kevin Buettner <kevinb@redhat.com>
14927
14928 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
14929 global register variables.
14930
f12448c8
AO
149312003-03-04 Alexandre Oliva <aoliva@redhat.com>
14932
14933 * reload.c (reload_adjust_reg_for_mode): New function.
14934 (subst_reloads): Call it.
14935 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
14936 * reload.h (reload_adjust_reg_for_mode): Declare.
14937 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
14938 Call it.
14939
f9d36a92
JW
149402003-03-03 James E Wilson <wilson@tuliptree.org>
14941
14942 * optabs.c (add_equal_note): Delete SUBREG_REG use.
14943 Fixes PR c/7872.
14944
8dfb356f
KH
149452003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14946
14947 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
14948 (*ixorsi3_lshiftrt_16): New.
14949 (*iorsi3_ashift_16): Remove.
14950
0d9bf032
KH
149512003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14952
14953 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
14954 pattern.
14955
b89a3806
GK
149562003-03-03 Geoffrey Keating <geoffk@apple.com>
14957
14958 * doc/install.texi (Specific): Update entry for powerpc-darwin.
14959
568d661d
RH
149602003-03-03 Richard Henderson <rth@redhat.com>
14961
14962 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
14963
3317bab1
DE
149642003-03-03 David Edelsohn <edelsohn@gnu.org>
14965
14966 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
14967 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
14968 (rs6000_variable_issue): Do not return negative value.
14969 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
14970 scheduling pass.
14971
03275f81
ZD
149722003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14973
14974 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
14975 prune_unused_types calls.
14976
d1a74aa7
JM
149772003-03-03 Jason Merrill <jason@redhat.com>
14978
14979 * tree-inline.c (find_builtin_longjmp_call): Save and restore
14980 lineno and input_filename.
14981 (find_alloca_call): Likewise.
14982 (inlinable_function_p): Run the langhook earlier.
14983
14984 * calls.c (compute_argument_addresses): Give the new MEMs a
14985 minimum alignment of PARM_BOUNDARY.
14986
62c9aa5f 149872003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
d44cc404
R
14988
14989 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
14990 subtarget_asm_isa_spec.
14991 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
14992 (ASM_SPEC): Define as SH_ASM_SPEC.
14993 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
14994 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
14995 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
14996 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
10f4f635
R
14997
14998 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
14999 and align_jumps if not set.
15000 Force align_jumps to be at least 2.
15001 When relaxing, force align_functions to be at least the maximum of
15002 align_loops, align_jumps and 4.
15003 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15004 (sh_loop_align): Honour align_loops_log.
15005
15006 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15007 to check for indirect_jump_scratch.
15008 (indirect_jump_scratch): Add second set.
15009 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15010 when looking for indirect_jump_scratch.
15011 Extract scratch register taking new structure of indirect_jump_scratch
15012 into account.
15013 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15014
62c9aa5f 150152003-03-03 Jan Hubicka <jh@suse.cz>
f7da1e9a 15016
09e2bf48
JH
15017 * calls.c (rtx_for_function_call): Take the address as an argument
15018 (expand_call): Do not modify the expression.
15019
f7da1e9a
JH
15020 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
15021 optimizing.
15022
426ace7f
KH
150232003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15024
15025 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15026 TARGET_H8300H and TARGET_H8300S.
15027
6967a126
KH
150282003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15029
15030 * config/h8300/h8300.md (a peephole2): New.
15031
1f7e8790
KH
150322003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15033
15034 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15035 operands[0] and operands[1] are different.
15036
150372003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2807791e
KH
15038
15039 * reload1.c (reload_cse_move2add): Remove variable success.
15040
a2581175
KG
150412003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15042
15043 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15044 warnings.
15045
ef1ecf87
RH
150462003-03-02 Richard Henderson <rth@redhat.com>
15047
15048 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15049 * config.in, configure: Rebuild.
15050 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9a79ab7e 15051 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
ef1ecf87
RH
15052 paired ldtoffx and ldxmov annotations.
15053 (load_symptr_internal1): Remove.
15054 (load_symptr_high, load_symptr_low): New.
15055
82f6e3eb
NB
150562003-03-02 Neil Booth <neil@daikokuya.co.uk>
15057
15058 * c-incpath.c (add_path): Fix sysp assignment.
15059
bc522472
KG
150602003-03-02 Kurt Garloff <garloff@suse.de>
15061
15062 * params.def: Introduce parameter max-inline-insns-rtl for
15063 a separate limit for the RTL inliner.
15064 * params.h: Likewise.
15065 * integrate.c (function_cannot_inline_p): Use it.
9a79ab7e 15066 * toplev.c (decode_f_option): Set multiple parameters
bc522472
KG
15067 controlling inlining with -finline-limit.
15068 * params.def: Fix orthographic and typographic errors.
15069 * doc/invoke.texi: Document parameters controlling inlining
15070 and the way -finline-limit sets multiple of them.
15071
15072 * tree.h (struct tree_decl): Introduce inlined_function_flag,
15073 recording whether the function became eligible for inlining
15074 by a compiler flag rather than the declaration.
15075 Provide DID_INLINE_FUNC macro to access it.
15076 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15077 * cp/decl.c (grokfndecl): Likewise.
15078 * toplev.c (rest_of_compilation): Likewise.
15079 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15080 * print-tree.c (print_node): Report it.
15081 * params.def: Introduce new max-inline-insns-auto limit.
15082 * params.h: Likewise.
15083 * tree-inline.c (inlinable_function_p): Apply it to functions
15084 with DID_INLINE_FUNC set.
15085 * toplev.c (decode_f_option): Initialize it from -finline-limit
15086 value.
15087 * doc/invoke.texi: Document new parameter.
15088
b9f4b20a
GK
150892003-03-02 Geoffrey Keating <geoffk@apple.com>
15090
15091 * fix-header.c (read_scan_file): Don't reference simplify_path.
15092
97d322cc
SC
150932003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15094
15095 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15096 min/max instructions by default as may result in reload errors.
15097
65fb64fe
SC
150982003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15099
15100 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15101 avoid reload problems; define split for it.
15102
b45e9837
SC
151032003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15104
15105 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15106 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15107 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9a79ab7e 15108 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
b45e9837
SC
15109 rotatert and rotate.
15110 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15111 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15112 ("*rotrhi3_addr"): New split for shift insns on address register.
15113 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15114 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15115 (___rotrhi3): Likewise.
15116 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15117
b1cbe78c
NB
151182003-03-02 Neil Booth <neil@daikokuya.co.uk>
15119
15120 * toplev.c (aux_base_name): Moved from toplev.h.
15121 (filename): Constify.
15122 (lang_dependent_init): Don't duplicate name.
15123 (process_options): Set aux_base_name here, not...
15124 (do_compile): ...here. Change protoype.
15125 (toplev_main): Move some code from do_compile.
15126 * toplev.h: Remove aux_base_name.
15127
b059c02a
KH
151282003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15129
15130 * config/h8300/h8300-protos.h: Add a prototype for
15131 iorxor_operator.
15132 * config/h8300/h8300.c (print_operand): Handle 'c'.
15133 (iorxor_operator): New.
15134 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15135 * config/h8300/h8300.md (*iorhi3_zext): Remove.
15136 (*iorsi3_zexthi): Likewise.
15137 (*iorsi3_zextsi): Likewise.
15138 (*xorhi3_zextqi): Likewise.
15139 (*xorsi3_zexthi): Likewise.
15140 (*xorsi3_zextsi): Likewise.
15141 (*ixorhi3_zext): New.
15142 (*ixorsi3_zext_qi): Likewise.
15143 (*ixorsi3_zext_hi): Likewise.
15144
986b1f13
NB
151452003-03-02 Neil Booth <neil@daikokuya.co.uk>
15146
15147 * c-incpath.c (remove_component_p, simplify_path): Move back to
15148 cppfiles.c.
15149 (remove_duplicates): Use cpp_simplify_path.
15150 * c-incpath.h (simplify_path): Remove.
15151 * c-lex.c: Don't include c-incpath.h.
15152 (init_c_lex): Remove simplify_path.
15153 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15154 (find_or_create_entry, validate_pch): Revert.
15155
8a035a6b
AH
151562003-03-02 Ashif Harji <asharji@uwaterloo.ca>
15157
15158 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15159 an external cpp during compilation.
15160 (option_map): Likewise.
15161 * objc/lang-specs.h (default_compilers): Similarly.
15162 * doc/invoke.texi: Document -no-integrated-cpp flag.
15163
23cdb465
KH
151642003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15165
15166 * config/h8300/h8300.md (zero_extendqisi2): Change to an
15167 expander.
15168 (*zero_extendqisi2_h8300): New.
15169 (*zero_extendqisi2_h8300hs): New.
15170 (two splitters): New.
15171
29efb633
KG
151722003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15173
15174 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15175
36bf3f1b
KH
151762003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15177
15178 * config/h8300/h8300.md (a peephole2): Remove dead code.
15179
08291658
RS
151802003-03-01 Roger Sayle <roger@eyesopen.com>
15181
15182 PR c++/9367
15183 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15184 (BT_FN_INT_CONST_STRING_VALIST_ARG,
15185 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15186 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15187 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15188 BT_FN_INT_STRING_CONST_STRING_VAR,
15189 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15190 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15191 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15192 ATTR_NONNULL_3): Also include the nothrow attribute.
15193 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15194 vsnprintf, vscanf, vsscanf): Don't define attributes here.
15195 * builtins.def (putchar, puts): Make full C89 built-ins.
15196 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15197 vsscanf, vsnprintf, vsprintf): New built-ins.
15198 * c-common.c (c_common_nodes_and_builtins): Handle new macro
15199 DEF_FUNCTION_TYPE_VAR_3.
15200
15201 * doc/extend.texi: Document these new built-in functions.
15202
e5258f85
KH
152032003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15204
15205 * config/h8300/h8300.md (a peephole2): New.
15206
85bb9c2a
RE
152072003-03-01 Richard Earnshaw <rearnsha@arm.com>
15208
15209 * predict.c (estimate_bb_frequencies): Correctly set
15210 real_values_initialized after initialization.
15211
5793b276
NB
152122003-03-01 Neil Booth <neil@daikokuya.co.uk>
15213
15214 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15215 cppinit.o, cppdefault.o, fix-header): Update.
15216 * c-incpath.c: New file.
15217 * c-incpath.h: New file.
15218 * c-lex.c: Include c-incpath.h.
15219 (init_c_lex): Register path simplifier.
15220 * c-opts.c: Include cppdefault.h and c-incpath.h.
15221 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15222 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15223 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15224 (missing_arg, c_common_decode_option): Handle them.
15225 (c_common_post_options): Register include chains.
15226 (print_help): Update.
15227 * cppdefault.h (struct default include): Update.
15228 Move some macros to ...
15229 * cppdefault.c: ... here.
15230 (cpp_include_defaults): Add extra field add_sysroot.
15231 * cppfiles.c (include_file, search_from, find_or_create_entry,
15232 cpp_included, find_include_file, remap_filename): Update for
15233 renaming of search_path to cpp_path, and of the chain headers.
15234 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15235 * cpphash.h (struct search_path): Move to cpplib.h.
15236 (struct cpp_buffer, struct cpp_reader): Update.
15237 (_cpp_simplify_pathname): Remove.
15238 * cppinit.c: Don't include prefix.h and cppdefault.h.
15239 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15240 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15241 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15242 no_pth, cpp_handle_options): Remove.
15243 (struct pending_option): Remove chain members.
15244 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15245 cpp_handle_option): Update.
15246 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15247 (struct cpp_options): Remove quote_include, bracket_include,
15248 include_prefix, include_prefix_len, verbose, ignore_srcdir,
15249 no_standard_includes, no_standard_cplusplus_includes.
15250 (struct cpp_callbacks): Add simplify_path.
15251 (cpp_handle_options): Remove.
15252 * fix-header.c: Include c-incpath.h.
15253 (read_scan_file): Update to use c-incpath functionality.
15254 * doc/passes.texi: Update.
15255
6620997b
KH
152562003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15257
15258 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15259 satisfies EXTRA_CONSTRAINT 'U'.
15260
82b4dc2e
KH
152612003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15262
15263 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15264 register.
15265 (*tst_extzv_memqi_1_n): Change to a splitter.
15266 (a peephole2): Update.
15267
c4f6b78e
RE
152682003-03-01 Richard Earnshaw <rearnsha@arm.com>
15269
15270 * predict.c (estimate_bb_frequencies): Initialize the sreal
15271 constants once per compilation.
15272
9552a3e3
RH
152732003-02-28 Richard Henderson <rth@redhat.com>
15274
15275 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15276
73c68f61
SS
152772003-02-28 scott snyder <snyder@fnal.gov>
15278
15279 * flags.h: Add flag_eliminate_unused_debug_types.
15280 * toplev.c: Add flag_eliminate_unused_debug_types.
15281 (f_options): Add -feliminate-unused-debug-types.
15282 * dwarf2out.c (struct file_table): Add emitted member.
15283 (splice_child_die): Fix the parent pointer for the child being
15284 spliced.
15285 (lookup_filename): Maintain file_table.emitted array. Don't
15286 output .file directive here.
15287 (maybe_emit_file): (new)
15288 (init_file_table): Set up file_table.emitted.
15289 (dwarf2out_source_line): Use maybe_emit_file.
15290 (dwarf2out_start_source_file): Use maybe_emit_file.
15291 (dwarf2out_init): Use maybe_emit_file.
15292 (prune_unused_types_walk_attribs): (new)
15293 (prune_unused_types_mark): (new)
15294 (prune_unused_types_walk): (new)
15295 (prune_unused_types_prune): (new)
15296 (prune_unused_types): (new)
15297 (dwarf2out_finish): Call prune_unused_types if
15298 flag_eliminate_unused_debug_types is set.
15299 * doc/invoke.texi (Option Summary): Add
15300 -feliminate-unused-debug-types.
15301 (Debugging Options): Likewise.
15302
d8fad4ea
GK
153032003-02-28 Geoffrey Keating <geoffk@apple.com>
15304
15305 * doc/invoke.texi: Change .pch to .gch.
15306 * cppfiles.c (open_file_pch): Likewise.
15307 * gcc.c (default_compilers): Likewise.
15308
9855905c
AH
153092003-02-28 Aldy Hernandez <aldyh@redhat.com>
15310
52999738 15311 * floatlib.c: Remove.
9855905c 15312
3695c25f
JM
153132003-02-28 Jason Merrill <jason@redhat.com>
15314
15315 * stor-layout.c (variable_size): Leave a "minus 1" outside the
15316 SAVE_EXPR.
15317
f8f0e566
DE
153182003-02-28 David Edelsohn <edelsohn@gnu.org>
15319
15320 * config/rs6000/power4.md: Add compare bypass.
15321
35501efe
JT
153222003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
15323
15324 * config/netbsd.h: Update copyright years.
15325 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15326 -pthread is specified on the command line.
15327
8f7ee471
DJ
153282003-02-28 Dale Johannesen <dalej@apple.com>
15329
52999738 15330 * loop.c (struct movable): Add insert_temp, shrink savemode.
8f7ee471 15331 (scan_loop): Accept invariants that require copying; mark as
52999738 15332 insert_temp.
8f7ee471
DJ
15333 (combine_movables): Don't combine insert_temp movables.
15334 (move_movables): Insert copies for insert_temp movables.
15335 Don't record the info based on regno for insert_temp's.
15336
67c2b45f
JS
153372003-02-28 Joel Sherrill <joel@OARcorp.com>
15338
15339 PR 9638/other
9a79ab7e 15340 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
67c2b45f
JS
15341 this constant defaults to 1.
15342
066f1538
BW
153432003-02-28 Bob Wilson <bob.wilson@acm.org>
15344
15345 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15346
b8c53e96
RE
153472003-02-28 Richard Earnshaw <rearnsha@arm.com>
15348
9a79ab7e 15349 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
b8c53e96
RE
15350 ARMv5e processor, not just for XScale. Instructions are predicable.
15351 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15352
b93828f3
NC
153532003-02-28 Nick Clifton <nickc@redhat.com>
15354
15355 * config/arm/arm.c (note_invalid_constants): Change parameter type
15356 from bool to int.
15357
3c042316
KH
153582003-02-28 Kazu Hirata <kazu@cs.umass.edu>
15359
15360 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15361 test of bit 7.
15362 (*tst_extzv_memqi_1_n): Likewise.
15363 (a peephole2): New.
15364
c876997f 153652003-02-28 Richard Sandiford <rsandifo@redhat.com>
28727f1f
RS
15366
15367 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15368 #ifndef __mips16.
15369
62c9aa5f 153702003-02-28 Jan Hubicka <jh@suse.cz>
10a3fdd9
JH
15371
15372 * combine.c (gen_lowpart_for_combine): Update handling of
15373 subregs_of_mode
15374 * flow.c (life_analysis, mark_used_regs): Likewise.
15375 * regclass.c (subregs_of_mode): Turn into single bitmap.
15376 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
15377 dealing with subregs_of_mode
15378 * regs.h (subregs_of_mode): Update prototype.
15379
9d18e06b
JZ
153802003-02-28 Josef Zlomek <zlomekj@suse.cz>
15381
15382 * emit-rtl.c (set_reg_attrs_for_parm): New function.
15383 * rtl.h (set_reg_attrs_for_parm): New exported function.
15384 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
15385 set_reg_attrs_from_mem.
15386
95456d43
RS
153872003-02-27 Roger Sayle <roger@eyesopen.com>
15388 Zack Weinberg <zack@codesourcery.com>
15389
15390 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
15391
28ae9fed
KH
153922003-02-27 Kazu Hirata <kazu@cs.umass.edu>
15393
15394 * reload1.c (sext_for_mode): Remove.
15395 (reload_cse_move2add): Use trunc_int_for_mode instead of
15396 sext_for_mode.
15397 (move2add_note_store): Likewise.
15398 Reset register information if we see a set in non-integer
15399 mode.
15400
d47719fd
DE
154012003-02-27 David Edelsohn <edelsohn@gnu.org>
15402
30e7f17e
DE
15403 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
15404 option.
15405 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
15406 * config/rs6000/aix51.h: Same.
15407 * config/rs6000/aix52.h: Same.
d47719fd
DE
15408 * config/rs6000/power4.md: Additional VMX bypasses.
15409
7a69a172
GB
154102003-02-27 Geert Bosch <bosch@gnat.com>
15411
15412 * toplev.c (print_version): Add indentation for GGC heuristics and
15413 output after printing version information.
15414
678e68fc
JW
154152003-02-27 James E Wilson <wilson@tuliptree.org>
15416
15417 * combine.c (simplify_comparison): Require integral mode when
15418 permuting SUBREG with AND.
15419
986704f1
SE
154202003-02-27 Steve Ellcey <sje@cup.hp.com>
15421
15422 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
15423
1e3af7f6
NC
154242003-02-27 Nick Clifton <nickc@redhat.com>
15425
15426 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
15427 deleted when cirrus instructions were added.
15428
51b7c247
JT
154292003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
15430
15431 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
15432 POSIX thread support by default.
15433
3eae722d
RS
154342003-02-27 Roger Sayle <roger@eyesopen.com>
15435
15436 * config/i386/cygwin.h: Don't include any other files directly.
15437 * config/i386/mingw32.h: Don't include cygwin.h directly.
15438 * config.gcc (cygwin, mingw32, uwin): Instead make these files
15439 explicit in the tm_files variable.
15440
6fc19dc9
AM
154412003-02-27 Alan Modra <amodra@bigpond.net.au>
15442
15443 * config/rs6000/rs6000.md: Add TI constant splitter.
15444
c41536f5
AO
154452003-02-26 Alexandre Oliva <aoliva@redhat.com>
15446
65c04548
AO
15447 * builtins.c (purge_builtin_constant_p): Handle subreg of
15448 constant_p_rtx too.
15449
c41536f5
AO
15450 * function.c (assign_stack_local_1): Truncate constant added to
15451 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
15452
dccd5213
DE
154532003-02-26 David Edelsohn <edelsohn@gnu.org>
15454
15455 * config.gcc: Add power4 to PowerPC with_cpu list.
15456
62c9aa5f 154572003-02-26 Jan Hubicka <jh@suse.cz>
47a5d8e7
JH
15458
15459 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
15460
cb9e4555
ZD
154612003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15462
15463 * gcov-dump.c (print_prefix): Fix signedness warning.
15464 * gcov-io.h (struct counter_section, struct counter_section_data): New.
15465 (struct function_info): n_arc_counts field removed, n_counter_sections,
15466 counter_sections fields added.
15467 (struct gcov_info): arc_counts, n_arc_counts fields removed,
15468 n_counter_sections, counter_sections fields added.
15469 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
15470 profile sections.
15471 * profile.h (MAX_COUNTER_SECTIONS): New.
15472 (struct section_info): New.
15473 (struct profile_info): count_instrumented_edges,
15474 count_edges_instrumented_now fields removed, n_sections, section_info
15475 fields added.
15476 (find_counters_section): Declare.
15477 * profile.c (struct function_list): count_edges field removed,
15478 n_counter_sections, counter_sections fields added.
15479 (set_purpose, label_for_tag, build_counter_section_fields,
15480 build_counter_section_value, build_counter_section_data_fields,
15481 build_counter_section_data_value, build_function_info_fields,
15482 build_function_info_value, build_gcov_info_fields,
15483 build_gcov_info_value): New static functions.
15484 (find_counters_section): New function.
15485 (instrument_edges, get_exec_counts, compute_branch_probabilities,
15486 branch_prob, create_profiler): Modified to support multiple profile
15487 sections.
15488
b0d7ef9a
JDA
154892003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15490
15491 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
15492 is 8 * STACK_BOUNDARY.
15493 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
15494
f6e91562
MM
154952003-02-26 Michael Matz <matz@suse.de>
15496
15497 * ra-colorize.c (merge_moves): Fix list handling.
15498
f0375c66
NC
154992003-02-26 Nick Clifton <nickc@redhat.com>
15500
15501 * config/arm/arm.c (is_load_address): Rename to...
52999738
ZW
15502 (arm_memory_load_p) ... this and make it check for SUBREGs and
15503 constant loads that will be converted into loads from the
15504 minipool.
15505 (is_cirrus_insn): Rename to ...
15506 (arm_cirrus_insn_p): ... this, for consistency. Replace test
15507 of CIRRUS_NO with CIRRUS_NOT.
15508 (cirrus_reorg): Use renamed functions.
15509 (note_invalid_constants): Change from a void function to bool.
15510 Add an extra parameter, saying whether the fixups should be
15511 pushed. Return true if fixups are needed.
15512 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
15513 of CIRRUS_NO with CIRRUS_NOT.
15514 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
15515 other floating point co-processors can also affect this.
15516 * config/arm/arm.md ("type" attribute): Add mav_farith and
15517 mav_dmult. Replace references to "cirrus_type" attribute with
15518 "type".
15519 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
15520 ("cirrus_type" attribute): Delete - use "type" instead.
15521 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
15522 'normal'.
f0375c66 15523
62c9aa5f 155242003-02-25 Jan Hubicka <jh@suse.cz>
0d446150
JH
15525
15526 * objc-act.c: Include cgraph.h
15527 (mark_referenced_methods): New function.
15528 (objc_init): Call it.
15529 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
15530
15531 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
15532 mode.
15533
15534 * optabs.c (expand_fix): Do not widen the input operand.
15535
15536 * expr.c (emit_group_store): Fix crash when converting single
15537 register into complex register.
15538
15539 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
15540 * alias.c: Include timevar.h
15541 (init_alias_analysis): Set timevar
15542 * jump.c: Include timevar.h
15543 (rebuild_jump_labels): Set timevar
15544 * regcalss.c: Include timevar.h
15545 (reg_scan): Set timevar
15546 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
15547
b17d5d7c
ZD
155482003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15549
15550 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
15551
15552 * Makefile.in (loop-unroll.o): New.
15553 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
15554 (unroll_and_peel_loops): Declare.
15555 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
15556 flag_old_unroll_loops.
15557 * loop.c (loop_invariant_p): Ditto.
15558 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
15559 flag_old_unroll_all_loops.
15560 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
15561 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
15562 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
15563 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
15564 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
15565 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
15566 PARAM_MAX_ONCE_PEELED_INSNS): New.
15567 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
15568 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
15569 instead of old one.
15570 (flag_peel_loops): New.
15571 (lang_independent_options): The new flags added.
15572 (rest_of_compilation): Call new unroller.
15573 (process_options): Setup flags for coexistence of old and new unroller.
15574 * doc/invoke.texi: Document new options.
15575 * doc/passes.texi: Document new unroller pass.
15576
244f7aa9
DB
155772003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
15578
15579 * fixinc/fixincl.x: Regenerate
15580
1d14f992
JZ
155812003-02-26 Josef Zlomek <zlomekj@suse.cz>
15582
15583 * function.c (assign_parms): Set reg_attrs for parameters passed in
15584 registers.
15585
8ace9f18
AM
155862003-02-26 Alan Modra <amodra@bigpond.net.au>
15587
38a84391 15588 PR target/9681
8ace9f18
AM
15589 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
15590
9a29ee42
DE
155912003-02-25 David Edelsohn <edelsohn@gnu.org>
15592
15593 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
15594 pseudo-op.
15595
8beccec8
RS
155962003-02-25 Roger Sayle <roger@eyesopen.com>
15597
15598 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
15599 * cse.c (invalidate_skipped_set): Likewise.
15600 * integrate.c (subst_constants): Likewise.
15601 * jump.c (reversed_comparison_code_parts): Likewise.
15602 * loop.c (canonicalize_condition): Likewise.
15603 * simplify-rtx.c (simplify_relational_operation): Likewise.
15604
b052d8ee
RS
156052003-02-25 Roger Sayle <roger@eyesopen.com>
15606
15607 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
15608 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
15609 the appropriate macro to define built-in function.
15610 (fmod,fmodf,fmodl): New built-in functions.
15611
15612 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
15613
8d454008
RH
156142003-02-25 Richard Henderson <rth@redhat.com>
15615
15616 * config/i386/i386.c (function_arg): Pass variable sized
15617 structures correctly on the stack.
15618
fc943f55
KH
156192003-02-25 Kazu Hirata <kazu@cs.umass.edu>
15620
15621 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
15622 does not reduce the cost of SET.
15623
14f00213
FS
156242003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15625
15626 PR target/9732
15627 * config/rs6000/rs6000.c (first_reg_to_save): Handle
15628 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
15629 (rs6000_emit_prologue): Likewise.
15630 (rs6000_emit_epilogue): Likewise.
15631 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
15632 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
15633
8164b171
RH
156342003-02-25 Richard Henderson <rth@redhat.com>
15635
15636 * real.c (real_to_integer2): Force overflow result only for
15637 unsigned overflow.
15638
9e48c409
KH
156392003-02-25 Kazu Hirata <kazu@cs.umass.edu>
15640
15641 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
15642
3044064c 156432003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
52999738 15644 Richard Henderson <rth@redhat.com>
3044064c
VM
15645
15646 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
4e21585b 15647 there is no similar load.
3044064c 15648
15aab9c0 156492003-02-25 Vladimir Makarov <vmakarov@redhat.com>
52999738 15650 Richard Henderson <rth@redhat.com>
15aab9c0
VM
15651
15652 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
15653 sched-rgn.c.
15654 (add_forward_dependence): New function prototype.
15655
15656 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
15657 sched-init.h.
15658 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
15659 them to haifa-sched.c.
15660
15661 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
15662 haifa_classify_insn): Move them from sched-rgn.c.
15663
15664 * sched-deps.c (add_dependence): Return flag of creating a new
15665 entry.
15666 (add_forward_dependence): New function.
15667 (compute_forward_dependences): Use the function.
9a79ab7e 15668
15aab9c0
VM
15669 * sched-ebb.c (earliest_block_with_similiar_load): New function.
15670 (add_deps_for_risky_insns): New function.
15671 (schedule_ebb): Call the function.
15672
156732003-02-20 Aldy Hernandez <aldyh@redhat.com>
c8e4f0e9 15674
52999738
ZW
15675 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
15676 TARGET_VECTOR_OPAQUE_P. Document accordingly.
c8e4f0e9 15677
52999738
ZW
15678 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
15679 opaque types fail.
c8e4f0e9 15680
52999738
ZW
15681 * c-typeck.c (comptypes): Change call to vector_types_compatible
15682 to vector_opaque_p.
15683 (convert_for_assignment): Call vector_opaque_p instead of
15684 vector_types_compatible.
15685 (really_start_incremental_init): Disallow initialization of opaque
15686 types.
c8e4f0e9 15687
52999738
ZW
15688 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
15689 Define TARGET_VECTOR_OPAQUE_P.
15690 (TARGET_INITIALIZER): Same.
c8e4f0e9 15691
52999738
ZW
15692 * target.h (struct gcc_target): Remove vector_types_compatible.
15693 Add vector_opaque_p.
c8e4f0e9 15694
52999738
ZW
15695 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
15696 Remove.
15697 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
15698 a vector type. Change return type to bool.
15699 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
15700 (TARGET_VECTOR_OPAQUE_P): Define.
c8e4f0e9 15701
52999738
ZW
15702 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
15703 target hook.
15704 Include target.h.
15705 (cp_parser_init_declarator): Fix typo in function comments.
c8e4f0e9 15706
62c9aa5f 157072003-02-25 Jan Hubicka <jh@suse.cz>
fa1a0d02
JH
15708
15709 * Makefile.in (lcm.o): Add dependency on function.h
15710 * lcm.c (function.h): Include.
15711 * i386.c (machine_function, ix86_stack_locals,
15712 * ix86_save_varrargs_registers) : Move to
15713 ...
15714 * i386.h (machine_function, ix86_stack_locals,
15715 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
15716 (ix86_optimize_mode_switching): New.
15717 * i386.md (fix patterns): Set ix86_optimize_mode_switching
15718
b103bfef
NC
157192003-02-25 Nick Clifton <nickc@redhat.com>
15720
15721 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
15722 of fourth arg is 'fndecl' not 'indirect'. Update comment
15723 describing the function's parameters.
15724
62c9aa5f 157252003-02-24 Jan Hubicka <jh@suse.cz>
2d21f7d6
JH
15726
15727 * combine.c (simplify_shift_const): Fix previous patch.
15728
2bac97f7
JL
157292003-02-24 Jeff Law <law@redhat.com>
15730
15731 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
15732 alternative.
15733 (testsi_1, testhi_1, testqi_1): Likewise.
15734
f8dc212b
RO
157352003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15736
15737 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
15738 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
15739 * doc/extend.texi (Tru64 Pragmas): Reflect this.
15740
15741 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
9a79ab7e 15742 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
f8dc212b
RO
15743 * fixinc/fixincl.x: Regenerate.
15744 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
15745 testcase.
15746 Fixes PR c/5059, c/6126, other/9671.
9a79ab7e 15747
44ee6e9e
RS
157482003-02-24 Roger Sayle <roger@eyesopen.com>
15749
15750 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
15751 from handle_braces in "%{...}".
15752
463f02cd
KK
157532003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
15754
15755 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
15756 (prepare_move_operands): Handle TLS operands.
15757 (tls_symbolic_operand): New.
15758 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
15759 (legitimize_pic_address): Do nothing for the TLS symbol.
15760 (sh_encode_section_info): Handle TLS case.
15761 (sh_strip_name_encoding): Drop TLS encoding.
15762 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
15763 * config/sh/sh.h (SH_TLS_ENCODING): Define.
15764 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
15765 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
15766 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
15767 * config/sh/sh.md: Define TLS UNSPEC constants.
15768 (type): Add tls_load.
15769 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
15770 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
15771 ("tls_initial_exec"): New insn.
15772 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
15773 ("load_gbr"): New insn.
15774
15775 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
52999738 15776 * configure: Regenerate.
463f02cd 15777
8403445a
AM
157782003-02-24 Alan Modra <amodra@bigpond.net.au>
15779
6fc19dc9 15780 PR 9297, PR 9722
8403445a
AM
15781 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
15782 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
15783 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
15784 (enum block_op_methods): Reorder for better store_expr optimization.
15785 * expr.c (store_expr): Test bit 1 of "want_value" for call param
15786 stores, test bit 0 for original want_value meaning. Pass
15787 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
15788 recursive calls, and calls to expand_param.
15789 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
15790 expected, set target to 0 rather than to subtarget. Formatting.
15791
ef906381
KH
157922003-02-23 Kazu Hirata <kazu@cs.umass.edu>
15793
15794 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
15795
16226f1e
KG
157962003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15797
15798 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
15799 new default behavior.
15800 * ggc-common.c: Include sys/resource.h.
15801 (ggc_rlimit_bound): New function.
15802 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
15803 defaults to account for rlimits.
15804
9e555526
RH
158052003-02-22 Richard Henderson <rth@redhat.com>
15806
15807 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
15808
158092003-02-22 Kelley Cook <kelley@dwhoops.info>
15810
52999738 15811 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
9e555526
RH
15812 (ix86_tune_string): Rename from ix86_cpu_string.
15813
9d913bbf
KC
158142003-02-22 Kelley Cook <kelleycook@comcast.net>
15815
52999738
ZW
15816 * config/i386/i386.c: Replace "mcpu" with "mtune".
15817 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
15818 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
15819 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
15820 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
9d913bbf 15821
d2c172bf
AS
158222003-02-23 Andreas Schwab <schwab@suse.de>
15823
15824 * config.gcc: Delete references to m68k/t-linux and
15825 m68k/t-linux-aout.
15826 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
15827
62c9aa5f 158282003-02-22 Jan Hubicka <jh@suse.cz>
b3de7382
JH
15829
15830 * toplev.c (rest_of_compilation): Apply fotgotten hunk
15831 of track scheduling patch.
15832
62c9aa5f 158332003-02-22 Jan Hubicka <jh@suse.cz>
90b8be73
JH
15834
15835 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
15836 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
15837
62c9aa5f 158382003-02-22 Jan Hubicka <jh@suse.cz>
764c4414
JH
15839
15840 * c-decl.c (c_expand_body_1): Fix.
15841
62c9aa5f 158422003-02-22 Jan Hubicka <jh@suse.cz>
1c4a429a
JH
15843
15844 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
15845
15846 * cfgcleanup.c (try_forward_edges): Don't check loop structures
15847 when not optimizing.
15848 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
15849 when not expensive.
15850 * toplev.c (rest_of_compilation): Duplicate loop headers only when
15851 optimizing; Delete trivially dead insns early; fix optimize check.
15852
15853 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
15854 dependency on cgraph.h
15855 * c-decl.c: Include cgraph.h
15856 (finish_function): Update call of tree_inlinable_function_p.
15857 * c-objc-common.c: Include cgraph.h
15858 * cgraph.h: New file.
15859 * cgraphunit.c: New file.
15860 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
15861 (cgraph_nodes, cgraph_n_nodes): Globalize.
15862 (cgraph_finalize_function, cgraph_finalize_compilation_unit
15863 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
15864 Move into cgraphunit.c
15865 * tree-inline.c: Include cgraph.h
15866 * tree-inline.c: Include cgraph.h
15867
1e2115dc
JZ
158682003-02-22 Josef Zlomek <zlomekj@suse.cz>
15869
15870 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
15871 for copying a register.
15872
26182e15
SB
158732003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
15874
15875 PR other/3782
15876 * toplev.c (process_options): If flag_detailed_statistics is set,
15877 then set time_report as well.
15878
b6553814
SB
15879 PR c/8828
15880 * jump.c (never_reached_warning): Don't fall through BARRRIER
26182e15
SB
15881 insns. Update comments to reflect what the function really does.
15882
c0a47a61
RS
158832003-02-21 Roger Sayle <roger@eyesopen.com>
15884
15885 * fold-const.c (omit_one_operand): No longer static.
15886 * tree.h (omit_one_operand): Prototype here.
15887 (div_and_round_double): Keep fold-const.c prototypes together.
15888 * builtins.c (builtin_mathfn_code): Handle binary built-in
15889 funtions, such as "pow" and "atan2".
15890 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
15891 Simplify optimizations using "type" the builtin's return type.
15892
51928907
HPN
158932003-02-22 Hans-Peter Nilsson <hp@axis.com>
15894
5b296d93
HPN
15895 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
15896 Fix functionalization typo.
15897
51928907
HPN
15898 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
15899 in an asm.
15900
9ac121af
KG
159012003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15902
15903 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
15904 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
15905 documentation.
15906 * ggc-common.c: Include params.h
15907 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
15908 init_ggc_heuristics): New functions.
15909 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
15910 init_ggc_heuristics): Prototype.
15911 * toplev.c (print_version): Output GGC heuristics.
15912 (parse_options_and_default_flags): Call init_ggc_heuristics.
15913
62c9aa5f 159142003-02-22 Jan Hubicka <jh@suse.cz>
453ee231
JH
15915
15916 * i386.c (def_builtin): Special case 64bit builtins.
15917 (MASK_SSE164, MASK_SSE264): New constants.
15918 (builtin_description): Add 64bit builtins.
15919 (ix86_init_mmx_sse_builtins): Likewise.
15920 * i386.h (enum ix86_builtins): Likewise.
15921 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
15922 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
15923 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
15924 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
15925 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
15926 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
15927 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
15928
62c9aa5f 159292003-02-22 Jan Hubicka <jh@suse.cz>
d50672ef
JH
15930
15931 * i386.c (builtin_description): Add __builtin_ia32_paddq and
15932 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
15933 and __builtin_ia32_psubq128.
15934 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
15935 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
15936 (mmx_adddi3, mmx_subdi3): New.
15937 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
15938 * xmmintrin.h (_mm_movepi64_pi64): New.
15939 (_mm_add_epi64, _mm_sub_epi64): fix.
15940 (_mm_mul_pu16): Rename to...
15941 (_mm_mul_su32): ... this one.
15942
15943 * builtins.c (expand_builtin_expect): Do not predict
15944 flag_guess_branch_prob is not set.
15945 * c-semantics.c (expand_stmt): Likewise.
15946 * predict.c (predict_insn): Likewise.
15947 * stmt.c (expand_continue_loop): Likewise.
15948 * toplev.c (rest_of_compilation): Do not call
15949 note_prediction_to_br_prob and note_prediction_to_br_prob
15950 when not optimizing.
15951
62c9aa5f 159522003-02-21 Jan Hubicka <jh@suse.cz>
9809a362
JH
15953
15954 * cfgrtl.c (commit_edge_insertions): Call
15955 find_many_sub_basic_block only when some code has been emitted.
15956 (commit_edge_insertions_watch_calls): Bring into sync with
15957 commit_edge_insertions
15958
62c9aa5f 159592003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
a93d1ba2
R
15960
15961 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
15962
15963 * sh.md (binary_sf_op): Use extra constant operand instead of
15964 negating constant operand 4.
15965 * sh.c (sh_expand_binop_v2sf): Supply it.
15966
a8d0ddaf
ZW
159672003-02-21 Zack Weinberg <zack@codesourcery.com>
15968
15969 * cpphash.h (struct lexer_state): Add directive_wants_padding.
15970 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
15971 for directives of type INCL.
15972 (glue_header_name, parse_include): Use get_token_no_padding.
15973 * cppmacro.c (replace_args): If directive_wants_padding,
15974 provide padding tokens.
15975
902ac719
KH
159762003-02-21 Kazu Hirata <kazu@cs.umass.edu>
15977
15978 * config/h8300/h8300.md (a peephole2): New.
15979
62c9aa5f 159802003-02-21 Jan Hubicka <jh@suse.cz>
9dca2ad5
JH
15981
15982 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
15983 (commit_edge_insertions): Call find_many_sub_basic_blocks
15984
15985 * reg-stack.c (convert_regs): Cleax aux for blocks.
15986
62c9aa5f 159872003-02-21 Jan Hubicka <jh@suse.cz>
64465d27
JH
15988
15989 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
15990
9e7d0b92
GN
159912003-02-21 Glen Nakamura <glen@imodulo.com>
15992
15993 PR optimization/8613
15994 * builtins.c (expand_builtin): Emit postincrements before expanding
15995 builtin functions.
15996
a7582c8c
BE
159972003-02-21 Ben Elliston <bje@redhat.com>
15998
15999 PR other/5634
16000 * doc/install.texi (Configuration): Explain using $HOME instead of
16001 the ~ metacharacter when referring to home directories.
16002
91710e62
AO
160032003-02-20 Alexandre Oliva <aoliva@redhat.com>
16004
16005 * configure.in (TARGET_SYSTEM_ROOT): Set default to
16006 ${exec_prefix}/${target_alias}/sys-root. Match explicit
16007 '${exec_prefix}' (in addition to the expansion thereof) as
16008 relocatable.
16009 * configure: Rebuilt.
16010
d64f6f86
KH
160112003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16012
16013 * config/h8300/h8300.md (addhi3_incdec): Change the name to
16014 *addhi3_incdec.
16015 (addsi3_incdec): Change the name to *addsi3_incdec.
16016
fd7acc30
RS
160172003-02-20 Roger Sayle <roger@eyesopen.com>
16018
16019 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16020
1c2de642
TM
160212003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
16022
16023 PR fortran/9038
16024 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16025 options to be ignored.
16026 (c_common_decode_option): Ignore them when preprocessing.
16027
62c9aa5f 160282003-02-20 Jan Hubicka <jh@suse.cz>
b9422b69 16029
fd7acc30
RS
16030 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16031 global variables.
16032 (lang_independent_options): Add -fsched2-use-superblocks
16033 -fsced2-use-traces.
b9422b69
JH
16034 (rest_of_compilation): Deal with it.
16035 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
fd7acc30
RS
16036 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16037 Declare.
b9422b69
JH
16038 * rtl.h (reg_to_stack): Update prototype.
16039 * reg-stack.c (reg_to_stack): Return when something has changed;
16040 update liveness when executing after superblock scheduling.
16041
16042 * combine.c (simplify_shift_const): Simplify few special cases
16043 into constants.
16044
a62bfff2
DE
160452003-02-20 David Edelsohn <edelsohn@gnu.org>
16046
16047 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16048 (add.,subf.,neg.): Change attribute to fast_compare.
16049 All DFA descriptions updated.
16050
dbbf88d1
NS
160512003-02-20 Nathan Sidwell <nathan@codesourcery.com>
16052
16053 Change base class access representation.
16054 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16055 TREE_VIA_PRIVATE): Remove.
16056 (BINFO_BASEACCESSES): New binfo elt.
16057 (BINFO_BASEACCESS): New accessor.
16058 (BINFO_ELTS): Increase.
16059 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16060 (access_public_node, access_protected_node,
16061 access_private_node): New global nodes.
16062 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16063 * dbxout.c (dbxout_type): Adjust.
16064 * dwarf2out.c (gen_inheritance_die): Add access parameter.
16065 (gen_member_die): Adjust.
16066 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16067 (output_type): Adjust.
16068 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16069
16070 Change base class access representation. Share virtual base
16071 binfos.
16072 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16073 call.
16074 * cp/class.c (build_base_path): Likewise.
16075 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16076 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16077 (make_new_vtable): Adjust.
16078 (force_canonical_binfo_r): Delete.
16079 (force_canonical_binfo): Delete.
16080 (mark_primary_virtual_base): Delete.
16081 (dfs_unshared_virtual_bases): Delete.
16082 (mark_primary_bases): Adjust.
16083 (maybe_warn_about_overly_private_class): Adjust.
16084 (dfs_base_derived_from): Delete.
16085 (base_derived_from): Follow the inheritance chain.
16086 (struct find_final_overrider_data): Add vpath member.
16087 (dfs_find_final_overrider): Adjust.
16088 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16089 (find_final_overrider): Adjust.
16090 (update_vtable_entry_for_fn): Adjust.
16091 (modify_all_vtables): Adjust.
16092 (walk_subobject_offsets): Adjust.
16093 (layout_nonempty_base_or_field): Adjust.
16094 (layout_empty_base): Remove last parameter. Adjust.
16095 (build_base_field): Adjust.
16096 (build_base_fields): Adjust.
16097 (propagate_binfo_offsets): Remove last parameter. Adjust.
16098 (dfs_set_offset_for_unshared_vbases): Delete.
16099 (layout_virtual_bases): Adjust.
16100 (finish_struct_1): Adjust.
16101 (init_class_processing): Don't init access nodes.
16102 (dfs_get_primary_binfo): Delete.
16103 (get_primary_binfo): Adjust.
16104 (dump_class_hierarchy_r): Remove most derived arg, add IGO
16105 parameter. Adjust.
16106 (dump_class_hierarchy): Adjust.
16107 (finish_vtbls): Adjust.
16108 (get_original_base): Delete.
16109 (build_vtt_inits): Adjust.
16110 (dfs_build_secondary_vptr_vtt_inits): Adjust.
16111 (dfs_ctor_vtable_bases_queue_p): Adjust.
16112 (build_ctor_vtbl_group): Adjust.
16113 (dfs_accumulate_vtbl_inits): Adjust.
16114 (build_vtbl_initializer): Adjust.
16115 (build_vbase_offset_vtbl_entries): Adjust.
16116 (add_vcall_offset_vtbl_entries_1): Adjust.
16117 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16118 (access_*_node): Remove.
16119 (CANONICAL_BINFO): Delete.
16120 (BINFO_UNSHARED_MARKED): Remove.
16121 (BINFO_MARKED): Set LANG_FLAG_0 directly.
16122 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16123 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16124 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16125 Delete.
16126 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16127 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16128 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16129 Delete.
16130 (BINFO_DEPENDENT_BASE_P): New.
16131 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16132 index.
16133 (markedp, unmarkedp): Adjust.
16134 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16135 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16136 find_vbase_instance, binfo_for_vbase): Delete.
16137 (copied_binfo, original_binfo): Declare.
16138 (finish_base_specifier): Add virtual_p arg.
16139 (unshare_base_binfos): Delete.
16140 (copy_base_binfos): Declare.
16141 (reverse_path): Delete.
16142 * cp/decl.c (xref_basetypes): Access and virtuality passed
16143 differently. Don't copy direct base binfos here. Call
16144 copy_base_binfos.
16145 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16146 (initialize_vtbl_ptrs): Adjust.
16147 (expand_member_init): Adjust.
16148 * cp/parser.c (cp_parser_base_specifier): Adjust.
16149 * cp/pt.c (instantiate_class_template): Adjust.
16150 (get_template_base_recursive): Adjust.
16151 * cp/rtti.c (get_pseudo_ti_init): Adjust.
16152 (get_pseudo_ti_desc): Adjust.
16153 * cp/tree.c (unshare_base_binfos): Rename to ...
16154 (copy_base_binfos): ... here, reimplement.
16155 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16156 (reverse_path): Remove.
16157 * cp/typeck.c (get_delta_difference): Adjust error messages.
16158 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16159 * cp/search.c (lookup_base_r): Adjust.
16160 (dynamic_cast_base_recurse): Adjust.
16161 (canonical_binfo): Remove.
16162 (dfs_canonical_queue): Remove.
16163 (dfs_assert_unmarked_p): Remove.
16164 (assert_canonical_unmarked): Remove.
16165 (shared_marked_p, shared_unmarked_p): Remove.
16166 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16167 (dfs_access_in_type): Adjust.
16168 (access_in_type): Adjust.
16169 (dfs_accessible_queue_p): Adjust.
16170 (dfs_accessible_p): Adjust.
16171 (is_subobject_of_p_1, is_subobject_of_p): Remove.
16172 (struct lookup_field_info): Remove from_dep_base_p field.
16173 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16174 (lookup_field_r): Remove dependent base code.
16175 (lookup_member): Likewise.
16176 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16177 (dfs_unmarked_real_bases_queue_p): Remove.
16178 (dfs_marked_real_bases_queue_p): Remove.
16179 (dfs_skip_vbases): Remove.
16180 (dfs_get_pure_virtuals): Adjust.
16181 (markedp, unmarkedp): Adjust.
16182 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16183 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16184 (dfs_unmark): Adjust.
16185 (dfs_get_vbase_types):Remove.
16186 (dfs_build_inheritance_graph_order): Remove.
16187 (get_vbase_types): Remove
16188 (dfs_find_vbase_instance): Remove.
16189 (find_vbase_instance): Remove.
16190 (dfs_debug_unmarkedp): Adjust.
16191 (dependent_base_p): Remove.
16192 (dfs_push_type_decls): Adjust.
16193 (dfs_push_decls): Adjust.
16194 (dfs_no_overlap_yet): Adjust.
16195 (copied_binfo): New function.
16196 (original_binfo): New function.
16197 (binfo_for_vbase): Remove.
16198
16199 Change base class access representation.
16200 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16201 (add_interface_do): Likewise.
16202
6d6ab190
DE
162032003-02-20 David Edelsohn <edelsohn@gnu.org>
16204
a8d0ddaf
ZW
16205 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16206 * config/rs6000/power4.md (power4-store,power4-vecstore): New
6d6ab190
DE
16207 insn reservations.
16208 (power4-fpstore): Compact.
16209
2dd5df7c
KH
162102003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16211
16212 * config/h8300/h8300.md (*iorsi3_w): New.
16213
8fa08316
JZ
162142003-02-20 Josef Zlomek <zlomekj@suse.cz>
16215
16216 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16217 * rtl.c (reg_note_name): Likewise.
16218 * rtl.h (enum reg_note): Likewise.
16219 * doc/invoke.texi: Likewise.
16220 * doc/rtl.texi: Likewise.
16221
c8717368
JZ
162222003-02-20 Josef Zlomek <zlomekj@suse.cz>
16223
16224 * bb-reorder.c (find_traces_1_round): Fix comment typo.
16225
3bc400cd
RS
162262003-02-19 Roger Sayle <roger@eyesopen.com>
16227
16228 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16229 addition in the presence of signaling NaNs.
16230
b5a49c0b
KW
162312003-02-19 Krister Walfridsson <cato@df.lth.se>
16232
16233 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16234
472f2723
KH
162352003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16236
16237 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16238 ORing with 0xffff??00 with the highest bit of the ?? part set.
16239 (compute_logical_op_length): Update.
16240 (compute_logical_op_cc): Likewise.
16241
6d9cc15b
JZ
162422003-02-19 Josef Zlomek <zlomekj@suse.cz>
16243
16244 * bb-reorder.c (find_traces_1_round): Fixed condition for small
16245 destination block with multiple predecessors.
16246 (connect_traces): Check whether the block is a start of trace.
16247
62c9aa5f 162482003-02-19 Jan Hubicka <jh@suse.cz>
563a317a
JH
16249
16250 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16251 * function.c (assign_params): Likewise.
16252 * arm-protos.h (arm_init_cumulative_args): Update prototype.
16253 * arm.c (arm_init_cumulative_args): Update function.
16254 * arm.h (INIT_CUMULATIVE_ARGS): Update.
16255 * avr-protos.h (init_cumulative_args): Update prototype.
16256 * avr.c (init_cumulative_args): Update function.
16257 * avr.h (INIT_CUMULATIVE_ARGS): Update.
16258 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16259 * d30v.c (d30v_init_cumulative_args): Update function.
16260 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16261 * frv-protos.h (frv_init_cumulative_args): Update prototype.
16262 * frv.c (frv_init_cumulative_args): Update function.
16263 * frv.h (INIT_CUMULATIVE_ARGS): Update.
16264 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16265 * pa.h (INIT_CUMULATIVE_ARGS): Update.
16266 * sparc-protos.h (init_cumulative_args): Update prototype.
16267 * sparc.c (init_cumulative_args): Update function.
16268 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16269 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16270
be9d08c2
KH
162712003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16272
16273 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16274 (*ashiftsi_sextqi_7): Likewise.
16275
f23147fe
RO
162762003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16277
16278 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16279 ISO C99 and C++.
16280
16281 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16282 for C++ on IRIX 6.5.1[89].
16283 * fixinc/tests/base/internal/sgimacros.h: New file.
16284
16285 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16286 * fixinc/tests/base/internal/wchar_core.h: New file.
a8d0ddaf 16287
f23147fe
RO
16288 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16289 socklen_t definition.
16290 * fixinc/fixincl.x: Regenerate.
16291 * fixinc/tests/base/sys/socket.h: New file.
16292 Fixes PR libgcj/9652.
16293
62c9aa5f 162942003-02-19 Jan Hubicka <jh@suse.cz>
30e4d9d4
JH
16295
16296 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16297
2792d578
DE
162982003-02-19 David Edelsohn <edelsohn@gnu.org>
16299
16300 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16301 align_jumps_max_skip and align_loops_max_skip.
16302
163032003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
16304
16305 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16306 test size if named section.
16307
48a5f2fa
DJ
163082003-02-19 Daniel Jacobowitz <drow@mvista.com>
16309
16310 * expr.c (expand_expr): Use gen_int_mode for the argument
16311 to gen_rtx_MULT.
16312
62c9aa5f 163132003-02-19 Jan Hubicka <jh@suse.cz>
9e889775
JH
16314
16315 * i386.md (cosxf2): Fix conditional.
16316
f4c07fbf
KH
163172003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16318
16319 * config/h8300/h8300.md (extendqisi2): Change to an expander.
16320 (*extendqisi2_h8300): New.
16321 (*extendqisi2_h8300hs): Likewise.
16322
590734b6
KH
163232003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16324
16325 * config/h8300/h8300-protos.h: Update the prototype for
16326 split_adds_subs. Remove the prototypes for
16327 const_int_le_2_operand and const_int_le_6_operand.
16328 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16329 (const_int_le_2_operand): Remove.
16330 (const_int_le_6_operand): Likewise.
16331 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16332 for const_int_le_2_operand and const_int_le_6_operand.
16333 * config/h8300/h8300.md: Update all uses of split_adds_subs.
16334 (a peephole2): New.
16335
62c9aa5f 163362003-02-18 Jan Hubicka <jh@suse.cz>
c001c39b
JH
16337
16338 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16339 (cgraph_expand_function): Rewrite.
16340
2f51bb1d 163412003-02-18 Matt Austern <austern@apple.com>
3bc400cd 16342
2f51bb1d 16343 * toplev.c, langhooks.c, langhooks-def.h: Move
a8d0ddaf 16344 write_global_declarations from toplev.c to langhooks.c.
3bc400cd 16345
ff6e1a2f
KH
163462003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16347
16348 * config/h8300/h8300.c (general_operand_src): Always check
16349 MODE.
16350 (general_operand_dst): Likewise.
16351
78bd5210
RS
163522003-02-18 Roger Sayle <roger@eyesopen.com>
16353
16354 * convert.c (convert_to_real): Also optimize (float)log(x) into
16355 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16356
9f3a9a08
KK
163572003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
16358
a8d0ddaf 16359 * config/sh/sh.c (unspec_caller_rtx_p): New.
9f3a9a08 16360 (sh_cannot_copy_insn_p): New.
a8d0ddaf 16361 (TARGET_CANNOT_COPY_INSN_P): New.
9f3a9a08 16362
d7ddbe24
RH
163632003-02-18 Richard Henderson <rth@redhat.com>
16364
16365 * c-common.c (handle_used_attribute): Accept static data too.
16366
163672003-02-18 Nick Clifton <nickc@redhat.com>
a8d0ddaf 16368 Aldy Hernandez <aldyh@redhat.com>
22d324c1 16369
a8d0ddaf 16370 * testsuite/gcc.dg/20030218-1.c: New.
22d324c1 16371
a8d0ddaf 16372 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
22d324c1 16373
a8d0ddaf
ZW
16374 * target-def.h (TARGET_INITIALIZER): Add
16375 TARGET_VECTOR_TYPES_COMPATIBLE.
16376 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
22d324c1 16377
a8d0ddaf 16378 * target.h (struct gcc_target): Add field vector_types_compatible.
22d324c1 16379
a8d0ddaf
ZW
16380 * c-typeck.c (comptypes): Take into account
16381 TARGET_VECTOR_TYPES_COMPATIBLE.
16382 (convert_for_assignment): Same.
22d324c1 16383
a8d0ddaf
ZW
16384 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
16385 (rs6000_spe_vector_types_compatible): New.
16386 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
22d324c1 16387
e5378e8d
AS
163882003-02-19 Andreas Schwab <schwab@suse.de>
16389
16390 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
16391 * toplev.c: Include langhooks-def.h.
16392
fcc11c35
CD
163932003-02-18 Chris Demetriou <cgd@broadcom.com>
16394
16395 * config/mips/mips.h (enum processor_type): Sort entries
16396 alphabetically.
16397 * config/mips/mips.md (define_attr cpu): Sync with processor_type
16398 enum values, including adding entries that were missing.
16399
62c9aa5f 164002003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
29db2a1e 16401
3bc400cd
RS
16402 * sh.c (calc_live_regs): Also check GET_CODE when checking if
16403 initial value for PR_REG is still the PR_REG register.
29db2a1e 16404
582d11e6
JW
164052003-02-18 Jim Wilson <wilson@redhat.com>
16406
16407 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
16408 instruction in output template.
16409 (bsp_value): Change output template from string to C code, add %,
16410 before actual instruction.
16411 (flushrs): Mark as not predicable.
16412
3edc4b23
KW
164132003-02-18 Krister Walfridsson <cato@df.lth.se>
16414
16415 * inclhack.def (netbsd_bogus_semicolon): New fix.
16416 * fixincl.x: Rebuilt.
16417 * tests/base/ctype.h: Update.
16418
080ea642
RS
164192003-02-18 Roger Sayle <roger@eyesopen.com>
16420
16421 * fold-const.c (negate_expr_p): New function to determine whether
16422 an expression can be negated cheaply.
16423 (fold) [MINUS_EXPR]: Use it to determine whether to transform
16424 -A - B into -B - A for floating point types.
16425
e360ab39
RS
164262003-02-18 Roger Sayle <roger@eyesopen.com>
16427
16428 * sbitmap.c (sbitmap_resize): New function.
16429 * sbitmap.h (sbitmap_resize): Prototype here.
16430 * recog.c (split_all_insns): Use sbitmap_resize.
16431
6b00cbc7
KH
164322003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16433
16434 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
16435 insn length.
16436 (extendqisi2): Likewise.
16437 (*extendhisi2_h8300): Likewise.
16438
2b59501b 164392003-02-18 Matt Austern <austern@apple.com>
a8d0ddaf 16440
2b59501b
MA
16441 * langhooks.h, langhooks-def.h: introduce new langhook,
16442 final_write_globals, with write_global_declarations as default.
16443 * toplev.c: Move invocation of wrapup_global_declarations from
16444 compile_file to new function, write_global_declarations. Change
16445 compile_file to use final_write_globals hook. Change
16446 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
a8d0ddaf
ZW
16447 conditional.
16448
131efcd8
JDA
164492003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16450
16451 * pa.md: Correct and enhance comment.
16452
e17aafd1
GK
164532003-02-18 Geoffrey Keating <geoffk@apple.com>
16454
16455 * gcc.c (validate_switches): Don't scan past closing '}'.
16456
f57a2e3a
BE
164572003-02-18 Ben Elliston <bje@redhat.com>
16458
16459 PR c++/1607
16460 * doc/extend.texi (Function Attributes): Document the effect of
16461 the C++ "this" parameter on the counting of arguments for the
16462 "format" and "format_arg" attributes.
16463
9b0c0e9f
AH
164642003-02-17 Aldy Hernandez <aldyh@redhat.com>
16465
a8d0ddaf
ZW
16466 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
16467 (__ev_stdw): Same.
16468 (__ev_stdh): Same.
9b0c0e9f 16469
62c9aa5f 164702003-02-17 Jan Hubicka <jh@suse.cz>
35a3fa09
JH
16471
16472 * recog.c (split_all_insns): Fix memory overflow.
16473
6dc50366
KH
164742003-02-17 Kazu Hirata <kazu@cs.umass.edu>
16475
16476 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
16477 (cmphi): Likewise.
16478 (*cmphi_h8300): Likewise.
16479 (*cmphi_h8300hs): Likewise.
16480 (cmpsi): Likewise.
16481 (7 peephole2): Likewise.
16482
62c9aa5f 164832003-02-16 Jan Hubicka <jh@suse.cz>
096daf41
JH
16484
16485 * c-typeck.c (build_c_cast): Fold constant variables into
16486 initial values.
16487
35113fde
GP
164882003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16489
16490 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
16491 (Binaries): Ditto for Sinix/Reliant Unix.
16492
3a1944a6
RE
164932003-02-16 Richard Earnshaw <rearnsha@arm.com>
16494
16495 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
16496 not overlap the final result register.
16497
cdd4b0d4
AB
164982003-02-16 Arend Bayer <arend.bayer@web.de>
16499 Richard Henderson <rth@redhat.com>
16500
ddb9eedd 16501 PR c/8068
cdd4b0d4
AB
16502 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
16503 rearrange mult arguments for less recursion.
16504 (extract_muldiv): New. Prevent runaway recursion.
16505
616f273a
DS
165062003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
16507
16508 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
16509 MASK_ALIGN_DOUBLE.
16510
881b2a96
RS
165112003-02-15 Roger Sayle <roger@eyesopen.com>
16512
16513 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
16514 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
16515 (ext_80387_constants_table): Global table of 80387 special constants
16516 guarded by ext_80387_constants_init flag when not initialized.
16517 (init_ext_80387_constants): New function to initialize this table.
16518 (standard_80387_constant_p): Extend to recognize extra 80387
16519 constants, in XFmode, on processors where this is a win.
16520 (standard_80387_constant_opcode): New function to return the
16521 opcode associated with standard_80387_constant_p.
16522 (standard_80387_constant_rtx): New function to return the XFmode
16523 CONST_DOUBLE associated with standard_80387_constant_p.
16524 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
16525
16526 * config/i386/i386-protos.h (standard_80387_constant_opcode):
16527 Prototype here.
16528 (standard_80387_constant_rtx): Likewise.
16529
16530 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
16531 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
16532 *movtf_integer): Simplify using new standard_80387_constant_opcode.
16533
d203738b
GK
165342003-02-15 Geoffrey Keating <geoffk@apple.com>
16535
16536 * doc/invoke.texi (Optimize Options): Correct @option syntax.
16537
0b077eac
RH
165382003-02-15 Richard Henderson <rth@redhat.com>
16539
16540 * Makefile.in (cfglayout.o): Depend on TARGET_H.
16541 * cfglayout.c: Include target.h.
16542 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
16543 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
16544 * target.h (struct gcc_target): Add cannot_copy_insn_p.
16545
16546 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
16547 (TARGET_CANNOT_COPY_INSN_P): New.
16548 (override_options): Revert 2003-02-08 hack.
16549
9a71ece1
RH
165502003-02-15 Richard Henderson <rth@redhat.com>
16551
16552 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
16553 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
16554
b54cf83a
DE
165552003-02-15 David Edelsohn <edelsohn@gnu.org>
16556
16557 * config/rs6000/rs6000.h (processor_type): Add PPC440.
16558 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16559 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16560 TARGET_SCHED_VARIABLE_ISSUE): Define.
16561 (rs6000_use_dfa_pipeline_interface): New function.
16562 (rs6000_multipass_dfa_lookahead): New Function.
16563 (rs6000_variable_issue): New function.
16564 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
16565 (rs6000_issue_rate): Add PPC440.
16566 * config/rs6000/rs6000.md (unspec list): Correct typo.
16567 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
16568 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
16569 cmp, delayed_cr, mfcr, mtcr.
16570 (automata_option): Set "ndfa".
16571 (extendMMNN2): Update attributes.
16572 (movcc_internal1): Discourage move to non-cr0. Update
16573 attributes.
16574 (movMM_update): Update attributes.
16575 (cmpMM_internal): Update attributes.
16576 (sCC CR materialization): Update attributes.
16577 (branch patterns): Do not discourage non-cr0.
16578 (cr logical patterns): Prefer destructive register allocation.
16579 Update attributes.
16580 (movesi_from_cr): Update attribute.
16581 (mtcrf_operation): Update attribute.
16582 (mtcrfsi): Update attribute.
16583 * config/rs6000/40x.md: New file.
16584 * config/rs6000/603.md: New file.
16585 * config/rs6000/6xx.md: New file.
16586 * config/rs6000/7450.md: New file.
16587 * config/rs6000/7xx.md: New file.
16588 * config/rs6000/mpc.md: New file.
16589 * config/rs6000/power4.md: New file.
16590 * config/rs6000/rios1.md: New file.
16591 * config/rs6000/rios2.md: New file.
16592 * config/rs6000/rs64.md: New file.
16593 [Some DFA descriptions based on work by Michael Hayes]
16594
99dc7277
RH
165952003-02-15 Richard Henderson <rth@redhat.com>
16596
16597 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
16598 successors with multiple predecessors.
16599 (connect_traces): Try harder to copy traces of length 1.
16600
16601 * function.h (struct function): Add computed_goto_common_label,
16602 computed_goto_common_reg.
16603 * function.c (free_after_compilation): Zap them.
a8d0ddaf 16604 * stmt.c (expand_computed_goto): Use them to produce one
99dc7277
RH
16605 indirect branch per function.
16606
5f24e0dc
RH
166072003-02-15 Richard Henderson <rth@redhat.com>
16608
16609 * cfgcleanup.c: Include params.h.
16610 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
16611 too many outgoing edges from a block.
16612 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
16613 * params.def (max-crossjump-edges): New.
16614 * doc/invoke.texi: Document it.
16615
9381bbc9
RH
166162003-02-15 Richard Henderson <rth@redhat.com>
16617
a8d0ddaf
ZW
16618 * recog.c (split_all_insns): Include new blocks in life update;
16619 do a global life update.
9381bbc9 16620
e898926c
DS
166212003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
16622
16623 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
16624 Update copyright.
16625 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
16626 -mno-cygwin case.
16627
ce65116b
FH
166282003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16629
16630 PR optimization/7702
16631 * reload1.c (reload_cse_simplify_set): Honor
16632 CANNOT_CHANGE_MODE_CLASS.
16633
fe7496dd
AO
166342003-02-14 Alexandre Oliva <aoliva@redhat.com>
16635
16636 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
16637 function.
16638 * config/mn10300/mn10300-protos.h: Declare it.
16639 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
16640 attribute cc of instructions that may use clr.
16641
6017c719
KH
166422003-02-14 Kazu Hirata <kazu@cs.umass.edu>
16643
16644 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
16645 (x - (x & y)) is found.
16646
9fb28a67
RO
166472003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16648
16649 * configure.in: Fix typo.
16650 * configure: Regenerate.
16651
60f469fa
KH
166522003-02-14 Kazu Hirata <kazu@cs.umass.edu>
16653
16654 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
16655
8fd73754 166562003-02-13 Adam Nemet <anemet@lnxw.com>
60f469fa 16657
a8d0ddaf 16658 PR opt/2391
ce65116b
FH
16659 * combine.c: Fix spelling in comment.
16660 (cached_nonzero_bits): New function.
16661 (cached_num_sign_bit_copies): New function.
8fd73754
AN
16662 (nonzero_bits_with_known): New macro.
16663 (num_sign_bit_copies_with_known): New macro.
ce65116b 16664 (nonzero_bits1): Rename from nonzero_bits. Add three new
8fd73754
AN
16665 arguments. Change calls from nonzero_bits to
16666 nonzero_bits_with_known.
ce65116b 16667 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
8fd73754
AN
16668 three new arguments. Change calls from num_sign_bit_copies to
16669 num_sign_bit_copies_with_known.
ce65116b
FH
16670 (nonzero_bits): New macro.
16671 (num_sign_bit_copies): New macro.
16672 (update_table_tick): Don't traverse identical subexpression more
8fd73754 16673 than once.
ce65116b 16674 (get_last_value_validate): Likewise.
8fd73754 16675
ddb0ae00
ZW
166762003-02-13 Zack Weinberg <zack@codesourcery.com>
16677
16678 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
16679 * function.h (struct emit_status): Length of regno_pointer_align
16680 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
16681 not regno_pointer_align_length (i.e. length actually used, not
16682 length as allocated)
16683
16684 * config/i386/i386.c (struct stack_local_entry): New.
16685 (struct machine_function): Replace huge array with alist.
16686 (assign_386_stack_local): Change to match.
16687
c20b55c0
JDA
166882003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
16689
16690 * inclhack.def (hpux_long_double): Tighten select and add bypass
16691 regexp.
16692 * fixincl.x: Rebuilt.
16693
ffc8f11e
JZ
166942003-02-13 Josef Zlomek <zlomekj@suse.cz>
16695
16696 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
16697 edge and block ends with a jump insn it must be simple jump.
16698
047d636f
DJ
166992003-02-13 Daniel Jacobowitz <drow@mvista.com>
16700
16701 * Makefile.in (PREPROCESSOR_DEFINES): Add
16702 @TARGET_SYSTEM_ROOT_DEFINE@.
16703 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
16704 is specified or if building a cross compiler.
16705 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
16706 if the sysroot is under $exec_prefix.
16707 * configure: Regenerated.
16708 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
16709 defined.
16710 (struct default_include): Add add_sysroot field.
16711 (cpp_SYSROOT): Declare.
16712 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
16713 field.
16714 (cpp_SYSROOT): New variable.
16715 * cppinit.c (cpp_create_reader): Initialize
16716 CPP_OPTION (pfile, sysroot).
16717 (init_standard_includes): Handle add_sysroot. Do not
16718 add unrelocated copies of relocated directories.
16719 (COMMAND_LINE_OPTIONS): Add -isysroot.
16720 (cpp_handle_option): Handle -isysroot.
16721 * cpplib.h (struct cpp_options): Add sysroot member.
16722 * gcc.c (The Specs Language): Update description of %I.
16723 (target_system_root_changed): New variable.
16724 (process_command): Conditionalize make_relative_prefix call
16725 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
16726 target_system_root_changed.
16727 (do_spec_1): Add -isysroot to %I.
16728 * doc/invoke.texi (Spec Files): Update description of %I.
16729 * doc/install.texi (--with-sysroot): Update comment about
16730 relocation.
16731
4302db79
KH
167322003-02-13 Kazu Hirata <kazu@cs.umass.edu>
16733
16734 * config/h8300/h8300.md (a peephole2): New.
16735
e0d9cc77 167362003-02-13 Robert Lipe <robertlipe@usa.net>
ddb0ae00 16737 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
e0d9cc77
RL
16738
16739 * doc/install.texi (Specific): Update three SCO-related URLs.
16740
9fb93b00
AS
167412003-02-13 Andreas Schwab <schwab@suse.de>
16742
16743 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
16744 Parenthesize properly.
16745 (NPREDECESORS): Parenthesize properly.
16746
22ffcc6f
GDR
167472003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
16748
16749 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
16750
1fb54135
RS
167512003-02-12 Roger Sayle <roger@eyesopen.com>
16752
16753 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
16754 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
16755
16756 * reg-stack.c (subst_stack_regs_pat): Add support for binary
16757 UNSPEC instructions (e.g. "fpatan").
16758
19a7414e
MS
167592003-02-12 Mike Stump <mrs@apple.com>
16760
16761 * varray.c (element_size): Remove.
16762 (uses_ggc): Remove.
16763 (element): Add.
16764 (varray_init): Use new interface.
16765 (varray_grow): Use new interface.
16766 (varray_clear): Use new interface.
16767
e589cc6e
AH
167682003-02-12 Aldy Hernandez <aldyh@redhat.com>
16769
ddb0ae00
ZW
16770 * config/rs6000/spe.h: Add casts to the arguments of the following
16771 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
16772 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
16773 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
16774 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
16775 __ev_get_u16, __ev_get_s16.
e589cc6e 16776
2bbfc542
KH
167772003-02-12 Kazu Hirata <kazu@cs.umass.edu>
16778
16779 * config/h8300/h8300.md (a peephole2): New.
16780
62c9aa5f 167812003-02-12 Jan Hubicka <jh@suse.cz>
e72fcfe8
JH
16782
16783 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
16784 (OBJS): Add callgraph.o
16785 (callgraph.o): New.
16786 * c-decl.c (expand_body_1): Break out from ...
16787 (expand_body): This one; change calling convention
16788 (finish_function): Move some of expand_body logic here.
16789 (c_expand_deferred_function): Update call of expand_body
16790 (c_expand_stmt): Use c_expand_body_1.
16791 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
16792 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
16793 * c-tree.h (c_expand_body): Declare.
16794 * callgraph.c: New file.
16795 * flags.h (flag_unit_at_a_time): Declare.
16796 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
16797 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
16798 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
16799 * langhooks.h (struct lang_hooks_for_callgraph): New.
16800 (struct lang_hooks): Add callgraph field.
16801 * toplev.c (flag_unit_at_a_time): New.
16802 (lang_independent_options): Add flag_unit_at_a_time.
16803 (process_options): Disable unit-at-a-time mode for frontends not
16804 supporting callgraph.
16805 * tree-inline.c (typedef struct inline_data): Add "decl"
16806 (expand_call_inline): Update callgraph.
16807 (optimize_inline_calls): Set id.decl.
16808 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
16809 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
16810 cgraph_calls_p): Declare.
16811 * invoke.texi (-funit-at-a-time): Document
16812
9037b0c7
AH
168132003-02-12 Aldy Hernandez <aldyh@redhat.com>
16814
ddb0ae00
ZW
16815 * config/rs6000/spe.h: Fix misc formatting.
16816 (__ev_create_ufix32_fs): Cast ev argument.
16817 (__ev_create_sfix32_fs): Same.
16818 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
16819 (__ev_get_ufix32_fs_internal): Same.
9037b0c7 16820
55ae46b1
RM
168212003-02-12 Ranjit Mathew <rmathew@hotmail.com>
16822
16823 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
16824 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
16825
3963c2e0
ZW
168262003-02-12 Zack Weinberg <zack@codesourcery.com>
16827
16828 * cpplib.c (do_include_common): Move warnings for
16829 #include_next and #import out to callers. Use early-return
16830 instead of nested ifs. Don't do check_eol here.
16831 (parse_include): Do check_eol here with the rest of the
16832 parsing stuff.
16833 (do_include_next, do_import): Now handle warnings.
16834
d1a86812
GP
168352003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16836
16837 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
16838
62c9aa5f 168392003-02-12 Jan Hubicka <jh@suse.cz>
6efcd268
JH
16840
16841 * predict.c (estimate_probability): Fix roundoff error.
16842
9083b5da
KH
168432003-02-12 Kazu Hirata <kazu@cs.umass.edu>
16844
16845 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
16846 (two peephole2): New.
16847
86bc9b19
KH
168482003-02-12 Kazu Hirata <kazu@cs.umass.edu>
16849
16850 * config/h8300/h8300.md (several peephole2): Replace
16851 find_regno_note with peep2_reg_dead_p.
16852
ceda50e9
RH
168532003-02-11 Richard Henderson <rth@redhat.com>
16854
16855 * gcse.c (lookup_set): Remove unused argument PAT. Update
16856 both callers.
16857
886e0865
GK
168582003-02-11 Geoffrey Keating <geoffk@apple.com>
16859
16860 * diagnostic.c (real_abort): New.
16861 (diagnostic_report_diagnostic): Call real_abort on error.
16862 * diagnostic.h (diagnostic_abort_on_error): New.
16863 (struct diagnostic_context): Add abort_on_error field.
16864 * toplev.c (setup_core_dumping): New.
16865 (decode_d_option): Handle 'H' case.
16866 * doc/invoke.texi (Debugging Options): Document -dH.
16867
76438597
NN
168682003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
16869
16870 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
16871 which refers to obsolete directories.
16872
09b568fc
RH
168732003-02-11 Richard Henderson <rth@redhat.com>
16874
16875 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
16876
62c9aa5f 168772002-10-21 Jan Hubicka <jh@suse.cz>
8b978a57
JH
16878
16879 * i386.c (contains_128bit_aligned_vector_p): New function.
16880 (ix86_function_arg_boundary): Properly align vector modes.
16881
a3259be8
BW
168822003-02-11 Bob Wilson <bob.wilson@acm.org>
16883
16884 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
16885 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
16886 as a SET pattern.
16887
da52a069
RS
168882003-02-11 Roger Sayle <roger@eyesopen.com>
16889
16890 * builtins.c: Fix failure caused by commiting wrong patch.
16891
d58f6584
DJ
168922003-02-11 Dale Johannesen <dalej@apple.com>
16893 * ra-build.c (compare_and_free_webs): Relax checking.
16894 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
16895 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
16896
22fd5743
FH
168972003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16898
16899 PR optimization/9651
16900 * rtlanal.c (may_trap_p): Handle FIX.
16901
3462df62
DJ
169022003-02-11 Dave Jones <davej@codemonkey.org.uk>
16903
16904 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
16905 * doc/invoke.texi: Extra alias.
16906
a693fbb9
GK
169072003-02-11 Geoffrey Keating <geoffk@apple.com>
16908
16909 * config/rs6000/host-darwin.c: Fix comment.
16910
bb157ff4
DE
169112003-02-11 David Edelsohn <edelsohn@gnu.org>
16912
16913 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
16914 predicate for mod result.
16915
16ddb599
JDA
169162003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16917
16918 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
16919 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
16920 * fixincl.x: Rebuilt.
16921 * tests/base/stdlib.h: Update.
16922 * tests/base/ctype.h: New file.
16923
62c9aa5f 169242003-02-11 Jan Hubicka <jh@suse.cz>
6f0d3566
JH
16925
16926 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
16927
d0a5295a
RH
169282003-02-11 Richard Henderson <rth@redhat.com>
16929
16930 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
16931 appropriated as globals.
16932 (ix86_expand_clrstr): Similarly.
16933 * config/i386/i386.md (cmpstrsi): Similarly.
16934
9672132f
KH
169352003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16936
16937 * config/h8300/h8300.md (a peephole2): Add a case of 255.
16938
b5e01d4b
RS
169392003-02-11 Roger Sayle <roger@eyesopen.com>
16940
16941 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
16942 (pow_optab, atan2_optab): Define corresponding macros.
16943 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
16944 * genopinit.c (optabs): Implement pow_optab and atan2_optab
16945 using pow?f3 and atan2?f3 patterns.
16946 * builtins.c (expand_errno_check): New function to update errno
16947 if necessary, split out from expand_builtin_mathfn.
16948 (expand_builtin_mathfn): Use expand_errno_check.
16949 (expand_builtin_mathfn_2): New function to handle expanding binary
16950 math functions, reusing the code in expand_errno_check.
16951 (expand_builtin): Handle the pow and atan2 math built-ins,
16952 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
16953 expand_builtin_mathfn_2.
16954
16955 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
16956
62c9aa5f 169572003-02-11 Jan Hubicka <jh@suse.cz>
cb119f82
JH
16958
16959 * combine.c (combine_simplify_rtx): Fix folding of
16960 nested float_truncates.
16961
a05566a3
KH
169622003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16963
16964 * config/h8300/h8300.md (a peephole2): Fix a typo.
16965
20ae4500
RE
169662003-02-11 Richard Earnshaw <rearnsha@arm.com>
16967
16968 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
16969 register number.
16970
717d8b71
KH
169712003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16972
16973 * config/h8300/h8300-protos.h: Add a prototype for
16974 gtuleu_operator.
16975 * config/h8300/h8300.c (gtuleu_operator): New.
16976 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
16977 * config/h8300/h8300.md (a peephole2): New.
16978
62c9aa5f 169792003-02-11 Jan Hubicka <jh@suse.cz>
e36e8f52
JH
16980
16981 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
16982
62c9aa5f 169832003-02-11 Jan Hubicka <jh@suse.cz>
c728da61
JH
16984
16985 * predict.c (choose_function_section): Choose sections correctly.
16986
4cc0fdd2
JDA
169872003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16988
16989 * reload1.c (first_label_num): New.
16990 (reload): Index offsets_known_at and offsets_at using difference of
16991 label number and first label number. Don't use offset pointers.
16992 (set_label_offsets, set_initial_label_offsets): Likewise.
16993
44b1fa11
RS
169942003-02-10 Roger Sayle <roger@eyesopen.com>
16995
16996 * mips-tfile.c (init_file): Add missing initializers in the
16997 "#ifdef __alpha" case.
16998 (file_offset, max_file_offset): Declare as unsigned long.
16999 (write_varray): Cast to "unsigned long" in comparisons against
17000 either file_offset or max_file_offset.
17001 (write_object): Likewise.
17002 (read_seek): Likewise.
17003 (copy_object): Likewise. Declare "ifd" as int to match its use
17004 in add_ext_symbol, and avoid signed/unsigned conditional warning.
17005
2948ade7 170062003-02-10 Nick Clifton <nickc@redhat.com>
3963c2e0 17007 Aldy Hernandez <aldyh@redhat.com>
2948ade7 17008
3963c2e0
ZW
17009 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17010 override options which have been specified on the command line.
2948ade7 17011
2a4e6df4
KH
170122003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17013
17014 * config/h8300/h8300.md (abssf2): New.
17015 (*abssf2_h8300): Likewise.
17016 (*abssf2_h8300hs): Likewise.
17017
411e2759
PE
170182003-02-10 Phil Edwards <pme@gcc.gnu.org>
17019
17020 * tree.c (build_tree_list): Fix parameter names in comment.
17021
2b24fc41
JJ
170222003-02-10 Janis Johnson <janis187@us.ibm.com>
17023
17024 * config/rs6000/ppc64-fp.c: New file.
17025 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17026
aa634f11
JZ
170272003-02-10 Josef Zlomek <zlomekj@suse.cz>
17028
17029 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3963c2e0 17030 * bb-reorder.c (make_reorder_chain): Deleted.
aa634f11
JZ
17031 (make_reorder_chain_1): Deleted.
17032 (find_traces): New function.
17033 (rotate_loop): New function.
17034 (mark_bb_visited): New function.
17035 (find_traces_1_round): New function.
17036 (copy_bb): New function.
17037 (bb_to_key): New function.
17038 (better_edge_p): New function.
17039 (connect_traces): New function.
17040 (copy_bb_p): New function.
17041 (get_uncond_jump_length): New function.
17042 (reorder_basic_blocks): Use new functions (Software Trace Cache).
17043 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17044 boundaries.
17045
17edbda5
AH
170462003-02-10 Aldy Hernandez <aldyh@redhat.com>
17047
17048 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17049
57116c34
DN
170502003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17051
17052 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3963c2e0 17053 (DECL_LIVE_RANGE_RTL): Remove.
57116c34 17054
4f448245
NC
170552003-02-10 Nick Clifton <nickc@redhat.com>
17056
17057 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17058 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17059 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17060 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17061 config/arm/freebsd.h, config/arm/linux-elf.h,
17062 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17063 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17064 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17065 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17066 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17067 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17068 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17069 and reformat as appropriate.
17070
19190d27
KH
170712003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17072
17073 * config/h8300/clzsi2.c: Remove.
17074 * config/h8300/ctzsi2.c: Likewise.
17075 * config/h8300/paritysi2.c: Likewise.
17076 * config/h8300/popcountsi2.c: Likewise.
17077 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17078 ctzsi2, paritysi2, and popcountsi2.
17079
ecf92f82 170802003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 17081 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
ecf92f82
EB
17082
17083 PR c/7741
17084 * c-decl.c (duplicate_decls): Discard the initializer of the
17085 new decl when the types are conflicting.
17086
ac5e69da
JZ
170872003-02-10 Josef Zlomek <zlomekj@suse.cz>
17088
17089 * Makefile.in (sreal.o): Added.
17090 (predict.o): Depends on sreal.h instead of real.h.
17091 * sreal.c: New file.
17092 * sreal.h: New file.
17093 * predict.c: Use sreal.c instead of real.c.
17094
9b6b54e2
NC
170952003-02-10 Nick Clifton <nickc@redhat.com>
17096
17097 * Contributed support for the Cirrus EP9312 "Maverick"
17098 floating point co-processor. Written by Aldy Hernandez
3963c2e0 17099 <aldyh@redhat.com>.
9b6b54e2
NC
17100 (config/arm/arm.c): Add Cirrus support.
17101 (config/arm/arm.h): Likewise.
17102 (config/arm/aout.h): Likewise.
17103 (config/arm/arm.md): Likewise.
17104 (config/arm/arm-protos.h): Likewise.
17105 (config.gcc): Likewise.
17106 (doc/invoke.texi): Describe new -mcpu value and new
17107 -mcirrus-fix-invalid-insns switch,
17108 (cirrus.md): New file.
17109
62c9aa5f 171102003-02-10 Jan Hubicka <jh@suse.cz>
949824fe
JH
17111
17112 * combine.c (combine_simplify_rtx): Simplify using
17113 (float_truncate (float x)) is (float x)
17114 (float_extend (float_extend x)) is (float_extend x).
17115
546ff777
AM
171162003-02-10 Alan Modra <amodra@bigpond.net.au>
17117
17118 * calls.c (try_to_integrate): Tidy stack_usage_map access.
17119 (emit_library_call_value_1): Likewise. Formatting.
17120 (store_one_arg): Likewise.
17121
626098f9 171222003-02-09 Nick Clifton <nickc@redhat.com>
3963c2e0 17123 Aldy Hernandez <aldyh@redhat.com>
626098f9 17124
3963c2e0
ZW
17125 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17126 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17127 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17128 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17129 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17130 docs. Add range test for immediate value.
626098f9
AH
17131
171322003-02-09 Aldy Hernandez <aldyh@redhat.com>
17133
3963c2e0
ZW
17134 Rename spe_evxor to xorv2si3.
17135 (xorv4hi3): New.
17136 (xorv1di3): New.
626098f9 17137
8d23a2c8 171382003-02-10 Glen Nakamura <glen@imodulo.com>
3963c2e0 17139
8d23a2c8
GN
17140 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17141 tag.
17142
62c9aa5f 171432003-02-10 Jan Hubicka <jh@suse.cz>
fdc4b40b
JH
17144
17145 * i386.c (vector_move_operand): New predicate.
17146 (ix86_expand_vector_move): Be happy about 0.
17147 * i386.h (PREDICATE_CODES): Add sse-move_operand.
17148 * i386.md (mov*_internal): Add 'C' alternative.
17149
62c9aa5f 171502003-02-09 Jan Hubicka <jh@suse.cz>
35c28a13
JH
17151
17152 * i386.md (floathi*): Deal with SSE.
17153
62c9aa5f 171542003-02-09 Jan Hubicka <jh@suse.cz>
852c8ba1
JH
17155
17156 * simplify-rtx.c (simplify_unary_operation,
17157 simplify_binary_operation): Deal with vector modes
17158 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
17159
c876997f 171602003-02-09 Richard Sandiford <rsandifo@redhat.com>
2382b79f
RS
17161
17162 * toplev.c (rest_of_compilation): Recompute register usage after
17163 split_all_insns.
17164
8275b011
RH
171652003-02-09 Richard Henderson <rth@redhat.com>
17166
17167 * libgcc-std.ver (__clztf2): New.
17168 (__ctztf2, __popcounttf2, __paritytf2): New.
17169 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17170 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17171 adjust code to match the different type sizes.
17172 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17173 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17174
17175 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17176 TImode; select word_mode and twice that.
17177 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17178 select the modes from float, double, and long double.
17179 (init_optabs): Remove duplicate initializations.
17180
794aca5d
WB
171812003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17182
17183 * doc/install.texi: Squeeze and streamline section on
17184 testing and regression checking.
17185
62c9aa5f 171862003-02-09 Jan Hubicka <jh@suse.cz>
d9deed68
JH
17187
17188 * i386.md (ahi?v*3): Set third operand type to TImode.
17189 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17190
17191 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17192 integer mode.
17193
17194 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17195 Change code so they are arithmetic expressions now.
17196 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17197 simplify_ternary_operation): Deal with VEC_* expressions.
17198
17199 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
17200
62c9aa5f 172012003-02-08 Jan Hubicka <jh@suse.cz>
83fd323c
JH
17202
17203 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
17204 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
17205 possibly got duplicated.
17206
4ee7aa60
RH
172072003-02-08 Richard Henderson <rth@redhat.com>
17208
17209 * config/alpha/alpha.c (override_options): Turn off explicit
17210 relocs until post-peep2 code duplication resolved.
17211
c117dddc
KH
172122003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17213
17214 * optabs.c (expand_unop): Widen clz properly when clz is done
17215 via libcall.
17216
8aa063fb
KH
172172003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17218
17219 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17220 * config/h8300/crti.asm: Likewise.
17221 * config/h8300/crtn.asm: Likewise.
17222 * config/h8300/ctzsi2.c: Likewise.
17223 * config/h8300/fixunssfsi.c: Likewise.
17224 * config/h8300/h8300-protos.h: Likewise.
17225 * config/h8300/h8300.c: Likewise.
17226 * config/h8300/h8300.h: Likewise.
17227 * config/h8300/h8300.md: Likewise.
17228 * config/h8300/paritysi2.c: Likewise.
17229 * config/h8300/popcountsi2.c: Likewise.
17230 * config/h8300/rtems.h: Likewise.
17231
01a132bb
ZD
172322003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17233
17234 * doc/invoke.texi: Documentation for my previous commit.
17235 * doc/passes.texi: Ditto.
17236
617b465c
ZD
172372003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17238
17239 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17240 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17241 Declare.
17242 (DLTHE_FLAG_UPDATE_FREQ): New.
17243 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17244 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17245 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17246 fix_bb_placement, fix_bb_placements, place_new_loop,
17247 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17248 New static functions.
17249 (fix_loop_placement, can_duplicate_loop_p,
17250 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17251 New functions.
17252
17253 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17254 unswitch_loops): Declare.
17255 * loop-init.c: New file.
17256 * loop-unswitch.c: New file.
17257 * Makefile.in (loop-init.o, loop-unswitch.o): New.
17258 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17259 * toplev.c (DFI_loop2): New dump.
17260 (flag_unswitch_loops): New.
17261 (lang_independent_options): Add it.
17262 (rest_of_compilation): Call new loop optimizer.
17263 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17264
3bd03194
KH
172652003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17266
17267 * config/h8300/clzsi2.c: New.
17268 * config/h8300/ctzsi2.c: Likewise.
17269 * config/h8300/paritysi2.c: Likewise.
17270 * config/h8300/popcountsi2.c: Likewise.
17271 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17272
d865b122
DE
172732003-02-07 David Edelsohn <edelsohn@gnu.org>
17274
17275 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17276 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
94993909 17277 (ctzsi2): New pattern.
d865b122
DE
17278 (ffssi2): Use clz instead of unspec.
17279 (clzdi2): Rename from cntlzd2.
94993909 17280 (ctzdi2): New pattern.
d865b122
DE
17281 (ffsdi2): Use clz instead of unspec.
17282
8f37dd98
LR
172832003-02-07 Loren James Rittle <ljrittle@acm.org>
17284
17285 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17286 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17287 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17288 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17289
83205b9b
WB
172902003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17291
17292 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17293
710ee3ed
RH
172942003-02-07 Richard Henderson <rth@redhat.com>
17295
17296 PR 9226
3963c2e0
ZW
17297 * gcse.c (local_cprop_find_used_regs): New.
17298 (local_cprop_pass): Use it.
710ee3ed 17299
3ef879d2
FF
173002003-02-07 Fred Fish <fnf@intrinsity.com>
17301
17302 * mips-tfile.c (parse_def): Parenthesize assignments to fix
3963c2e0 17303 precedence bugs.
3ef879d2 17304
a0f0e963 173052003-02-07 Segher Boessenkool <segher@koffie.nl>
3ef879d2 17306
3963c2e0 17307 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
a0f0e963 17308
46847aa6
RS
173092003-02-07 Roger Sayle <roger@eyesopen.com>
17310
17311 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17312 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17313 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17314 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17315 builtin functions (and their __builtin_* variants).
17316 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17317 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17318 when not optimizing.
17319
17320 * doc/extend.texi: Document new pow and atan2 builtins, and
17321 their float and long double variants. Realphabetize builtins.
17322
62c9aa5f 173232003-02-07 Jan Hubicka <jh@suse.cz>
c48d6750
JH
17324
17325 * i386.md (sse2_nandv2di3): Fix.
17326
5e062767
DS
173272003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
17328
17329 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17330 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17331 definition.
17332 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17333 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17334
62c9aa5f 173352003-02-07 Jan Hubicka <jh@suse.cz>
3f755ed0
JH
17336
17337 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17338
0816bcd2
DB
173392003-02-07 Daniel Berlin <dberlin@dberlin.org>
17340
17341 * cfg.c (dump_flow_info): Add back accidently deleted line.
17342
7bf0a593
AP
173432003-02-07 Andrey Petrov <petrov@netbsd.org>
17344
17345 * optabs.c (expand_float): Search wider integer modes first.
17346
01e4596e
BW
173472003-02-07 Bob Wilson <bob.wilson@acm.org>
17348
17349 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17350 based on preprocessor flag.
17351
fbef91d8
RS
173522003-02-07 Roger Sayle <roger@eyesopen.com>
17353 Richard Henderson <rth@redhat.com>
17354
17355 * gcse.c (implicit_sets): New.
17356 (compute_hash_table_work): Include them in hash table.
17357 (find_implicit_sets, fis_get_condition): New.
17358 (one_cprop_pass): Allocate and free implicit_sets; call
17359 find_implicit_sets before building hash table.
17360
6713831e
JT
173612003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
17362
17363 * config/t-netbsd (USER_H): Revert previous change.
17364
10d2dbe2
GG
173652003-02-07 Gabor Greif <ggreif@lucent.com>
17366
17367 * doc/c-tree.texi (Namespaces): Fix typo.
17368
62c9aa5f 173692003-02-07 Jan Hubicka <jh@suse.cz>
d1d3c9a6
JH
17370
17371 * regrename.c (do_replace, find_oldest_value_reg,
17372 copyprop_hardreg_forward_1): Update register attributes.
17373
1b1f249d
VM
173742003-02-06 Vladimir Makarov <vmakarov@redhat.com>
17375
17376 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
17377 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
17378 variables starting with underscore.
17379 (struct unit_usage): New structure.
17380 (unit_usages, cycle_alt_unit_usages): New global variables.
17381 (check_unit_distribution_in_reserv): Remove it.
17382 (store_alt_unit_usage): New function.
17383 (check_regexp_units_distribution): Rewrite it.
17384
90330d31
JDA
173852003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17386
17387 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
17388 target_cpu_default.
17389 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
17390 if not MASK_NO_SPACE_REGS.
17391 (output_call): Adjust return pointer, don't load new space register
17392 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
17393 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
17394 TARGET_NO_SPACE_REGS is true.
17395 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
17396 conditions.
17397 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
17398 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
17399 true. Use bve when TARGET_64BIT is true.
17400
d1164330
RH
174012003-02-06 Richard Henderson <rth@redhat.com>
17402
17403 * combine.c (nonzero_bits): Fix double break.
17404
5fbf0217 174052003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 17406 Richard Henderson <rth@redhat.com>
5fbf0217
EB
17407
17408 PR c/9530
17409 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
17410 from functions that return a float to functions that don't.
17411
62c9aa5f 174122003-02-06 Jan Hubicka <jh@suse.cz>
8f62128d
JH
17413
17414 * i386.c (x86_inter_unit_moves): New variable.
17415 (ix86_secondary_memory_needed): Fix 64bit case, honor
17416 TARGET_INTER_UNIT_MOVES
17417 * i386.h (x86_inter_unit_moves): Declare.
17418 (TARGET_INTER_UNIT_MOVES): New macro.
17419 * i386.md (movsi_1): Cleanup constraints; disable
17420 when not doing inter-unit moves.
17421 (movsi_1_nointernunit): New.
17422 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
17423 (movdi_1_rex64_nointerunit): New.
17424 (mivsf_1): disable when not doing inter-unit moves.
17425 (movsf_1_nointerunit): New.
17426
17427 * basic-block.h (inside_basic_block_p): Declare.
17428 * cfgbuild.c (inside_basic_block_p): Make global.
ed446835 17429 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
8f62128d
JH
17430 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
17431 update CFG.
17432 (fix_basic_block_boundaries, add_missing_bbs): New.
17433 (rank): Use profile.
17434 (scheudle_ebbs): Rely on CFG; update coments.
17435
476d9098
GK
174362003-02-05 Geoffrey Keating <geoffk@apple.com>
17437
17438 * Makefile.in (host_hook_obj): New.
17439 (OBJS): Add $(host_hook_obj).
17440 (host_default.o): New rule.
17441 * config.gcc (host_hook_obj): New, default to host-default.o.
17442 (powerpc-*-darwin*): Use host-darwin.o.
17443 (out_host_hook_obj): New.
17444 * configure: Regenerate.
17445 * configure.in: Print information about out_host_hook_obj, substitute
17446 into output files.
17447 * host-default.c: New file.
17448 * hosthooks.h: New file.
17449 * toplev.c (general_init): Call host_hooks.extra_signals.
17450 * config/rs6000/host-darwin.c: New file.
17451 * config/rs6000/x-darwin: New file.
17452 * doc/hostconfig.texi: Add documentation for new host hook.
17453 Rearrange existing documentation.
17454
69bd9368
RS
174552003-02-05 Roger Sayle <roger@eyesopen.com>
17456
17457 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
17458 with *targetm.delegitimize_address.
17459 (rtl_for_decl_location): Likewise.
17460 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
17461 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
17462
17463 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17464 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
17465 prototype.
17466 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
17467 i386_simplify_dwarf_addr. Made static. Prototyped.
17468 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
17469 i386_simplify_dwarf_addr to ix86_delegitimize_address.
17470 (ix86_find_base_term): Likewise.
17471 (maybe_get_pool_constant): Likewise.
17472
17473 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17474 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
17475 prototype.
17476 * config/s390/s390.c (s390_delegitimize_address): Renamed from
17477 s390_simplify_dwarf_addr. Made static. Prototyped.
17478 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
17479
7127fd58
RH
174802003-02-05 Richard Henderson <rth@redhat.com>
17481
8dde7a2c 17482 PR c/8602
3963c2e0
ZW
17483 * integrate.c (output_inline_function): Reset input_filename
17484 and lineno from the decl before rest_of_compilation.
7127fd58 17485
7dba8395
RH
174862003-02-05 Richard Henderson <rth@redhat.com>
17487
17488 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17489 (CTZ_DEFINED_VALUE_AT_ZERO): New.
17490 * doc/rtl.texi, doc/tm.texi: Document them.
17491
17492 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
17493 of the value at zero properly.
17494 * fold-const.c (tree_expr_nonnegative_p): Likewise.
17495 * simplify-rtx.c (simplify_unary_operation): Likewise.
17496
17497 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17498 (CTZ_DEFINED_VALUE_AT_ZERO): New.
17499
17500 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
17501 (TARGET_EXPAND_BUILTIN): Remove.
17502 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
17503 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
17504 (enum arm_builtins): Remove.
17505 * config/arm/arm.md (UNSPEC_CLZ): Remove.
17506 (clzsi2): Rename from clz; use clz instead of unspec.
17507 (ctzsi2): New.
17508 * config/arm/arm-protos.h: Update.
17509
62c9aa5f 175102003-02-05 Jan Hubicka <jh@suse.cz>
8d705469
JH
17511
17512 * i386-protos.h (x86_emit_floatuns): Declare.
17513 * i386.c (x86_emit_floatuns): New global function.
17514 * i386.md (floatunssisf2, floatunsdisf2,
17515 floatunsdidf2): New patterns.
17516
bc810602
ZD
175172003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17518
17519 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
17520
07938cec
HB
175212003-02-05 Hans Boehm <Hans.Boehm@hp.com>
17522
17523 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
17524 config/ia64/linux.h
17525
c876997f 175262003-02-05 Roger Sayle <roger@eyesopen.com>
ca9398d1
RS
17527
17528 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
17529
4f6ae35d
JJ
175302003-02-05 Jakub Jelinek <jakub@redhat.com>
17531
17532 PR optimization/8555
17533 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
17534 instead of aborting.
17535
8acfdd43
RH
175362003-02-04 Richard Henderson <rth@redhat.com>
17537
17538 * config/i386/i386.md (UNSPEC_BSF): Remove.
17539 (ffssi2): Split into cmove and no_cmove insns and splitters;
17540 lose pentium float trick for now.
17541 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
17542 (ctzsi2, clzsi2, bsr): New.
17543
c407570a
RH
175442003-02-04 Richard Henderson <rth@redhat.com>
17545
17546 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
17547 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
17548 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
17549 (ffsdi2): Use popcount instead of unspec.
17550 (popcountdi2): Rename from *popcnt.
17551 (ctzdi2, clzdi2, getf_exp_tf): New.
17552
4b3cf522
KH
175532003-02-04 Kazu Hirata <kazu@cs.umass.edu>
17554
17555 * genconfig.c (main): Generate CC0_P.
17556 * rtl.h (CC0_P): Remove.
17557
dfff898c
RH
175582003-02-04 Richard Henderson <rth@redhat.com>
17559
17560 * libgcc2.h, libgcc2.c (__ffsSI2): New.
17561 (__ffsDI2): Rename from __ffsdi2.
17562 * mklibgcc.in (lib2funcs): Add _ffssi2.
17563
0c9ed856
RH
175642003-02-04 Richard Henderson <rth@redhat.com>
17565
17566 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
17567 rounds with a "bit table" lookup.
17568
9537511b
UW
175692003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17570
17571 * reload.c (find_reloads): Do not use the mode specified in the insn
3ef879d2 17572 pattern as reload mode for address operands. Do not generate optional
9537511b
UW
17573 reloads for operands where a mandatory reload was already pushed.
17574
1efd0b97
RH
175752003-02-04 Richard Henderson <rth@redhat.com>
17576
17577 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
17578 builtins instead of inline assembly.
17579
087fc75a 175802003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3ef879d2 17581
087fc75a
FH
17582 PR c/9376
17583 * libgcc2.c (__subvdi3): Fix typo.
17584
62c9aa5f 175852003-02-04 Jan Hubicka <jh@suse.cz>
f0f0d98e
JH
17586
17587 * i386.md (movti_rex64): Fix constraint.
17588
62c9aa5f 175892003-02-04 Jan Hubicka <jh@suse.cz>
09f26fb5
JH
17590
17591 * i386.md (vector push splitters): Fix typo in resolving conflict.
17592
ff6e2d3e
RB
175932003-02-04 Rodney Brown <rbrown64@csc.com.au>
17594
17595 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
17596
9e80ada7
PE
175972003-02-04 Phil Edwards <pme@gcc.gnu.org>
17598
17599 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
17600 for recent libstdc++. Remove formatting cruft.
17601
79c758fb
JJ
176022003-02-04 Jakub Jelinek <jakub@redhat.com>
17603
17604 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
17605 attribute even if input file name is absolute, but one of the
17606 includes is relative.
17607
b3a8389d
JM
176082003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
17609
17610 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
17611 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
17612 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
17613
dabb3f04
RH
176142003-02-03 Richard Henderson <rth@redhat.com>
17615
17616 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17617 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
17618 return type to "int". Shuffle declarations and undef int trap.
17619 * libgcc2.h: Remove their declarations.
17620 * optabs.c (expand_unop): Force outmode to int for bitops.
17621
985d0d50
BW
176222003-02-03 Bob Wilson <bob.wilson@acm.org>
17623
17624 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
17625 coprocessor registers before floating-point registers.
17626 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
17627 to account for a previously removed register.
17628 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
17629 Delete unused macros.
17630
62c9aa5f 176312003-02-03 Jan Hubicka <jh@suse.cz>
7f0e57bd
JH
17632
17633 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
17634 (mov*_internal): Fix predicates; require one of operands to not be
17635 memory.
17636 (SSE?MMX move expanders): Fix predicates; force one of operands to
17637 register.
17638 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
17639 (movups/movupd/movdqu patterns): Force one of operands to not be
17640 memory.
17641
c876997f 176422003-02-03 Roger Sayle <roger@eyesopen.com>
7daebb7a
RS
17643
17644 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
17645 takes a single rtx and returns it unmodified.
17646 * hooks.h (hook_rtx_rtx_identity): Prototype here.
ff6e2d3e 17647 * target.h (struct gcc_target): Add "delegitimize_address"
7daebb7a
RS
17648 field to target structure.
17649 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
17650 for delegitimize_address target using hook_rtx_rtx_identity.
17651 (TARGET_INITIALIZER): Initialize delegitimize_address field
17652 using TARGET_DELEGITIMIZE_ADDRESS macro.
17653 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
17654 extensions of constant pool references. Use delegitimize_address
17655 to undo the obfuscation of "-fpic".
17656 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
17657
17658 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
17659 i386_simplify_dwarf_addr.
17660 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
26182e15 17661 (maybe_get_pool_constant): Likewise.
7daebb7a 17662
62c9aa5f 176632003-02-03 Jan Hubicka <jh@suse.cz>
84520a20
JH
17664
17665 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
17666
62c9aa5f 176672003-02-03 Jan Hubicka <jh@suse.cz>
035b2a34
JH
17668
17669 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
17670
1f143d5a
KG
176712003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17672
17673 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
17674 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
17675
4b550d9f
AS
176762003-02-02 Andreas Schwab <schwab@suse.de>
17677
17678 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
17679
0732a089
RE
176802003-02-02 Richard Earnshaw <rearnsha@arm.com>
17681
17682 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
17683 (epilogue_insns): Likewise.
17684
f269f54f
JDA
176852003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17686
17687 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
17688
611ad29e
JDA
176892003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17690
17691 * pa-protos.h (attr_length_millicode_call): Remove second argument.
17692 (attr_length_indirect_call, attr_length_indirect_call,
17693 attr_length_save_restore_dltp): New prototypes.
17694 * pa.c (attr_length_millicode_call): Remove second argument. Check
17695 INSN_ADDRESSES_SET_P in distance calculation.
17696 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
17697 INSN_ADDRESSES.
17698 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
17699 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
17700 Call attr_length_call directly.
17701 (attr_length_indirect_call, output_indirect_call,
17702 attr_length_save_restore_dltp): New functions.
17703 * pa.md (attr_length_millicode_call): Drop second argument from all
17704 patterns.
17705 (return_internal_pic): Delete.
17706 (return_external_pic): Remove use of PIC register and pic operand and
17707 flag checks.
17708 (epilogue): Use return_internal for both normal and pic code.
17709 (call, call_value): Emit new 32-bit pic patterns for symref and
17710 indirect calls. Remove uses for arg pointer and pic register.
17711 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
17712 call_reg_pic_post_reload, call_val_symref_pic,
17713 call_val_symref_pic_post_reload, call_val_reg_pic,
17714 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
17715 Implement define_split and define_peephole2 patterns for pre reload
17716 patterns.
17717 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
17718 call_value_internal_reg_64bit): Shorten names.
17719 (all call patterns): Explicitly indicate registers used and clobbered.
17720 Use attr_length_indirect_call and attr_length_save_restore_dltp for
17721 attribute length calculation. Move code generation for indirect calls
17722 to output_indirect_call.
17723 (sibcall, sibcall_value): Don't restore PIC register.
17724 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
17725 register retore.
17726
8cacda7c
GP
177272003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17728
17729 * doc/install.texi (Testing): Simplify and compress instructions
17730 concerning Dejagnu.
17731
cbc158bb
JDA
177322003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17733
17734 * collect2.c (pexecute_pid): Rename to pid.
17735 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
17736 pid.
17737
dcef1843
GK
177382003-02-01 Geoffrey Keating <geoffk@apple.com>
17739
17740 * doc/extend.texi (Function Attributes): Remove documentation
17741 for PowerPC Windows NT function attributes..
17742
5d7bed9d
DJ
177432003-02-01 Daniel Jacobowitz <drow@mvista.com>
17744
17745 * dwarf2out.c (gen_type_die): Check for typedefs before calling
17746 for TYPE_MAIN_VARIANT.
17747
53585c36
RH
177482003-02-01 Richard Henderson <rth@redhat.com>
17749
17750 * libgcc2.c: Include auto-host.h.
17751 (ATTRIBUTE_HIDDEN): New.
17752 (__clz_tab): Don't declare here for clz and ctz.
17753 (__clzsi2, __clzdi2): Use count_leading_zeros.
17754 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
17755 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
17756 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
17757 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
17758
bc8a6d63
RH
177592003-02-01 Richard Henderson <rth@redhat.com>
17760
17761 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
17762 to the conditional.
17763 (ashlsi3_1_zext splitter): Likewise.
17764
2928cd7a
RH
177652003-02-01 Richard Henderson <rth@redhat.com>
17766
17767 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
17768 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17769 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
17770 return type to Wtype.
17771
17772 * libgcc-std.ver (GCC_3.4): Fix inheritance.
17773
17774 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
17775 expander input constraint.
17776
177772003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17778
ff6e2d3e
RB
17779 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
17780 OTI_parity.
17781 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
17782 * optabs.c (widen_clz, expand_parity): New.
17783 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
17784 for libcalls to clz, ctz, popcount, and parity.
17785 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
17786 parity_optab, and set up libfunc handlers.
17787 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
17788 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
17789 __popcount_tab): New.
17790 * libgcc2.h: Declare them.
17791 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
17792 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
17793 and parity_optab.
17794 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
17795 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
17796 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
17797 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
17798 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
17799 BUILT_IN_PARITYLL): New.
17800 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
17801 and add optab argument.
17802 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
17803 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
17804 * expr.c (expand_expr): Handle them.
17805 * fold-const.c (tree_expr_nonnegative_p): Likewise.
17806 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
17807 * reload1.c (eliminate_regs): Handle them.
17808 (elimination_effects): Likewise.
17809 * function.c (instantiate_virtual_regs_1): Likewise
17810 * genattrtab.c (check_attr_value): Likewise.
17811 * simplify-rtx.c (simplify_unary_operation): Likewise.
17812 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
17813 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
17814 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
17815 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
17816 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
17817 __builtin_arm_clz.
17818 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
17819 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
17820 * doc/extend.texi (Other Builtins): Add new builtins.
17821 * doc/md.texi (Standard Names): Add new patterns.
2928cd7a 17822
112f7223
UW
178232003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
17824
17825 * reload.c: Revert 2003-01-31 change.
17826
62c9aa5f 178272003-02-01 Jan Hubicka <jh@suse.cz>
434c87d4
JH
17828
17829 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
17830
271bd540
RS
178312003-02-01 Richard Sandiford <rsandifo@redhat.com>
17832
17833 * flags.h (flag_volatile): Remove declaration.
17834 (flag_volatile_global, flag_volatile_static): Likewise.
17835 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
17836 * toplev.c (flag_volatile): Remove definition.
17837 (flag_volatile_global, flag_volatile_static): Likewise.
17838 (f_options): Remove corresponding entries here.
17839 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
17840 or flag_volatile_static.
17841 * doc/invoke.texi: Remove documentation of -fvolatile,
17842 -fvolatile-global and -fvolatile-static.
17843
17e6098e
JDA
178442003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17845
17846 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
17847 updating of total_code_bytes from prologue to epilogue.
17848
2f278625
UW
178492003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
17850
17851 * reload.c (find_reloads): Do not use the mode specified in the insn
17852 pattern as reload mode for address operands. Do not generate optional
17853 reloads for operands where a mandatory reload was already pushed.
17854 Generate optional reloads only in the final pass though find_reloads.
17855 (have_replacement_p): New function.
17856
05c425a9
GP
178572003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17858
17859 * doc/install.texi (Testing): Remove a reference to our obsolete
17860 /testresults web pages and strip redundant information concerning
17861 test results.
17862 (Binaries): Refer to Microsoft Windows instead of listing all
17863 possible variants.
17864
62c9aa5f 178652003-02-01 Jan Hubicka <jh@suse.cz>
b0c42aed
JH
17866
17867 * loop.c (emit_prefetch_instructions): Do conversion at right place in
17868 RTL chain.
17869
17870 * combine.c (simplify_set): Reverse order of ragumetns to
17871 REG_CANNOT_CHANGE_MODE_P
17872 * df.c (df_def_record_1): Likewise.
17873 * recog.c (register_operand): Likewise.
17874 * simplify-rtx.c (simplify_subreg): Likewise.
17875 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
17876 CANNOT_CHANGE_MODE_CLASS.
17877 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
17878 Likewise.
17879 * reload.c (push_reload): Likewise.
17880 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17881 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17882 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17883 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
17884 * mips.c (mips_cannot_change_mode_class): Update.
17885 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17886 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17887 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17888 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
17889 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
17890 * sh.c (sh_cannot_change_mode_class): Update.
17891 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
17892 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
17893
1f61a15d
GK
178942003-01-31 Geoffrey Keating <geoffk@apple.com>
17895
17896 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
17897 change to LINK_COMMAND_SPEC in gcc.c.
17898
7c712dcc
LR
178992003-01-31 Jan Hubicka <jh@suse.cz>
17900
17901 PR c/9506
17902 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
17903
e137391e
JDA
179042003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17905
17906 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
17907 duplicated code.
17908
1824b90d
NS
179092003-01-31 Nathan Sidwell <nathan@codesourcery.com>
17910
17911 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
17912 (BINFO_ELTS): New #define.
17913 * stor-layout.c (finalize_record_size): Don't set them.
17914 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
17915 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
17916 (BINFO_LANG_ELTS): New #define.
17917 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
17918 * java/class.c (make_class): Use BINFO_ELTS.
17919 (set_super_info): Likewse.
17920 (add_interface_do): Likewise.
17921 * objc/objc-act.c (start_class): Use BINFO_ELTS.
17922
8f9a402c
DS
179232003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
17924
17925 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
17926 (times): Don't ever declare if not HAVE_TIMES.
17927 (clock): Don't ever declare if not HAVE_CLOCK.
17928
cdd1f01b
RH
179292003-01-30 Richard Henderson <rth@redhat.com>
17930
17931 * flow.c (update_life_info): Zap life info after cleanup_cfg.
17932 (regno_uninitialized): Use correct live at function entry set.
17933 (regno_clobbered_at_setjmp): Likewise.
17934
17935 * expr.c (store_expr): Promote all MEM intermediates to regs.
17936
6bc82793
KH
179372003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17938
17939 * config/arm/arm.c: Fix comment typos.
17940 * config/arm/arm.h: Likewise.
17941 * config/arm/netbsd-elf.h: Likewise.
17942 * config/arm/netbsd.h: Likewise.
17943
f099d360
GK
179442003-01-30 Geoffrey Keating <geoffk@apple.com>
17945
17946 * gengtype.c (struct walk_type_data): Add needs_cast_p.
17947 (walk_type): Set needs_cast_p in walk_type_data.
17948 (write_types_process_field): Supply casts when required to suppress
17949 warnings.
17950 (write_root): Cast gt_pch_n_S to suppress warning.
17951 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
f099d360
GK
17952 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
17953 when they might exist.
17954 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
17955 insn-conditions.o, and rs6000.o.
17956
52895e1a
RH
179572003-01-30 Richard Henderson <rth@redhat.com>
17958
17959 * ggc-page.c (G.context_depth_allocations): New.
17960 (G.context_depth_collections): New.
17961 (alloc_page): Set G.context_depth_allocations.
17962 (ggc_collect): Set G.context_depth_collections.
17963 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
17964 (ggc_pop_context): Early exit for no allocations or collections.
17965
c35c7e52
RH
179662003-01-30 Richard Henderson <rth@redhat.com>
17967
17968 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
17969
e43dd89d
RE
179702003-01-30 Richard Earnshaw <rearnsha@arm.com>
17971
17972 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
17973 size, the link register is always saved if any other register is
17974 saved.
17975
87a902e4
KH
179762003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17977
17978 * config/h8300/h8300-protos.h: Update the prototype for
17979 compute_plussi_cc.
17980 (cpp_reader): Declare before it is used.
17981 * config/h8300/h8300.c (compute_plussi_cc): Change the return
17982 type to int.
17983 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
17984 see an unknown H8 variant.
17985
179862003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
0186a143 17987
ff6e2d3e 17988 PR target/9316
0186a143
RC
17989 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
17990 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
17991 * config/rs6000/t-rtems: New file. multilib variants to match OS.
17992 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
17993 rs6000/t-ppcgas so we get the desired multilibs.
17994
f55d7103
NC
179952003-01-30 Nick Clifton <nickc@redhat.com>
17996
17997 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
17998 when popping saved IP register off the stack.
17999
b6d08ca1
KH
180002003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18001
18002 * config/rs6000/aix43.h: Fix comment typos.
18003 * config/rs6000/aix51.h: Likewise.
18004 * config/rs6000/aix52.h: Likewise.
18005 * config/rs6000/altivec.h: Likewise.
18006 * config/rs6000/rs6000.c: Likewise.
18007 * config/rs6000/rs6000.h: Likewise.
18008 * config/rs6000/rs6000.md: Likewise.
18009 * config/rs6000/spe.md: Likewise.
18010
14d22dd6
MM
180112003-01-29 Mark Mitchell <mark@codesourcery.com>
18012
18013 * c-common.c (builtin_define_float_constants): Define
18014 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18015
825db093
KH
180162003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18017
18018 * config/sh/lib1funcs.asm: Fix comment typos.
18019 * config/sh/linux.h: Likewise.
18020 * config/sh/sh.c: Likewise.
18021 * config/sh/sh.md: Likewise.
18022
f1d5271a
LR
180232003-01-30 Loren James Rittle <ljrittle@acm.org>
18024
18025 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18026
266a9ef1
AO
180272003-01-30 Alexandre Oliva <aoliva@redhat.com>
18028
18029 * config/fp-bit.h (__make_dp): Declare if TMODES.
18030
0889116d
KH
180312003-01-29 Kazu Hirata <kazu@cs.umass.edu>
18032
18033 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18034 general_operand_src and general_operand_dst.
18035
c8c99a68
DE
180362003-01-29 David Edelsohn <edelsohn@gnu.org>
18037
18038 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18039 Return true for variable sized types.
18040 (rs6000_va_arg): Handle variable sized types passed by reference
18041 on non-SVR4 ABI.
18042
ccf4d512
RE
180432003-01-29 Richard Earnshaw <rearnsha@arm.com>
18044
18045 * arm.c (arm_legtimize_address): New function.
18046 * arm-protos.h (arm_legtimize_address): Add prototype.
18047 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18048 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18049 do ... while (0)
18050
0889116d 180512003-01-29 Joel Sherrill <joel@OARcorp.com>
0680c8fb 18052
7429b411 18053 PR bootstrap/9296
0680c8fb 18054 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
7429b411 18055 depended on it being defined until now.
0680c8fb 18056
7429b411 180572003-01-29 Joel Sherrill <joel@OARcorp.com>
c934274a 18058
7429b411 18059 PR target/9295
c934274a
JS
18060 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18061 RTEMS code knows which C++ initialization style the toolset
7429b411 18062 configuration is using.
c934274a 18063
0889116d 180642003-01-29 Joel Sherrill <joel@OARcorp.com>
2e327e6e 18065
7429b411 18066 PR bootstrap/9293
ff6e2d3e 18067 * config/m68k/t-crtstuff: Replace spaces with tabs, add
2e327e6e 18068 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
2e327e6e 18069
0889116d 180702003-01-29 Joel Sherrill <joel@OARcorp.com>
64abe03e 18071
7429b411 18072 PR bootstrap/9292
64abe03e
JS
18073 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
18074 RTEMS threads.
18075 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
64abe03e 18076
2f12fb2b
NC
180772003-01-29 Nick Clifton <nickc@redhat.com>
18078
18079 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18080 not $(srcdir).
18081
cf0150b9
AH
180822003-01-29 Andrew Haley <aph@redhat.com>
18083
18084 * tree-inline.c (walk_tree): Add CHAR_TYPE.
18085
62c9aa5f 180862003-01-29 Jan Hubicka <jh@suse.cz>
9b74f3ea
JH
18087
18088 * i386.md (subdi3_carry_rex64): Fix typo.
18089
e150159c
SS
180902003-01-28 Stan Shebs <shebs@apple.com>
18091
18092 * coretypes.h (cpp_reader): Forward declare struct.
18093 * c-pragma.h (cpp_reader): Remove forward declaration.
18094 * hashtable.h (cpp_reader): Likewise.
18095 * scan.h (cpp_reader): Likewise.
18096 * tree.h (cpp_reader): Likewise.
18097 * config/darwin-protos.h (cpp_reader): Likewise.
18098 * config/arm/arm-protos.h (cpp_reader): Likewise.
18099 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18100 struct cpp_reader in prototypes.
18101
53b50ac1
CC
181022003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18103
18104 * doc/install.texi: Add documentation for installation into
18105 tooldirs and with DESTDIR.
18106
021aa6ed
RH
181072003-01-28 Richard Henderson <rth@redhat.com>
18108
18109 * config.gcc (ia64*-*-aix*): Remove.
18110 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18111 * config/ia64/unwind-aix.c: Remove file.
18112
c1c1d123
AS
181132003-01-28 Andreas Schwab <schwab@suse.de>
18114
ff6e2d3e
RB
18115 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18116 register.
18117 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18118 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18119 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18120 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18121 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18122 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18123 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
c1c1d123 18124
6d09ef27
RS
181252003-01-28 Richard Sandiford <rsandifo@redhat.com>
18126
18127 * combine.c (nonzero_bits): Fix check for negative divide operands.
18128
1e1bd14e
RH
181292003-01-28 Richard Henderson <rth@redhat.com>
18130
18131 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18132 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18133
e37135f7
RH
181342003-01-28 Richard Henderson <rth@redhat.com>
18135
18136 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18137
75642f32
RH
18138 * config/cris/cris.c (cris_address_cost): Make static.
18139 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18140 * config/cris/cris.h (ADDRESS_COST): Remove.
18141 * config/cris/cris-protos.h: Update.
18142
e37135f7 181432003-01-23 Mike Stump <mrs@apple.com>
1f80c9ef
MS
18144
18145 * regclass.c (init_reg_autoinc): New function.
18146 (regclass): Move initialization of forbidden_inc_dec_class from
26182e15 18147 here...
1f80c9ef 18148 (init_regs): to here. Avoids reinitialization for each function,
26182e15 18149 saving compilation time.
1f80c9ef 18150
9fbd3e41
JM
181512003-01-28 Jason Merrill <jason@redhat.com>
18152
18153 * cpplib.h (struct cpp_options): Add warn_deprecated field.
18154 * cppinit.c (cpp_create_reader): Turn it on by default.
18155 * c-opts.c (c_common_decode_option): Set it.
18156 * cpplib.c (do_pragma_once): Only complain about #pragma once
18157 if warn_deprecated is set.
18158
fe352c29 181592003-01-28 Dale Johannesen <dalej@apple.com>
9fbd3e41 18160
1e1bd14e
RH
18161 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
18162 * loop.c (scan_loop): Move movables on -Os rich-register targets.
18163 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
fe352c29 18164
dcefdf67
RH
181652003-01-28 Richard Henderson <rth@redhat.com>
18166
18167 * target.h (targetm.address_cost): New.
18168 * target-def.h (TARGET_ADDRESS_COST): New.
18169 (TARGET_RTX_COSTS): Uncomment. Oops.
18170 * cse.c (address_cost): Use new target hook.
18171 (default_address_cost): New.
18172 * output.h (default_address_cost): Declare.
18173 * hooks.c (hook_int_rtx_0): New.
18174 * hooks.h (hook_int_rtx_0): Declare.
18175 * loop.c (combine_givs_p): Remove if 0 code.
18176 * system.h (ADDRESS_COST): Poison.
18177
18178 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18179 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18180 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18181 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18182 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18183 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18184 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18185 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18186 (ADDRESS_COST): Remove.
18187
18188 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18189 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18190 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18191 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18192 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18193 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18194 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18195 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
ff6e2d3e 18196 config/mips/mips.c, config/mips/mips.h,
dcefdf67 18197 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
ff6e2d3e 18198 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
dcefdf67
RH
18199 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18200 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18201 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18202 config/vax/vax.c, config/vax/vax.h
18203 (foo_address_cost): Make static.
18204 (TARGET_ADDRESS_COST): New.
18205 (ADDRESS_COST): Remove.
18206
18207 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18208 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18209 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18210 config/stormy16/stormy16.h
18211 (ADDRESS_COST): Move code ...
18212 (foo_address_cost): ... here.
18213 (TARGET_ADDRESS_COST): New.
18214
18215 * config/m32r/m32r.c (m32r_address_cost): Remove.
18216 * config/m32r/m32r-protos.h: Update.
18217
18218 * config/mmix/mmix.c (mmix_address_cost): Remove.
18219 * config/mmix/mmix-protos.h: Update.
18220
18221 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18222 mn10300_address_cost; move unsig allocation ...
18223 (mn10300_address_cost): ... here.
18224 (TARGET_ADDRESS_COST): New.
18225 * config/mn10300/mn10300-protos.h: Update.
18226 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18227
75642f32
RH
18228 * doc/tm.texi: Update.
18229
58fb7809
VM
182302003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18231
18232 * haifa-sched.c (schedule_insn): Return necessary cycle advance
18233 after issuing the insn.
18234 (rank_for_schedule): Make a insn with /S the highest priority
18235 insn.
18236 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
18237 (choose_ready): Check SCHED_GROUP_P.
18238 (schedule_block): Advance cycle after issuing insn if it is
18239 necessary. Don't reorder insns if there is an insn with /S.
18240 (set_priorities): Ignore schedule groups.
18241
18242 * sched-deps.c (remove_dependence, group_leader): Remove the
18243 functions.
18244 (add_dependence): Ignore schedule groups.
18245 (set_sched_group_p): Don't make copy of dependencies from previous
18246 insn of the schedule group. Add anti-dependency to the previous
18247 insn of the schedule group.
18248 (compute_forward_dependences): Ignore schedule groups.
18249
18250 * sched-ebb.c (init_ready_list): Ignore schedule groups.
18251
18252 * sched-rgn.c (init_ready_list): Ditto.
18253 (can_schedule_ready_p): Ditto.
ff6e2d3e 18254
371c988b
VM
182552003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18256
18257 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18258 register to another one.
18259
40cdfd5a
RH
182602003-01-28 Richard Henderson <rth@redhat.com>
18261
18262 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18263
a77b7e32
RS
182642003-01-28 Roger Sayle <roger@eyesopen.com>
18265
18266 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18267
3620944c
RS
182682003-01-28 Richard Sandiford <rsandifo@redhat.com>
18269
18270 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18271 class contains a floating-point register, return the size of the
18272 mode in half words.
18273
62c9aa5f 182742003-01-28 Jan Hubicka <jh@suse.cz>
e6e81735 18275
26182e15
SB
18276 * i386.c (ix86_carry_flag_operator): New predicate.
18277 (fcmov_operator): Fix whitespace.
18278 (ix86_expand_carry_flag_compare): Deal with floating point.
18279 (ix86_expand_int_movcc): Deal with fp; update insn expansion
18280 (ix86_expand_int_addcc): Likewise.
18281 (ix86_expand_strlensi_unroll_1): likewsie.
18282 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18283 * i386.md (add?i_carry_rex64): Use new predicate.
18284 (sub?i3_carry_rex64): Likewise.
18285 (x86_mov?icc_0_m1*): Likewise.
e6e81735 18286
43196589
AS
182872003-01-28 Andreas Schwab <schwab@suse.de>
18288
32214c32
AS
18289 * cfgloopmanip.c (create_preheader): Initialize src to avoid
18290 warning.
18291
18292 * expmed.c (emit_store_flag): Fix cast to avoid sign
18293 comparison warning.
18294
43196589
AS
18295 * combine.c (force_to_mode): Add cast to fix warning when
18296 STORE_FLAG_VALUE is negative.
18297
3c50106f
RH
182982003-01-27 Richard Henderson <rth@redhat.com>
18299
18300 * Makefile.in (cse.o): Depend on TARGET_H.
18301 * cse.c (rtx_cost): Use targetm.rtx_costs.
18302 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18303 * doc/tm.texi: Update.
ff6e2d3e 18304
3c50106f
RH
18305 * target.h (targetm.rtx_costs): New.
18306 * target-def.h (TARGET_RTX_COSTS): New.
18307 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18308 * hooks.h: Update.
18309
18310 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18311 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18312 * config/alpha/alpha.h (PROCESSOR_MAX): New.
18313 (CONST_COSTS, RTX_COSTS): Remove.
18314
18315 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18316 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18317 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18318 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18319 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18320 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18321 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18322 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18323 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18324 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18325 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18326 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18327 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18328 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18329 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18330 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18331 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18332 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18333 config/v850/v850.c, config/v850/v850.h,
18334 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18335 (CONST_COSTS, RTX_COSTS): Move code ...
18336 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18337
18338 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18339 (arm_rtx_costs, TARGET_RTX_COSTS): New.
18340 * config/arm/arm-protos.h: Update.
18341 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18342
18343 * config/avr/avr.h (CONST_COSTS): Move code ...
18344 * config/avr/avr.c (avr_rtx_costs): ... here.
18345 (default_rtx_costs): Make static.
18346 * config/avr/avr-protos.h: Update.
18347
18348 * config/h8300/h8300.c (const_costs): Make static.
18349 (h8300_and_costs, h8300_shift_costs): Likewise.
18350 * config/h8300/h8300-protos.h: Update.
18351
18352 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18353 (CONST_COSTS): Move code ...
18354 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
18355 default_rtx_costs; update for signature change.
18356 * config/ip2k/ip2k-protos.h: Update.
18357
18358 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18359 (CONST_COSTS): Move code ...
18360 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18361 (TARGET_RTX_COSTS): New.
18362 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18363 * config/m68hc11/m68hc11-protos.h: Update.
18364
18365 * config/m68k/m68k.c (const_int_cost): Make static.
18366 * config/m68k/m68k-protos.h: Update.
18367
18368 * config/mcore/mcore.c (mcore_const_costs): Make static.
18369 (mcore_and_cost, mcore_ior_cost): Likewise.
18370 * config/mcore/mcore-protos.h: Update.
18371
18372 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18373 (mmix_rtx_cost_recalculated): Remove.
18374 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18375 * config/mmix/mmix-protos.h: Update.
18376
18377 * config/sh/sh.c (shiftcosts): Make static.
18378 (addsubcosts, andcosts, multcosts): Likewise.
18379 * config/sh/sh-protos.h: Update.
18380
18381 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
18382 (sparc_rtx_costs): Make static; update for change in signature.
18383 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
18384 * config/sparc/sparc-protos.h: Update.
18385
18386 * config/v850/v850.c (const_costs): Make static.
18387 * config/v850/v850-protos.h: Update.
18388
18389 * config/vax/vax.h (RTX_COSTS): Remove.
18390 (CONST_COSTS): Move code ...
18391 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
18392 from vax_rtx_cost.
18393 (vax_rtx_costs, TARGET_RTX_COSTS): New.
18394
b9962e0a
RH
183952003-01-27 Richard Henderson <rth@redhat.com>
18396
18397 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
5ca98980 18398 * config/vax/vax-protos.h: Update. Really.
b9962e0a 18399
8a381273
AO
184002003-01-28 Alexandre Oliva <aoliva@redhat.com>
18401
18402 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
18403 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
18404 zero if no hardware floating point.
18405 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
18406 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
18407 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
18408 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
18409 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
18410 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
18411 even FP registers on N32 and N64.
18412 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
18413 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
18414 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
18415 even-register-like alignment to 128-bit arguments.
18416 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
18417 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
18418 on N32 or N64.
18419 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
18420 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
18421 (TPBIT): Set to tp-bit.c.
18422 (tp-bit.c): Create out of fp-bit.c.
18423
820e01be
GDR
184242003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
18425
18426 * c-parse.in: Remove '%expect 32' directive in objc mode.
18427
23af32e6
NS
184282003-01-27 Nathan Sidwell <nathan@codesourcery.com>
18429
18430 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
18431 (LIBGCOV): New variable.
18432 (libgcc.mk): Add LIBGCOV.
18433 (LIBGCC_DEPS): Add libgcov.c.
18434 (libgcov.a): New target.
18435 (clean): Remove libgcov.a.
18436 (install-libgcc): Do libgcov too.
18437 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
18438 with libgcov.a.
18439 * libgcc2.c (L_gcov): Move into ...
18440 * libgcov.c: ... here. New file.
18441 * mklibgcc.in: Add libgcov rules.
18442 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
18443
18444 * doc/invoke.texi (profile-arcs, test-coverage): Update and
18445 clarify.
ff6e2d3e 18446
23af32e6
NS
18447 * profile.c (index_counts_file): Remove duplicate check for open file.
18448
9fe42917 184492003-01-27 Jerry Quinn <jlquinn@optonline.net>
d4463dfc
JQ
18450
18451 * gcc/doc/invoke.texi (Optimization Options): Group together
18452 optional and experimental flags. Move trapv and bounds-check
95fcd0ab 18453 out of this section. Group floating point flags together.
d4463dfc
JQ
18454 (Code Gen Options): Move trapv and bounds-check to here.
18455
244d05fb
JZ
184562003-01-27 Josef Zlomek <zlomekj@suse.cz>
18457
18458 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
18459
c552c146
RE
184602003-01-27 Richard Earnshaw <rearnsha@arm.com>
18461
18462 PR optimization/9090
18463 * function.c (purge_addressof_1): After pushing an addressed register
18464 onto the stack, simplify the result.
18465
90a21764
VR
184662003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18467
18468 * doc/extend.texi: Fix typo.
18469
9a376494
VR
184702003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18471
18472 * doc/cppopts.texi: Fix typo.
18473 * doc/objc.texi: Likewise.
18474 * doc/passes.texi: Likewise.
18475
f004e5f3
AO
184762003-01-27 Alexandre Oliva <aoliva@redhat.com>
18477
18478 * real.c (ibm_extended_format): Add 53 to minimum exponent.
18479 (encode_ibm_extended): Adjust.
18480
58c60e52
GDR
184812003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
18482
18483 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
18484 timevar_id enumerations.
18485
e869aa39
KH
184862003-01-26 Kazu Hirata <kazu@cs.umass.edu>
18487
18488 * combine.c: Fix formatting.
18489
74fb4811
KH
184902003-01-26 Kazu Hirata <kazu@cs.umass.edu>
18491
18492 * doc/gccint.texi: Update the copyright.
18493
3bcf1b13
KH
184942003-01-26 Kazu Hirata <kazu@cs.umass.edu>
18495
18496 * doc/cpp.texi: Fix typos.
18497 * doc/extend.texi: Likewise.
18498 * doc/gty.texi: Likewise.
18499 * doc/install.texi: Likewise.
18500 * doc/passes.texi: Likewise.
18501 * doc/rtl.texi: Likewise.
18502 * doc/tm.texi: Likewise.
18503
9e4f94de
KH
185042003-01-26 Kazu Hirata <kazu@cs.umass.edu>
18505
18506 * config/ia64/fde-glibc.c: Fix comment typos.
18507 * config/ia64/hpux.h: Likewise.
18508 * config/ia64/ia64.c: Likewise.
18509 * config/ia64/ia64.h: Likewise.
18510 * config/ia64/unwind-ia64.c: Likewise.
18511
4aae8a9a
KH
185122003-01-26 Kazu Hirata <kazu@cs.umass.edu>
18513
18514 * config/i386/i386-modes.def: Fix comment typos.
18515 * config/i386/i386.c: Likewise.
18516 * config/i386/i386.md: Likewise.
18517
35d8c8e2
SB
185182003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
18519
18520 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
18521 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
18522 ASM_FINISH_DECLARE_OBJECT before defining it.
18523 * toplev.c (rest_of_decl_compilation): Don't define
18524 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
18525 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
18526 parameters for DWARF2 targets because they _are_ used.
18527
ea976606
AO
185282003-01-26 Alexandre Oliva <aoliva@redhat.com>
18529
b44cf3d9
AO
18530 * fp-bit.h: Define macros for TFmode floating-point constants
18531 in IBM-extended TFmode types.
18532 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
18533 widths.
18534 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
18535 TFmode type.
18536
ea976606
AO
18537 * config/fp-bit.h: Define macros for TFmode floating-point
18538 constants in IEEE quad TFmode type. Declare functions according
18539 to L_ macros.
18540 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
18541 (TFtype, TItype, UTItype): Define if TMODES is defined.
18542 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
18543 (F_T_BITOFF, D_T_BITOFF): Define.
18544 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
18545 guaranteed to be wide enough.
18546 * config/fp-bit.c: Check for L_ macros for tf functions.
18547 (__thenan_tf): New.
18548 (nan): Adjust.
18549 (pack_d, unpack_d): Support IEEE 854 quad type.
18550 (_fpmul_parts): Support TFmode. Compute exponent adjustment
18551 from FRAC_NBITS, FRAC_BITS and NGARDS.
18552 (usi_to_float): Cast constants to be shifted to fractype
18553 instead of assuming long long is wide enough.
18554 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
18555
fd7fd61e
AJ
185562003-01-26 Andreas Jaeger <aj@suse.de>
18557
18558 * df.c: Remove prototype of unused function df_regno_rtl_debug.
18559
8ae91fc0
AO
185602003-01-26 Alexandre Oliva <aoliva@redhat.com>
18561
88e83acb
AO
18562 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
18563 (DBBIT_FUNCS): Added _df_to_tf.
18564 (TPBIT_FUNCS): New.
18565 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
18566 (LIBGCC_DEPS): Added TPBIT.
18567 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
18568
2cd622c3
AO
18569 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
18570 been able to move the result to target.
18571
8ae91fc0
AO
18572 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
18573 for the appropriate mode.
18574
c3297561
AO
18575 * calls.c (emit_library_call_value_1): Handle return values
18576 in a PARALLEL.
18577
187515f5
AO
18578 * rtl.c (get_mode_alignment): Moved to...
18579 * stor-layout.c: ... here.
18580
6ebd2ef4
AO
18581 * print-rtl.c (print_rtx): Don't print MEM details in
18582 GENERATOR_FILEs.
18583
7890e8f3
MH
185842003-01-26 Michael Hayes <mph@paradise.net.nz>
18585
18586 * df.h: Update comments, tidy formatting.
18587 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
18588 REVERSE, UNION, INTERSECTION. All uses updated.
18589 (OLD_DF_INTERFACE): Remove.
18590 (struct insn_info): Remove commented out insn field.
18591 * df.c: Update comments, tidy formatting.
18592 (df_def_table_realloc): Remove.
18593
18594
b820d2b8
AM
185952003-01-26 Alan Modra <amodra@bigpond.net.au>
18596
18597 * calls.c (save_fixed_argument_area): Tidy.
18598 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
18599 (expand_call): Comment typo fixes. Don't init low_to_save. Start
18600 call chain loop at 1 if !try_tail_call. Formatting.
18601 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
18602 Use save_fixed_argument_area and restore_fixed_argument_area.
18603
42510de4
MH
186042003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18605
18606 * df.c (df_uses_record): Handle CC0.
18607
acf9fa5f
UW
186082003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18609
1e1bd14e
RH
18610 * reload.c (maybe_memory_address_p): New function.
18611 (find_reloads_address): Use it instead of memory_address_p.
acf9fa5f 18612
5a09edba
KK
186132003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
18614
18615 * final.c (shorten_branches): Align the address of code label
1e1bd14e 18616 when computing initial lengths and addresses.
5a09edba 18617
f5818c0c
KH
186182003-01-25 Kazu Hirata <kazu@cs.umass.edu>
18619
18620 * config/m68hc11/m68hc11.md: Fix a comment typo.
18621
21ff35fb
AJ
186222003-01-25 Andreas Jaeger <aj@suse.de>
18623
18624 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
18625 TARGET_MACHO.
18626
7821bfc7
RS
186272003-01-25 Roger Sayle <roger@eyesopen.com>
18628
18629 * gcse.c (bypass_last_basic_block): New global variable.
18630 (bypass_block): Use redirect_edge_and_branch_force to redirect
18631 fall-through edges. Use bypass_last_basic_block to determine
18632 which blocks have valid PRE information.
18633 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
18634
62c9aa5f 186352003-01-25 Jan Hubicka <jh@suse.cz>
5f0bea72
JH
18636
18637 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
18638
62c9aa5f 186392003-01-25 Jan Hubicka <jh@suse.cz>
1649d92f
JH
18640 Eric Botcazou <ebotcazou@libertysurf.fr>
18641 PR opt/8492
18642 * gcse.c (one_cprop_pass): Delete unreachable blocks.
18643
6ca86a1a
RH
186442003-01-25 Richard Henderson <rth@redhat.com>
18645
18646 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
18647 from ia64_aix_select_rtx_section.
18648 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
18649 instead of saving and restoring flag_pic.
18650 (ia64_rwreloc_unique_section): Similarly.
18651 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
18652 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
18653 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
18654 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
18655
aa2fb4dd
KH
186562003-01-25 Kazu Hirata <kazu@cs.umass.edu>
18657
18658 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
18659 comment.
18660
c876997f 186612003-01-25 Richard Henderson <rth@redhat.com>
1125849a
RH
18662
18663 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
18664
c876997f 186652003-01-25 Kelley Cook <kelleycook@comcast.net>
3900a23b
KC
18666
18667 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
18668
72e42e26
SB
186692003-01-25 Segher Boessenkool <segher@koffie.nl>
18670
18671 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
18672 type for bitmaps. Use unsigned long.
18673 (nBITMAP_WORD_BITS): New macro.
18674 (BITMAP_WORD_BITS): New macro.
18675 (rest of file): Use it.
18676 * bitmap.c: Use it.
18677
8324663f
RH
186782003-01-25 Richard Henderson <rth@redhat.com>
18679
18680 2002-02-19 Robert Lipe <robertlipe@usa.net>
18681 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
18682
c876997f 186832003-01-25 Roger Sayle <roger@eyesopen.com>
2adc9b0f
RS
18684
18685 * builtins.c (purge_builtin_constant_p): Scan insn stream
18686 sequentially rather than by basic block.
18687 * function.c (purge_addressof): Simplify test with INSN_P.
18688
ad487c38
KH
186892003-01-25 Kazu Hirata <kazu@cs.umass.edu>
18690
8324663f 18691 * combine.c (simplify_comparison, case AND): Remove a redundant test.
ad487c38 18692
c876997f 186932003-01-25 Roger Sayle <roger@eyesopen.com>
07d9b20d
RS
18694
18695 * function.h (struct function): New field calls_constant_p.
18696 (current_function_calls_constant_p): New macro for above.
18697 * function.c (prepare_function_start): Initialize calls_eh_return
18698 and calls_constant_p.
18699 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
18700 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
18701 when the current_function_calls_constant_p.
18702 * integrate.c (expand_inline_function): Set calls_constant_p if
18703 the function being inlined has calls_constant_p set.
18704
c876997f 187052003-01-25 Roger Sayle <roger@eyesopen.com>
41559112
RS
18706
18707 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
18708 optimizing, even if flag_gcse is true.
18709 * toplev.c (rest_of_compilation): purge_builtin_constant_p
18710 only needs to be called when "optimize > 0 && flag_gcse".
18711
9bb231fd
RS
187122003-01-25 Roger Sayle <roger@eyesopen.com>
18713
18714 * stmt.c (emit_case_bit_tests): New routine to implement suitable
18715 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
18716 (case_bit_test_cmp): New comparison function for "qsort" to order
18717 case_bit_tests by decreasing number of destination nodes.
18718 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
18719 (expand_end_case_type): Use emit_case_bit_tests to implement
18720 suitable switch statments.
18721 (CASE_USE_BIT_TESTS): New target macro to disable the above.
18722 * Makefile.in (stmt.o): Add dependency on optab.h.
18723 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
18724
a073323c
AS
187252003-01-23 Andreas Schwab <schwab@suse.de>
18726
18727 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
18728 __do_global_ctors_aux hidden global and don't put it in
18729 .init_array.
18730 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
18731 instead so that it comes first.
18732
62c9aa5f 187332003-01-25 Jan Hubicka <jh@suse.cz>
36ddc6b0
JH
18734
18735 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
18736 subreg is read/modify.
18737
62c9aa5f 187382003-01-25 Jan Hubicka <jh@suse.cz>
26771da7
JH
18739
18740 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
18741 do libcall for large blocks.
18742 * i386.md (comi patterns): Set type to ssecomi.
18743 (sse2_unpck?pd): Fix mode of vec_select.
18744
18745 * cse.c: Include except.h
18746 (cse_set_around_loop): Do not create new basic blocks.
18747 * Makefile.in (cse.o): Add dependnecy on except.h
18748
62c9aa5f 187492003-01-25 Jan Hubicka <jh@suse.cz>
27a6aa72
JH
18750
18751 * builtins.c (fold_trunc_transparent_mathfn): New function.
18752 (fold_builtin): Use it.
18753 * convert.c (convert_to_real): Re-enable code to convert
18754 math functions; add support for floor familly functions.
18755
cd68f4e4
ZD
187562003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18757
18758 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
18759 dependencies on coretypes.h and $(TM_H).
18760
62c9aa5f 187612003-01-25 Jan Hubicka <jh@suse.cz>
67945f2e
JH
18762
18763 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
18764
c876997f 187652003-01-24 Stuart Hastings <stuart@apple.com>
095fa594 18766
08f0414b 18767 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
095fa594 18768
1e4c04e0
MH
187692003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18770
18771 * config/c4x/c4x.md (UNSPEC_BU): New constants.
18772 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
18773 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
18774 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
18775 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
18776 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
18777 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
18778 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
18779
62c9aa5f 187802003-01-24 Jan Hubicka <jh@suse.cz>
a560d4d4 18781
08f0414b 18782 * emit-rtl.c (reg_attrs_htab): New static variable.
a560d4d4
JH
18783 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
18784 functions.
18785 (reg_rtx): Do not maintain regno_decl.
18786 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
18787 set_mem_attrs_from_reg): New global function.
18788 (init_emit): Do not initialize regno_decl.
18789 (init_emit_once): initialize reg_attrs_htab.
18790 * final.c (alter_subreg): Do not replace REG by SUBREG.
18791 (gen_mem_expr_from_op): Improve output.
18792 (output_asm_operands): Likewise.
18793 * function.c (assign_params): Do not set REGNO_DECL.
18794 * function.h (struct function): Kill regno_decl.
18795 (REGNO_DECL): Kill.
18796 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
18797 * print_rtl.c (print_rtx): Output REG information.
18798 * regclass.c (reg_scan_mark_refs): Update attrs.
18799 * reload1.c (alter_reg): Likewise.
18800 * simplify_rtx.c (simplify_subreg): Likewise.
18801 * stmt.c (expand_decl): Likewise.
18802 * rtl.def (REG): Add new field.
18803 * rtl.h (struct reg_attrs): New.
18804 (rtunion_def): At rtreg.
18805 (X0MEMATTR): Add checking.
18806 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
18807 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
18808 Declare.
18809 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
18810
1d0ea52e
BW
188112003-01-24 Bob Wilson <bob.wilson@acm.org>
18812
18813 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
18814 (xtensa_emit_call, print_operand): Fix printf format strings
18815 to avoid compile warnings.
18816 (xtensa_function_prologue, xtensa_function_epilogue): Change type
18817 of "size" argument to HOST_WIDE_INT to fix compile warnings.
18818 * config/xtensa/xtensa-protos.h
18819 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
18820
62c9aa5f 188212003-01-24 Jan Hubicka <jh@suse.cz>
272f51a3
JH
18822
18823 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
18824 (implicit_built_in_decls): New global array.
18825 (mathfn_built_in): New global function.
18826 (fold_trunc_transparent_mathfn): New static function
18827 (expand_builtin_strstr, expand_bultin_strchr,
18828 expand_builtin_strpbrk, expand_builtin_strcpy,
18829 expand_builtin_strncpy, expand_bultin_strcmp,
18830 expand_bultin_strncat, expand_builtin_fputs): Use
18831 implicint_built_in_decls.
18832 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
18833 * builtins.def: Fix comments.
18834 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
18835 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
18836 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
18837 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
18838 (DEF_C99_C90RES_BULTIN): New.
18839 (*f, *l builtins): Update.
18840 * c-common.c (DEF_BUILTIN): Initialize implicit array.
18841 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
18842 * convert.c (strip_float_extensions): New global function.
18843 * tree.h (DEF_BUILTIN): Accept 10 arguments.
18844 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
18845 Declare.
18846 * java/builtins.c (define_builtin): Handle implicit.
18847 (DEF_BUILTIN): Update.
18848 * tm.texi (TARGET_C99_FUNCTIONS): Document.
18849 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
18850 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
18851 when using glibc2.
18852
1f37a5b2
BW
188532003-01-24 Bob Wilson <bob.wilson@acm.org>
18854
18855 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
18856 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
18857 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
18858 * config/xtensa/crti.asm: New file.
18859 * config/xtensa/crtn.asm: New file.
18860 * config/xtensa/t-elf: New file.
18861 * config/xtensa/t-linux: New file.
18862 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
18863 Move various CFLAGS settings to new t-elf file.
18864
84f5e1b1
RH
188652003-01-24 Richard Henderson <rth@redhat.com>
18866
18867 PR optimization/4382
18868 * tree-inline.c (find_builtin_longjmp_call_1): New.
18869 (find_builtin_longjmp_call): New.
18870 (inlinable_function_p): Use it.
18871
09b2e78d
ZD
188722003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18873
18874 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
18875 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
18876 * config/i386/i386.c (function_arg_pass_by_reference): New.
18877 (ix86_va_arg): Support arguments passed by reference.
18878
3d436d2a
ZD
188792003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18880
18881 * cfgloopanal.c: New file.
18882 * cfgloopmanip.c: New file.
18883 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
18884 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
18885 cfglayout.o): Add dependency on cfgloop.h.
18886 (cfgloop.o): Add flags.h dependency.
18887 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
18888 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
18889 (struct loop, struct loops, flow_loops_find, flow_loops_update,
18890 flow_loops_free, flow_loops_dump, flow_loop_dump,
18891 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
18892 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
18893 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
18894 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
18895 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
18896 find_common_loop, verify_loop_structure): Declarations moved to ...
18897 * cfgloop.h: New file.
18898 * bb-reorder.c (reorder_basic_blocks): Modified.
18899 * cfglayout.c: Include cfgloop.h.
18900 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
18901 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
18902 (break_superblocks): New static function.
18903 (cfg_layout_finalize): Use it.
18904 (cfg_layout_split_block): New function.
18905 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
18906 fields.
18907 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
18908 changed.
18909 (cfg_layout_split_block): Declare.
18910 * cfgloop.c: Include cfgloop.h and flags.h.
18911 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
18912 get_loop_body): Avoid signed versus unsigned comparison warnings.
18913 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
18914 loop_latch_edge): Modified.
18915 (verify_loop_structure): Modified to use flags stored in loop structure;
18916 check irreducible loops.
18917 (cancel_loop, cancel_loop_tree): New functions.
18918 (estimate_probability): Use loop analysis code for predictions.
18919 (estimate_loops_at_level): Avoid signed versus unsigned comparison
18920 warnings.
18921 * doloop.c: Include cfgloop.h.
18922 * loop.c: Include cfgloop.h.
18923 * predict.c: Include cfgloop.h.
18924 * toplev.c: Include cfgloop.h.
18925 * unroll.c: Include cfgloop.h.
18926 * tracer.c (tracer): Modified.
18927
a38b3eea
KH
189282003-01-24 Kazu Hirata <kazu@cs.umass.edu>
18929
18930 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
18931
fd3cd001
UW
189322003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
18933
18934 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
18935 * configure: Regenerate.
18936
18937 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
18938 (tls_symbolic_reference_mentioned_p): Add prototype.
18939 (s390_tls_get_offset): Add prototype.
18940 (emit_pic_move): Remove prototype, replace by ...
18941 (emit_symbolic_move): .. this new prototype.
18942
18943 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
18944 (tls_model_chars): New global variable.
18945 (s390_encode_section_info): Encode TLS model.
18946 Use targetm.binds_local_p to check for local symbols.
18947 (s390_strip_name_encoding): New function.
18948 (TARGET_STRIP_NAME_ENCODING): Define.
18949
18950 (get_thread_pointer): New function.
21ff35fb 18951 (legitimize_tls_address): New function.
fd3cd001
UW
18952 (legitimize_address): Call it.
18953 (emit_pic_move): Remove, replace by ...
18954 (emit_symbolic_move): ... this new function.
18955
18956 (larl_operand): Handle TLS operands.
18957 (legitimate_constant_p): Likewise.
18958 (s390_decompose_address): Likewise.
18959 (s390_cannot_force_const_mem): New function.
18960 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18961
18962 (s390_output_symbolic_const): Handle TLS unspecs.
18963 (print_operand): New code 'J'.
18964 (machine_function): Add struct member 'some_ld_name'.
18965 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
18966
18967 (enum s390_builtin): New type.
18968 (code_for_builtin_64, code_for_builtin_31): New global variables.
18969 (s390_init_builtins, s390_expand_builtin): New functions.
18970 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18971
18972 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
18973 (ASM_OUTPUT_LABELREF): Define.
18974 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
18975
18976 * config/s390/s390.md: Define TLS UNSPEC constants.
18977 ("movdi", "movsi"): Handle TLS operands.
18978 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
18979 ("*tls_load_64", "*tls_load_31"): New insns.
18980 ("call_value_tls", "call_value_tls_exp"): New expanders.
21ff35fb 18981 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
fd3cd001
UW
18982 "bas_tls_64", "bas_tls_31"): New insns.
18983
01f4962d
NS
189842003-01-24 Nathan Sidwell <nathan@codesourcery.com>
18985
18986 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
18987 spe ABI is configured, if requested.
18988
70b91854
VR
189892003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18990
18991 * doc/passes.texi: Fix typo.
18992
b8089d8d
AS
189932003-01-24 Andreas Schwab <schwab@suse.de>
18994
18995 * stor-layout.c (excess_unit_span): Only define if used.
18996
38df970e
JQ
189972003-01-24 Jerry Quinn <jlquinn@optonline.net>
18998
18999 * gcc/doc/invoke.texi (Optimization Options): List -O levels
19000 for each optimization flag.
19001
dff23a65
KH
190022003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19003
19004 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19005
05739753
VR
190062003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19007
19008 * doc/bugreport.texi: Use @command instead of @code for commands.
19009 * doc/collect2.texi: Likewise.
19010 * doc/headerdirs.texi: Likewise.
19011 * doc/invoke.texi: Likewise.
19012 * doc/standards.texi: Likewise.
19013 * doc/tm.texi: Likewise.
19014 * doc/trouble.texi: Likewise.
19015
06bea5aa
NC
190162003-01-24 Nick Clifton <nickc@redhat.com>
19017
19018 * config/arm/arm.c (use_return_insn): Do not use a single return
19019 instruction for interrupt handelrs which have to create a stack
19020 frame.
19021 (arm_expand_prologue): Do not pre-bias the return address of
19022 interrupt handlers which create a stack frame.
19023
190242003-01-24 Nick Clifton <nickc@redhat.com>
19025
19026 * Add sh2e support:
19027
19028 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
19029
19030 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19031 med_cbranches. Fix logic in short_cbranches.
19032
19033 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
19034
19035 * config/sh/sh.md (delay for cbranch): Don't annul delay
19036 slots on SH2e.
19037 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19038 cbranch with unfilled delay slot on SH2e.
19039 (output_branch): Fill with a nop the delay slot of a
19040 branch that required a delay slot but didn't get one.
19041
19042 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
19043
19044 * doc/invoke.texi (SH options): Document -m2e.
19045 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19046 * config/sh/lib1funcs.asm: Likewise.
19047 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19048 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19049 not __sh1__.
19050 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19051 SH2E up.
19052 (SH3E_BIT): Renamed to...
19053 (SH_E_BIT): ... this. Replace all uses.
19054 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19055 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19056 (TARGET_SWITCHES): Added 2e.
19057 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19058 (processor_type): Added PROCESSOR_SH2E.
19059 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19060 TARGET_SH2E, except in sqrtsf2_i.
19061 (attribute cpu): Added sh2e.
19062 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19063 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19064 * config.gcc: Add sh2e target support.
19065
65ca2d60
PE
190662003-01-24 Phil Edwards <pme@gcc.gnu.org>
19067
19068 Rename -W to -Wextra.
19069 * c-decl.c: Update comments.
19070 * c-typeck.c: Likewise.
19071 * flags.h: Likewise.
19072 * function.c: Likewise.
19073 * stmt.c: Likewise.
19074 * toplev.c: Update comments.
19075 (W_options): Add 'extra'.
19076 (display_help): Remove '-W'.
19077 (decode_W_option): Special warn_uninitialized treatment in the case
19078 of -Wextra.
19079 * doc/invoke.texi: Update with new entries.
19080
3de9c088
RH
190812003-01-23 Richard Henderson <rth@redhat.com>
19082
8324663f
RH
19083 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19084 in no-else-block case. Add commentary.
3de9c088 19085
49691411
KG
190862003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19087
b4862477
KG
19088 * configure.in: Revert last change.
19089
190902003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19091
19092 * configure.in: Don't include ansidecl.h in tconfig.h.
ed446835 19093 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
49691411
KG
19094 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19095 ATTRIBUTE_UNUSED.
19096
19097 * configure: Regenerate.
19098
c4db7ecb
FS
190992003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19100
19101 PR java/6748
19102 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19103 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19104 kernels.
19105
fc69c47c
KG
191062003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19107
19108 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19109
adbe6dfd
UW
191102003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
19111
19112 * genattrtab.c (write_attr_get): Mark 'insn' paramter
19113 as ATTRIBUTE_UNUSED.
19114
76a318e9
RE
191152003-01-23 Richard Earnshaw <rearnsha@arm.com>
19116
19117 * arm.c (thumb_base_register_rtx_p): New function.
19118 (thumb_index_register_rtx_p): New function.
19119 (thumb_legitimate_address_p): New function.
19120 (thumb_legitimate_offset_p): New function.
19121 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
8891b787 19122 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
76a318e9
RE
19123 definitions.
19124 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19125 (THUMB_LEGITIMATE_OFFSET): Delte.
19126 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19127 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19128 (thumb_legitimate_offset_p): Likewise.
19129
9a600d0c
AS
191302003-01-23 Andreas Schwab <schwab@suse.de>
19131
19132 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19133
2d110c0a
KG
191342003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19135
19136 * fixinc/Makefile.in (FL_LIST): Revert last change.
19137
2d1d9215
VR
191382003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19139
19140 PR other/7341
19141 * invoke.texi (ftest-coverage): Fix broken cross-reference.
19142 Change @code to @command for gcov command.
19143
19144 * gcc.texi: Adjust title of gcov section.
19145 Adjust copyright.
19146 * gcov.texi: Likewise.
19147
34ee7f82
RS
191482003-01-22 Roger Sayle <roger@eyesopen.com>
19149
19150 PR optimization/8423
19151 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19152 its argument is constant, or 0 if !flag_gcse.
19153 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19154 if it's argument is constant.
19155 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19156 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19157 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19158 * builtins.c (purge_builtin_constant_p): New function to force
19159 instantiation of any remaining CONSTANT_P_RTX nodes.
19160 * rtl.h (purge_builtin_constant_p): Prototype here.
19161 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19162 pass after GCSE and before loop.
19163 (flag_gcse): No longer static.
19164 * flags.h (flag_gcse): Prototype here.
19165
bab0b43b
UW
191662003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19167
19168 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19169 introduced by last change.
19170
7e657a61
AS
191712003-01-22 Andreas Schwab <schwab@suse.de>
19172
19173 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19174
75a3503b
KH
191752003-01-22 Kazu Hirata <kazu@cs.umass.edu>
19176
19177 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19178 request a scratch reg on H8S when the shift count is 8.
19179
4888ec5d
UW
191802003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19181
19182 * config/s390/s390-protos.h (preferred_la_operand_p):
19183 Remove second parameter.
19184 * config/s390/s390.c (preferred_la_operand_p): Likewise.
19185 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19186 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19187 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19188 Add peepholes to transform ADD to LOAD ADDRESS.
19189
6b990f6b
RE
191902003-01-22 Richard Earnshaw <rearnsha@arm.com>
19191
19192 * arm.c (arm_address_register_rtx_p): New function.
19193 (arm_legitimate_address_p): New function.
19194 (arm_legitimate_index_p): New function.
19195 (legitimize_pic_address): Use arm_legitimate_index_p.
19196 * arm-protos.h (arm_legtimate_address_p): Add prototype.
19197 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19198 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19199
f0bf1270
HP
192002003-01-22 Hartmut Penner <hpenner@de.ibm.com>
19201
19202 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19203 * config/s390/2064.md (define_bypass): Correct 'Load' and
19204 'Load-address' bypass values.
21ff35fb 19205
fcb6a0f5
AS
192062003-01-22 Andreas Schwab <schwab@suse.de>
19207
19208 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19209
c24b8026
ZW
192102003-01-21 Zack Weinberg <zack@codesourcery.com>
19211
19212 * genautomata.c (output_internal_insn_latency_func,
19213 output_print_reservation_func): Short circuit when there is no
19214 automaton to generate code for.
19215
38afe605
KG
192162003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19217
19218 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19219 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19220
d24652ee
GK
192212003-01-21 Geoffrey Keating <geoffk@apple.com>
19222
19223 * config/rs6000/rs6000.md: Remove warning.
19224 (builtin_setjmp_receiver): Likewise.
19225 * config/darwin.c (update_stubs): Slightly improve terrible hack
19226 with identifiers. Add comment pointing out problems with it.
19227 (update_non_lazy_ptrs): Likewise.
19228
1c99d804
RH
192292003-01-21 Richard Henderson <rth@redhat.com>
19230
19231 * dwarf2out.c (lookup_filename): Fix printf format warning.
19232 * system.h (fread_unlocked, fwrite_unlocked): Undef.
19233
19234 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19235 (fixincl.o-warn, gnu-regex.o-warn): New.
19236 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19237 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19238 * fixinc/fixincl.c (process): Fix printf format warning.
19239
f0b886ab
UW
192402003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19241
19242 * dwarf2out (output_file_names): Don't crash if called
19243 with empty file_table.
19244
490c57bb
ZW
192452003-01-21 Zack Weinberg <zack@codesourcery.com>
19246
19247 * genautomata.c (output_internal_insn_latency_func): Add
19248 missing break statement to generated code.
19249
100e3acb
RS
192502003-01-21 Roger Sayle <roger@eyesopen.com>
19251
19252 * stmt.c (same_case_target_p): New function to determine whether
19253 two case labels branch to the same target. Split out from...
19254 (group_case_nodes): ... here. Use same_case_target_p instead.
19255 (strip_default_case_nodes): Remove explicit case nodes
19256 that branch to the default destination.
19257 (expand_end_case_type): Call strip_default_case_nodes after
19258 group_case_nodes, to simplify the case-list before we count it.
19259 Only generate table_label RTX when actually needed. Try to share
19260 thiscase->exit_label and thiscase->data.case_stmt.default_label
19261 when a switch has no explicit default case. Simplify test for
19262 constant index.
19263
e8e8c1e5
KH
192642003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19265
19266 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19267 \t.
19268 (*negsf2_h8300hs): Likewise.
19269 (*addsi3_lshiftrt_16_zexthi): Likewise.
19270 (*iorhi3_lshiftrt_8): Likewise.
19271
044b4de3
UW
192722003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19273
19274 * dwarf2out.c (fde_table_in_use): Mark GTY.
19275 (dwarf2out_cfi_label_num): New variable, marked GTY.
19276 (dwarf2out_cfi_label): Use it instead of static label_num.
19277 * emit-rtl.c (label_num): Mark GTY.
19278
cfedf91b
KH
192792003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19280
19281 * config/h8300/h8300.c (output_plussi): Support H8/300.
19282 (compute_plussi_length): Likewise.
19283 (compute_plussi_cc): Likewise.
19284 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19285 output assembly instructions.
19286
dd859b8a
KG
192872003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19288
1f5b3282
KG
19289 * calls.c (fix_unsafe_tree): Prototype.
19290
dd859b8a
KG
19291 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19292 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19293 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19294 c-parse.o-warn): Add -Wno-error.
19295 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19296
19297 * configure.in (--enable-werror): Add new flag.
19298 * doc/install.texi (--enable-werror): Document.
19299 * configure: Regenerate.
19300
19301 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19302
4f9365e2
AS
193032003-01-21 Andreas Schwab <schwab@suse.de>
19304
19305 * genautomata.c (output_internal_insn_latency_func): Fix missing
19306 close paren in output.
19307
a543eb5e
ZW
193082003-01-21 Zack Weinberg <zack@codesourcery.com>
19309
19310 * genautomata.c: Space savings in generated code:
19311 (output_dfa_insn_code_func): Split out the table-enlargement
19312 path to an out-of-line static function, dfa_insn_code_enlarge.
19313 (output_internal_insn_latency_func): Use a lookup table for the
19314 default latencies.
19315 (output_print_reservation_func): Use a lookup table for the
19316 strings.
19317
292e35a3
CE
193182003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
19319
19320 PR opt/7507
19321 * calls.c (fix_unsafe_tree): Split out from ...
19322 (expand_call): ... here. Use it on the function address too.
19323
d8d0f5af
RH
193242003-01-20 Richard Henderson <rth@redhat.com>
19325
19326 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19327
5b50aa9d
RH
193282003-01-20 Richard Henderson <rth@redhat.com>
19329
515e1c9f 19330 PR opt/7154
5b50aa9d
RH
19331 * stmt.c (expand_asm_operands): Validize memory operands.
19332
7a174a15
RH
193332003-01-20 Richard Henderson <rth@redhat.com>
19334
19335 PR opt/8848
19336 * ifcvt.c (noce_process_if_block): Correct arguments to
19337 modified_between_p for no-else-block case.
19338
9ac7ebba
KH
193392003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19340
19341 * config/h8300/h8300.c (const_costs): Remove a warning.
19342 (output_plussi): Likewise.
19343 (compute_plussi_length): Likewise.
19344 (compute_plussi_cc): Likewise.
19345
309c52b5
KH
193462003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19347
19348 * config/h8300/h8300.md (addsi_h8300): Remove the last
19349 alternative.
19350
b30686ec
KH
193512003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19352
19353 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19354
87608693
KG
193552003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19356
19357 * system.h (__NO_STRING_INLINES): Define.
19358
475c8250
JDA
193592003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19360
19361 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19362 is not a scalar int mode.
19363
dbaff908
RS
193642003-01-20 Roger Sayle <roger@eyesopen.com>
19365
19366 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19367 insn's notes following a substitution inside a libcall.
19368
da8a6064
ZW
193692003-01-20 Zack Weinberg <zack@codesourcery.com>
19370
19371 * configure.in: Check for system-provided 'uchar' type.
a12b5bd9 19372 * configure, config.in: Regenerate.
da8a6064
ZW
19373 * cpphash.h: Only typedef 'uchar' if the system doesn't.
19374
a4b1b92a
RH
193752003-01-20 Richard Henderson <rth@redhat.com>
19376
19377 * expr.h (MUST_PASS_IN_STACK): Move implementation...
19378 * calls.c (default_must_pass_in_stack): ... here.
19379
d530b07f
VM
193802003-01-20 Vladimir Makarov <vmakarov@redhat.com>
19381
da8a6064
ZW
19382 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
19383
d530b07f
VM
19384 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
19385
19386 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
19387 Wrap up definition of `insn_alts'.
19388
19389 * genattrtab.c (main): Wrap up `insn_alts'.
19390
351df804
KG
193912003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19392
19393 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
19394 prototyping.
19395 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
da8a6064 19396
351df804
KG
19397 * config.in, configure: Regenerate.
19398
e3289412
NC
193992003-01-20 Nick Clifton <nickc@redhat.com>
19400
19401 * config/arm/arm.md (sibcall_epilogue): Add an
19402 UNSPEC_PROLOGUE_USE to prevent the link register from being
19403 considered dead.
19404
62c9aa5f 194052003-01-20 Jan Hubicka <jh@suse.cz>
5794139a
JH
19406
19407 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
19408
0a18ddf9
AS
194092003-01-20 Andreas Schwab <schwab@suse.de>
19410
19411 * system.h: Don't declare strsignal if the decl test hasn't been
19412 run yet.
19413
d99c740f
KH
194142003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19415
19416 * config/h8300/h8300.c (notice_update_cc): Don't assume that
19417 recog_data.operands[0] is always associated with cc0.
19418
825c5408
DE
194192003-01-19 David Edelsohn <edelsohn@gnu.org>
19420
19421 * collect2.c (ldgetname): Expand declaration to prototype.
19422 * read-rtl.c (atoll): Add prototype.
da3e0142 19423 * system.h (strsignal): Also declare if no declaration found.
825c5408 19424
3bd6d4c4
AO
194252003-01-19 Alexandre Oliva <aoliva@redhat.com>
19426
19427 * config.gcc (mips64*-*-linux*): Added.
19428 * config/mips/linux64.h, config/mips/t-linux64: New file.
19429 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
19430 * config/mips/mips.c (override_options): Use it.
19431 * config/mips/mips.h (TARGET_SWITCHES): Added...
19432 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
19433 * Makefile.in (SPECS): New.
19434 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
19435 * gcc.c (process_command): Move self-spec processing past spec
19436 file loading.
19437 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
19438 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
19439 CRTSTUFF_T_CFLAGS.
19440 (SPECS): Document.
19441 * doc/invoke.texi (-mabi-fake-default): Document.
19442
e9f13564
SC
194432003-01-19 Stephane Carrez <stcarrez@nerim.fr>
19444
19445 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
19446 z_reg, z_reg_qi): Declare static and GTY().
19447 (da_reg): Remove.
19448 (create_regs_rtx): Don't create da_reg.
19449 ("gt-m68hc11.h"): Include for GTY roots.
19450 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
19451 and GTY() here.
19452 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
19453 (m68hc11_soft_tmp_reg): Likewise.
19454 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
19455
32dd366d
KH
194562003-01-18 Kazu Hirata <kazu@cs.umass.edu>
19457
19458 * basic-block.h: Fix comment formatting.
19459 * calls.c: Likewise.
19460 * combine.c: Likewise.
19461 * convert.c: Likewise.
19462 * gcov.c: Likewise.
19463 * haifa-sched.c: Likewise.
19464 * libgcc2.c: Likewise.
19465 * loop.c: Likewise.
19466 * profile.c: Likewise.
19467 * system.h: Likewise.
19468
bc3cb712
RS
194692003-01-18 Roger Sayle <roger@eyesopen.com>
19470
19471 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
19472
25e42e9d
KG
194732003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19474
19475 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
19476
6f9c81f5
DJ
194772003-01-17 Dale Johannesen <dalej@apple.com>
19478
da8a6064 19479 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
6f9c81f5
DJ
19480 (*floatunssidf2_internal): Ditto.
19481
95bd1dd7
KH
194822003-01-17 Kazu Hirata <kazu@cs.umass.edu>
19483
19484 * alias.c: Fix comment typos.
19485 * basic-block.h: Likewise.
19486 * c-common.c: Likewise.
19487 * c-common.h: Likewise.
19488 * c-decl.c: Likewise.
19489 * c-opts.c: Likewise.
19490 * c-pragma.c: Likewise.
19491 * c-pretty-print.h: Likewise.
19492 * cfg.c: Likewise.
19493 * cfganal.c: Likewise.
19494 * cfgbuild.c: Likewise.
19495 * cfgcleanup.c: Likewise.
19496 * cfglayout.c: Likewise.
19497 * cfgrtl.c: Likewise.
19498 * convert.c: Likewise.
19499 * cpphash.h: Likewise.
19500 * cpplex.c: Likewise.
19501 * cpplib.h: Likewise.
19502 * df.h: Likewise.
19503 * diagnostic.c: Likewise.
19504 * diagnostic.h: Likewise.
19505 * dwarf2.h: Likewise.
19506
d5840e09
SS
195072003-01-17 Stan Shebs <shebs@apple.com>
19508
19509 * config/darwin-protos.h: Forward-declare struct cpp_reader.
19510
e607534b
DR
195112003-01-17 Douglas B Rupp <rupp@gnat.com>
19512
19513 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
19514 mistake in last checkin.
19515
fbe5a4a6
KH
195162003-01-17 Kazu Hirata <kazu@cs.umass.edu>
19517
19518 * et-forest.c: Fix comment typos.
19519 * et-forest.h: Likewise.
19520 * except.c: Likewise.
19521 * expr.c: Likewise.
19522 * flags.h: Likewise.
19523 * flow.c: Likewise.
19524 * gcc.c: Likewise.
19525 * gcse.c: Likewise.
19526 * genattrtab.c: Likewise.
19527 * genautomata.c: Likewise.
19528 * gengtype.c: Likewise.
19529 * genrecog.c: Likewise.
19530 * global.c: Likewise.
19531 * gthr-rtems.h: Likewise.
19532
095f9093
KG
195332003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19534
19535 * i386.c (x86_function_profiler): Fix format specifier.
19536
084087e1
RH
195372003-01-17 Richard Henderson <rth@redhat.com>
19538
19539 * gengtype.c (walk_type): Allow paramN_is.
19540
4a13592e
NC
195412003-01-17 Nick Clifton <nickc@redhat.com>
19542
19543 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
19544
01193617
RH
195452003-01-16 Richard Henderson <rth@redhat.com>
19546
19547 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
19548
f030826a
RH
195492003-01-16 Richard Henderson <rth@redhat.com>
19550
19551 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
19552 (alpha_next_sequence_number): Likewise.
19553 (alpha_this_literal_sequence_number): Likewise.
19554 (alpha_this_gpdisp_sequence_number): Likewise.
19555 (struct alpha_funcs, alpha_funcs_num): Likewise.
19556 (struct alpha_links): Fix branch merge error.
19557 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
19558
e1551d47
AO
195592003-01-17 Alexandre Oliva <aoliva@redhat.com>
19560
19561 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
19562 R. Ghazi.
19563
3d042e77
KH
195642003-01-16 Kazu Hirata <kazu@cs.umass.edu>
19565
19566 * ifcvt.c: Fix comment typos.
19567 * lcm.c: Likewise.
19568 * libgcc2.c: Likewise.
19569 * local-alloc.c: Likewise.
19570 * loop.c: Likewise.
19571 * predict.c: Likewise.
19572 * ra-build.c: Likewise.
19573 * ra.c: Likewise.
19574 * ra-colorize.c: Likewise.
19575 * ra.h: Likewise.
19576 * ra-rewrite.c: Likewise.
19577 * regmove.c: Likewise.
19578 * reload.h: Likewise.
19579 * rtlanal.c: Likewise.
19580 * toplev.c: Likewise.
19581 * tree.h: Likewise.
19582 * unwind-dw2-fde-glibc.c: Likewise.
19583 * vmsdbgout.c: Likewise.
19584
c4274b22
RH
195852003-01-16 Richard Henderson <rth@redhat.com>
19586
19587 * dwarf2out.c (struct file_table): Remove.
19588 (FILE_TABLE_INCREMENT): Remove.
19589 (file_table): Make a varray; mark for GC. Update all users.
19590 (file_table_last_lookup_index): Extract from struct file_table.
19591 (output_file_names): Fix unsigned compare warnings.
19592 (add_name_attribute): Remove inline marker.
19593 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
19594 (lookup_filename): Don't manage size of file_table.
19595 (init_file_table): Allocate file_table with GC.
19596 (dwarf2out_init): Don't record main_input_filename here.
19597 (dwarf2out_finish): Do it here instead.
19598
19162d0e
BK
195992003-01-16 Bruce Korb <bkorb@gnu.org>
19600
19601 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
19602
f1e2239f
KK
196032003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
19604
da8a6064
ZW
19605 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
19606 instead of rotldi3_mextr.
f1e2239f 19607
cda1f765
VM
196082003-01-16 Vladimir Makarov <vmakarov@redhat.com>
19609
19610 * haifa-sched.c (move_insn): Restore moving all schedule group.
19611 (set_priorities): Restore taking SCHED_GROUP_P into account.
19612
19613 * sched-deps.c (add_dependence): Restore processing the last group
19614 insn.
19615 (remove_dependence, group_leader): Restore the functions.
19616 (set_sched_group_p): Restore adding dependencies from previous insn
19617 in the group.
19618 (compute_forward_dependences): Restore usage of group_leader.
19619
19620 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
19621 account.
19622
19623 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
19624 account.
19625 (can_schedule_ready_p): Ditto.
19626 (add_branch_dependences): Restore skipping over the group insns.
da8a6064 19627
200097cc
SC
196282003-01-16 Stephane Carrez <stcarrez@nerim.fr>
19629
19630 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
19631 68HC12 pre/post inc/dec side effects.
19632
f411c739
SC
196332003-01-16 Stephane Carrez <stcarrez@nerim.fr>
19634
19635 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
19636
62c9aa5f 196372003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
08c43ea7
R
19638
19639 * sh.md (mshflo_w_x): Fix description of operation.
19640
07488f32
ZW
196412003-01-16 Zack Weinberg <zack@codesourcery.com>
19642
19643 * config/rs6000/rs6000.h: Mention Altivec registers in
19644 commentary. Fix typo.
19645
27dc0551
DE
196462003-01-16 David Edelsohn <edelsohn@gnu.org>
19647
19648 * config/rs6000/rs6000.md (movti_string): Remove clobber.
19649 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
19650 generate PARALLEL with clobber for TARGET_POWER.
19651
0334ef47
KG
196522003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19653
19654 * ra-colorize.c (colorize_one_web): Initialize variable.
19655 * regmove.c (fixup_match_1): Likewise.
19656 * reload1.c (reload_as_needed): Likewise.
19657 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
19658
16f2b86a
ZD
196592003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19660
19661 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
19662
fc555370
KG
196632003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19664
93d8c755
KG
19665 * dbxout.c (lastfile, cwd): Fix `unused' warning.
19666 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
19667 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
19668 is_main_source, file_table, decl_die_table_in_use,
19669 abbrev_die_table_in_use, line_info_table_in_use,
19670 separate_line_info_table_in_use, pubname_table_in_use,
19671 arange_table_in_use, ranges_table_in_use,
19672 current_function_has_inlines): Likewise.
19673 * flow.c (life_analysis): Likewise.
19674 * genemit.c (gen_insn): Likewise.
19675 * protoize.c (cplus_suffix): Likewise.
19676
0c2ca901
KG
19677 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
19678 * arm.h (ROUND_UP_WORD): Likewise.
19679
fc555370
KG
19680 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
19681 warning.
19682 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
19683 init_emit_once): Likewise.
19684 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
19685 Likewise.
19686 * function.c (assign_stack_temp_for_type): Likewise.
19687 * loop.c (loop_invariant_p): Likewise.
19688 * recog.c (push_operand): Likewise.
19689 * regclass.c (init_reg_sets_1): Likewise.
19690 * reload.c (update_auto_inc_notes): Likewise.
19691 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
19692 * stmt.c (expand_asm_operands): Likewise.
19693 * stor-layout.c (start_record_layout): Likewise.
19694
64510a4f
HB
196952003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
19696
07488f32 19697 * config/c4x/c4x.md (epilogue): Correct last patch.
64510a4f 19698
77480b0b
RH
196992003-01-15 Richard Henderson <rth@redhat.com>
19700
19701 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
19702 also check that GP is being used.
19703 (alpha_find_lo_sum_using_gp): New.
19704 (alpha_does_function_need_gp): Use get_attr_usegp.
19705 * config/alpha/alpha-protos.h: Update.
19706 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
19707 as needed.
19708
a0134312
RS
197092003-01-15 Roger Sayle <roger@eyesopen.com>
19710
19711 * gcse.c (one_cprop_pass): Change function arguments to take both
19712 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
19713 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
19714 (bypass_jumps): New function to perform separate jump bypassing pass.
19715 * rtl.h (bypass_jumps): Add function prototype.
19716 * timevar.def (TV_BYPASS): New timing variable.
19717 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
19718 (dump_file): New entry for the bypass RTL dump file.
19719 (rest_of_compilation): Insert new jump bypassing optimization
19720 pass after loop.
19721 * doc/passes.texi: Document new pass.
19722
4af6a063
JDA
197232003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19724
19725 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
19726 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
19727 * pa.h (TARGET_SOM_SDEF): Define.
19728 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
19729
51e13b71
SC
197302003-01-16 Stephane Carrez <stcarrez@nerim.fr>
19731
07488f32 19732 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
51e13b71
SC
19733 allocate 4-bytes of locals on 68HC11.
19734 (expand_epilogue): Likewise.
19735 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
19736
f077f169
SC
197372003-01-15 Stephane Carrez <stcarrez@nerim.fr>
19738
19739 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
19740 and -mshort-double to the assembler to specify the ABI.
19741 (LINK_SPEC): Likewise.
19742 (CPP_SPEC): Pass HCS12 specific define.
19743 (MASK_M68S12): New define.
19744 (TARGET_M68S12): Likewise.
19745 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
19746 (TARGET_VERSION): Update.
19747 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
19748 (LINK_SPEC): Update.
19749 (ASM_SPEC): Update.
19750 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
19751 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
19752
c0f684dc
SC
197532003-01-15 Stephane Carrez <stcarrez@nerim.fr>
19754
19755 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
19756 the return code.
19757
6982ae15
JZ
197582003-01-15 Josef Zlomek <zlomekj@suse.cz>
19759
19760 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
19761 flag before setting it.
19762
8cadeff1
RS
197632003-01-15 Roger Sayle <roger@eyesopen.com>
19764
19765 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
19766 when loop condition is known true, i.e. "while (1) { ... }".
19767 (genrtl_for_stmt): Similarly for "for" statements.
19768
03cd8aba
RS
197692003-01-15 Roger Sayle <roger@eyesopen.com>
19770
19771 * real.c (real_sqrt): Return a bool result indicating whether
19772 a floating point exception or trap should be raised.
19773 * real.h (real_sqrt): Update function prototype.
19774 * builtins.c (fold_builtin): Only fold non-trapping square
19775 roots unless we're ignoring errno and trapping math.
19776
4da78214
JDA
197772003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
19778
19779 * expr.h (emit_conditional_add): Add PARAMS to declaration.
19780 * gengtype-lex.l (malloc, realloc): Move defines after include of
19781 system.h. Remove duplicate include of system.h.
19782
9ee0a442
RS
197832003-01-15 Roger Sayle <roger@eyesopen.com>
19784
19785 PR middle-end/9009
19786 * optabs.c (expand_unop): When manipulating the FP sign bit
19787 using integer operations, account for targets with different
19788 integer and FP word orders.
19789 (expand_abs): Likewise.
19790
e3981aab
DE
197912003-01-15 David Edelsohn <edelsohn@gnu.org>
19792
19793 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
19794 file extension in section name.
19795
89c4b810
RE
197962003-01-15 Richard Earnshaw <rearnsha@arm.com>
19797
19798 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
19799 constant offset.
19800
3cd45774
RE
198012003-01-15 Richard Earnshaw <rearnsha@arm.com>
19802
19803 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
19804 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
19805 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
19806 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
19807
62c9aa5f 198082003-01-15 Jan Hubicka <jh@suse.cz>
b1a6f8db
JH
19809
19810 PR f/9258
07488f32 19811 * global.c (struct allocno): Add no_stack_reg.
b1a6f8db
JH
19812 (global_conflicts): Set no_stack_reg.
19813 (find_reg): Use it.
19814
19815 * convert.c (convert_to_real): Fold - and abs only when profitable.
19816 * fold-const.c (fold): Fold truncates in - and abs.
19817
d18c7e59
JZ
198182003-01-15 Josef Zlomek <zlomekj@suse.cz>
19819
19820 Segher Boessenkool <segher@koffie.nl>
fbe3b30b
SB
19821
19822 * predict.c (real_inv_br_prob_base): New variable.
19823 (propagate_freq): Use multiply by reciprocal instead of
19824 division. Don't divide by 1.0 at all.
19825 (estimate_bb_frequencies): Similar.
19826
027faee7
AO
198272003-01-15 Alexandre Oliva <aoliva@redhat.com>
19828
19829 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
19830 * configure: Rebuilt.
19831
077dab3b 198322003-01-15 Hartmut Penner <hpenner@de.ibm.com>
3c0121e4 19833
077dab3b
HP
19834 * config/s390/s390.c (s390_safe_attr_type): New function.
19835 (s390_use_dfa_pipeline_interface): New function, return true for z900.
19836 (s390_issue_rate): New function.
19837 (s390_agen_dep_p): New function.
19838 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
19839 (s390_adjust_cost): Return 'cost' if new DFA is used.
19840 (s390_adjust_priority): Delete function.
19841 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
19842 * config/s390/s390.md (atype attribute): Attribute 'atype' default
19843 determined by 'op_type'.
19844 (type attribute): Added more type attributes.
19845 * config/s390/2064.md: New DFA description for z900 pipeline.
07488f32 19846
077dab3b 198472003-01-15 Alexandre Oliva <aoliva@redhat.com>
2b28d405 19848
acfa9d9f
AO
19849 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
19850 forced to memory. Fixes PR bootstrap/9036.
19851
3c0121e4
AO
19852 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
19853 to set $gp before the call.
19854
553eb139
RH
198552003-01-14 Richard Henderson <rth@redhat.com>
19856
19857 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
19858 for force_const_mem.
19859
dd1b7476
KG
198602003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19861
19862 * genattr.c (main): Rearrange output to avoid prototype warning.
19863 * genautomata.c (transform_3): Fix ambiguous-else warning.
19864 * local-alloc.c (requires_inout): Add parentheses around
19865 assignment used as truth-value.
19866 * timevar.c: Move system includes above local includes. Include
19867 toplev.h
19868 * Makefile.in (timevar.o): Depend on toplev.h.
19869
6028880a
DC
198702003-01-14 Denis Chertykov <denisc@overta.ru>
19871
19872 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
19873 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
19874
19875 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
07488f32 19876 attributes.
6028880a
DC
19877 (TARGET_ATTRIBUTE_TABLE): New macro.
19878 (valid_machine_type_attribute): Remove.
19879 (valid_machine_decl_attribute): Remove.
19880 (ip2k_handle_progmem_attribute): New function.
19881 (ip2k_handle_fndecl_attribute): New function.
19882
4a2953e4 198832003-01-10 Andrew Haley <aph@redhat.com>
a686ea5b
AH
19884
19885 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
19886 registers to be in correct order. Add rip.
19887
4d77fda2
KH
198882003-01-14 Kazu Hirata <kazu@cs.umass.edu>
19889
19890 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
19891 (*iorsi3_and_lshiftrt_9_sb): Likewise.
19892
62c9aa5f 198932003-01-14 Jan Hubicka <jh@suse.cz>
77f9af81
JH
19894
19895 * convert.c (strip_float_extensions): Look for narrowest type handling
19896 FP constants.
19897
19898 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
19899 float1 CMP float2.
19900 * convert.c (strip_float_extensions): Make global.
19901 * tree.h (strip_float_extensions): Declare.
19902
fd371a93
GDR
199032003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
19904
19905 * timevar.def: define TV_NAME_LOOKUP.
19906 * timevar.c (timevar_pop): Be verbose when aborting.
19907
dcd1c2b8
AS
199082003-01-13 Andreas Schwab <schwab@suse.de>
19909
19910 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
19911 $(parsedir), just move the temporary file at the end.
19912 ($(parsedir)/gengtype-yacc.c): Likewise.
19913
eb4b5f93
AO
199142003-01-13 Alexandre Oliva <aoliva@redhat.com>
19915
19916 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
19917 ${ac_tool_prefix} to ADAC or CC. Protect them from word
19918 splitting.
19919 * configure: Rebuilt.
19920
f7835768
KG
199212003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19922
19923 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
19924 internal_mcount): Don't use PARAMS.
19925 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
19926 ISO C style.
19927 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
19928
38a3dbbb
AS
199292003-01-13 Andreas Schwab <schwab@suse.de>
19930
19931 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
19932 directive.
19933
98dc53e3
KH
199342003-01-13 Kazu Hirata <kazu@cs.umass.edu>
19935
19936 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
19937 (*iorsi3_and_lshiftrt_n_sb): Likewise.
19938
e8f2b18d
MM
199392003-01-12 Mark Mitchell <mark@codesourcery.com>
19940
19941 PR c++/9264
19942 * c-lex.c (c_lex): Set the token value to error_mark_node for
19943 invalid numeric constants.
19944
70f8b89f
KG
199452003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19946
19947 * c-pch.c (asm_file_startpos): Change to `long'.
19948 (pch_init): Use ftell, not ftello.
19949 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
19950 Use `long' instead of `off_t'.
19951 (c_common_read_pch): Likewise.
19952 * ggc-common.c (gt_pch_save): Use long/ftell instead of
19953 off_t/ftello.
19954
8e37cba8
AM
199552003-01-12 Alan Modra <amodra@bigpond.net.au>
19956
19957 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
19958
04f08c8e
RE
199592003-01-11 Richard Earnshaw (rearnsha@arm.com)
19960
19961 * arm-protos.h (struct cpp_reader): Add declaration.
19962
62c9aa5f 199632003-01-11 Jan Hubicka <jh@suse.cz>
a5cf80f0
JH
19964
19965 PR target/9068
19966 * i386.c (output_fp_compare): Fix typo.
19967
bbfb86aa
DE
199682003-01-10 David Edelsohn <edelsohn@gnu.org>
19969
19970 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
19971
223b87b6
GK
199722003-01-10 Geoffrey Keating <geoffk@apple.com>
19973
3859c32a
GK
19974 * Makefile.in (parsedir): New variable.
19975 (docobjdir): New variable.
07488f32 19976 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
3859c32a
GK
19977 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
19978 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
19979 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
07488f32 19980 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
3859c32a
GK
19981 Use docobjdir.
19982 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
19983 objc.maintainer-clean): Use parsedir.
19984
63af3bd1
GK
19985 * varasm.c (struct constant_descriptor_rtx): Remove unused
19986 `label' field.
19987
223b87b6
GK
19988 * toplev.c (documented_lang_options): Document -Winvalid-pch.
19989
fbadafbc
RH
199902003-01-10 Richard Henderson <rth@redhat.com>
19991
19992 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
19993 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
19994
ab5ecb01
RH
199952003-01-10 Richard Henderson <rth@redhat.com>
19996
19997 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
19998 not INTEGRAL_MODE_P when widening extensions.
19999
7f24e7c5
RH
200002003-01-10 Richard Henderson <rth@redhat.com>
20001
20002 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20003
6dd05d08
GK
200042003-01-10 Geoffrey Keating <geoffk@apple.com>
20005
19cc0dd4
GK
20006 * ggc-page.c (ggc_collect): Avoid overflow computing
20007 min_expand.
20008
6dd05d08
GK
20009 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20010 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
20011 Remove calls.
20012 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20013
62c9aa5f 200142003-01-10 Jan Hubicka <jh@suse.cz>
5f1355ef
JH
20015
20016 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20017 with weird operands.
20018
0cdca92b 200192003-01-10 Dale Johannesen <dalej@apple.com>
6dd05d08
GK
20020
20021 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
20022 parameters. Call check_sibcall_argument_overlap if indicated.
20023 (check_sibcall_argument_overlap): Add mark_stored_args_map
20024 parameter. Don't mark parameter area as clobbered if not set.
20025 (expand_call): Adjust calls to above.
20026
200272003-01-10 Kelley Cook <kelleycook@comcast.net>
6cd656d0
KC
20028
20029 * configure.in (linker read-only and read-write section mixing):
20030 Squelch some assembler warnings.
20031 * configure: Likewise.
20032
be2c2a4b
HP
200332003-01-10 Hartmut Penner <hpenner@de.ibm.com>
20034
21ff35fb 20035 * doc/invoke.texi: Document -mtune, delete -mcpu
be2c2a4b
HP
20036 option for S/390 and zSeries.
20037 * config/s390/s390.c (s390_tune_string) New variable.
20038 (s390_cpu_string) Delete variable.
20039 (override_options): Use s390_tune_string instead of
20040 s390_cpu_string.
20041 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20042
1f450138
KH
200432003-01-10 Kazu Hirata <kazu@cs.umass.edu>
20044
20045 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20046
d330ce15
JZ
200472003-01-10 Josef Zlomek <zlomekj@suse.cz>
20048
20049 * jump.c (next_nonnote_insn_in_loop): New function.
20050 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20051 next_nonnote_insn.
20052 (duplicate_loop_exit_test). Likewise.
20053
17211ab5
GK
200542003-01-09 Geoffrey Keating <geoffk@apple.com>
20055
20056 Merge from pch-branch:
20057
20058 2003-01-06 Geoffrey Keating <geoffk@apple.com>
20059
20060 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20061 load.
20062
20063 2002-12-24 Geoffrey Keating <geoffk@apple.com>
20064
20065 * cpplib.c (count_registered_pragmas): New function.
20066 (save_registered_pragmas): New function.
20067 (_cpp_save_pragma_names): New function.
20068 (restore_registered_pragmas): New function.
20069 (_cpp_restore_pragma_names): New function.
20070 * cpphash.h (_cpp_save_pragma_names): Prototype.
20071 (_cpp_restore_pragma_names): Likewise.
20072 * cpppch.c (struct save_macro_item): Split from save_macro_data.
20073 (struct save_macro_data): New field 'saved_pragmas'.
20074 (save_macros): Update for changes to struct save_macro_data.
20075 (cpp_prepare_state): Call _cpp_save_pragma_names, update
20076 for changes to struct save_macro_data.
20077 (cpp_read_state): Call _cpp_restore_pragma_names, update
20078 for changes to struct save_macro_data.
20079
20080 * cpppch.c (cpp_read_state): Restore the hashtable references
20081 in the cpp_reader.
07488f32 20082
17211ab5
GK
20083 * tree.h (built_in_decls): Mark for PCH.
20084
20085 * dbxout.c (lastfile): Don't mark for PCH.
20086
20087 * ggc.h: Document PCH calls into memory managers.
20088
20089 2002-12-18 Geoffrey Keating <geoffk@apple.com>
20090
20091 * doc/invoke.texi (Precompiled Headers): Document the
20092 directory form of PCH.
20093 * cppfiles.c (validate_pch): New function.
20094 (open_file_pch): Search suitably-named directories for PCH files.
20095
20096 2002-12-14 Geoffrey Keating <geoffk@apple.com>
20097
20098 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20099 reorder options.
20100 (Type Information): Mention that the information is also
20101 used to implement PCH.
20102 * doc/passes.texi (Passes): Improve documentation of
20103 language-specific files.
20104
20105 2002-12-11 Geoffrey Keating <geoffk@apple.com>
20106
20107 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20108 (struct walk_type_data): Add reorder_fn field.
20109 (walk_type): Process 'reorder' option.
20110 (write_types_process_field): Reorder parameters to gt_pch_note_object,
20111 call reorder_note_routine.
20112 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20113 (ggc_wtd): Update for change to struct write_types_data.
20114 (pch_wtd): Likewise.
20115 * ggc.h (gt_pch_note_object): Reorder parameters.
20116 (gt_handle_reorder): New definition.
20117 (gt_pch_note_reorder): New prototype.
20118 * ggc-common.c (struct ptr_data): Add reorder_fn.
20119 (gt_pch_note_object): Reorder parameters.
20120 (gt_pch_note_reorder): New.
20121 (gt_pch_save): Call reorder_fn.
20122 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20123
20124 * dbxout.c (cwd): Don't mark for PCH.
20125
20126 2002-12-09 Geoffrey Keating <geoffk@apple.com>
20127
20128 * gengtype.c (finish_root_table): Fix some warnings.
20129 (write_root): Handle TYPE_STRING.
20130 * ggc.h (gt_ggc_m_S): Add prototype.
20131 * stringpool.c (gt_ggc_m_S): New function.
20132
20133 2002-11-30 Geoffrey Keating <geoffk@apple.com>
20134
20135 * dwarf2out.c (dw2_string_counter): New.
20136 (AT_string_form): Use it.
20137 (same_dw_val_p): Update for removal of hashtable.h hash tables.
20138
20139 2002-11-22 Geoffrey Keating <geoffk@apple.com>
20140
20141 * dbxout.c: Include gt-dbxout.h.
20142 (lastfile): Mark for PCH/GGC.
20143 (cwd): Likewise.
20144 (struct typeinfo): Likewise.
20145 (typevec): Likewise.
20146 (typevec_len): Likewise.
20147 (next_type_number): Likewise.
20148 (struct dbx_file): Likewise.
20149 (current_file): Likewise.
20150 (next_file_number): Likewise.
20151 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20152 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20153 (dbxout_end_source_file): Don't free struct dbx_file.
20154 (dbxout_type): Use GGC to allocate typevec.
20155 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20156 (GTFILES): Add dbxout.c.
20157 (gt-dbxout.h): New rule.
07488f32 20158
17211ab5
GK
20159 * Makefile.in (c-pch.o): Add debug.h as dependency.
20160 * c-pch.c: Include debug.h.
20161 (pch_init): Call start_source_file to keep nesting right.
20162 (c_common_read_pch): Add orig_name parameter. Call
20163 start_source_file debug hook. Call end_source_file debug hook.
20164 * c-common.h (c_common_read_pch): Update prototype.
20165 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20166 callback.
20167 * cppfiles.c (struct include_file): Add new field `header_name'.
20168 (find_or_create_entry): Default it to `name'.
20169 (open_file_pch): Set it to the original header file searched for.
20170 (stack_include_file): Don't stack an empty buffer, just handle
20171 PCH files immediately. Pass header_name field to read_pch callback.
20172
20173 2002-11-19 Geoffrey Keating <geoffk@apple.com>
20174
20175 * function.c (funcdef_no): Mark to be saved in a PCH.
20176
20177 2002-11-15 Geoffrey Keating <geoffk@apple.com>
20178
20179 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20180
20181 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20182
20183 2002-11-14 Geoffrey Keating <geoffk@apple.com>
20184
20185 * optabs.h (code_to_optab): Add GTY marker.
20186
20187 2002-11-13 Geoffrey Keating <geoffk@apple.com>
20188
20189 * Makefile.in (GTFILES): Add cpplib.h.
20190 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20191 * c-decl.c (build_compound_literal): Don't use var_labelno.
20192 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20193 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20194 * varasm.c (const_labelno): Use gengtype to mark.
20195 (var_labelno): Likewise.
20196 (in_section): Likewise.
20197 (in_named_name): Likewise.
20198 (struct in_named_entry): Likewise.
20199 (in_named_htab): Likewise.
20200 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20201 (init_varasm_once): Use GGC to allocate in_named_htab.
20202 * config/darwin.c (current_pic_label_num): Mark for PCH.
20203
20204 2002-11-11 Geoffrey Keating <geoffk@apple.com>
20205
20206 * ggc-simple.c (init_ggc_pch): New stub procedure.
20207 (ggc_pch_count_object): Likewise.
20208 (ggc_pch_total_size): Likewise.
20209 (ggc_pch_this_base): Likewise.
20210 (ggc_pch_alloc_object): Likewise.
20211 (ggc_pch_prepare_write): Likewise.
20212 (ggc_pch_write_object): Likewise
20213 (ggc_pch_finish): Likewise.
20214 (ggc_pch_read): Likewise.
20215
20216 2002-11-08 Geoffrey Keating <geoffk@apple.com>
20217
20218 * c-pch.c (c_common_write_pch): Write the macro definitions after
20219 the GCed data.
20220 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
20221 definitions after the GCed data.
20222 * cpplib.c (save_macros): New.
20223 (reset_ht): New.
20224 (cpp_write_pch_deps): Split out of cpp_write_pch.
20225 (cpp_write_pch_state): Split out of cpp_write_pch.
20226 (cpp_write_pch): Delete.
20227 (struct save_macro_data): Delete.
20228 (cpp_prepare_state): New.
20229 (cpp_read_state): Erase and restore initial macro definitions.
20230 * cpplib.h (struct save_macro_data): Forward-declare.
20231 (cpp_write_pch_deps): Prototype.
20232 (cpp_write_pch_state): Prototype.
20233 (cpp_write_pch): Delete prototype.
20234 (cpp_prepare_state): Prototype.
20235 (cpp_read_state): Add fourth argument.
20236
20237 2002-11-04 Geoffrey Keating <geoffk@apple.com>
20238
20239 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20240 (write_array): Remove warning.
20241
20242 * gengtype.c (contains_scalar_p): New.
20243 (finish_root_table): Add the table to all languages, even if it's
20244 empty.
20245 (write_roots): Output gt_pch_scalar_rtab.
20246 * ggc-common.c (gt_pch_save): Write out scalars.
20247 (gt_pch_restore): Read scalars back.
20248
20249 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20250 (struct page_entry): Delete pch_page field.
20251 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20252 (clear_marks): Likewise.
20253 (sweep_pages): Likewise.
20254 (poison_pages): Likewise.
20255 (ggc_print_statistics): Likewise.
20256 (ggc_pch_read): Don't free objects read from a PCH.
20257 Properly set up in_use_p and page_tails.
20258
20259 2002-10-25 Geoffrey Keating <geoffk@apple.com>
20260
20261 * gengtype.c (struct write_types_data): New.
20262 (struct walk_type_data): Make `cookie' const; add extra
20263 prev_val item; add `orig_s' field.
20264 (walk_type): Update prev_val[3].
20265 (write_types_process_field): New.
20266 (write_func_for_structure): Take write_types_data structure.
20267 (write_types): New.
20268 (ggc_wtd): New.
20269 (pch_wtd): New.
20270 (write_types_local_process_field): New.
20271 (gc_mark_process_field): Delete.
20272 (write_local_func_for_structure): New.
20273 (gc_mark_func_name): Delete.
20274 (write_gc_types): Delete.
20275 (write_local): New.
20276 (finish_root_table): Don't include 'ggc_' in PFX.
20277 (write_root): Rename from write_root. Fill pchw field of structures.
20278 (write_array): New.
20279 (write_roots): Rename from write_gc_roots. Split out to write_array.
20280 Update to changes to other routines. Write gt_pch_cache_rtab table.
20281 (main): Write PCH walking routines.
20282 * ggc-common.c: Include toplev.h, sys/mman.h.
20283 (ggc_mark_roots): For cache hashtables, also mark the hash table
20284 and the array of entries.
20285 (saving_htab): New.
20286 (struct ptr_data): New.
20287 (POINTER_HASH): New.
20288 (gt_pch_note_object): New.
20289 (saving_htab_hash): New.
20290 (saving_htab_eq): New.
20291 (struct traversal_state): New.
20292 (call_count): New.
20293 (call_alloc): New.
20294 (compare_ptr_data): New.
20295 (relocate_ptrs): New.
20296 (write_pch_globals): New.
20297 (struct mmap_info): New.
20298 (gt_pch_save): New.
20299 (gt_pch_restore): New.
20300 * ggc-page.c (ROUND_UP_VALUE): New.
20301 (ROUND_UP): New.
20302 (struct page_entry): Add field `pch_page'.
20303 (init_ggc): Use ROUND_UP.
20304 (struct ggc_pch_data): Declare.
20305 (init_ggc_pch): New.
20306 (ggc_pch_count_object): New.
20307 (ggc_pch_total_size): New.
20308 (ggc_pch_this_base): New.
20309 (ggc_pch_alloc_object): New.
20310 (ggc_pch_prepare_write): New.
20311 (ggc_pch_write_object): New.
20312 (ggc_pch_finish): New.
20313 (ggc_pch_read): New.
20314 * ggc.h (gt_pointer_operator): New.
20315 (gt_note_pointers): New.
20316 (gt_pch_note_object): New prototype.
20317 (gt_pointer_walker): New.
20318 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20319 (LAST_GGC_ROOT_TAB): Update.
20320 (gt_pch_cache_rtab): Declare.
20321 (gt_pch_scalar_rtab): Declare.
20322 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20323 (LAST_GGC_CACHE_TAB): Update.
20324 (gt_pch_save_stringpool): Declare.
20325 (gt_pch_restore_stringpool): Declare.
20326 (gt_pch_p_S): Declare.
20327 (gt_pch_n_S): Declare.
20328 (struct ggc_pch_data): Forward-declare.
20329 (init_ggc_pch): Declare.
20330 (ggc_pch_count_object): Declare.
20331 (ggc_pch_total_size): Declare.
20332 (ggc_pch_this_base): Declare.
20333 (ggc_pch_alloc_object): Declare.
20334 (ggc_pch_prepare_write): Declare.
20335 (ggc_pch_write_object): Declare.
20336 (ggc_pch_finish): Declare.
20337 (ggc_pch_read): Declare.
20338 (gt_pch_save): Declare.
20339 (gt_pch_restore): Declare.
20340 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20341 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20342 const_double_htab, mem_attrs_htab using GGC.
20343 * c-pch.c: Include ggc.h.
20344 (pch_init): Allow reading PCH file back.
20345 (c_common_write_pch): Call gt_pch_save.
20346 (c_common_read_pch): Call gt_pch_restore.
20347 * c-parse.in (init_reswords): Delete now-untrue comment.
20348 Allocate ridpointers using GGC.
20349 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20350 calling expand_deferred_fns.
20351 * c-common.h (ridpointers): Mark for GTY machinery.
20352 * Makefile.in (stringpool.o): Update dependencies.
20353 (c-pch.o): Update dependencies.
20354 (ggc-common.o): Update dependencies.
20355 * stringpool.c: Include gt-stringpool.h.
20356 (gt_pch_p_S): New.
20357 (gt_pch_n_S): New.
20358 (struct string_pool_data): New.
20359 (spd): New.
20360 (gt_pch_save_stringpool): New.
20361 (gt_pch_restore_stringpool): New.
20362 * tree.c (init_ttree): Make type_hash_table allocated using GC.
07488f32 20363
17211ab5
GK
20364 2002-10-04 Geoffrey Keating <geoffk@apple.com>
20365
20366 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20367 (output_mangled_typename): Don't pass size_t to printf.
20368
20369 * tree.h (union tree_type_symtab): Add tag to `address' field.
20370 (union tree_decl_u2): Add tag to 'i' field.
20371 * varasm.c (union rtx_const_un): Add tags to all fields.
20372 * gengtype.c (struct walk_type_data): New.
20373 (output_escaped_param): Take struct walk_type_data parameter.
20374 (write_gc_structure_fields): Delete.
20375 (walk_type): New.
20376 (write_gc_marker_routine_for_structure): Delete.
20377 (write_func_for_structure): New.
20378 (gc_mark_process_field): New.
20379 (gc_mark_func_name): New.
20380 (gc_counter): Delete.
20381 (write_gc_types): Use write_func_for_structure.
20382 (write_gc_roots): Use walk_type.
20383
20384 2002-10-02 Geoffrey Keating <geoffk@apple.com>
20385
20386 * ggc-common.c (ggc_mark_roots): Delete 'x'.
20387 (ggc_splay_dont_free): Fix warning about unused 'x'.
20388 (ggc_print_common_statistics): Remove warnings.
20389
20390 2002-10-01 Mike Stump <mrs@apple.com>
20391
07488f32
ZW
20392 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
20393 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17211ab5
GK
20394
20395 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
20396 Catherine Moore <clm@redhat.com>
20397
20398 * Makefile (c-pch.o): Update dependencies.
20399 (LIBCPP_OBJS): Add cpppch.o.
20400 (cpppch.o): New.
20401 * c-common.c (c_common_init): Don't call pch_init here.
20402 * c-common.h (c_common_read_pch): Update prototype.
20403 * c-lex.c (c_common_parse_file): Call pch_init here.
20404 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
20405 (c_common_decode_option): Handle them.
20406 * c-pch.c: Include c-pragma.h.
20407 (save_asm_offset): Delete.
20408 (pch_init): Move contents of save_asm_offset into here, call
20409 cpp_save_state.
20410 (c_common_write_pch): Call cpp_write_pch.
20411 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
20412 cpp_valid_state.
20413 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
07488f32 20414 * cppfiles.c (stack_include_file): Update for change to
17211ab5
GK
20415 parameters of cb.read_pch.
20416 * cpphash.h (struct cpp_reader): Add `savedstate' field.
20417 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
20418 `restore_pch_deps' fields.
20419 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
20420 (cpp_save_state): Prototype.
20421 (cpp_write_pch): Prototype.
20422 (cpp_valid_state): Prototype.
20423 (cpp_read_state): Prototype.
20424 * cpppch.c: New file.
20425 * flags.h (version_flag): Remove prototype.
20426 * mkdeps.c (deps_save): New.
20427 (deps_restore): New.
20428 * mkdeps.h (deps_save): Prototype.
20429 (deps_restore): Prototype.
20430 * toplev.c (late_init_hook): Delete.
20431 (version_flag): Make static again.
20432 (compile_file): Don't call late_init_hook.
20433 * toplev.h (late_init_hook): Delete.
20434 * doc/cppopts.texi: Document -fpch-deps.
20435 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
20436
20437 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
20438
20439 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
20440 callers.
20441 (c_common_valid_pch): Rename from c_valid_pch, change callers.
20442 (c_common_read_pch): Rename from c_read_pch, change callers.
20443
20444 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
20445 a space between it and its argument.
20446
20447 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
20448
20449 * c-pch.c: New file.
20450 * toplev.h (late_init_hook): Declare.
20451 * toplev.c (late_init_hook): Define.
20452 (version_flag): Make globally visible.
20453 (compile_file): Call late_init_hook.
20454 (init_asm_output): Make output file seekable.
20455 * gcc.c (default_compilers): Update c-header rule.
20456 * flags.h (version_flag): Declare.
20457 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
20458 fields.
20459 * cppfiles.c (struct include_file): Add 'pch' field.
20460 (INCLUDE_PCH_P): New.
20461 (open_file_pch): New.
20462 (stack_include_file): Handle PCH files specially.
20463 (find_include_file): Call open_file_pch instead of open_file.
20464 (_cpp_read_file): Explain why open_file is used instead of
20465 open_file_pch.
20466 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
20467 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
20468 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
20469 in cpplib callbacks.
20470 * c-common.c (pch_file): Correct comment.
20471 (allow_pch): Define.
20472 (c_common_init): Call pch_init.
20473 * c-common.h (allow_pch): Declare.
20474 (pch_init): Declare.
20475 (c_valid_pch): Declare.
20476 (c_read_pch): Declare.
20477 (c_write_pch): Declare.
20478 * Makefile.in (c-pch.o): New.
20479 (C_AND_OBJC_OBJS): Add c-pch.o.
20480 * doc/invoke.texi (Precompiled Headers): Add index entries,
20481 complete truncated paragraph.
20482
20483 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
20484
20485 * c-common.c: (pch_file): Define.
20486 * c-common.h (pch_file): Declare.
20487 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
20488 (missing_arg): Require --output-pch= to have an argument.
20489 (c_common_decode_option): Handle --output-pch=.
20490 * gcc.c: Document new %V.
20491 (default_compilers): Handle compiling C header files.
20492 (do_spec_1): Implement %V.
20493 (main): Handle "gcc foo.h" without trying to run linker.
20494 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
20495 (Overall Options): Document what the driver does with header files,
20496 document new -x option possibilities.
20497 (Invoking G++): More documentation for PCH.
20498 (Precompiled Headers): New.
20499
20500 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
20501
20502 * ggc.h: Don't include varray.h. Rearrange functions to be more
20503 organized.
20504 (ggc_add_root): Delete.
20505 (ggc_mark_rtx): Delete.
20506 (ggc_mark_tree): Delete.
20507 (struct ggc_statistics): Remove contents.
20508 * ggc-common.c: Remove unneeded includes.
20509 (struct ggc_root): Delete.
20510 (roots): Delete.
20511 (ggc_add_root): Delete.
20512 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
20513 (ggc_print_common_statistics): Remove most of the contents.
20514 * Makefile.in (GGC_H): No longer uses varray.h.
20515 (ggc-common.o): Update dependencies.
20516 (c-parse.o): Add varray.h to dependencies.
20517 (c-common.o): Add varray.h.
20518 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
20519 (mark_ident_hash): Rename to ggc_mark_stringpool.
20520 (init_stringpool): Don't use ggc_add_root.
20521 * c-parse.in: Include varray.h.
20522 * c-common.c: Include varray.h.
20523 * objc/Make-lang.in (objc-act.o): Add varray.h.
20524 * objc/objc-act.c: Include varray.h.
20525
20526 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
20527
20528 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
20529 (dw_cfi_oprnd1_desc): Likewise.
20530
20531 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
20532
20533 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
20534 move out of ifdef.
20535 (alpha_links): Use gengtype to mark; move out of ifdef.
20536 (mark_alpha_links_node): Delete.
20537 (mark_alpha_links): Delete.
20538 (alpha_need_linkage): Use GGC to allocate splay tree, struct
20539 alpha_links, strings. Don't use ggc_add_root.
20540 * ggc-common.c (ggc_splay_alloc): New.
20541 (ggc_splay_dont_free): New.
20542 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
20543 (ggc_mark_tree): Likewise.
20544 (splay_tree_new_ggc): New.
20545 (ggc_splay_alloc): Declare.
20546 (ggc_splay_dont_free): Declare.
20547 * dwarf2asm.c: Include gt-dwarf2asm.h.
20548 (mark_indirect_pool_entry): Delete.
20549 (mark_indirect_pool): Delete.
20550 (indirect_pool): Use gengtype to mark.
20551 (dw2_force_const_mem): Don't use ggc_add_root.
20552 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
20553 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
20554 (gt-dwarf2asm.h): Depend on s-gtype.
20555
20556 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
20557
20558 * tree.h (union tree_type_symtab): Mark `die' field.
20559 * Makefile.in (dwarf2out.o): Update dependencies.
20560 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
20561 hash tables.
20562 (dw_cfi_oprnd1_desc): New function.
20563 (dw_cfi_oprnd2_desc): New function.
20564 (indirect_string_alloc): Delete.
20565 (debug_str_do_hash): New function.
20566 (debug_str_eq): New function.
20567 (mark_limbo_die_list): Delete.
20568 (dwarf2out_init): Don't call ggc_add_root.
20569
30028c85
VM
205702003-01-09 Vladimir Makarov <vmakarov@redhat.com>
20571
20572 The following changes are merged from itanium-sched-branch:
20573
20574 2003-01-08 David Edelsohn <edelsohn@gnu.org>
20575
20576 * doc/md.texi: Clarify assignment of units to automata description.
20577
20578 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
20579
20580 * genautomata.c (unit_decl): Remove members
20581 `the_same_automaton_unit' and
20582 `the_same_automaton_message_reported_p'.
20583 (process_unit_to_form_the_same_automaton_unit_lists,
20584 form_the_same_automaton_unit_lists_from_regexp,
20585 form_the_same_automaton_unit_lists, the_same_automaton_lists):
20586 Remove them.
20587 (annotation_message_reported_p): New global variable.
20588 (check_unit_distribution_in_reserv,
20589 check_regexp_units_distribution): New functions.
20590 (check_unit_distributions_to_automata): Rewrite it.
20591
20592 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
20593
20594 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
20595 Use continue instead of break if cycle is too big.
20596
20597 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
20598
20599 * genautomata.c (check_unit_distributions_to_automata): Output at
20600 most one message for a unit.
20601 (process_unit_to_form_the_same_automaton_unit_lists): Check
20602 automaton of units instead of units themself.
20603
20604 * doc/md.texi: Describe the constraint about assigning unit to
20605 automata.
20606
20607 2002-12-20 Jan Hubicka <jH@suse.cz>
20608 Vladimir Makarov <vmakarov@redhat.com>
20609
20610 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
20611 and `in_set_p'.
20612 (gen_cpu_unit): Initialize the new members.
20613 (process_regexp_cycles): Calculate minimal finish cycle too. Set
20614 up `min_occ_cycle_num'.
20615 (evaluate_max_reserv_cycles): Change the function call.
20616 (CLEAR_BIT): New macro.
20617 (states_union, state_shift): Use the mask.
20618 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
20619 (form_reservs_matter): New function.
20620 (make_automaton): Call the function and use the mask.
20621 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
20622 account.
07488f32 20623
30028c85
VM
20624 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
20625
20626 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
20627
20628 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
20629
20630 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
20631 for Itanium.
20632
20633 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
20634
20635 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
20636 default cpu.
20637
20638 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
20639 2002-10-31 Dale Johannesen <dalej@apple.com>
20640
20641 * haifa-sched.c (find_set_reg_weight): New function.
20642 (find_insn_reg_weight): Use the new function.
20643 (schedule_block): Do sorting ready queue always
20644 after insn issue.
20645
20646 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
20647
20648 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
20649
20650 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
20651
20652 * haifa-sched.c (choice_entry): New structure.
20653 (choice_stack, cycle_issued_insns): New variables.
20654 (max_issue): Rewrite it.
20655 (choose_ready): Set up ready_try for unknown insns too.
20656 (schedule_block): Allocate and free choice_stack. Set up
20657 and modify cycle_issued_insns.
20658
20659 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
20660 with and without filling the bundle.
20661 (bundling): Combine calls of issue_nops_and_insn.
07488f32 20662
30028c85
VM
20663 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
20664
20665 * config/ia64/itanium1.md: New file.
20666
20667 * config/ia64/itanium2.md: New file.
20668
20669 * config/ia64/ia64.md: Move DFA descriptions into the new files.
20670 Remove the old pipeline description.
07488f32 20671
30028c85
VM
20672 * config/ia64/ia64.c (ia64_override_options): Add aliases of
20673 itanium processor names.
07488f32 20674
30028c85
VM
20675 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
20676
20677 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
20678 (ia64_reorg): Set up queried unit codes for Itanium2 too.
20679
20680 * config/ia64/ia64.md: Add descriptions for Itanium2.
20681
20682 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
20683
20684 * config/ia64/ia64.h (processor_type): New enumeration.
20685 (ia64_tune, ia64_tune_string): New external declarations.
20686 (TARGET_OPTIONS): Add option `tune='.
20687
20688 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
20689 variables.
20690 (ia64_override_options): Set up `ia64_tune'.
20691 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
20692 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
20693 (bundling): Add nops for MM-insns only for Itanium.
20694 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
20695 Itanium.
20696
20697 * config/ia64/ia64.md (cpu): New attribute.
20698 (DFA description): Enable it only for Itanium.
07488f32 20699
30028c85
VM
20700 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
20701 Richard Henderson <rth@redhat.com>
20702
20703 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
20704 MASK_EARLY_STOP_BITS.
20705 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
20706 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
20707 `early-stop-bits'.
07488f32 20708
30028c85
VM
20709 * config/ia64/ia64.c (ia64_dfa_new_cycle,
20710 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
20711 instead of TARGET_TUNE_STOP_BITS.
07488f32 20712
30028c85
VM
20713 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
20714 `-mearly-stop-bits'.
20715
20716 * config/ia64/ia64.c (automata_option "v"): Comment it.
07488f32 20717
30028c85
VM
20718 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
20719
07488f32 20720 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
30028c85
VM
20721 New macros.
20722 (TARGET_SWITCHES): Add entries for the new option.
07488f32 20723
30028c85
VM
20724 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
20725 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
20726 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
20727 global variables.
20728 (ia64_sched_reorder2): Set up `clocks'.
20729 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
20730 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
20731 queue when TARGET_TUNE_STOP_BITS.
20732 (bundling): Insert additional nops for MM-insns.
20733 (final_emit_insn_group_barriers): Add insertion of stop bits
20734 according `stops_p'.
20735 (ia64_reorg): Initiate the new varibales.
20736
20737 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
07488f32 20738
30028c85
VM
20739 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
20740
20741 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
20742 insns at the end of block insn scheduling.
20743
20744 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
20745
20746 * sched-deps.c (remove_dependence, group_leader): Remove it.
20747 (add_dependence): Add dependence to group leader to.
20748 (set_sched_group_p): Add dependence to the first insn of the
20749 schedule group too.
20750 (sched_analyze_insn): Make dependence to jump as anti-dependence.
20751 Change true dependence by anti-dependence when
20752 `reg_pending_barrier'.
20753
20754 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
20755 add_branch_dependences): Ignore schedule groups.
20756
20757 * sched-ebb.c (init_ready_list): Ditto.
20758
20759 * (move_insn, set_priorities): Ditto.
20760
20761 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
20762 flag is clear after reload.
20763 (adjust_cost): Change cost only for output dependencies.
07488f32 20764
30028c85 20765 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
07488f32 20766
30028c85
VM
20767 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
20768
20769 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
20770
20771 * target.h (gcc_target): Add member
20772 `dependencies_evaluation_hook'.
20773
20774 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
20775 macro.
20776 (TARGET_SCHED): Add initiatialization of the new member.
20777
20778 * sched-ebb.c: Include `target.h'.
20779 (schedule_ebb): Call `dependencies_evaluation_hook'.
20780
20781 * sched-rgn.c (schedule_region): Call
20782 `dependencies_evaluation_hook'.
20783
20784 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
20785 New macro.
20786 (ia64_dependencies_evaluation_hook): New function.
20787
20788 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
20789 Describe the new hook.
07488f32 20790
30028c85
VM
20791 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
20792
20793 * target.h (gcc_target): Add members
20794 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
20795
20796 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
20797 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
20798 macros.
20799 (TARGET_SCHED): Add initiatialization of the new members.
20800
20801 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
20802 insn scheduling too.
20803 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
20804 initialize `ready_try'.
20805 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
20806 `dfa_new_cycle' says not to do it.
07488f32 20807
30028c85
VM
20808 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
20809 bundling.
20810
20811 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
20812
20813 * config/ia64/ia64.c: Include `hashtab.h'.
20814 (ia64_first_cycle_multipass_dfa_lookahead_guard,
20815 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
20816 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
20817 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
20818 bundle_state_eq_p, insert_bundle_state,
20819 initiate_bundle_state_table, finish_bundle_state_table,
20820 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
20821 get_template, get_next_important_insn, bundling): New functions.
20822 (ia64_internal_sched_reorder): Remove it.
20823 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
20824 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
20825 (ia64_safe_itanium_requires_unit0): Remove it.
20826 (group_barrier_needed_p): Place group barrier right before a real
20827 insn.
20828 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
20829 Remove them.
20830 (bundle_name): New variable.
20831 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
20832 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
20833 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
20834 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
20835 temp_dfa_state, prev_cycle_state): New global variables.
20836 (insn_matches_slot, maybe_rotate, finish_last_head,
20837 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
20838 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
20839 find_best_packet, itanium_reorder, dump_current_packet,
20840 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
20841 (sched_data, sched_ready, sched_types): Remove them.
20842 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
20843 `init_insn_group_barriers'.
20844 (ia64_sched_reorder, ia64_sched_reorder2): Call
20845 ia64_dfa_sched_reorder.
20846 (ia64_variable_issue): Rewrite it.
20847 (bundle_state): New structure.
20848 (index_to_bundle_states, bundle_states_num,
20849 allocated_bundle_states_chain, free_bundle_state_chain): New
20850 global variables.
20851 (ia64_sched_finish): Add stop bits and call `bundling' after the
20852 2nd insn scheduling.
20853 (ia64_use_dfa_pipeline_interface): Return zero always.
20854 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
20855 insn scheduling.
20856 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
20857 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
20858 (ia64_reorg): Add bundling insns.
20859
20860 * doc/tm.texi
20861 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
20862 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
07488f32 20863
30028c85
VM
20864 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
20865
20866 * config/ia64/ia64.md: Add Itanium1 DFA description.
20867 (itanium_class): Add `nop' and `pre_cycle'. Add
20868 define_function_unit for `nop'.
20869 (nop): Change attribute `itanium_class'.
20870 (pre_cycle): New define_insn.
20871
20872 * config/ia64/ia64-protos.h (bundling_p): New external variable.
20873 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
20874 ia64_produce_address_p): New function prototypes.
20875
20876 * config/ia64/ia64.c (bundling_p): New global variable.
20877 (ia64_use_dfa_pipeline_interface,
20878 ia64_first_cycle_multipass_dfa_lookahead,
20879 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
20880 functions.
20881 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
20882 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
20883 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
20884 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
20885 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
20886 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
20887 (dfa_pre_cycle_insn): New variable.
07488f32 20888
30028c85
VM
20889 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
20890
20891 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
20892 constructions.
20893
20894 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
20895 New function prototypes.
20896
20897 * genattrtab.c (main): Process the new constructions.
20898
20899 * genautomata.c (gen_presence_absence_set,
20900 process_presence_absence_names, process_presence_absence_patterns,
20901 add_presence_absence, check_absence_pattern_sets): Add parameter
20902 `final_p'.
20903 (unit_decl): Add new members `final_presence_list' and
20904 `final_absence_list'.
20905 (unit_pattern_rel_decl): Add new member `final_p'.
20906 (gen_final_presence_set, gen_final_absence_set): New functions.
20907 (process_decls): Use member `final_p'.
20908 (temp_reserv): New global variable.
20909 (reserv_sets_are_intersected): Add processing `final_presence_set'
20910 and `final_absence_set'.
20911 (initiate_states): Allocate `temp_reserv'.
20912 (unit_final_presence_set_table, unit_final_absence_set_table): New
20913 gloabal variables.
20914 (initiate_presence_absence_pattern_sets): Initiate them.
20915 (NDFA_to_DFA): Fix typo.
20916 (output_description): Output `final_presence_set' and
20917 `final_absence_set'.
20918
20919 * doc/md.texi (final_presence_set, final_absence_set): Describe
20920 them.
07488f32 20921
30028c85
VM
20922 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
20923
20924 * genautomata.c (transform_3): Process a missing case (nothing on
20925 unit place).
20926
20927 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
20928
20929 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
20930 comments about queried units and the minimization.
07488f32 20931
30028c85 20932 * doc/md.texi: Ditto.
07488f32 20933
30028c85
VM
20934 * genautomata.c (create_composed_state): Return nonzero if the new
20935 state has been created.
20936 (first_cycle_unit_presence): New function.
20937 (state_is_differed): Add new parameter. Use the new function.
20938 Take queried units into account.
20939 (partition_equiv_class): Pass additional parameter to
20940 `state_is_differed'.
20941 (merge_states): Process composed states too.
20942 (build_automaton, create_automata, output_min_issue_delay_table,
20943 output_tables, output_statistics): Output more information.
20944 (output_reserved_units_table): Use function
20945 `first_cycle_unit_presence'.
20946 (output_tables): Output table of queried units even if the
20947 minimization is switched on.
20948 (write_automata): Output code for querying units even if the
20949 minimization is switched on.
07488f32 20950
30028c85
VM
20951 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
20952
20953 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
20954 syntax of the constructions.
07488f32 20955
30028c85
VM
20956 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
20957 extended syntax of the constructions.
07488f32 20958
30028c85
VM
20959 * genautomata.c (unit_rel_decl): Rename it to
20960 `unit_pattern_rel_decl'.
20961 (pattern_set_el, pattern_reserv): New structures.
20962 (pattern_set_el_t, pattern_reserv_t): New types.
20963 (gen_presence_absence_set): New function.
20964 (process_presence_absence): Remove it.
20965 (process_presence_absence_names,
20966 process_presence_absence_patterns): New functions.
20967 (get_presence_absence_set): Remove it.
20968 (initiate_presence_absence_sets): Rename it on
20969 `initiate_presence_absence_pattern_sets'. Use new function
20970 `form_reserv_sets_list'.
20971 (form_reserv_sets_list, check_presence_pattern_sets,
20972 check_absence_pattern_sets, output_pattern_set_el_list): New
20973 functions.
20974 (unit_decl): Change types of members `presence_list' and
20975 `absence_list'.
20976 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
20977 (decl): Change types of members `excl', `presence', and `absence'.
20978 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
20979 at the end of the vector.
20980 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
20981 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
20982 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
20983 (gen_presence_set, gen_absence_set): Use new function
20984 `gen_presence_absence_set'.
20985 (add_presence_absence): Process `pattern_list' instead of
20986 `source_list'.
20987 (process_decls): USe new functions
20988 `process_presence_absence_names' and
20989 `process_presence_absence_patterns'.
20990 (reserv_sets_are_intersected): Use new function
20991 `check_presence_pattern_sets'.
20992 (presence_set, absence_set): Remove them.
20993 (unit_presence_set_table, unit_absence_set_table): New global
20994 variables.
20995 (output_description): Use new function
20996 `output_pattern_set_el_list'.
20997 (generate): Use `initiate_presence_absence_pattern_sets'.
07488f32 20998
30028c85
VM
20999 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
21000
21001 * genattr.c (main): Add output of prototype of new interface
21002 function `dfa_clean_insn_cache'.
21003
21004 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21005 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21006 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21007 the generated code.
21008 (write_automata): Call the new function.
07488f32 21009
62c9aa5f 210102003-01-09 Jan Hubicka <jh@suse.cz>
cb297538 21011
17211ab5
GK
21012 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21013 correctly.
cb297538 21014
3a6e2189
PC
210152003-01-09 Paolo Carlini <pcarlini@unitus.it>
21016
21017 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21018
62c9aa5f 210192003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
97488870
R
21020
21021 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21022 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21023 (CONSTRAINT_LEN): Provide default definition.
21024 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21025 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21026 (EXTRA_CONSTRAINT_STR): Likewise.
21027 (REG_CLASS_FROM_CONSTRAINT): Define.
21028 * genoutput.c (check_constraint_len, constraint_len): New functions.
21029 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21030 constraint / modifier.
21031 (gen_insn): Call check_constraint_len.
21032 * local-alloc.c (block_alloc): Update to use new macros / pass
21033 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21034 * ra-build.c (handle_asm_insn): Likewise.
21035 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21036 (constrain_operands, peep2_find_free_register): Likewise.
21037 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21038 * regmove.c (find_matches): Likewise.
21039 * reload.c (push_secondary_reload, find_reloads): Likewise.
21040 (alternative_allows_memconst): Likewise.
21041 * reload1.c (maybe_fix_stack_asms): Likewise.
21042 (reload_cse_simplify_operands): Likewise.
21043 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21044 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21045 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21046 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21047 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21048 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
e2c734c1
R
21049
21050 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21051
fc182093
KH
210522003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21053
21054 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21055 length.
21056 (*extzv_1_r_h8300hs): Likewise.
21057 (*extzv_1_r_inv_h8300): Likewise.
21058 (*extzv_1_r_inv_h8300hs): Likewise.
21059
3b1c9927
KH
210602003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21061
21062 * config/h8300/h8300.h (PREDICATE_CODES): New.
21063
867504e6
KH
210642003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21065
21066 * config/h8300/h8300.md (*addsi3_upper): New.
21067 (*iorsi3_shift): Likewise.
21068 (two splitters): Likewise.
21069 (*addsi3_shift): Likewise.
21070 (two splitters): Likewise.
21071
4a69cf79
JZ
210722003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21073
21074 * Makefile.in (optabs.o): Add dependency on basic-block.h.
21075 * basic-block.h (control_flow_insn_p): Fuction was exported.
21076 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21077 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21078 notes only when the region is contained in a single basic block.
21079
4c46ea23
EB
210802003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21081
21082 PR inline-asm/8832
21083 * tree.h (expand_asm): New prototype.
21084 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21085 to do so.
21086 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21087 down to expand_asm.
21088 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21089 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21090 (volatile_refs_p) [ASM_INPUT]: Likewise.
21091 (side_effects_p) [ASM_INPUT]: Likewise.
21092
62c9aa5f 210932003-01-09 Jan Hubicka <jh@suse.cz>
f56e86bd
JH
21094
21095 * i386.md (*mul*): FIx constraints; remove confused comment; fix
21096 athlon_decode attributes
21097 (imul/k8 optimization peep2s): New.
21098
21099 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21100 * i386.md (type attribute): Add ssecomi.
21101 (unit, memory, prefix attributes): Handle ssecomi.
21102 (cvt?2? patterns): Fix athlon_decode attribute
21103 (comi patterns): Set attribute to ssecomi.
21104
21105 PR target/8343
21106 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21107
98c29f71
RS
211082003-01-09 Richard Sandiford <rsandifo@redhat.com>
21109
21110 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21111 that match register_operands.
21112 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21113 register_operand the default case.
21114
bbb818c6
EB
211152003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21116
21117 PR c/8032
21118 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21119 an empty element, do not advance the pointer to unfilled
21120 fields if there are pending initializers.
21121
90961eff
AJ
211222003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21123
21124 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21125 (install-gcc-tooldir, install-cpp, installdirs,
21126 install-common, install-driver, install-info, install-man,
21127 install-headers, install-include-dir, install-headers-tar,
21128 install-headers-cpio, install-headers-cp, install-mkheaders,
21129 install-collect2, uninstall): Prepend $(DESTDIR) to
21130 destination paths in all (un)installation commands.
21131 (install-driver): Rewrite $(LN) commands to support DESTDIR
21132 with "ln" as well as with "ln -s".
21133 (installdirs): Simply use mkinstalldirs.
21134 (install-libgcc, install-multilib): Also pass DESTDIR.
21135 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21136 installation destination variable ldir.
21137 * config/alpha/t-osf4, config/arm/t-netbsd,
21138 config/ia64/t-hpux, config/mips/t-iris5-6,
21139 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21140 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21141 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21142 in the definition of SHLIB_INSTALL.
21143 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21144 $(libsubdir) in the installation commands.
21145
8b26829f
KK
211462003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
21147
21148 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21149 non-optimizing compile.
21150 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21151 compile.
21152
fe77449a
DR
211532003-01-08 Douglas B Rupp <rupp@gnat.com>
21154
21155 * config/i386/i386.c (ix86_attribute_table): Add new attributes
21156 ms_struct and gcc_struct.
21157 (ix86_handle_struct_attribute): New function.
21158 (ix86_ms_bitfield_layout_p): Update to take new attributes
21159 into account.
21160 * doc/extend.texi: Document new attributes.
21161 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21162
98417968
DS
211632003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
21164
07488f32
ZW
21165 PR optimization/8750
21166 * config/i386/i386.c (ix86_expand_prologue): Don't allow
21167 scheduling pass to move insns across __alloca call.
98417968 21168
e46e3130
DJ
211692003-01-08 Dale Johannesen <dalej@apple.com>
21170
07488f32
ZW
21171 * config/rs6000/rs6000.md: Replace *store_multiple_string
21172 with *stmsi[3-8].
e46e3130 21173
c40e5172
JS
211742003-01-08 Jeff Sturm <jsturm@one-point.com>
21175
21176 PR target/9210
21177 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21178 Set SYMBOL_REF_FLAG on local data sym_ref.
21179
de62b72c 211802003-01-08 Dale Johannesen <dalej@apple.com>
07488f32
ZW
21181
21182 * function.c (assign_parms): Don't set pretend_args_size if
de62b72c 21183 REG_PARM_STACK_SPACE.
07488f32 21184 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
de62b72c
DJ
21185 pretend_args_size.
21186
25839c41
NN
211872003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
21188
21189 * gcc.hlp: Delete.
21190
62c9aa5f 211912003-01-09 Jan Hubicka <jh@suse.cz>
4bdc8610
JH
21192
21193 * i386.c (ix86_expand_int_addcc): Fix thinko.
21194
5b71a4e7
DE
211952003-01-08 David Edelsohn <edelsohn@gnu.org>
21196
21197 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21198 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21199 as hook_bool_tree_hwi_hwi_tree_true.
21200 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21201 (rs6000_emit_epilogue): Same.
21202 (rs6000_output_mi_thunk): Re-implement as RTL.
21203 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21204 xcoffout_declare_function if any debugging enabled.
21205
2d2a50c3
CD
212062003-01-08 Chris Demetriou <cgd@broadcom.com>
21207
21208 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21209 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21210 * config/mips/mips.h (enum processor_type): Rename
21211 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21212 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21213 Add PROCESSOR_M4K.
21214 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21215 (ISA_MIPS32R2): New define.
21216 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21217 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21218 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21219 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
21220 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
21221 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21222 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21223 compiling MIPS16 code.
21224 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21225 comment.
21226 (ISA_HAS_SEB_SEH): New define.
21227 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21228 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21229 processor_type value renaming. Add support for MIPS32R2.
21230 Clean up comments, and move "sb1" entry with other MIPS64 CPU
21231 entries.
21232 (override_options): Reimplement -mipsN option handling so that
21233 it will work correctly for -mips32r2. Avoid branch-likely
21234 instructions on MIPS32R2.
21235 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21236 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21237 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21238 (extendhisi2_hw, extendqisi2_hw): New.
21239 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21240 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
21241 MIPS32R2, and MIPS64.
21242 (LINK_SPEC): Pass -mips32r2 to linker.
21243 * config/mips/t-isa3264: Built -mips32r2 multilibs.
21244 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21245 for mips32r2 in the -march description. Alphabetically sort
21246 CPU names in the -march description. Add long-missed -mips32
21247 and -mips64 to MIPS option summary.
21248
21249 * config.gcc: Update copyright years to include 2003.
21250 * config/mips/mips.c: Likewise.
21251 * config/mips/mips.h: Likewise.
21252 * config/mips/mips.md: Likewise.
21253 * config/mips/netbsd.h: Likewise.
21254 * doc/invoke.texi: Likewise.
21255
918c4fe4
AS
212562003-01-08 Andreas Schwab <schwab@suse.de>
21257
21258 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21259 variable.
21260 * configure: Regenerated.
21261
c5e7ce43
KH
212622003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21263
21264 * config/h8300/h8300.c (output_logical_op): Replace byte/word
21265 extraction of det with b0, b1, w0, w2, etc.
21266 (compute_logical_op_length): Likewise.
21267 (compute_logical_op_cc): Likewise.
21268
eb8a8ec4
KH
212692003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21270
21271 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21272 HIGH on all variants.
21273
62c9aa5f 212742003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
07488f32 21275
56f15830
JZ
21276 * Makefile.in (PARTITION_H): New.
21277 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21278 * basic-block.h: Include hard-reg-set.h.
21279
ab57893b
RE
212802003-01-08 Richard Earnshaw <rearnsha@arm.com>
21281
21282 * arm.h (ENABLE_XF_PATTERNS): Delete.
21283 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21284 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21285 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21286 (cmpxf_trap): Delete.
21287 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21288
62c9aa5f 212892003-01-08 Jan Hubicka <jh@suse.cz>
7b52eede
JH
21290
21291 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21292 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21293 (add??cc): New expanders.
21294 * i386.c (expand_int_addcc): New function.
21295 * i386-protos.h (expand_int_addcc): Declare.
21296
21297 * alias.c (memory_modified_1): New static function.
21298 (memory_modified): New static varaible.
21299 (memory_modified_in_insn_p): New global function.
21300 * rtl.h (memory_modified_in_insn_p): Declare.
21301 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21302 references.
21303
21304 * expr.h (emit_conditional_add): Declare.
21305
74049755
JJ
213062003-01-07 Janis Johnson <janis187@us.ibm.com>
21307
21308 PR other/8947
21309 * doc/invoke.texi (-malign-double): Explain that the option breaks
21310 binary compatibility.
21311
e7edc5a0
AS
213122003-01-08 Andreas Schwab <schwab@suse.de>
21313
21314 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21315 should come from the generic *-*-linux* entry.
21316
62c9aa5f 213172003-01-07 Jan Hubicka <jh@suse.cz>
9635cfad
JH
21318
21319 * cselib.c (cselib_current_insn_in_libcall): New static variable.
21320 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21321 we are inside libcall.
21322 * cselib.h (elt_loc_list): Add in_libcall.
21323 * gcse.c (do_local_cprop): Do not copy propagate using insns
21324 in libcalls.
21325
3ee04299
DE
213262003-01-07 David Edelsohn <edelsohn@gnu.org>
21327
21328 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21329 not normally affect to issue rate.
21330
62c9aa5f 213312003-01-07 Jan Hubicka <jh@suse.cz>
068f5dea
JH
21332
21333 * genopinit.c (optabs): Add addc_optab.
21334 * ifcvt.c (noce_try_store_flag): Rename to ...
21335 (noce_try_addcc): ... this one; handle generic conditional increment.
21336 (noce_process_if_block): Update noce_try_addcc call.
21337 * optabs.c (emit_conditional_add): New.
21338 (init_obtabs): Initialize addc_optab.
21339 * optabs.h (optab_index): Add OTI_addcc.
21340 (addcc_optab): New macro.
21341 * md.texi: Document addMcc
21342
21343 PR target/8322
21344 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21345 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21346 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21347
21348 * reload1.c (delete_output_reload): Avoid repeated attempts
21349 to delete insn.
21350
eb70d86d
AS
213512003-01-07 Andreas Schwab <schwab@suse.de>
21352
e7edc5a0
AS
21353 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21354 Move --enable-initfini-array check ...
21355 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
21356 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21357 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
21358 * configure: Rebuild.
eb70d86d 21359
1afdf91c
RH
213602003-01-07 Richard Henderson <rth@redhat.com>
21361
e7edc5a0
AS
21362 * alias.c (find_base_value): Only use new_reg_base_value shortcut
21363 if the register is set once.
1afdf91c 21364
36210500 213652003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
07488f32 21366
36210500
SP
21367 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21368 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21369 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21370
cb25b0ce
BK
213712003-01-07 Benjamin Kosnik <bkoz@redhat.com>
21372 Sunil Davasam <sunil.k.davasam@intel.com>
21373
07488f32 21374 PR libstdc++/9076
cb25b0ce
BK
21375 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21376 DW_CFA_same_value, read next and ignore.
21377
94c040bd
RH
213782003-01-07 Richard Henderson <rth@redhat.com>
21379
21380 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
21381
f6cb56fa
DB
213822003-01-07 Daniel Berlin <dberlin@dberlin.org>
21383
21384 * cfg.c: Include alloc-pool.h
21385 (edge_pool): New pool.
21386 (bb_pool): New pool.
21387 (first_deleted_edge): Remove.
21388 (first_deleted_block): Remove.
21389 (init_flow): Alloc/free the pools.
21390 (free_edge): Use pools.
21391 (alloc_block): Ditto.
21392 (expunge_block): Ditto.
21393 (cached_make_edge): Ditto.
21394
21395 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
21396
213972003-01-07 Daniel Berlin <dberlin@dberlin.org>
21398
21399 * et-forest.c: Include alloc-pool.h.
21400 (struct et_forest): Add node_pool and occur_pool.
21401 (et_forest_create): Create the new pools.
21402 (et_forest_delete): Delete them.
21403 (et_forest_add_node): Allocate and free using pools.
21404 (et_forest_add_edge): Ditto.
21405 (et_forest_remove_node): Ditto.
21406 (et_forest_remove_edge): Ditto.
21407
21408 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
21409
f9ac2f95
KH
214102003-01-07 Kazu Hirata <kazu@cs.umass.edu>
21411
21412 * config/h8300/h8300.c (output_logical_op): Simplify and
21413 optimize the handling of SImode.
21414 * config/h8300/h8300.c (compute_logical_op_length): Update
21415 accordingly.
21416 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
21417
83282119
RS
214182003-01-07 Richard Sandiford <rsandifo@redhat.com>
21419
21420 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
21421 big-endian correction to indirect arguments too.
21422
59a4c851
AH
214232003-01-06 Aldy Hernandez <aldyh@redhat.com>
21424
21425 Segher Boessenkool <segher@koffie.nl>
21426
36210500
SP
21427 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
21428 (alt_reg_names): Ditto, fix formatting.
21429 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
59a4c851 21430
7798db98
KH
214312003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21432
21433 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
21434 (output_logical_op): Constify intval and det.
21435 (compute_logical_length): Likewise.
21436 (compute_logical_cc): Likewise.
21437 (output_a_shift): Constify mask.
21438 (h8300_encode_label): Constify len.
21439
4705d102
KH
214402003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21441
21442 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
21443 (h8300_expand_epilogue): Likewise.
21444
98c9a8e8
AH
214452003-01-06 Aldy Hernandez <aldyh@redhat.com>
21446
21447 Segher Boessenkool <segher@koffie.nl>
21448
36210500
SP
21449 * config/rs6000/altivec.md: Remove spaces from assembler
21450 instruction argument lists.
07488f32 21451
86143814
MH
214522003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21453
21454 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
21455 c4x_assembler_function_p.
21456 (c4x_null_epilogue_p): Complement return value, all uses updated.
21457 (c4x_insert_attributes): Add naked.
21458 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
21459 * doc/extend.texi: Update C4x function attributes.
21460
52fd80fb
RH
214612003-01-06 Richard Henderson <rth@redhat.com>
21462
21463 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
21464 properly when changing "local-ness".
21465 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
21466
a16b43c5
DJ
214672003-01-06 Dale Johannesen <dalej@apple.com>
21468
21469 * config/darwin-protos.h: Add prototypes for new section functions.
21470
ef8dfae6
CD
214712003-01-06 Chris Demetriou <cgd@broadcom.com>
21472
21473 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
21474 to EABI.
21475
44f9a8e4
ZW
214762003-01-06 Zack Weinberg <zack@codesourcery.com>
21477
21478 * hwint.h: If the current compiler has no 64-bit type at all,
21479 make HOST_WIDEST_INT 32 bits.
21480
2610198a
EC
214812003-01-06 Eric Christopher <echristo@redhat.com>
21482
21483 * config/mips/mips.md (movdf_internal2): Fix constraints.
21484
efbd757f
KH
214852003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21486
21487 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
21488
727b9b8c
RS
214892003-01-06 Richard Sandiford <rsandifo@redhat.com>
21490
21491 * config/mips/mips.md (leadi): Use dla rather than la.
21492
4705d102 214932003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
cebdac46
SS
21494
21495 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
21496 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
21497
4705d102 214982003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
fe1e789f 21499
44f9a8e4 21500 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
fe1e789f
HB
21501 redefinition.
21502
dff0ea43
KH
215032003-01-05 Kazu Hirata <kazu@cs.umass.edu>
21504
21505 * config/h8300/h8300.md (*extzv_8_23): New.
21506
94e6fd3e
JDA
215072003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
21508
21509 * pa64-hpux.h (JCR_SECTION_NAME): Define.
21510 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
21511 USE_EH_FRAME_REGISTRY when defining.
21512
cd9b5ca8
KH
215132003-01-05 Kazu Hirata <kazu@cs.umass.edu>
21514
21515 * config/h8300/h8300.c (output_a_shift): Do not output a
21516 variable shift.
21517 * config/h8300/h8300.md (two splitters): New.
21518
1ba8a9c4
RS
215192003-01-05 Richard Sandiford <rsandifo@redhat.com>
21520
21521 * config/mips/mips.md: Disable the movstrsi define_split.
21522
c7c50494
KG
215232003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21524
21525 * alloc-pool.c: Don't include "libiberty.h".
21526 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
21527 * convert.c (convert_to_real): Hide unused variable.
21528
83fa8d7a
KG
215292003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21530
21531 * Makefile.in (gtyp-gen.h): Const-ify.
21532 * gcov-dump.c (tag_table): Likewise.
21533
871dab3e
BK
215342003-01-04 Bruce Korb <bkorb@gnu.org>
21535
21536 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
21537 of *both* the file name and the fix name.
21538
90961eff 215392003-01-04 John David Anglin <dave.anglin@nrc.ca>
35d434ed
JDA
21540
21541 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
21542 collect2.
21543 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
21544 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
21545 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
21546 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
21547 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
21548 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
21549 elfos.h.
21550 (EH_FRAME_IN_DATA_SECTION): Delete define.
21551 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
21552 (STARTFILE_SPEC): Use crtbegin.o.
21553 (ENDFILE_SPEC): Use crtend.o.
21554 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
21555 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
21556 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
21557 DTOR_LIST_BEGIN): Define.
21558 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
21559 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
21560 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
21561
b0588013
BK
215622002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
21563
21564 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
21565 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
21566 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
21567 Cleanup handling of replacement text.
21568 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
21569
215702003-01-04 Bruce Korb <bkorb@gnu.org>
21571
21572 * fixinc/tests/base/math.h: removed obsolete results
21573 * fixinc/tests/base/stdlib.h: ditto
21574 * fixinc/tests/base/sys/param.h: ditto
21575 * fixinc/tests/base/sys/stat.h: ditto
21576 * fixinc/tests/base/time.h: ditto
21577 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
21578 * fixinc/tests/base/sys/byteorder.h: ditto
21579 * fixinc/inclhack.def: Remove superfluous backslashes
21580
68ee6df6
KH
215812003-01-04 Kazu Hirata <kazu@cs.umass.edu>
21582
21583 * config/h8300/h8300-protos.h: Add prototypes for
21584 the new functions defined below.
21585 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
21586 define.
21587 (dosize): Emit RTL instead of assembly code.
21588 (push): Likewise.
21589 (pop): Likewise.
21590 (h8300_output_function_prologue): Remove.
21591 (h8300_expand_prologue): New.
21592 (h8300_expand_epilogue): New.
21593 (h8300_output_function_epilogue): Do only the reset of
21594 pragma_saveall.
21595 * config/h8300/h8300.md (push_h8300): New.
21596 (push_h8300hs): Likewise.
21597 (pop_h8300): Likewise.
21598 (pop_h8300hs): Likewise.
21599 (*stm_h8300s_2): Change the name to stm_h8300s_2.
21600 (*stm_h8300s_3): Change the name to stm_h8300s_3.
21601 (*stm_h8300s_4): Change the name to stm_h8300s_4.
21602 (*ldm_h8300s_2): New.
21603 (*ldm_h8300s_3): Likewise.
21604 (*ldm_h8300s_4): Likewise.
21605 (return): Likewise.
21606 (*return_1): Likewise.
21607 (prologue): Likewise.
21608 (epilogue): Likewise.
21609 (monitor_prologue): Likewise.
21610
d3c300d2
DJ
216112003-01-03 Dale Johannesen <dalej@apple.com>
21612
21613 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
21614 machopic_picsymbol_stub1.
21615 (EXTRA_SECTION_FUNCTIONS): Ditto.
21616 * rs6000/rs6000.c: Update copyright.
21617 (machopic_output_stub): Use them. Remove an insn from stub code.
21618
6cce57b0
JM
216192003-01-02 Jason Merrill <jason@redhat.com>
21620
4e8dca1c
JM
21621 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
21622
21623 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
21624 static/external decls.
2610198a 21625
6cce57b0
JM
21626 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
21627 outermost scope.
21628 * c-decl.c (c_make_fname_decl): Push the decls there, too.
21629
e392d367
KH
216302003-01-03 Kazu Hirata <kazu@cs.umass.edu>
21631
21632 * config/h8300/h8300-protos.h: Add a prototype for
21633 h8300_current_function_interrupt_function_p.
21634 * config/h8300/h8300.c (interrupt_handler): Remove.
21635 (os_task): Likewise.
21636 (monitor): Likewise.
21637 (pragma_interrupt): New.
21638 (WORD_REG_USED): Use
21639 h8300_current_function_interrupt_function_p.
21640 (dosize): Likewise.
21641 (h8300_output_function_prologue): Likewise.
21642 Do not set interrupt_handler, os_task, monitor.
21643 (h8300_output_function_prologue): Use
21644 h8300_current_function_interrupt_function_p.
21645 Do not set interrupt_handler, os_task, monitor.
21646 (h8300_current_function_interrupt_function_p): New.
21647 (h8300_pr_interrupt): Set pragma_interrupt.
21648 (h8300_insert_attributes): Reset pragma_interrupt.
21649
b15da5b7
GP
216502003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21651
21652 * doc/install.texi (Configuration): Fix markup for reference to
21653 gcc/config.gcc.
21654
bf16e745
KH
216552003-01-02 Kazu Hirata <kazu@cs.umass.edu>
21656
21657 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
21658 (*iorhi3_two_qi): Likewise.
21659 (*iorsi3_zexthi): Likewise.
21660 (*xorhi3_zextqi): Likewise.
21661 (*xorsi3_zexthi): Likewise.
21662 (*xorsi3_zextqi): Likewise.
21663
8ccf5d5f
KH
216642003-01-02 Kazu Hirata <kazu@cs.umass.edu>
21665
21666 * config/h8300/h8300.c (stack_pointer_operand): New.
21667 (const_int_gt_2_operand): Likewise.
21668 (const_int_ge_8_operand): Likewise.
21669 * config/h8300/h8300.md (a splitter): Likewise.
21670 (a peephole2): Likewise.
21671 * config/h8300/h8300-protos.h: Add prototypes for the new
21672 functions above.
21673
43c6a96a
SB
216742003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
21675
21676 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
21677 objc/objc-act.h: Fix copyright years.
21678
96c4e780
SB
216792003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
21680
21681 * doc/passes.texi: Fix documentation for -fssa-ccp
21682
8ed0a104
NB
216832003-01-02 Neil Booth <neil@daikokuya.co.uk>
21684
21685 * gccbug.in: Update for new categories.
21686
1b9f0361
KH
216872003-01-01 Kazu Hirata <kazu@cs.umass.edu>
21688
21689 * config/h8300/h8300.md: Reorder some patterns.
21690
dc5f17ec
KH
216912003-01-01 Kazu Hirata <kazu@cs.umass.edu>
21692
21693 * config/h8300/h8300.c (output_logical_op): Fix a warning.
21694
cd2801fb
NB
216952003-01-01 Neil Booth <neil@daikokuya.co.uk>
21696
21697 * config/darwin-protos.h, config/c4x/c4x-protos.h,
21698 config/cris/cris-protos.h, config/i370/i370-protos.h,
21699 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
21700 config/v850/v850-protos.h: Use struct, and don't conditionally
21701 compile on GCC_C_PRAGMA_H.
21702
378b1b8e
KH
217032003-01-01 Kazu Hirata <kazu@cs.umass.edu>
21704
21705 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
21706 * config/h8300/h8300-protos.h: Likewise.
21707 * config/sh/sh-protos.h: Likewise.
21708
7106a5bc
KH
217092003-01-01 Kazu Hirata <kazu@cs.umass.edu>
21710
21711 * config/arm/arm-protos.h: Use struct cpp_reader instead of
21712 cpp_reader.
21713 * config/h8300/h8300-protos.h: Likewise.
21714 * config/sh/sh-protos.h: Likewise.
21715
231b51a1
NB
217162003-01-01 Neil Booth <neil@daikokuya.co.uk>
21717
21718 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
21719 arm_pr_long_calls_off): Use struct.
21720 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
21721 : Similarly.
21722 Don't include cpplib.h.
21723 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
21724 sh_pr_nosave_low_regs): Similarly.
21725
0f18b2b0
KH
217262003-01-01 Kazu Hirata <kazu@cs.umass.edu>
21727
21728 * config/h8300/h8300.c: Include cpplib.h.
21729
b9593599
SB
217302003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
21731
21732 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
21733 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
21734 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
21735 "GCC" in the copyright header.
21736
c58b209a
NB
217372003-01-01 Neil Booth <neil@daikokuya.co.uk>
21738
21739 * c-pragma.c (c_register_pragma): New.
21740 (init_pragma): Use it.
21741 * c-pragma.h (cpp_register_pragma): Don't declare.
21742 (c_register_pragma): New.
21743 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
21744 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
21745 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
21746 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
21747 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
21748 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
21749 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
21750 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
21751 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
21752 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
21753 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
21754 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
21755
7210d5ae 21756See ChangeLog.8 for earlier changes.
This page took 2.926432 seconds and 5 git commands to generate.