]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
rs6000.c (processor_target_table): Really allow GP optional instructions on Power4.
[gcc.git] / gcc / ChangeLog
CommitLineData
a12f8290
DE
12003-03-13 David Edelsohn <edelsohn@gnu.org>
2
3 * config/rs6000/rs6000.c (processor_target_table): Really allow
4 GP optional instructions on Power4.
5
62003-03-13 Roger Sayle <roger@eyesopen.com>
36dbb93d
RS
7
8 * calls.c (flags_from_decl_or_type): Factor and remove redundant
9 conditional tests.
10
c4775f82
MS
112003-03-13 Mike Stump <mrs@apple.com>
12
13 * ggc-page.c (struct page_entry): Remove varray.h header.
14 Add index_by_depth field.
15 Remove save_in_use_p field.
16 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
17 by_depth_max, by_depth, and save_in_use fields.
18 (INITIAL_PTE_COUNT): Add.
19 (save_in_use_p_i): Add.
20 (save_in_use_p): Add.
21 (adjust_depth): Add.
22 (move_ptes_to_front): Add.
23 (push_depth): Add.
24 (push_by_depth): Add.
25 (prefetch): Add.
26 (free_page): Add support for and use faster data structures.
27 (ggc_alloc): Likewise.
28 (init_ggc): Likewise.
29 (ggc_recalculate_in_use_p): Likewise.
30 (ggc_pop_context): Likewise.
31 (clear_marks): Likewise.
32 (ggc_pch_read): Likewise.
33 * Makefile.in (ggc-page.o): Remove varray.h.
34
3bed2930
NN
352003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
36
7210d5ae
NN
37 * ChangeLog: Rotated last year's entries to...
38 * ChangeLog.8: New.
39
3bed2930
NN
40 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
41 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
42 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
43 config/ia64/ia64-protos.h, config/ia64/ia64.c,
44 config/ia64/ia64.h, config/ia64/ia64.md,
45 config/ia64/itanium1.md, config/ia64/itanium2.md,
46 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
47 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
48
3bd104d1
AH
492003-03-13 Aldy Hernandez <aldyh@redhat.com>
50
51 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
52 Differentiate endianness.
53 (s6000_override_options): Use cpu type instead of TARGET_SPE.
54
2ed0b52a
NC
552003-03-13 Nick Clifton <nickc@redhat.com>
56
b17fe233
NC
57 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
58 LDM instructions with writeback enabled.
59 (output_return_instruction): Likewise.
60
2ed0b52a
NC
61 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
62 (CALL_USED_REGISTERS): Remove definition.
63 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
64
f1384257
AM
652003-03-13 Alan Modra <amodra@bigpond.net.au>
66
67 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
68 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
69 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
70 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
71 (rs6000_legitimize_address): Formatting.
72 (rs6000_emit_move): Likewise.
73 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
74 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
75 (rs6000_elf_select_section): Comment reason for shlib being
76 set for ABI_AIX.
77 (rs6000_elf_unique_section): Likewise.
78 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
79 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
80 as well as flag_pic.
81 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
82 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
83 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
84
599aedd9
RH
852003-03-13 Richard Henderson <rth@redhat.com>
86
87 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
88
89 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
90 (ia64_gp_save_reg): Remove.
91 (struct ia64_frame_info): Move to the beginning of the file;
92 add reg_save_gp.
93 (ia64_expand_call): Rearrange for new call patterns.
94 (ia64_reload_gp): New.
95 (ia64_split_call): New.
96 (ia64_compute_frame_size): Allocate reg_save_gp.
97 (ia64_expand_prologue): Save reg_save_gp.
98 (ia64_expand_epilogue): Don't restore gp.
99 (ia64_hard_regno_rename_ok): Remove R4 hack.
100 (ia64_function_ok_for_sibcall): New.
101 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
102 call try_split on sibcall pattern.
103 * config/ia64/ia64-protos.h: Update.
104 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
105 Rename from nopic versions. Confiscate 2nd argument to call as
106 a marker.
107 (call_pic, call_value_pic, sibcall_pic): Remove.
108 (call_gp, call_value_gp, sibcall_gp): New.
109 (builtin_setjmp_setup): Remove.
110 (builtin_setjmp_receiver): Call ia64_reload_gp.
111
e7d9d16b
NN
1122003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
113
2ff8f7ac
NN
114 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
115 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
116 "GNU CC" with "GCC".
117
4db9c756
NN
118 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
119 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
120 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
121 GCC, not GNU CC.
122
63b025a5
NN
123 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
124 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
125
54a7b573
NN
126 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
127 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
128 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
129 "GNU CC" with "GCC".
130
301ee2f3
NN
131 * config/v850/lib1funcs.asm, config/v850/rtems.h,
132 config/v850/v850-c.c, config/v850/v850-protos.h,
133 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
134 GCC, not GNU CC.
135
e7d9d16b
NN
136 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
137 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
138 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
139 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
140 GNU CC.
141
93c98498
BK
1422003-03-12 Benjamin Kosnik <bkoz@redhat.com>
143
144 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
145
e531258e
NN
1462003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
147
706ae11c
NN
148 * fixinc/fixinc.interix: Remove dead code (most of it).
149 * fixinc/fixinc.dgux: Remove.
150
e531258e
NN
151 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
152 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
153
eab9e742
JDA
1542003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
155
156 * pa.c (pa_init_builtins): Fix warning.
157
03d0dce1
SE
1582003-03-12 Steve Ellcey <sje@cup.hp.com>
159
160 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
161 (ASM_OUTPUT_XDATA_SHORT): Remove.
162 (ASM_OUTPUT_XDATA_INT): Remove.
163 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
164 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
165 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
166 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
167
847311f4
AL
1682003-03-12 Andrew Lewycky <andrew@mxc.ca>
169
170 PR c++/7050
171 * expr.c (store_expr): Don't attempt to store void-typed trees,
172 just evaluate them for side effects.
173
c19b12cb
NB
1742003-03-12 Neil Booth <neil@daikokuya.co.uk>
175
176 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
177 * cppinit.c (push_include): Move with changes to cppfiles.c.
178 (cpp_read_main_file): Mark named operators here...
179 (cpp_finish_options): ...not here. Update.
180 (_cpp_maybe_push_include_file): Update.
181 * cpplib.h (cpp_push_include, cpp_rename_file): New.
182
ad9c4d9f
NN
1832003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
184
847311f4
AL
185 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
186 _gcc_COMPUTE_GAS_VERSION.
187 * configure.in: Use them.
188 * configure: Regenerate.
ad9c4d9f 189
8d49831d
BW
1902003-03-12 Bob Wilson <bob.wilson@acm.org>
191
192 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
193 to detect carry.
194 (subdi3): Reorder emitted instructions.
195
bfa2615f
AJ
1962003-03-12 Andreas Jaeger <aj@suse.de>
197
198 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
199 NETBSD_OS_CPP_BUILTINS_LP64.
200
73458fb7
NN
2012003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
202
203 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
204 Rearrange. Reorganize.
205 * configure.in: Rearrange.
206 * configure: Regenerate.
207
00530a21
AJ
2082003-03-12 Andreas Jaeger <aj@suse.de>
209
210 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
211 LP64 targets.
212
213 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
214 _LP64.
215
216 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
217 _LP64 macros here.
218 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
219
220 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
221 NETBSD_OS_CPP_BUILTINS_LP64.
222 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
223 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
224
225 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
226
5474eed5
JH
227Wed Mar 12 19:04:39 CET 2003 Jan Hubicka <jh@suse.cz>
228
229 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
230
8c35a61a 2312003-03-12 Daniel Jacobowitz <drow@mvista.com>
59a7f9bf
DJ
232
233 Fix PR target/9797 and PR c/9853.
234 * stmt.c (expand_decl_init): Call push_temp_slots () and
235 pop_temp_slots ().
236
1aa03f38
R
237Wed Mar 12 16:30:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
238
239 * sh.c: Include basic-block.h.
240 (sh_output_mi_thunk, emit_load_ptr): New functions.
241 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
242
6f8c9bd1
NC
2432003-03-12 Nick Clifton <nickc@redhat.com>
244
245 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
246 (CALL_USED_REGISTERS): Likewise.
247 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
248 describing how this value is calculated.
249
b2522d2b
HPN
2502003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
251
252 * configure.in (rlim_t): Define to long if no valid definition
253 found in sys/resource.h.
254 * config.in, configure: Regenerate.
255
f7248b51
NB
2562003-03-12 Neil Booth <neil@daikokuya.co.uk>
257
258 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
259 TARGET_OS_CPP_BUILTINS.
260 * config/mcore/mcore-pe.h: Similarly.
261 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
262 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
263
8a7d6cb3
EB
2642003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
265
266 PR c/9928
267 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
268 only if it is a VAR_DECL.
269
db1077d3
EB
2702003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
271
272 PR optimization/9888
273 * config/i386/i386.md (jcc_1): Fix range.
274 (jcc_2): Likewise.
275 (jump): LIkewise.
276 (doloop_end_internal): Likewise.
277
6ca23bff
DS
2782003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
279
280 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
281 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
282 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
283 DLL_IMPORT_EXPORT_PREFIX and "i."
284 (i386_pe_dllexport_name_p): Here.
285 (i386_pe_dllimport_name_p): Here.
286 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
287 not 9 chars when getting identifier name.
288 (i386_pe_mark_dllimport): Here.
289 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
290 not 9 chars when getting identifier name. Correct comment.
291 (i386_pe_strip_name_encoding): Here. Add comments for different
292 cases.
293 (gen_fastcall_suffix): Break down xmalloc() argument to
294 components.
295 (gen_stdcall_suffix): Likewise.
296 Update copyright year.
297
9b73c90a
EB
2982003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
299
300 PR optimization/9888
301 * config/i386/i386.md (movsi_1): Remove special alternatives
302 for %eax register.
303 (movsi_1_nointernunit): Likewise.
304 (movhi_1): Likewise.
305 * config/i386/i386.c (memory_address_length): Do not use
306 short displacement when there is no base.
307 (ix86_attr_length_address_default): Handle LEA instructions.
308
21282b1e
NB
3092003-03-12 Neil Booth <neil@daikokuya.co.uk>
310
311 * c-cppbuiltin.c (builtin_define_std): Make non-static.
312
7358f10d
LR
3132003-03-11 Loren James Rittle <ljrittle@acm.org>
314
315 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
316 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
317 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
318 * config/freebsd.h (CPP_PREDEFINES): Remove.
319 (TARGET_OS_CPP_BUILTINS): New.
320 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
321 instead of TARGET_OS_CPP_BUILTINS.
322 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
323
d00bc0a2
GK
3242003-03-11 Geoffrey Keating <geoffk@apple.com>
325
326 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
327
9b7b447f
AH
3282003-03-11 Aldy Hernandez <aldyh@redhat.com>
329
330 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
331 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
332
333 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
334
18a47d21
AO
335Tue Mar 11 21:19:03 2003 Alexandre Oliva <aoliva@redhat.com>
336
337 * toplev.c (independent_decode_option): Return success for --help,
338 --target-help and --version.
339
c0a579df
AO
340Tue Mar 11 20:20:14 2003 Alexandre Oliva <aoliva@redhat.com>
341
342 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
343 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
344 specified.
345 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
346 DRIVER_SELF_SPECS.
347 (LINK_SPEC): Let endian options affect the linker emulation name.
348
ea45c4b0
R
349Tue Mar 11 22:35:39 2003 J"orn Rennecke <joern.rennecke@superh.com>
350
351 * sh.md (reload_inqi): Fix mode for source in second set.
352
7101fb18
JH
353Tue Mar 11 22:48:03 CET 2003 Jan Hubicka <jh@suse.cz>
354
355 * cselib.c (cselib_invalidate_mem_1): Move too ...
356 (cselib_invalidate_mem): ... here; use new list
357 (dummy_val, first_containing_mem): New static variables.
358 (clear_table): Initialize first_containing_mem.
359 (discard_useless_values): Compact the containing_mem list.
360 (add_mem_for_addr): Add to the list.
361 * cselib.h (cselib_val): Add next_containing_mem.
362
b5044283
AH
3632003-03-11 Aldy Hernandez <aldyh@redhat.com>
364
365 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
366 instructions for e500.
367
cd6a5007
NB
3682003-03-11 Neil Booth <neil@daikokuya.co.uk>
369
370 * Makefile.in: Update.
371 * c-cppbuiltin.c: Include tm_p.h.
372
41f3a930
AH
3732003-03-11 Aldy Hernandez <aldyh@redhat.com>
374
375 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
376
377 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
378 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
379 (_Unwind_SetGR): Same.
380 (_Unwind_GetGRPtr): New.
381 (_Unwind_SetGRPtr): New.
382 (uw_update_context_1): Use accesor functions instead of accessing
383 context->reg[] directly.
384 (uw_install_context_1): Same.
385 (execute_cfa_program): Same.
386 (__frame_state_for): Same.
387
388 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
389 the synthetic register offset.
390
391 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
392
d2f55c5c
HPN
3932003-03-11 Hans-Peter Nilsson <hp@axis.com>
394
395 * config/cris/cris.md: Remove lingering EGCS reference.
396 ("*extopqihi_side_biap"): For HI operation, match
397 cris_additive_operand_extend_operator, not
398 cris_operand_extend_operator. Adjust condition.
399 ("*extopqihi_side", "*extopqihi"): Ditto.
400 ("*extopqisi_side_biap"): Correct operand numbers in condition.
401 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
402 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
403 ("*extophisi_swap"): Ditto.
404 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
405 PLUS, not cris_operand_extend_operator. Adjust condition and
406 output template.
407 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
408 * config/cris/cris.h (PREDICATE_CODES): Add
409 cris_additive_operand_extend_operator.
410 * config/cris/cris.c (cris_additive_operand_extend_operator):
411 New predicate.
412
37bd08f8
HP
4132003-03-11 Hartmut Penner <hpenner@de.ibm.com>
414
415 * df.c (read_modify_subreg_p): Change from static to global.
416 * df.h (read_modify_subreg_p): Add prototype.
417 * sched-deps.c (sched_analyze_1): Generate true dependency for
418 strict_low_part, certain subregs and zero/sign_extract.
419
cb60f38d
NB
4202003-03-11 Neil Booth <neil@daikokuya.co.uk>
421
422 * Makefile.in: Update.
423 * c-common.c: Don't include real.h or except.h.
424 (REGISTER_PREFIX): Remove.
425 (builtin_define_std, builtin_define_with_value,
426 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
427 builtin_define_type_max, builtin_define_type_precision,
428 builtin_define_float_constants): Move to c-cppbuiltin.c.
429 (c_stddef_cpp_builtins): New.
430 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
431 * c-cppbuiltin.c: New, extracted from c-common.c.
432 (define__GNUC__): New.
433 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
434 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
435 (cpp_unique_options): Don't support no-gcc.
436 (do_spec_1): Remove support of version specs.
437 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
438 * doc/passes.texi: Update.
439 * doc/tm.texi: Update.
440
31ca3635
AH
4412003-03-10 Aldy Hernandez <aldyh@redhat.com>
442
443 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
444
ab82a49f
AP
4452003-03-10 Andrew Pinski <apinski@apple.com>
446
447 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
448 is on should not get here.
449 (machopic_indirect_data_reference): If dynamic-no-pic is on just
450 generate high/low parts of the address.
451 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
452 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
453 symbol and labels with a new reg. Dynamic-no-pic does not have a
454 pic_offset_table_rtx.
455 (machopic_select_section): Change references of flag_pic to
456 MACHOPIC_INDIRECT.
457 (machopic_asm_out_destructor): Likewise.
458 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
459 reference of flag_pic to MACHOPIC_INDIRECT.
460 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
461 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
462 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
463 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
464 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
465 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
466 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
467 (TARGET_DYNAMIC_NO_PIC): Define.
468 (SUBTARGET_SWITCHES): Define, have sub-target switches for
469 dynamic-no-pic.
470 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
471 rs6000_override_options to here. Dynamic-no-pic overrides
472 pic.
473 (CC1_SPEC): Change from not static then pic to not static and not
474 dynamic-no-pic then pic.
475 * config/rs6000/rs6000.c (rs6000_override_options): Move the
476 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
477 (rs6000_legitimize_reload_address): Add case for loading floating in
478 dynamic-no-pic.
479 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
480 of flag_pic to MACHOPIC_INDIRECT.
481 (secondary_reload_class): Conditional change the reference of
482 flag_pic to MACHOPIC_INDIRECT.
483 (rs6000_output_mi_thunk): Change reference of flag_pic to
484 MACHOPIC_INDIRECT.
485 (output_profile_hook): Likewise.
486 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
487 * config/rs6000/rs6000.md (movdf_low): Add the case for
488 MACHO_DYNAMIC_NO_PIC_P.
489 (call): Change references for flag_pic in TARGET_MACHO to
490 MACHOPIC_INDIRECT.
491 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
492 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
493 * doc/invoke.texi (-mdynamic-no-pic): Document.
87d7d780
DP
494
4952003-03-10 Devang Patel <dpatel@apple.com>
496
497 PR c++/9394
498 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
499 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
500 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
501 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
502 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
503 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
504
6b856d15
SB
5052003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
506
507 PR optimization/7189
508 * toplev.c (rest_of_compilation): Move
509 check_function_return_warnings up to just after
510 delete_unreachable_blocks.
511
2d8d15b7
SC
5122003-03-10 Stephane Carrez <stcarrez@nerim.fr>
513
514 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
515 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
516 Declare.
517 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
518 for reg rename optimization to avoid using Z and Y registers.
519
0e01d661
SC
5202003-03-10 Stephane Carrez <stcarrez@nerim.fr>
521
522 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
523 when adding to X and Y since leax/leay are fast.
524 ("*addhi3"): Accept 'I' constraint when adding to address register.
525 ("rotlhi3"): Operand 1 must be a register_operand.
526 (peephole2): New peephole to optimize some adds.
527 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
528 to represent -2 .. 2 small integer range.
529
ae5b570e
SC
5302003-03-10 Stephane Carrez <stcarrez@nerim.fr>
531
532 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
533 each 16-bit rotation.
534
52999738
ZW
5352003-03-10 Zack Weinberg <zack@codesourcery.com>
536
537 * c-opts.c (add_prefixed_path): Don't use concat. When
538 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
539 cpp_GCC_INCLUDE_DIR_len characters.
540
5c242421
SB
5412003-03-10 Segher Boessenkool <segher@koffie.nl>
542
52999738 543 * testsuite/gcc.dg/altivec-9.c: New file.
5c242421 544
52999738
ZW
545 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
546 (rs6000_emit_prologue): Use rs6000_frame_related instead.
5c242421 547
b4053702
AH
5482003-03-10 Aldy Hernandez <aldyh@redhat.com>
549
52999738
ZW
550 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
551 vectors.
552 (__ev_convert_u64): Remove macro. Define as inline.
553 (__ev_convert_s64): Same.
b4053702 554
c19de7aa
AH
5552003-03-10 Aldy Hernandez <aldyh@redhat.com>
556
52999738
ZW
557 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
558 (rs6000_stack_t): Add spe_64bit_regs_used.
c19de7aa 559
52999738
ZW
560 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
561 spe_64bit_regs_used, and use it to determine the size of the
562 frame.
563 (spe_func_has_64bit_regs_p): New.
564 (spe_synthesize_frame_save): New.
565 (rs6000_frame_related): Handle SPE synthetic registers.
566 (rs6000_emit_prologue): Only save in 64-bits if the function used
567 any registers in 64-bit mode.
568 (rs6000_emit_epilogue): Same, but for restore.
c19de7aa 569
29ad9694
RE
5702003-03-10 Richard Earnshaw <rearnsha@arm.com>
571
572 * arm.h (enum floating_point_type): Delete. Replace with...
573 (enum fputype): ... new.
574 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
575 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
576 * arm.md (attr fpu): Reworked for new underlying enum values.
577 * arm.c (arm_fpu_arch): Now enum fputype.
578 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
579 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
580 Update uses of arm_fpu_arch and arm_fpu_tune.
581
39811184
JZ
5822003-03-10 Josef Zlomek <zlomekj@suse.cz>
583
52999738 584 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
39811184
JZ
585 (try_crossjump_to_edge): Replace refereces to one jump table by
586 references to identical jump table.
587 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
588 (replace_label): Moved to rtlanal.c.
589 (struct rtx_pair): Moved to rtl.h.
52999738 590 * rtl.h (struct rtx_pair): Moved from loop.c.
39811184
JZ
591 (replace_label): New extern function.
592 (subrtx_p): New extern function.
593 (tablejump_p): New extern function.
52999738 594 * rtlanal.c (replace_label): Moved from loop.c.
39811184
JZ
595 (subrtx_p_1): New static function.
596 (subrtx_p): New function.
597 (tablejump_p): New function.
598
ec3ae3da
JH
599Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz>
600
912b79e7
JH
601 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
602
ec3ae3da
JH
603 * cfgcleanup.c (merge_blocks): Return where to iterate next.
604 (try_optimize_cfg): Use return value of merge_blocks
605
e0fd3e7a
MM
6062003-03-10 Michael Matz <matz@suse.de>
607
608 * cfg.c (unchecked_make_edge): New.
609 (cached_make_edge): Use it.
610 * basic-block.h (unchecked_make_edge): Declare.
611 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
612
82955615
RE
6132003-03-10 Richard Earnshaw <rearnsha@arm.com>
614
615 * fpa.md: New file. Move all patterns relating to FPA co-processor
616 to here...
617 * arm.md: ... from here.
618 (cirrus.md, fpa.md): Include at end of description.
619 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
620 (pic_load_addr_based): Remove register constraint from expander.
621 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
622 (sordered, sungt, sunle, sunge, sunlt): Likewise.
623 (eh_epilogue, tablejump): Likewise.
624
f7b3ab8a
DE
6252003-03-09 David Edelsohn <edelsohn@gnu.org>
626 Mostafa Hagog
627
628 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
629 condition.
630
cc956ba2
NB
6312003-03-09 Neil Booth <neil@daikokuya.co.uk>
632
633 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
634 * config/ip2k/ip2k.h: Similarly.
635 * config/m32r/m32r.h: Similarly.
636 * config/m68hc11/m68hc11.h: Similarly.
637 * config/mn10200/mn10200.h: Similarly.
638 * config/mn10300/mn10300.h: Similarly.
639 * config/pdp11/pdp11.h: Similarly.
640 * config/v850/v850.h: Similarly.
641 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
642 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
643 * config/mips/iris3.h: Remove #if 0 block.
644
6452003-03-09 Roger Sayle <roger@eyesopen.com>
646 Joern Rennecke <joern.rennecke@superh.com>
647
648 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
649 pending argument upon return from handle_braces here.
650 (do_spec_2): Instead handle it upon return from do_spec_1 here.
651
6544fbcb
RS
6522003-03-09 Roger Sayle <roger@eyesopen.com>
653 Joern Rennecke <joern.rennecke@superh.com>
654
655 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
656 pending argument upon return from handle_braces here.
657 (do_spec_2): Instead handle it upon return from do_spec_1 here.
658
e1a04212
FS
6592003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
660
661 * varasm.c (make_decl_one_only): Use declare_weak().
662
4677862a
JDA
6632003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
664
665 PR middle-end/9986
666 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
667 after the common builtins.
668 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
669 * pa.c (TARGET_INIT_BUILTINS): Define.
670 (pa_init_builtins): New function.
671
672 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
673 space has been allocated for the outgoing arguments, set the arg
674 pointer for a call emitted after virtuals have been instantiated
675 using the stack pointer offset, otherwise abort.
676
2de12bc4
DD
6772003-03-09 DJ Delorie <dj@redhat.com>
678
679 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
680
17136dde
RE
6812003-03-09 Richard Earnshaw <rearnsha@arm.com>
682
683 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
684 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
685 conversion to integer.
686 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
687
f937d5e6
RS
6882003-03-09 Roger Sayle <roger@eyesopen.com>
689
690 * builtins.def: Fix typo and improve grammar.
691 * loop-unroll.c (decide_peel_completely): Tidy log message.
692
c5979bc6
KH
6932003-03-09 Kazu Hirata <kazu@cs.umass.edu>
694
695 * config/h8300/h8300.md (*tstsi_upper_bit): New.
696 (*iorsi3_e2f): Likewise.
697
4f4ebda3
KH
6982003-03-08 Kazu Hirata <kazu@cs.umass.edu>
699
700 * config/h8300/h8300.c (h8300_and_costs): Return the number of
701 assembly instructions needed.
702 (h8300_shift_costs): Likewise.
703
c366ade5
HPN
7042003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
705
02af0d9b
HPN
706 * config/cris/aout.h (ENDFILE_SPEC): Undef.
707
a3600c71
HPN
708 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
709 moves from here ...
710 * expr.c (emit_move_insn_1): ... to here.
711
a6e464ae
HPN
712 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
713 (TARGET_OS_CPP_BUILTINS): New macro.
714 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
715 (TARGET_OS_CPP_BUILTINS): New macro.
716 (CPP_PREDEFINES): Don't define. Move old definitions and...
717 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
718 (TARGET_CPU_CPP_BUILTINS): New macro.
719 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
720 definitions and the optional __PIC__, __pic__ and
721 __NO_UNDERSCORES__ definitions to...
722 (TARGET_OS_CPP_BUILTINS): New macro.
723
d8a25128
HPN
724 * flags.h (flag_leading_underscore): Declare.
725
c366ade5
HPN
726 * c-opts.c (c_common_post_options): On fopen failure, return
727 false, not NULL.
728
32b0bbaa
HPN
7292003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
730
731 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
732 config.h.
733 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
734 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
735
ad220576
NB
7362003-03-08 Neil Booth <neil@daikokuya.co.uk>
737
738 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
739 CPP_PREDEFINES.
740 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
741 CPP_PREDEFINES.
742
4bfec483
NB
7432003-03-08 Neil Booth <neil@daikokuya.co.uk>
744
745 * c-common.h (c_common_init, c_common_post_options): Update.
746 * c-objc-common.c (c_objc_common_init): Update for new prototype.
747 * c-opts.c (saved_lineno): New.
748 (c_common_post_options, c_common_init): Update prototypes,
749 move call to cpp_read_main_file from latter to former.
750 * c-tree.h (c_ojbc_common_init): Update.
751 * langhooks-def.h (lhd_post_options): New.
752 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
753 * langhooks.c (lhd_post_options): New.
754 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
755 * toplev.c (no_backend): New.
756 (process_options): Call post_options hook and set main_input_filename
757 and input_filename here.
758 (lang_dependent_init, do_compile): post_options hook moved to
759 process_options.
760 * objc/objc-act.c (objc_init): Update prototype.
761 * objc/objc-act.h (objc_init): Update prototype.
762
9dd04ab5
RS
7632003-03-08 Roger Sayle <roger@eyesopen.com>
764
765 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
766 a complex or vector type, using a load in the original mode.
767
988d1653
JH
768Sat Mar 8 19:22:30 CET 2003 Jan Hubicka <jh@suse.cz>
769
770 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
771 * gt-cgraph.h: New GC file.
772 * cgraph.c (known_fns): New static variable.
773 (cgraph_node): Add the decl into varray.
774
73ba39fc
HPN
7752003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
776
777 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
778
3b684012
RE
7792003-03-08 Richard Earnshaw <rearnsha@arm.com>
780
781 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
782 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
783 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
784 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
785 All callers changed.
786 * arm.md, arm.h, arm-protos.h: Updated.
787
788 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
789 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
790 * arm.c (arm_regno_class, f_register_operand): Updated.
791
fa5848c7
HPN
7922003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
793
794 * config/cris/cris.h: Remove EGCS references.
795 (CPP_SPEC): Remove "-$".
796 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
797
4555be98
NB
7982003-03-08 Neil Booth <neil@daikokuya.co.uk>
799
800 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
801 preference to CPP_PREDEFINES.
802
39a91264
NB
8032003-03-08 Neil Booth <neil@daikokuya.co.uk>
804
805 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
806
9571a6b9
KH
8072003-03-08 Kazu Hirata <kazu@cs.umass.edu>
808
809 * config/h8300/h8300.md (*extzv_16_8): New.
810
18d13f34
JH
811Sat Mar 8 14:13:35 CET 2003 Jan Hubicka <jh@suse.cz>
812
813 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
814 * cgraph.h: (cgraph_local_info): Add can_inline_once
815 (cgraph_global_info): Add inline_once.
816 (cgraph_node): Add previous.
817 (cgraph_remove_node): New.
818 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
819 function.
820 (cgraph_optimize): Call it.
821 (cgraph_finalize_function): Set inlinable flags.
822 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
823 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
824 (cgraph_expand_function): Likewise.
52999738 825 * cgraph.c
18d13f34
JH
826 (cgraph_node): Put nodes into doubly linked chain.
827 (cgraph_remove_node): New function.
828 * flags.h (flag_inline_functions_called_once): Declare.
829 * tree-inline.c: Include cgraph.h
830 (inlinable_functions_p): Add extra argument to bypass limits.
831 (expand_call_inline): Obey cgraph flag.
832 * tree-inline.h (tree_inlinable_function_p): Update prototype.
833
72b8d451
ZD
8342003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
835
836 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
837 irreducible loops.
838
839 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
840 loops info correctly.
841
ed97aa66
EB
8422003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
843
844 PR middle-end/7796
845 * unroll.c (calculate_giv_inc): Handle constants being
846 loaded with LSHIFTRT.
847
d7b53ca4
DE
8482003-03-07 David Edelsohn <edelsohn@gnu.org>
849
850 * config/rs6000/rs6000.c (processor_target_table): Do not disable
851 GP optional instructions on Power3, Power4, 620, and 630.
852
3dc575ff
KH
8532003-03-07 Kazu Hirata <kazu@cs.umass.edu>
854
855 * calls.c: Fix comment formatting.
856 * cfgloopanal.c: Likewise.
857 * cfgloopmanip.c: Likewise.
858 * combine.c: Likewise.
859 * dwarf2out.c: Likewise.
860 * ggc-common.c: Likewise.
861 * langhooks.c: Likewise.
862 * loop-unroll.c: Likewise.
863 * loop.c: Likewise.
864 * ra-build.c: Likewise.
865 * sbitmap.c: Likewise.
866 * toplev.c: Likewise.
867
9bcd9715
JW
8682003-03-07 James E Wilson <wilson@tuliptree.org>
869
ed97aa66 870 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
9bcd9715 871
6e5c4eaf
GK
8722003-03-07 Geoffrey Keating <geoffk@apple.com>
873
874 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
875 support -no-integrated-cpp.
876
877 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
878 than langhooks.name.
879
50aac998
MM
8802003-03-07 Michael Matz <matz@suse.de>
881
882 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
883 (DF_FOR_REGALLOC): New.
884 * df.c (df_ref_record): Set DF_REF_STRIPPED.
885 (read_modify_subreg_p): Simplify.
886 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
887 Use DF_FOR_REGALLOC.
888 * ra.h (struct web): New member subreg_stripped.
889 (invalid_mode_change_regs): Declare.
890 * ra.c (invalid_mode_change_regs): New.
891 (init_ra): Initialize it.
892 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
893 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
894 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
895 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
896 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
897
37f74dcf
RE
8982003-03-07 Richard Earnshaw <rearnsha@arm.com>
899
900 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
901 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
902 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
903 machine description file from ...
904 * cirrus.md: ... here.
905
203b3521
KH
9062003-03-06 Kazu Hirata <kazu@cs.umass.edu>
907
908 * config/h8300/h8300.md (a peephole2): Don't use
909 reg_overlap_mentioned_p.
910
8643e92d
GK
9112003-03-06 Geoffrey Keating <geoffk@apple.com>
912
913 * c-pch.c: Include langhooks.h.
914 (IDENT_LENGTH): New.
915 (get_ident): New.
916 (pch_ident): Delete.
917 (pch_init): Use get_ident, IDENT_LENGTH.
918 (c_common_valid_pch): Likewise. Also, use actual language
919 in warning message.
920 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
921
922 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
923 c-parse.in.
924 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
925 gt-objc-objc-act.h.
926 (gt-objc-objc-act.h): New rule.
927 * objc/lang-specs.h: Support PCH.
928 * objc/objc-act.c: Include gt-objc-objc-act.h.
929 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
930 (build_selector_reference_decl): Move idx out, mark for PCH.
931 (build_class_reference_decl): Likewise.
932 (build_objc_string_decl): Move *_idx out, mark for PCH.
933 (build_tmp_function_decl): Move xxx out, mark for PCH.
934
7f3d8013
DJ
9352003-03-06 Dale Johannesen <dalej@apple.com>
936
937 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
938 global functions for inlining on Darwin.
939
14484a78
VM
9402003-03-06 Vladimir Makarov <vmakarov@redhat.com>
941
942 * haifa-sched.c (schedule_block): Don't call reorder when sorting
943 is prohibited.
944
9d10c9a9
NB
9452003-03-06 Neil Booth <neil@daikokuya.co.uk>
946
947 * Makefile.in (c-ppoutput.o): Update.
948 * c-common.h (init_pp_output): New.
949 (preprocess_file): Update.
950 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
951 Register builtins.
952 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
953 Make call to cpp_read_main_file common to whether preprocessing
954 or not. Don't register builtins.
955 * c-ppoutput.c: Include c-pragma.h.
956 (setup_callbacks): Rename init_pp_output.
957 (preprocess_file): No longer setup callbacks or call
958 cpp_read_main_file.
959 * cpphash.h (_cpp_init_mbchar): New.
960 * cppinit.c (init_library): Call _cpp_init_mbchar.
961 * cpplex.c (_cpp_init_mbchar): New.
962
37f5242b
RS
9632003-03-06 Roger Sayle <roger@eyesopen.com>
964
965 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
966 MEM, try loading the MEM into a register and taking the low-part
967 of that, to help CSE see the use of the MEM in its true mode.
968
f3922fd2
DD
9692002-03-05 Tom Tromey <tromey@redhat.com>
970
971 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
972 Define.
973
9742002-03-05 Nick Clifton <nickc@cambridge.redhat.com>
975
976 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
977 operand 2.
978 ("*ineqbranchsi"): Likewise.
979
9802002-03-05 Andrew Haley <aph@cambridge.redhat.com>
981
982 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
983 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
984 register store followed by a stack increment.
985
9862002-03-05 Chris Moller <cmoller@redhat.com>
987
988 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
989 to inhibit saving CARRY_REGS.
990
991 * config/stormy16/stormy16.c (xs_hi_general_operand):
992 added predicate to detect and error-out on out-of-range
993 const_ints for movhi.
52999738 994 * config/stormy16/stormy16.md (movhi): use
f3922fd2
DD
995 xs_hi_general_operand.
996
997 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
998 added a check for local vbl size overflow.
999 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
1000 added predicate to detect and error-out on out-of-range
1001 const_ints for addhi and subhi.
52999738 1002 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
f3922fd2
DD
1003 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
1004
1005 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1006 add a term to accept PRE_MODIFY addresses.
1007 * config/stormy16/stormy16.c (xstormy16_expand_move):
1008 add code to expand PRE_MODIFY addresses to an add followed
1009 by a move.
1010
4c28216d
JM
10112003-03-06 Jason Merrill <jason@redhat.com>
1012
1013 * tree-inline.c (inlinable_function_p): Revert earlier change
1014 pending investigation.
1015
0135f343
KH
10162003-03-06 Kazu Hirata <kazu@cs.umass.edu>
1017
1018 * config/h8300/h8300.md (a new peephole2): New.
1019
5c2e00ee
JH
1020Thu Mar 6 14:20:15 CET 2003 Jan Hubicka <jh@suse.cz>
1021
1022 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
1023
323658ea
ZD
10242003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1025
1026 * dwarf2out.c (size_of_die): Compute size of external reference to
1027 die correctly.
1028
2b18b49b
HPN
10292003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
1030
1031 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
1032 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
1033 expanders.
1034
1a71a5b0
RS
10352003-03-05 Roger Sayle <roger@eyesopen.com>
1036
1037 * expr.h (lang_expand_expr): Delete obsolete prototype.
1038
26d249eb
KH
10392003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1040
1041 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
1042
8b41a8da
KH
10432003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1044
1045 * config/h8300/h8300.md (a peephole2): Generalize to
1046 accept a memory operand.
1047
39ee7fa9
OH
1048Wed Mar 5 19:34:18 2003 Olivier Hainque <hainque@act-europe.fr>
1049
1050 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
1051 * config/alpha/alpha.c (print_operand, case '+'): New.
1052 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
1053 (call_value_osf_1_noreturn): Likewise.
1054
cda26058
RK
1055Wed Mar 5 18:55:02 2003 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1056
1057 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
1058 (expand_end_bindings): Likewise.
1059
98857de8
JDA
10602003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1061
1062 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
1063 (epilogue): Don't generate return_external_pic when emitting PA 2.0
1064 code.
1065
96714395
AH
10662003-03-05 Aldy Hernandez <aldyh@redhat.com>
1067
52999738 1068 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
96714395 1069
52999738 1070 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
96714395 1071
52999738 1072 * hooks.c (hook_rtx_rtx_null): New.
96714395 1073
52999738 1074 * hooks.h (hook_rtx_rtx_null): Protoize.
96714395 1075
52999738
ZW
1076 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
1077 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
96714395 1078
52999738 1079 * target.h (struct gcc_target): Add dwarf_register_span.
96714395 1080
52999738
ZW
1081 * dwarf2out.c (multiple_reg_loc_descriptor): New.
1082 (one_reg_loc_descriptor): New.
1083 (reg_loc_descriptor): Add support for values that span more than
1084 one register.
96714395 1085
b255a036
JH
1086Wed Mar 5 23:16:57 CET 2003 Jan Hubicka <jh@suse.cz>
1087
1088 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
1089 * alias.c: Include cgraph.h
1090 (mark_constant_function): Use cgraph_rtl_info.
1091 * calls.c: Include cgraph.h
1092 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
1093 calls.
1094 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
1095 * cgraph.c (cgraph_rtl_info): New function.
1096 * cgraph.h (cgraph_rtl_info): Declare
1097 (cgraph_rtl_info): Likewise.
1098 * function.h (struct function): Add recursive_call_emit.
1099 * toplev.c: Include cgraph.h.
1100 (rest_of_compilation): Set preferred_incoming_stack_boundary.
1101
0eb933a0
KH
11022003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1103
1104 * config/h8300/h8300.c (output_simode_bld): Clear the
1105 destination first if possible.
1106 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
1107 alternative.
1108 (extzv_1_r_inv_h8300hs): Likewise.
1109
35b07080
ZD
11102003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1111
1112 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
1113 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
1114 * cfgloop.c (flow_loop_free): Made global.
1115 (establish_preds): New static function.
1116 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
1117 (get_loop_exit_edges): New.
1118 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
1119 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
1120 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
1121 loops.
1122 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
1123 removability of an edge.
1124 (fix_irreducible_loops): New static function.
1125 (find_path, remove_path): Add ability to remove enclosing loops.
1126 (unloop): New.
1127 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
1128 flags.
1129 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
1130 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
1131 not neccessary.
1132 (decide_peel_completely, peel_loops_completely): Allow complete peeling
1133 of non-duplicable once rolling loops.
1134 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
1135
bb182d23
R
1136Wed Mar 5 21:40:57 2003 J"orn Rennecke <joern.rennecke@superh.com>
1137
1138 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
1139 for align_jumps is 4.
1140
1141 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
1142 use GENERAL_REGS.
1143
f2d0440f
SC
11442003-03-05 Stephane Carrez <stcarrez@nerim.fr>
1145
1146 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
1147 according to va_arg type.
1148 (EXPAND_BUILTIN_VA_ARG): Remove.
1149 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
1150 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
1151
165b263e
DE
11522003-03-05 David Edelsohn <edelsohn@gnu.org>
1153
1154 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
1155 else clauses.
1156
8c38a24f
MM
11572003-03-05 Michael Matz <matz@suse.de>
1158
1159 * i386/i386.c (ix86_save_reg): Also test
1160 current_function_uses_const_pool.
1161
336d0d96
MM
11622003-03-05 Michael Matz <matz@suse.de>
1163
1164 * unwind.h: Add the GPL exception.
1165 * Makefile.in (USER_H): Add unwind.h.
1166
be2fa211
EB
11672003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1168
1169 PR c/9799
1170 * c-typeck.c (push_init_level): Add sanity check.
1171
dafc5b82
JH
1172Wed Mar 5 02:04:04 CET 2003 Jan Hubicka <jh@suse.cz>
1173
1174 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
1175 RTL inlining is done.
1176
1177 * cgraphunit.c (cgraph_mark_local_functions): New local function.
1178 (cgraph_optimize): Mark local functions.
1179 * i386-protos.h (init_cumulative_args): Update prototype.
1180 * i386.c (init_cumulative_args): Use register passing convention for
1181 local functions.
1182
1183 * cgraph.c (cgraph_global_info_ready): New global variable
1184 (cgraph_local_info, cgraph_global_info): New functions.
1185 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
1186 structures.
1187 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
1188 Declare.
1189 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
1190 (cgraph_mark_functions_to_output): Use inline_many.
1191 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
1192 (cgraph_expand_functions): Expand inline functions last.
1193 (cgraph_optimize): Do not emit uneeded functions.
1194
006c9f4a
SE
11952003-03-04 Steve Ellcey <sje@cup.hp.com>
1196
1197 * expr.c (convert_modes): Check for legal hard register.
1198
65ebbf81
TT
11992003-03-04 Tom Tromey <tromey@redhat.com>
1200
1201 * doc/sourcebuild.texi (Front End Directory): Document tags.
1202 * configure: Rebuilt.
1203 * configure.in (target_list): Added tags.
1204 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
1205 TAGS files by reference.
1206 * objc/Make-lang.in (objc.tags): New target.
1207
ec4a0419
ZD
12082003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1209
1210 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
1211 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
1212 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
1213 gcov_read_string, gcov_write_length): Modified to enable reading/
1214 writing of whole .da file just once.
1215 (da_file_open, da_file_close, da_file_eof, da_file_error,
1216 da_file_position, da_file_seek, da_file_write, da_file_read): New
1217 functions.
1218 (actual_da_file, actual_da_file_position, actual_da_file_length,
1219 actual_da_file_buffer, actual_da_file_buffer_size): New static
1220 functions.
1221 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
1222 just once.
1223
1224
79dbeefc
AS
12252003-03-04 Andreas Schwab <schwab@suse.de>
1226
1227 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
1228 offset without frame pointer.
1229
3ac1a319
SE
12302003-03-04 Steve Ellcey <sje@cup.hp.com>
1231
1232 * expr.c (expand_expr): Call promote_mode to set unsignedp.
1233
db720d9a
DJ
12342003-03-04 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
1237 * configure: Regenerated.
1238 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
1239
9a79ab7e
AJ
12402003-03-04 Andreas Jaeger <aj@suse.de>
1241
1242 * configure.in: Check for <memcheck.h>.
52999738 1243 * configure: Regenerated.
9a79ab7e
AJ
1244
1245 * config.in: Define HAVE_MEMCHECK_H.
1246
1247 * ggc-common.c: Use <memcheck.h> if available instead of
1248 <valgrind.h>.
1249 * ggc-page.c: Likewise.
1250 * cppfiles.c: Likewise.
1251
a8f0e848
KH
12522003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1253
1254 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
1255
2ad1815d
EB
12562003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1257
1258 PR c/9262
1259 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
1260 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
1261
e2483ef7
JH
1262Tue Mar 4 11:30:04 CET 2003 Jan Hubicka <jh@suse.cz>
1263
1264 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
1265 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
1266 for -O3.
1267
34a86c2b
NN
12682003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
1269
1270 * configure.in: Delete three unused variables. Move a variable
1271 definition closer to its use. Simplify use_collect2 logic. Start to
1272 organize. Simplify tests for in-tree gas and ld.
1273 * configure: Regenerate.
1274
63973df3
NB
12752003-03-04 Neil Booth <neil@daikokuya.co.uk>
1276
1277 * Makefile.in: Update.
1278 * c-common.c (flag_no_line_commands, flag_no_output,
1279 flag_dump_macros, flag_dump_includes): New.
1280 * c-common.h (flag_no_line_commands, flag_no_output,
1281 flag_dump_macros, flag_dump_includes, preprocess_file): New.
1282 (init_c_lex): Update prototype.
1283 * c-lex.c (init_c_lex): Update prototype; move some code to
1284 c_common_init.
1285 * c-opts.c (preprocess_file): Subsume into c_common_init.
1286 (c_common_decode_option): Update flags.
1287 (c_common_init): Move code from preprocess_file and init_c_lex.
1288 (sanitize_cpp_opts): Update.
1289 * c-ppoutput.c: New, cppmain.c almost verbatim.
1290 * cpphash.h (struct printer): Remove.
1291 (struct cpp_reader): Remove print.
1292 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
1293 cpp_preprocess_file): Remove.
1294 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
1295 and dump_includes.
1296 * cppmain.c: Remove.
1297 * doc/passes.texi: Update.
1298
95f3f59e
JDA
12992003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1300
1301 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
1302 (assign_stack_local_1): Perform overall stack alignment only when
1303 STACK_ALIGNMENT_NEEDED is non-zero.
1304 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
1305
1306 * pa.c (compute_frame_size): Rename fsize to size. Account for
1307 alignment to a word boundary before general register save block. Only
1308 account for double-word alignment before floating point register save
1309 block if one or more are saved. Don't allocate space for %r3 when
1310 frame pointer is needed.
1311 (hppa_expand_prologue): Include alignment to word boundary in local
1312 frame size.
1313 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
1314 (STACK_ALIGNMENT_NEEDED): Define.
1315
234c071b
KB
13162003-03-04 Kevin Buettner <kevinb@redhat.com>
1317
1318 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
1319 global register variables.
1320
f12448c8
AO
13212003-03-04 Alexandre Oliva <aoliva@redhat.com>
1322
1323 * reload.c (reload_adjust_reg_for_mode): New function.
1324 (subst_reloads): Call it.
1325 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
1326 * reload.h (reload_adjust_reg_for_mode): Declare.
1327 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
1328 Call it.
1329
f9d36a92
JW
13302003-03-03 James E Wilson <wilson@tuliptree.org>
1331
1332 * optabs.c (add_equal_note): Delete SUBREG_REG use.
1333 Fixes PR c/7872.
1334
8dfb356f
KH
13352003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1336
1337 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
1338 (*ixorsi3_lshiftrt_16): New.
1339 (*iorsi3_ashift_16): Remove.
1340
0d9bf032
KH
13412003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1342
1343 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
1344 pattern.
1345
b89a3806
GK
13462003-03-03 Geoffrey Keating <geoffk@apple.com>
1347
1348 * doc/install.texi (Specific): Update entry for powerpc-darwin.
1349
568d661d
RH
13502003-03-03 Richard Henderson <rth@redhat.com>
1351
1352 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
1353
3317bab1
DE
13542003-03-03 David Edelsohn <edelsohn@gnu.org>
1355
1356 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
1357 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
1358 (rs6000_variable_issue): Do not return negative value.
1359 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
1360 scheduling pass.
1361
03275f81
ZD
13622003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1363
1364 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
1365 prune_unused_types calls.
1366
d1a74aa7
JM
13672003-03-03 Jason Merrill <jason@redhat.com>
1368
1369 * tree-inline.c (find_builtin_longjmp_call): Save and restore
1370 lineno and input_filename.
1371 (find_alloca_call): Likewise.
1372 (inlinable_function_p): Run the langhook earlier.
1373
1374 * calls.c (compute_argument_addresses): Give the new MEMs a
1375 minimum alignment of PARM_BOUNDARY.
1376
d44cc404
R
1377Mon Mar 3 20:45:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
1378
1379 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
1380 subtarget_asm_isa_spec.
1381 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
1382 (ASM_SPEC): Define as SH_ASM_SPEC.
1383 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
1384 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
1385 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
1386 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
10f4f635
R
1387
1388 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
1389 and align_jumps if not set.
1390 Force align_jumps to be at least 2.
1391 When relaxing, force align_functions to be at least the maximum of
1392 align_loops, align_jumps and 4.
1393 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
1394 (sh_loop_align): Honour align_loops_log.
1395
1396 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
1397 to check for indirect_jump_scratch.
1398 (indirect_jump_scratch): Add second set.
1399 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
1400 when looking for indirect_jump_scratch.
1401 Extract scratch register taking new structure of indirect_jump_scratch
1402 into account.
1403 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
1404
f7da1e9a
JH
1405Mon Mar 3 19:07:21 CET 2003 Jan Hubicka <jh@suse.cz>
1406
09e2bf48
JH
1407 * calls.c (rtx_for_function_call): Take the address as an argument
1408 (expand_call): Do not modify the expression.
1409
f7da1e9a
JH
1410 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
1411 optimizing.
1412
426ace7f
KH
14132003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1414
1415 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
1416 TARGET_H8300H and TARGET_H8300S.
1417
6967a126
KH
14182003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1419
1420 * config/h8300/h8300.md (a peephole2): New.
1421
1f7e8790
KH
14222003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1423
1424 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
1425 operands[0] and operands[1] are different.
1426
14272003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2807791e
KH
1428
1429 * reload1.c (reload_cse_move2add): Remove variable success.
1430
a2581175
KG
14312003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1432
1433 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
1434 warnings.
1435
ef1ecf87
RH
14362003-03-02 Richard Henderson <rth@redhat.com>
1437
1438 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
1439 * config.in, configure: Rebuild.
1440 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9a79ab7e 1441 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
ef1ecf87
RH
1442 paired ldtoffx and ldxmov annotations.
1443 (load_symptr_internal1): Remove.
1444 (load_symptr_high, load_symptr_low): New.
1445
82f6e3eb
NB
14462003-03-02 Neil Booth <neil@daikokuya.co.uk>
1447
1448 * c-incpath.c (add_path): Fix sysp assignment.
1449
bc522472
KG
14502003-03-02 Kurt Garloff <garloff@suse.de>
1451
1452 * params.def: Introduce parameter max-inline-insns-rtl for
1453 a separate limit for the RTL inliner.
1454 * params.h: Likewise.
1455 * integrate.c (function_cannot_inline_p): Use it.
9a79ab7e 1456 * toplev.c (decode_f_option): Set multiple parameters
bc522472
KG
1457 controlling inlining with -finline-limit.
1458 * params.def: Fix orthographic and typographic errors.
1459 * doc/invoke.texi: Document parameters controlling inlining
1460 and the way -finline-limit sets multiple of them.
1461
1462 * tree.h (struct tree_decl): Introduce inlined_function_flag,
1463 recording whether the function became eligible for inlining
1464 by a compiler flag rather than the declaration.
1465 Provide DID_INLINE_FUNC macro to access it.
1466 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
1467 * cp/decl.c (grokfndecl): Likewise.
1468 * toplev.c (rest_of_compilation): Likewise.
1469 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
1470 * print-tree.c (print_node): Report it.
1471 * params.def: Introduce new max-inline-insns-auto limit.
1472 * params.h: Likewise.
1473 * tree-inline.c (inlinable_function_p): Apply it to functions
1474 with DID_INLINE_FUNC set.
1475 * toplev.c (decode_f_option): Initialize it from -finline-limit
1476 value.
1477 * doc/invoke.texi: Document new parameter.
1478
b9f4b20a
GK
14792003-03-02 Geoffrey Keating <geoffk@apple.com>
1480
1481 * fix-header.c (read_scan_file): Don't reference simplify_path.
1482
97d322cc
SC
14832003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1484
1485 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
1486 min/max instructions by default as may result in reload errors.
1487
65fb64fe
SC
14882003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1489
1490 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
1491 avoid reload problems; define split for it.
1492
b45e9837
SC
14932003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1494
1495 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
1496 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
1497 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9a79ab7e 1498 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
b45e9837
SC
1499 rotatert and rotate.
1500 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
1501 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
1502 ("*rotrhi3_addr"): New split for shift insns on address register.
1503 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
1504 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
1505 (___rotrhi3): Likewise.
1506 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
1507
b1cbe78c
NB
15082003-03-02 Neil Booth <neil@daikokuya.co.uk>
1509
1510 * toplev.c (aux_base_name): Moved from toplev.h.
1511 (filename): Constify.
1512 (lang_dependent_init): Don't duplicate name.
1513 (process_options): Set aux_base_name here, not...
1514 (do_compile): ...here. Change protoype.
1515 (toplev_main): Move some code from do_compile.
1516 * toplev.h: Remove aux_base_name.
1517
b059c02a
KH
15182003-03-02 Kazu Hirata <kazu@cs.umass.edu>
1519
1520 * config/h8300/h8300-protos.h: Add a prototype for
1521 iorxor_operator.
1522 * config/h8300/h8300.c (print_operand): Handle 'c'.
1523 (iorxor_operator): New.
1524 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
1525 * config/h8300/h8300.md (*iorhi3_zext): Remove.
1526 (*iorsi3_zexthi): Likewise.
1527 (*iorsi3_zextsi): Likewise.
1528 (*xorhi3_zextqi): Likewise.
1529 (*xorsi3_zexthi): Likewise.
1530 (*xorsi3_zextsi): Likewise.
1531 (*ixorhi3_zext): New.
1532 (*ixorsi3_zext_qi): Likewise.
1533 (*ixorsi3_zext_hi): Likewise.
1534
986b1f13
NB
15352003-03-02 Neil Booth <neil@daikokuya.co.uk>
1536
1537 * c-incpath.c (remove_component_p, simplify_path): Move back to
1538 cppfiles.c.
1539 (remove_duplicates): Use cpp_simplify_path.
1540 * c-incpath.h (simplify_path): Remove.
1541 * c-lex.c: Don't include c-incpath.h.
1542 (init_c_lex): Remove simplify_path.
1543 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
1544 (find_or_create_entry, validate_pch): Revert.
1545
8a035a6b
AH
15462003-03-02 Ashif Harji <asharji@uwaterloo.ca>
1547
1548 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
1549 an external cpp during compilation.
1550 (option_map): Likewise.
1551 * objc/lang-specs.h (default_compilers): Similarly.
1552 * doc/invoke.texi: Document -no-integrated-cpp flag.
1553
23cdb465
KH
15542003-03-02 Kazu Hirata <kazu@cs.umass.edu>
1555
1556 * config/h8300/h8300.md (zero_extendqisi2): Change to an
1557 expander.
1558 (*zero_extendqisi2_h8300): New.
1559 (*zero_extendqisi2_h8300hs): New.
1560 (two splitters): New.
1561
29efb633
KG
15622003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1563
1564 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
1565
36bf3f1b
KH
15662003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1567
1568 * config/h8300/h8300.md (a peephole2): Remove dead code.
1569
08291658
RS
15702003-03-01 Roger Sayle <roger@eyesopen.com>
1571
1572 PR c++/9367
1573 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
1574 (BT_FN_INT_CONST_STRING_VALIST_ARG,
1575 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
1576 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
1577 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
1578 BT_FN_INT_STRING_CONST_STRING_VAR,
1579 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
1580 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
1581 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
1582 ATTR_NONNULL_3): Also include the nothrow attribute.
1583 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
1584 vsnprintf, vscanf, vsscanf): Don't define attributes here.
1585 * builtins.def (putchar, puts): Make full C89 built-ins.
1586 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
1587 vsscanf, vsnprintf, vsprintf): New built-ins.
1588 * c-common.c (c_common_nodes_and_builtins): Handle new macro
1589 DEF_FUNCTION_TYPE_VAR_3.
1590
1591 * doc/extend.texi: Document these new built-in functions.
1592
e5258f85
KH
15932003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1594
1595 * config/h8300/h8300.md (a peephole2): New.
1596
85bb9c2a
RE
15972003-03-01 Richard Earnshaw <rearnsha@arm.com>
1598
1599 * predict.c (estimate_bb_frequencies): Correctly set
1600 real_values_initialized after initialization.
1601
5793b276
NB
16022003-03-01 Neil Booth <neil@daikokuya.co.uk>
1603
1604 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
1605 cppinit.o, cppdefault.o, fix-header): Update.
1606 * c-incpath.c: New file.
1607 * c-incpath.h: New file.
1608 * c-lex.c: Include c-incpath.h.
1609 (init_c_lex): Register path simplifier.
1610 * c-opts.c: Include cppdefault.h and c-incpath.h.
1611 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
1612 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
1613 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
1614 (missing_arg, c_common_decode_option): Handle them.
1615 (c_common_post_options): Register include chains.
1616 (print_help): Update.
1617 * cppdefault.h (struct default include): Update.
1618 Move some macros to ...
1619 * cppdefault.c: ... here.
1620 (cpp_include_defaults): Add extra field add_sysroot.
1621 * cppfiles.c (include_file, search_from, find_or_create_entry,
1622 cpp_included, find_include_file, remap_filename): Update for
1623 renaming of search_path to cpp_path, and of the chain headers.
1624 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
1625 * cpphash.h (struct search_path): Move to cpplib.h.
1626 (struct cpp_buffer, struct cpp_reader): Update.
1627 (_cpp_simplify_pathname): Remove.
1628 * cppinit.c: Don't include prefix.h and cppdefault.h.
1629 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
1630 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
1631 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
1632 no_pth, cpp_handle_options): Remove.
1633 (struct pending_option): Remove chain members.
1634 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
1635 cpp_handle_option): Update.
1636 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
1637 (struct cpp_options): Remove quote_include, bracket_include,
1638 include_prefix, include_prefix_len, verbose, ignore_srcdir,
1639 no_standard_includes, no_standard_cplusplus_includes.
1640 (struct cpp_callbacks): Add simplify_path.
1641 (cpp_handle_options): Remove.
1642 * fix-header.c: Include c-incpath.h.
1643 (read_scan_file): Update to use c-incpath functionality.
1644 * doc/passes.texi: Update.
1645
6620997b
KH
16462003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1647
1648 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
1649 satisfies EXTRA_CONSTRAINT 'U'.
1650
82b4dc2e
KH
16512003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1652
1653 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
1654 register.
1655 (*tst_extzv_memqi_1_n): Change to a splitter.
1656 (a peephole2): Update.
1657
c4f6b78e
RE
16582003-03-01 Richard Earnshaw <rearnsha@arm.com>
1659
1660 * predict.c (estimate_bb_frequencies): Initialize the sreal
1661 constants once per compilation.
1662
9552a3e3
RH
16632003-02-28 Richard Henderson <rth@redhat.com>
1664
1665 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
1666
73c68f61
SS
16672003-02-28 scott snyder <snyder@fnal.gov>
1668
1669 * flags.h: Add flag_eliminate_unused_debug_types.
1670 * toplev.c: Add flag_eliminate_unused_debug_types.
1671 (f_options): Add -feliminate-unused-debug-types.
1672 * dwarf2out.c (struct file_table): Add emitted member.
1673 (splice_child_die): Fix the parent pointer for the child being
1674 spliced.
1675 (lookup_filename): Maintain file_table.emitted array. Don't
1676 output .file directive here.
1677 (maybe_emit_file): (new)
1678 (init_file_table): Set up file_table.emitted.
1679 (dwarf2out_source_line): Use maybe_emit_file.
1680 (dwarf2out_start_source_file): Use maybe_emit_file.
1681 (dwarf2out_init): Use maybe_emit_file.
1682 (prune_unused_types_walk_attribs): (new)
1683 (prune_unused_types_mark): (new)
1684 (prune_unused_types_walk): (new)
1685 (prune_unused_types_prune): (new)
1686 (prune_unused_types): (new)
1687 (dwarf2out_finish): Call prune_unused_types if
1688 flag_eliminate_unused_debug_types is set.
1689 * doc/invoke.texi (Option Summary): Add
1690 -feliminate-unused-debug-types.
1691 (Debugging Options): Likewise.
1692
d8fad4ea
GK
16932003-02-28 Geoffrey Keating <geoffk@apple.com>
1694
1695 * doc/invoke.texi: Change .pch to .gch.
1696 * cppfiles.c (open_file_pch): Likewise.
1697 * gcc.c (default_compilers): Likewise.
1698
9855905c
AH
16992003-02-28 Aldy Hernandez <aldyh@redhat.com>
1700
52999738 1701 * floatlib.c: Remove.
9855905c 1702
3695c25f
JM
17032003-02-28 Jason Merrill <jason@redhat.com>
1704
1705 * stor-layout.c (variable_size): Leave a "minus 1" outside the
1706 SAVE_EXPR.
1707
f8f0e566
DE
17082003-02-28 David Edelsohn <edelsohn@gnu.org>
1709
1710 * config/rs6000/power4.md: Add compare bypass.
1711
35501efe
JT
17122003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
1713
1714 * config/netbsd.h: Update copyright years.
1715 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
1716 -pthread is specified on the command line.
1717
8f7ee471
DJ
17182003-02-28 Dale Johannesen <dalej@apple.com>
1719
52999738 1720 * loop.c (struct movable): Add insert_temp, shrink savemode.
8f7ee471 1721 (scan_loop): Accept invariants that require copying; mark as
52999738 1722 insert_temp.
8f7ee471
DJ
1723 (combine_movables): Don't combine insert_temp movables.
1724 (move_movables): Insert copies for insert_temp movables.
1725 Don't record the info based on regno for insert_temp's.
1726
67c2b45f
JS
17272003-02-28 Joel Sherrill <joel@OARcorp.com>
1728
1729 PR 9638/other
9a79ab7e 1730 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
67c2b45f
JS
1731 this constant defaults to 1.
1732
066f1538
BW
17332003-02-28 Bob Wilson <bob.wilson@acm.org>
1734
1735 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
1736
b8c53e96
RE
17372003-02-28 Richard Earnshaw <rearnsha@arm.com>
1738
9a79ab7e 1739 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
b8c53e96
RE
1740 ARMv5e processor, not just for XScale. Instructions are predicable.
1741 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
1742
b93828f3
NC
17432003-02-28 Nick Clifton <nickc@redhat.com>
1744
1745 * config/arm/arm.c (note_invalid_constants): Change parameter type
1746 from bool to int.
1747
3c042316
KH
17482003-02-28 Kazu Hirata <kazu@cs.umass.edu>
1749
1750 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
1751 test of bit 7.
1752 (*tst_extzv_memqi_1_n): Likewise.
1753 (a peephole2): New.
1754
28727f1f
RS
17552002-02-28 Richard Sandiford <rsandifo@redhat.com>
1756
1757 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
1758 #ifndef __mips16.
1759
10a3fdd9
JH
1760Fri Feb 28 11:09:14 CET 2003 Jan Hubicka <jh@suse.cz>
1761
1762 * combine.c (gen_lowpart_for_combine): Update handling of
1763 subregs_of_mode
1764 * flow.c (life_analysis, mark_used_regs): Likewise.
1765 * regclass.c (subregs_of_mode): Turn into single bitmap.
1766 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
1767 dealing with subregs_of_mode
1768 * regs.h (subregs_of_mode): Update prototype.
1769
9d18e06b
JZ
17702003-02-28 Josef Zlomek <zlomekj@suse.cz>
1771
1772 * emit-rtl.c (set_reg_attrs_for_parm): New function.
1773 * rtl.h (set_reg_attrs_for_parm): New exported function.
1774 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
1775 set_reg_attrs_from_mem.
1776
95456d43
RS
17772003-02-27 Roger Sayle <roger@eyesopen.com>
1778 Zack Weinberg <zack@codesourcery.com>
1779
1780 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
1781
28ae9fed
KH
17822003-02-27 Kazu Hirata <kazu@cs.umass.edu>
1783
1784 * reload1.c (sext_for_mode): Remove.
1785 (reload_cse_move2add): Use trunc_int_for_mode instead of
1786 sext_for_mode.
1787 (move2add_note_store): Likewise.
1788 Reset register information if we see a set in non-integer
1789 mode.
1790
d47719fd
DE
17912003-02-27 David Edelsohn <edelsohn@gnu.org>
1792
30e7f17e
DE
1793 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
1794 option.
1795 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
1796 * config/rs6000/aix51.h: Same.
1797 * config/rs6000/aix52.h: Same.
d47719fd
DE
1798 * config/rs6000/power4.md: Additional VMX bypasses.
1799
7a69a172
GB
18002003-02-27 Geert Bosch <bosch@gnat.com>
1801
1802 * toplev.c (print_version): Add indentation for GGC heuristics and
1803 output after printing version information.
1804
678e68fc
JW
18052003-02-27 James E Wilson <wilson@tuliptree.org>
1806
1807 * combine.c (simplify_comparison): Require integral mode when
1808 permuting SUBREG with AND.
1809
986704f1
SE
18102003-02-27 Steve Ellcey <sje@cup.hp.com>
1811
1812 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
1813
1e3af7f6
NC
18142003-02-27 Nick Clifton <nickc@redhat.com>
1815
1816 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
1817 deleted when cirrus instructions were added.
1818
51b7c247
JT
18192003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
1820
1821 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
1822 POSIX thread support by default.
1823
3eae722d
RS
18242003-02-27 Roger Sayle <roger@eyesopen.com>
1825
1826 * config/i386/cygwin.h: Don't include any other files directly.
1827 * config/i386/mingw32.h: Don't include cygwin.h directly.
1828 * config.gcc (cygwin, mingw32, uwin): Instead make these files
1829 explicit in the tm_files variable.
1830
6fc19dc9
AM
18312003-02-27 Alan Modra <amodra@bigpond.net.au>
1832
1833 * config/rs6000/rs6000.md: Add TI constant splitter.
1834
c41536f5
AO
18352003-02-26 Alexandre Oliva <aoliva@redhat.com>
1836
65c04548
AO
1837 * builtins.c (purge_builtin_constant_p): Handle subreg of
1838 constant_p_rtx too.
1839
c41536f5
AO
1840 * function.c (assign_stack_local_1): Truncate constant added to
1841 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
1842
dccd5213
DE
18432003-02-26 David Edelsohn <edelsohn@gnu.org>
1844
1845 * config.gcc: Add power4 to PowerPC with_cpu list.
1846
47a5d8e7
JH
1847Wed Feb 26 19:46:25 CET 2003 Jan Hubicka <jh@suse.cz>
1848
1849 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
1850
cb9e4555
ZD
18512003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1852
1853 * gcov-dump.c (print_prefix): Fix signedness warning.
1854 * gcov-io.h (struct counter_section, struct counter_section_data): New.
1855 (struct function_info): n_arc_counts field removed, n_counter_sections,
1856 counter_sections fields added.
1857 (struct gcov_info): arc_counts, n_arc_counts fields removed,
1858 n_counter_sections, counter_sections fields added.
1859 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
1860 profile sections.
1861 * profile.h (MAX_COUNTER_SECTIONS): New.
1862 (struct section_info): New.
1863 (struct profile_info): count_instrumented_edges,
1864 count_edges_instrumented_now fields removed, n_sections, section_info
1865 fields added.
1866 (find_counters_section): Declare.
1867 * profile.c (struct function_list): count_edges field removed,
1868 n_counter_sections, counter_sections fields added.
1869 (set_purpose, label_for_tag, build_counter_section_fields,
1870 build_counter_section_value, build_counter_section_data_fields,
1871 build_counter_section_data_value, build_function_info_fields,
1872 build_function_info_value, build_gcov_info_fields,
1873 build_gcov_info_value): New static functions.
1874 (find_counters_section): New function.
1875 (instrument_edges, get_exec_counts, compute_branch_probabilities,
1876 branch_prob, create_profiler): Modified to support multiple profile
1877 sections.
1878
b0d7ef9a
JDA
18792003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1880
1881 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
1882 is 8 * STACK_BOUNDARY.
1883 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
1884
f6e91562
MM
18852003-02-26 Michael Matz <matz@suse.de>
1886
1887 * ra-colorize.c (merge_moves): Fix list handling.
1888
f0375c66
NC
18892003-02-26 Nick Clifton <nickc@redhat.com>
1890
1891 * config/arm/arm.c (is_load_address): Rename to...
52999738
ZW
1892 (arm_memory_load_p) ... this and make it check for SUBREGs and
1893 constant loads that will be converted into loads from the
1894 minipool.
1895 (is_cirrus_insn): Rename to ...
1896 (arm_cirrus_insn_p): ... this, for consistency. Replace test
1897 of CIRRUS_NO with CIRRUS_NOT.
1898 (cirrus_reorg): Use renamed functions.
1899 (note_invalid_constants): Change from a void function to bool.
1900 Add an extra parameter, saying whether the fixups should be
1901 pushed. Return true if fixups are needed.
1902 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
1903 of CIRRUS_NO with CIRRUS_NOT.
1904 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
1905 other floating point co-processors can also affect this.
1906 * config/arm/arm.md ("type" attribute): Add mav_farith and
1907 mav_dmult. Replace references to "cirrus_type" attribute with
1908 "type".
1909 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
1910 ("cirrus_type" attribute): Delete - use "type" instead.
1911 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
1912 'normal'.
f0375c66 1913
0d446150
JH
1914Tue Feb 25 22:46:27 CET 2003 Jan Hubicka <jh@suse.cz>
1915
1916 * objc-act.c: Include cgraph.h
1917 (mark_referenced_methods): New function.
1918 (objc_init): Call it.
1919 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
1920
1921 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
1922 mode.
1923
1924 * optabs.c (expand_fix): Do not widen the input operand.
1925
1926 * expr.c (emit_group_store): Fix crash when converting single
1927 register into complex register.
1928
1929 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
1930 * alias.c: Include timevar.h
1931 (init_alias_analysis): Set timevar
1932 * jump.c: Include timevar.h
1933 (rebuild_jump_labels): Set timevar
1934 * regcalss.c: Include timevar.h
1935 (reg_scan): Set timevar
1936 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
1937
b17d5d7c
ZD
19382003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1939
1940 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
1941
1942 * Makefile.in (loop-unroll.o): New.
1943 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
1944 (unroll_and_peel_loops): Declare.
1945 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
1946 flag_old_unroll_loops.
1947 * loop.c (loop_invariant_p): Ditto.
1948 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
1949 flag_old_unroll_all_loops.
1950 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
1951 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
1952 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
1953 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
1954 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
1955 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
1956 PARAM_MAX_ONCE_PEELED_INSNS): New.
1957 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
1958 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
1959 instead of old one.
1960 (flag_peel_loops): New.
1961 (lang_independent_options): The new flags added.
1962 (rest_of_compilation): Call new unroller.
1963 (process_options): Setup flags for coexistence of old and new unroller.
1964 * doc/invoke.texi: Document new options.
1965 * doc/passes.texi: Document new unroller pass.
1966
244f7aa9
DB
19672003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
1968
1969 * fixinc/fixincl.x: Regenerate
1970
1d14f992
JZ
19712003-02-26 Josef Zlomek <zlomekj@suse.cz>
1972
1973 * function.c (assign_parms): Set reg_attrs for parameters passed in
1974 registers.
1975
8ace9f18
AM
19762003-02-26 Alan Modra <amodra@bigpond.net.au>
1977
38a84391 1978 PR target/9681
8ace9f18
AM
1979 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
1980
9a29ee42
DE
19812003-02-25 David Edelsohn <edelsohn@gnu.org>
1982
1983 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
1984 pseudo-op.
1985
8beccec8
RS
19862003-02-25 Roger Sayle <roger@eyesopen.com>
1987
1988 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
1989 * cse.c (invalidate_skipped_set): Likewise.
1990 * integrate.c (subst_constants): Likewise.
1991 * jump.c (reversed_comparison_code_parts): Likewise.
1992 * loop.c (canonicalize_condition): Likewise.
1993 * simplify-rtx.c (simplify_relational_operation): Likewise.
1994
b052d8ee
RS
19952003-02-25 Roger Sayle <roger@eyesopen.com>
1996
1997 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
1998 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
1999 the appropriate macro to define built-in function.
2000 (fmod,fmodf,fmodl): New built-in functions.
2001
2002 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
2003
8d454008
RH
20042003-02-25 Richard Henderson <rth@redhat.com>
2005
2006 * config/i386/i386.c (function_arg): Pass variable sized
2007 structures correctly on the stack.
2008
fc943f55
KH
20092003-02-25 Kazu Hirata <kazu@cs.umass.edu>
2010
2011 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
2012 does not reduce the cost of SET.
2013
14f00213
FS
20142003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2015
2016 PR target/9732
2017 * config/rs6000/rs6000.c (first_reg_to_save): Handle
2018 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
2019 (rs6000_emit_prologue): Likewise.
2020 (rs6000_emit_epilogue): Likewise.
2021 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
2022 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
2023
8164b171
RH
20242003-02-25 Richard Henderson <rth@redhat.com>
2025
2026 * real.c (real_to_integer2): Force overflow result only for
2027 unsigned overflow.
2028
9e48c409
KH
20292003-02-25 Kazu Hirata <kazu@cs.umass.edu>
2030
2031 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
2032
3044064c 20332003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
52999738 2034 Richard Henderson <rth@redhat.com>
3044064c
VM
2035
2036 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
4e21585b 2037 there is no similar load.
3044064c 2038
15aab9c0 20392003-02-25 Vladimir Makarov <vmakarov@redhat.com>
52999738 2040 Richard Henderson <rth@redhat.com>
15aab9c0
VM
2041
2042 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
2043 sched-rgn.c.
2044 (add_forward_dependence): New function prototype.
2045
2046 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
2047 sched-init.h.
2048 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
2049 them to haifa-sched.c.
2050
2051 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
2052 haifa_classify_insn): Move them from sched-rgn.c.
2053
2054 * sched-deps.c (add_dependence): Return flag of creating a new
2055 entry.
2056 (add_forward_dependence): New function.
2057 (compute_forward_dependences): Use the function.
9a79ab7e 2058
15aab9c0
VM
2059 * sched-ebb.c (earliest_block_with_similiar_load): New function.
2060 (add_deps_for_risky_insns): New function.
2061 (schedule_ebb): Call the function.
2062
20632003-02-20 Aldy Hernandez <aldyh@redhat.com>
c8e4f0e9 2064
52999738
ZW
2065 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
2066 TARGET_VECTOR_OPAQUE_P. Document accordingly.
c8e4f0e9 2067
52999738
ZW
2068 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
2069 opaque types fail.
c8e4f0e9 2070
52999738
ZW
2071 * c-typeck.c (comptypes): Change call to vector_types_compatible
2072 to vector_opaque_p.
2073 (convert_for_assignment): Call vector_opaque_p instead of
2074 vector_types_compatible.
2075 (really_start_incremental_init): Disallow initialization of opaque
2076 types.
c8e4f0e9 2077
52999738
ZW
2078 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
2079 Define TARGET_VECTOR_OPAQUE_P.
2080 (TARGET_INITIALIZER): Same.
c8e4f0e9 2081
52999738
ZW
2082 * target.h (struct gcc_target): Remove vector_types_compatible.
2083 Add vector_opaque_p.
c8e4f0e9 2084
52999738
ZW
2085 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
2086 Remove.
2087 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
2088 a vector type. Change return type to bool.
2089 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
2090 (TARGET_VECTOR_OPAQUE_P): Define.
c8e4f0e9 2091
52999738
ZW
2092 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
2093 target hook.
2094 Include target.h.
2095 (cp_parser_init_declarator): Fix typo in function comments.
c8e4f0e9 2096
fa1a0d02
JH
2097Tue Feb 25 12:35:34 CET 2003 Jan Hubicka <jh@suse.cz>
2098
2099 * Makefile.in (lcm.o): Add dependency on function.h
2100 * lcm.c (function.h): Include.
2101 * i386.c (machine_function, ix86_stack_locals,
2102 * ix86_save_varrargs_registers) : Move to
2103 ...
2104 * i386.h (machine_function, ix86_stack_locals,
2105 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
2106 (ix86_optimize_mode_switching): New.
2107 * i386.md (fix patterns): Set ix86_optimize_mode_switching
2108
b103bfef
NC
21092003-02-25 Nick Clifton <nickc@redhat.com>
2110
2111 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
2112 of fourth arg is 'fndecl' not 'indirect'. Update comment
2113 describing the function's parameters.
2114
2d21f7d6
JH
2115Mon Feb 24 22:08:22 CET 2003 Jan Hubicka <jh@suse.cz>
2116
2117 * combine.c (simplify_shift_const): Fix previous patch.
2118
2bac97f7
JL
21192003-02-24 Jeff Law <law@redhat.com>
2120
2121 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
2122 alternative.
2123 (testsi_1, testhi_1, testqi_1): Likewise.
2124
f8dc212b
RO
21252003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2126
2127 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
2128 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
2129 * doc/extend.texi (Tru64 Pragmas): Reflect this.
2130
2131 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
9a79ab7e 2132 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
f8dc212b
RO
2133 * fixinc/fixincl.x: Regenerate.
2134 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
2135 testcase.
2136 Fixes PR c/5059, c/6126, other/9671.
9a79ab7e 2137
44ee6e9e
RS
21382003-02-24 Roger Sayle <roger@eyesopen.com>
2139
2140 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
2141 from handle_braces in "%{...}".
2142
463f02cd
KK
21432003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
2144
2145 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
2146 (prepare_move_operands): Handle TLS operands.
2147 (tls_symbolic_operand): New.
2148 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
2149 (legitimize_pic_address): Do nothing for the TLS symbol.
2150 (sh_encode_section_info): Handle TLS case.
2151 (sh_strip_name_encoding): Drop TLS encoding.
2152 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
2153 * config/sh/sh.h (SH_TLS_ENCODING): Define.
2154 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
2155 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
2156 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
2157 * config/sh/sh.md: Define TLS UNSPEC constants.
2158 (type): Add tls_load.
2159 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
2160 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
2161 ("tls_initial_exec"): New insn.
2162 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
2163 ("load_gbr"): New insn.
2164
2165 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
52999738 2166 * configure: Regenerate.
463f02cd 2167
8403445a
AM
21682003-02-24 Alan Modra <amodra@bigpond.net.au>
2169
6fc19dc9 2170 PR 9297, PR 9722
8403445a
AM
2171 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
2172 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
2173 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
2174 (enum block_op_methods): Reorder for better store_expr optimization.
2175 * expr.c (store_expr): Test bit 1 of "want_value" for call param
2176 stores, test bit 0 for original want_value meaning. Pass
2177 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
2178 recursive calls, and calls to expand_param.
2179 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
2180 expected, set target to 0 rather than to subtarget. Formatting.
2181
ef906381
KH
21822003-02-23 Kazu Hirata <kazu@cs.umass.edu>
2183
2184 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
2185
16226f1e
KG
21862003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2187
2188 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
2189 new default behavior.
2190 * ggc-common.c: Include sys/resource.h.
2191 (ggc_rlimit_bound): New function.
2192 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
2193 defaults to account for rlimits.
2194
9e555526
RH
21952003-02-22 Richard Henderson <rth@redhat.com>
2196
2197 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
2198
21992003-02-22 Kelley Cook <kelley@dwhoops.info>
2200
52999738 2201 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
9e555526
RH
2202 (ix86_tune_string): Rename from ix86_cpu_string.
2203
9d913bbf
KC
22042003-02-22 Kelley Cook <kelleycook@comcast.net>
2205
52999738
ZW
2206 * config/i386/i386.c: Replace "mcpu" with "mtune".
2207 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
2208 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
2209 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
2210 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
9d913bbf 2211
d2c172bf
AS
22122003-02-23 Andreas Schwab <schwab@suse.de>
2213
2214 * config.gcc: Delete references to m68k/t-linux and
2215 m68k/t-linux-aout.
2216 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
2217
b3de7382
JH
2218Sat Feb 22 20:22:19 CET 2003 Jan Hubicka <jh@suse.cz>
2219
2220 * toplev.c (rest_of_compilation): Apply fotgotten hunk
2221 of track scheduling patch.
2222
90b8be73
JH
2223Sat Feb 22 19:29:28 CET 2003 Jan Hubicka <jh@suse.cz>
2224
2225 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
2226 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
2227
764c4414
JH
2228Sat Feb 22 12:42:16 CET 2003 Jan Hubicka <jh@suse.cz>
2229
2230 * c-decl.c (c_expand_body_1): Fix.
2231
1c4a429a
JH
2232Sat Feb 22 03:13:36 CET 2003 Jan Hubicka <jh@suse.cz>
2233
2234 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
2235
2236 * cfgcleanup.c (try_forward_edges): Don't check loop structures
2237 when not optimizing.
2238 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
2239 when not expensive.
2240 * toplev.c (rest_of_compilation): Duplicate loop headers only when
2241 optimizing; Delete trivially dead insns early; fix optimize check.
2242
2243 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
2244 dependency on cgraph.h
2245 * c-decl.c: Include cgraph.h
2246 (finish_function): Update call of tree_inlinable_function_p.
2247 * c-objc-common.c: Include cgraph.h
2248 * cgraph.h: New file.
2249 * cgraphunit.c: New file.
2250 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
2251 (cgraph_nodes, cgraph_n_nodes): Globalize.
2252 (cgraph_finalize_function, cgraph_finalize_compilation_unit
2253 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
2254 Move into cgraphunit.c
2255 * tree-inline.c: Include cgraph.h
2256 * tree-inline.c: Include cgraph.h
2257
1e2115dc
JZ
22582003-02-22 Josef Zlomek <zlomekj@suse.cz>
2259
2260 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
2261 for copying a register.
2262
26182e15
SB
22632003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
2264
2265 PR other/3782
2266 * toplev.c (process_options): If flag_detailed_statistics is set,
2267 then set time_report as well.
2268
b6553814
SB
2269 PR c/8828
2270 * jump.c (never_reached_warning): Don't fall through BARRRIER
26182e15
SB
2271 insns. Update comments to reflect what the function really does.
2272
c0a47a61
RS
22732003-02-21 Roger Sayle <roger@eyesopen.com>
2274
2275 * fold-const.c (omit_one_operand): No longer static.
2276 * tree.h (omit_one_operand): Prototype here.
2277 (div_and_round_double): Keep fold-const.c prototypes together.
2278 * builtins.c (builtin_mathfn_code): Handle binary built-in
2279 funtions, such as "pow" and "atan2".
2280 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
2281 Simplify optimizations using "type" the builtin's return type.
2282
51928907
HPN
22832003-02-22 Hans-Peter Nilsson <hp@axis.com>
2284
5b296d93
HPN
2285 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
2286 Fix functionalization typo.
2287
51928907
HPN
2288 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
2289 in an asm.
2290
9ac121af
KG
22912003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2292
2293 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
2294 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
2295 documentation.
2296 * ggc-common.c: Include params.h
2297 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2298 init_ggc_heuristics): New functions.
2299 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2300 init_ggc_heuristics): Prototype.
2301 * toplev.c (print_version): Output GGC heuristics.
2302 (parse_options_and_default_flags): Call init_ggc_heuristics.
2303
453ee231
JH
2304Sat Feb 22 02:35:07 CET 2003 Jan Hubicka <jh@suse.cz>
2305
2306 * i386.c (def_builtin): Special case 64bit builtins.
2307 (MASK_SSE164, MASK_SSE264): New constants.
2308 (builtin_description): Add 64bit builtins.
2309 (ix86_init_mmx_sse_builtins): Likewise.
2310 * i386.h (enum ix86_builtins): Likewise.
2311 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
2312 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
2313 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
2314 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
2315 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
2316 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
2317 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
2318
d50672ef
JH
2319Sat Feb 22 00:48:22 CET 2003 Jan Hubicka <jh@suse.cz>
2320
2321 * i386.c (builtin_description): Add __builtin_ia32_paddq and
2322 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
2323 and __builtin_ia32_psubq128.
2324 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
2325 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
2326 (mmx_adddi3, mmx_subdi3): New.
2327 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
2328 * xmmintrin.h (_mm_movepi64_pi64): New.
2329 (_mm_add_epi64, _mm_sub_epi64): fix.
2330 (_mm_mul_pu16): Rename to...
2331 (_mm_mul_su32): ... this one.
2332
2333 * builtins.c (expand_builtin_expect): Do not predict
2334 flag_guess_branch_prob is not set.
2335 * c-semantics.c (expand_stmt): Likewise.
2336 * predict.c (predict_insn): Likewise.
2337 * stmt.c (expand_continue_loop): Likewise.
2338 * toplev.c (rest_of_compilation): Do not call
2339 note_prediction_to_br_prob and note_prediction_to_br_prob
2340 when not optimizing.
2341
9809a362
JH
2342Fri Feb 21 23:10:13 CET 2003 Jan Hubicka <jh@suse.cz>
2343
2344 * cfgrtl.c (commit_edge_insertions): Call
2345 find_many_sub_basic_block only when some code has been emitted.
2346 (commit_edge_insertions_watch_calls): Bring into sync with
2347 commit_edge_insertions
2348
a93d1ba2
R
2349Fri Feb 21 20:41:29 2003 J"orn Rennecke <joern.rennecke@superh.com>
2350
2351 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
2352
2353 * sh.md (binary_sf_op): Use extra constant operand instead of
2354 negating constant operand 4.
2355 * sh.c (sh_expand_binop_v2sf): Supply it.
2356
a8d0ddaf
ZW
23572003-02-21 Zack Weinberg <zack@codesourcery.com>
2358
2359 * cpphash.h (struct lexer_state): Add directive_wants_padding.
2360 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
2361 for directives of type INCL.
2362 (glue_header_name, parse_include): Use get_token_no_padding.
2363 * cppmacro.c (replace_args): If directive_wants_padding,
2364 provide padding tokens.
2365
902ac719
KH
23662003-02-21 Kazu Hirata <kazu@cs.umass.edu>
2367
2368 * config/h8300/h8300.md (a peephole2): New.
2369
9dca2ad5
JH
2370Fri Feb 21 11:05:44 CET 2003 Jan Hubicka <jh@suse.cz>
2371
2372 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
2373 (commit_edge_insertions): Call find_many_sub_basic_blocks
2374
2375 * reg-stack.c (convert_regs): Cleax aux for blocks.
2376
64465d27
JH
2377Fri Feb 21 10:29:52 CET 2003 Jan Hubicka <jh@suse.cz>
2378
2379 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
2380
9e7d0b92
GN
23812003-02-21 Glen Nakamura <glen@imodulo.com>
2382
2383 PR optimization/8613
2384 * builtins.c (expand_builtin): Emit postincrements before expanding
2385 builtin functions.
2386
a7582c8c
BE
23872003-02-21 Ben Elliston <bje@redhat.com>
2388
2389 PR other/5634
2390 * doc/install.texi (Configuration): Explain using $HOME instead of
2391 the ~ metacharacter when referring to home directories.
2392
91710e62
AO
23932003-02-20 Alexandre Oliva <aoliva@redhat.com>
2394
2395 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2396 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2397 '${exec_prefix}' (in addition to the expansion thereof) as
2398 relocatable.
2399 * configure: Rebuilt.
2400
d64f6f86
KH
24012003-02-20 Kazu Hirata <kazu@cs.umass.edu>
2402
2403 * config/h8300/h8300.md (addhi3_incdec): Change the name to
2404 *addhi3_incdec.
2405 (addsi3_incdec): Change the name to *addsi3_incdec.
2406
fd7acc30
RS
24072003-02-20 Roger Sayle <roger@eyesopen.com>
2408
2409 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
2410
1c2de642
TM
24112003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
2412
2413 PR fortran/9038
2414 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
2415 options to be ignored.
2416 (c_common_decode_option): Ignore them when preprocessing.
2417
b9422b69
JH
2418Thu Feb 20 21:41:19 CET 2003 Jan Hubicka <jh@suse.cz>
2419
fd7acc30
RS
2420 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
2421 global variables.
2422 (lang_independent_options): Add -fsched2-use-superblocks
2423 -fsced2-use-traces.
b9422b69
JH
2424 (rest_of_compilation): Deal with it.
2425 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
fd7acc30
RS
2426 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
2427 Declare.
b9422b69
JH
2428 * rtl.h (reg_to_stack): Update prototype.
2429 * reg-stack.c (reg_to_stack): Return when something has changed;
2430 update liveness when executing after superblock scheduling.
2431
2432 * combine.c (simplify_shift_const): Simplify few special cases
2433 into constants.
2434
a62bfff2
DE
24352003-02-20 David Edelsohn <edelsohn@gnu.org>
2436
2437 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
2438 (add.,subf.,neg.): Change attribute to fast_compare.
2439 All DFA descriptions updated.
2440
dbbf88d1
NS
24412003-02-20 Nathan Sidwell <nathan@codesourcery.com>
2442
2443 Change base class access representation.
2444 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
2445 TREE_VIA_PRIVATE): Remove.
2446 (BINFO_BASEACCESSES): New binfo elt.
2447 (BINFO_BASEACCESS): New accessor.
2448 (BINFO_ELTS): Increase.
2449 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
2450 (access_public_node, access_protected_node,
2451 access_private_node): New global nodes.
2452 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
2453 * dbxout.c (dbxout_type): Adjust.
2454 * dwarf2out.c (gen_inheritance_die): Add access parameter.
2455 (gen_member_die): Adjust.
2456 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
2457 (output_type): Adjust.
2458 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
2459
2460 Change base class access representation. Share virtual base
2461 binfos.
2462 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
2463 call.
2464 * cp/class.c (build_base_path): Likewise.
2465 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
2466 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
2467 (make_new_vtable): Adjust.
2468 (force_canonical_binfo_r): Delete.
2469 (force_canonical_binfo): Delete.
2470 (mark_primary_virtual_base): Delete.
2471 (dfs_unshared_virtual_bases): Delete.
2472 (mark_primary_bases): Adjust.
2473 (maybe_warn_about_overly_private_class): Adjust.
2474 (dfs_base_derived_from): Delete.
2475 (base_derived_from): Follow the inheritance chain.
2476 (struct find_final_overrider_data): Add vpath member.
2477 (dfs_find_final_overrider): Adjust.
2478 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
2479 (find_final_overrider): Adjust.
2480 (update_vtable_entry_for_fn): Adjust.
2481 (modify_all_vtables): Adjust.
2482 (walk_subobject_offsets): Adjust.
2483 (layout_nonempty_base_or_field): Adjust.
2484 (layout_empty_base): Remove last parameter. Adjust.
2485 (build_base_field): Adjust.
2486 (build_base_fields): Adjust.
2487 (propagate_binfo_offsets): Remove last parameter. Adjust.
2488 (dfs_set_offset_for_unshared_vbases): Delete.
2489 (layout_virtual_bases): Adjust.
2490 (finish_struct_1): Adjust.
2491 (init_class_processing): Don't init access nodes.
2492 (dfs_get_primary_binfo): Delete.
2493 (get_primary_binfo): Adjust.
2494 (dump_class_hierarchy_r): Remove most derived arg, add IGO
2495 parameter. Adjust.
2496 (dump_class_hierarchy): Adjust.
2497 (finish_vtbls): Adjust.
2498 (get_original_base): Delete.
2499 (build_vtt_inits): Adjust.
2500 (dfs_build_secondary_vptr_vtt_inits): Adjust.
2501 (dfs_ctor_vtable_bases_queue_p): Adjust.
2502 (build_ctor_vtbl_group): Adjust.
2503 (dfs_accumulate_vtbl_inits): Adjust.
2504 (build_vtbl_initializer): Adjust.
2505 (build_vbase_offset_vtbl_entries): Adjust.
2506 (add_vcall_offset_vtbl_entries_1): Adjust.
2507 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
2508 (access_*_node): Remove.
2509 (CANONICAL_BINFO): Delete.
2510 (BINFO_UNSHARED_MARKED): Remove.
2511 (BINFO_MARKED): Set LANG_FLAG_0 directly.
2512 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
2513 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
2514 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
2515 Delete.
2516 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
2517 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
2518 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
2519 Delete.
2520 (BINFO_DEPENDENT_BASE_P): New.
2521 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
2522 index.
2523 (markedp, unmarkedp): Adjust.
2524 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
2525 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
2526 find_vbase_instance, binfo_for_vbase): Delete.
2527 (copied_binfo, original_binfo): Declare.
2528 (finish_base_specifier): Add virtual_p arg.
2529 (unshare_base_binfos): Delete.
2530 (copy_base_binfos): Declare.
2531 (reverse_path): Delete.
2532 * cp/decl.c (xref_basetypes): Access and virtuality passed
2533 differently. Don't copy direct base binfos here. Call
2534 copy_base_binfos.
2535 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
2536 (initialize_vtbl_ptrs): Adjust.
2537 (expand_member_init): Adjust.
2538 * cp/parser.c (cp_parser_base_specifier): Adjust.
2539 * cp/pt.c (instantiate_class_template): Adjust.
2540 (get_template_base_recursive): Adjust.
2541 * cp/rtti.c (get_pseudo_ti_init): Adjust.
2542 (get_pseudo_ti_desc): Adjust.
2543 * cp/tree.c (unshare_base_binfos): Rename to ...
2544 (copy_base_binfos): ... here, reimplement.
2545 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
2546 (reverse_path): Remove.
2547 * cp/typeck.c (get_delta_difference): Adjust error messages.
2548 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
2549 * cp/search.c (lookup_base_r): Adjust.
2550 (dynamic_cast_base_recurse): Adjust.
2551 (canonical_binfo): Remove.
2552 (dfs_canonical_queue): Remove.
2553 (dfs_assert_unmarked_p): Remove.
2554 (assert_canonical_unmarked): Remove.
2555 (shared_marked_p, shared_unmarked_p): Remove.
2556 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
2557 (dfs_access_in_type): Adjust.
2558 (access_in_type): Adjust.
2559 (dfs_accessible_queue_p): Adjust.
2560 (dfs_accessible_p): Adjust.
2561 (is_subobject_of_p_1, is_subobject_of_p): Remove.
2562 (struct lookup_field_info): Remove from_dep_base_p field.
2563 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
2564 (lookup_field_r): Remove dependent base code.
2565 (lookup_member): Likewise.
2566 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
2567 (dfs_unmarked_real_bases_queue_p): Remove.
2568 (dfs_marked_real_bases_queue_p): Remove.
2569 (dfs_skip_vbases): Remove.
2570 (dfs_get_pure_virtuals): Adjust.
2571 (markedp, unmarkedp): Adjust.
2572 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
2573 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
2574 (dfs_unmark): Adjust.
2575 (dfs_get_vbase_types):Remove.
2576 (dfs_build_inheritance_graph_order): Remove.
2577 (get_vbase_types): Remove
2578 (dfs_find_vbase_instance): Remove.
2579 (find_vbase_instance): Remove.
2580 (dfs_debug_unmarkedp): Adjust.
2581 (dependent_base_p): Remove.
2582 (dfs_push_type_decls): Adjust.
2583 (dfs_push_decls): Adjust.
2584 (dfs_no_overlap_yet): Adjust.
2585 (copied_binfo): New function.
2586 (original_binfo): New function.
2587 (binfo_for_vbase): Remove.
2588
2589 Change base class access representation.
2590 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
2591 (add_interface_do): Likewise.
2592
6d6ab190
DE
25932003-02-20 David Edelsohn <edelsohn@gnu.org>
2594
a8d0ddaf
ZW
2595 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2596 * config/rs6000/power4.md (power4-store,power4-vecstore): New
6d6ab190
DE
2597 insn reservations.
2598 (power4-fpstore): Compact.
2599
2dd5df7c
KH
26002003-02-20 Kazu Hirata <kazu@cs.umass.edu>
2601
2602 * config/h8300/h8300.md (*iorsi3_w): New.
2603
8fa08316
JZ
26042003-02-20 Josef Zlomek <zlomekj@suse.cz>
2605
2606 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
2607 * rtl.c (reg_note_name): Likewise.
2608 * rtl.h (enum reg_note): Likewise.
2609 * doc/invoke.texi: Likewise.
2610 * doc/rtl.texi: Likewise.
2611
c8717368
JZ
26122003-02-20 Josef Zlomek <zlomekj@suse.cz>
2613
2614 * bb-reorder.c (find_traces_1_round): Fix comment typo.
2615
3bc400cd
RS
26162003-02-19 Roger Sayle <roger@eyesopen.com>
2617
2618 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
2619 addition in the presence of signaling NaNs.
2620
b5a49c0b
KW
26212003-02-19 Krister Walfridsson <cato@df.lth.se>
2622
2623 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
2624
472f2723
KH
26252003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2626
2627 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
2628 ORing with 0xffff??00 with the highest bit of the ?? part set.
2629 (compute_logical_op_length): Update.
2630 (compute_logical_op_cc): Likewise.
2631
6d9cc15b
JZ
26322003-02-19 Josef Zlomek <zlomekj@suse.cz>
2633
2634 * bb-reorder.c (find_traces_1_round): Fixed condition for small
2635 destination block with multiple predecessors.
2636 (connect_traces): Check whether the block is a start of trace.
2637
563a317a
JH
2638Wed Feb 19 19:00:24 CET 2003 Jan Hubicka <jh@suse.cz>
2639
2640 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
2641 * function.c (assign_params): Likewise.
2642 * arm-protos.h (arm_init_cumulative_args): Update prototype.
2643 * arm.c (arm_init_cumulative_args): Update function.
2644 * arm.h (INIT_CUMULATIVE_ARGS): Update.
2645 * avr-protos.h (init_cumulative_args): Update prototype.
2646 * avr.c (init_cumulative_args): Update function.
2647 * avr.h (INIT_CUMULATIVE_ARGS): Update.
2648 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
2649 * d30v.c (d30v_init_cumulative_args): Update function.
2650 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
2651 * frv-protos.h (frv_init_cumulative_args): Update prototype.
2652 * frv.c (frv_init_cumulative_args): Update function.
2653 * frv.h (INIT_CUMULATIVE_ARGS): Update.
2654 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
2655 * pa.h (INIT_CUMULATIVE_ARGS): Update.
2656 * sparc-protos.h (init_cumulative_args): Update prototype.
2657 * sparc.c (init_cumulative_args): Update function.
2658 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
2659 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
2660
be9d08c2
KH
26612003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2662
2663 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
2664 (*ashiftsi_sextqi_7): Likewise.
2665
f23147fe
RO
26662003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2667
2668 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
2669 ISO C99 and C++.
2670
2671 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
2672 for C++ on IRIX 6.5.1[89].
2673 * fixinc/tests/base/internal/sgimacros.h: New file.
2674
2675 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
2676 * fixinc/tests/base/internal/wchar_core.h: New file.
a8d0ddaf 2677
f23147fe
RO
2678 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
2679 socklen_t definition.
2680 * fixinc/fixincl.x: Regenerate.
2681 * fixinc/tests/base/sys/socket.h: New file.
2682 Fixes PR libgcj/9652.
2683
30e4d9d4
JH
2684Wed Feb 19 17:22:51 CET 2003 Jan Hubicka <jh@suse.cz>
2685
2686 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
2687
2792d578
DE
26882003-02-19 David Edelsohn <edelsohn@gnu.org>
2689
2690 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
2691 align_jumps_max_skip and align_loops_max_skip.
2692
26932003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
2694
2695 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
2696 test size if named section.
2697
48a5f2fa
DJ
26982003-02-19 Daniel Jacobowitz <drow@mvista.com>
2699
2700 * expr.c (expand_expr): Use gen_int_mode for the argument
2701 to gen_rtx_MULT.
2702
9e889775
JH
2703Wed Feb 19 14:22:42 CET 2003 Jan Hubicka <jh@suse.cz>
2704
2705 * i386.md (cosxf2): Fix conditional.
2706
f4c07fbf
KH
27072003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2708
2709 * config/h8300/h8300.md (extendqisi2): Change to an expander.
2710 (*extendqisi2_h8300): New.
2711 (*extendqisi2_h8300hs): Likewise.
2712
590734b6
KH
27132003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2714
2715 * config/h8300/h8300-protos.h: Update the prototype for
2716 split_adds_subs. Remove the prototypes for
2717 const_int_le_2_operand and const_int_le_6_operand.
2718 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
2719 (const_int_le_2_operand): Remove.
2720 (const_int_le_6_operand): Likewise.
2721 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
2722 for const_int_le_2_operand and const_int_le_6_operand.
2723 * config/h8300/h8300.md: Update all uses of split_adds_subs.
2724 (a peephole2): New.
2725
c001c39b
JH
2726Tue Feb 18 23:50:59 CET 2003 Jan Hubicka <jh@suse.cz>
2727
2728 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
2729 (cgraph_expand_function): Rewrite.
2730
2f51bb1d 27312003-02-18 Matt Austern <austern@apple.com>
3bc400cd 2732
2f51bb1d 2733 * toplev.c, langhooks.c, langhooks-def.h: Move
a8d0ddaf 2734 write_global_declarations from toplev.c to langhooks.c.
3bc400cd 2735
ff6e1a2f
KH
27362003-02-18 Kazu Hirata <kazu@cs.umass.edu>
2737
2738 * config/h8300/h8300.c (general_operand_src): Always check
2739 MODE.
2740 (general_operand_dst): Likewise.
2741
78bd5210
RS
27422003-02-18 Roger Sayle <roger@eyesopen.com>
2743
2744 * convert.c (convert_to_real): Also optimize (float)log(x) into
2745 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
2746
9f3a9a08
KK
27472003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
2748
a8d0ddaf 2749 * config/sh/sh.c (unspec_caller_rtx_p): New.
9f3a9a08 2750 (sh_cannot_copy_insn_p): New.
a8d0ddaf 2751 (TARGET_CANNOT_COPY_INSN_P): New.
9f3a9a08 2752
d7ddbe24
RH
27532003-02-18 Richard Henderson <rth@redhat.com>
2754
2755 * c-common.c (handle_used_attribute): Accept static data too.
2756
27572003-02-18 Nick Clifton <nickc@redhat.com>
a8d0ddaf 2758 Aldy Hernandez <aldyh@redhat.com>
22d324c1 2759
a8d0ddaf 2760 * testsuite/gcc.dg/20030218-1.c: New.
22d324c1 2761
a8d0ddaf 2762 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
22d324c1 2763
a8d0ddaf
ZW
2764 * target-def.h (TARGET_INITIALIZER): Add
2765 TARGET_VECTOR_TYPES_COMPATIBLE.
2766 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
22d324c1 2767
a8d0ddaf 2768 * target.h (struct gcc_target): Add field vector_types_compatible.
22d324c1 2769
a8d0ddaf
ZW
2770 * c-typeck.c (comptypes): Take into account
2771 TARGET_VECTOR_TYPES_COMPATIBLE.
2772 (convert_for_assignment): Same.
22d324c1 2773
a8d0ddaf
ZW
2774 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
2775 (rs6000_spe_vector_types_compatible): New.
2776 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
22d324c1 2777
e5378e8d
AS
27782003-02-19 Andreas Schwab <schwab@suse.de>
2779
2780 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
2781 * toplev.c: Include langhooks-def.h.
2782
fcc11c35
CD
27832003-02-18 Chris Demetriou <cgd@broadcom.com>
2784
2785 * config/mips/mips.h (enum processor_type): Sort entries
2786 alphabetically.
2787 * config/mips/mips.md (define_attr cpu): Sync with processor_type
2788 enum values, including adding entries that were missing.
2789
29db2a1e
R
2790Tue Feb 18 20:15:54 2003 J"orn Rennecke <joern.rennecke@superh.com>
2791
3bc400cd
RS
2792 * sh.c (calc_live_regs): Also check GET_CODE when checking if
2793 initial value for PR_REG is still the PR_REG register.
29db2a1e 2794
582d11e6
JW
27952003-02-18 Jim Wilson <wilson@redhat.com>
2796
2797 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
2798 instruction in output template.
2799 (bsp_value): Change output template from string to C code, add %,
2800 before actual instruction.
2801 (flushrs): Mark as not predicable.
2802
3edc4b23
KW
28032003-02-18 Krister Walfridsson <cato@df.lth.se>
2804
2805 * inclhack.def (netbsd_bogus_semicolon): New fix.
2806 * fixincl.x: Rebuilt.
2807 * tests/base/ctype.h: Update.
2808
080ea642
RS
28092003-02-18 Roger Sayle <roger@eyesopen.com>
2810
2811 * fold-const.c (negate_expr_p): New function to determine whether
2812 an expression can be negated cheaply.
2813 (fold) [MINUS_EXPR]: Use it to determine whether to transform
2814 -A - B into -B - A for floating point types.
2815
e360ab39
RS
28162003-02-18 Roger Sayle <roger@eyesopen.com>
2817
2818 * sbitmap.c (sbitmap_resize): New function.
2819 * sbitmap.h (sbitmap_resize): Prototype here.
2820 * recog.c (split_all_insns): Use sbitmap_resize.
2821
6b00cbc7
KH
28222003-02-18 Kazu Hirata <kazu@cs.umass.edu>
2823
2824 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
2825 insn length.
2826 (extendqisi2): Likewise.
2827 (*extendhisi2_h8300): Likewise.
2828
2b59501b 28292003-02-18 Matt Austern <austern@apple.com>
a8d0ddaf 2830
2b59501b
MA
2831 * langhooks.h, langhooks-def.h: introduce new langhook,
2832 final_write_globals, with write_global_declarations as default.
2833 * toplev.c: Move invocation of wrapup_global_declarations from
2834 compile_file to new function, write_global_declarations. Change
2835 compile_file to use final_write_globals hook. Change
2836 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
a8d0ddaf
ZW
2837 conditional.
2838
131efcd8
JDA
28392003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2840
2841 * pa.md: Correct and enhance comment.
2842
e17aafd1
GK
28432003-02-18 Geoffrey Keating <geoffk@apple.com>
2844
2845 * gcc.c (validate_switches): Don't scan past closing '}'.
2846
f57a2e3a
BE
28472003-02-18 Ben Elliston <bje@redhat.com>
2848
2849 PR c++/1607
2850 * doc/extend.texi (Function Attributes): Document the effect of
2851 the C++ "this" parameter on the counting of arguments for the
2852 "format" and "format_arg" attributes.
2853
9b0c0e9f
AH
28542003-02-17 Aldy Hernandez <aldyh@redhat.com>
2855
a8d0ddaf
ZW
2856 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
2857 (__ev_stdw): Same.
2858 (__ev_stdh): Same.
9b0c0e9f 2859
35a3fa09
JH
2860Mon Feb 17 16:16:54 CET 2003 Jan Hubicka <jh@suse.cz>
2861
2862 * recog.c (split_all_insns): Fix memory overflow.
2863
6dc50366
KH
28642003-02-17 Kazu Hirata <kazu@cs.umass.edu>
2865
2866 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
2867 (cmphi): Likewise.
2868 (*cmphi_h8300): Likewise.
2869 (*cmphi_h8300hs): Likewise.
2870 (cmpsi): Likewise.
2871 (7 peephole2): Likewise.
2872
096daf41
JH
2873Sun Feb 16 23:07:52 CET 2003 Jan Hubicka <jh@suse.cz>
2874
2875 * c-typeck.c (build_c_cast): Fold constant variables into
2876 initial values.
2877
35113fde
GP
28782003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2879
2880 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
2881 (Binaries): Ditto for Sinix/Reliant Unix.
2882
3a1944a6
RE
28832003-02-16 Richard Earnshaw <rearnsha@arm.com>
2884
2885 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
2886 not overlap the final result register.
2887
cdd4b0d4
AB
28882003-02-16 Arend Bayer <arend.bayer@web.de>
2889 Richard Henderson <rth@redhat.com>
2890
ddb9eedd 2891 PR c/8068
cdd4b0d4
AB
2892 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
2893 rearrange mult arguments for less recursion.
2894 (extract_muldiv): New. Prevent runaway recursion.
2895
616f273a
DS
28962003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
2897
2898 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
2899 MASK_ALIGN_DOUBLE.
2900
881b2a96
RS
29012003-02-15 Roger Sayle <roger@eyesopen.com>
2902
2903 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
2904 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
2905 (ext_80387_constants_table): Global table of 80387 special constants
2906 guarded by ext_80387_constants_init flag when not initialized.
2907 (init_ext_80387_constants): New function to initialize this table.
2908 (standard_80387_constant_p): Extend to recognize extra 80387
2909 constants, in XFmode, on processors where this is a win.
2910 (standard_80387_constant_opcode): New function to return the
2911 opcode associated with standard_80387_constant_p.
2912 (standard_80387_constant_rtx): New function to return the XFmode
2913 CONST_DOUBLE associated with standard_80387_constant_p.
2914 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
2915
2916 * config/i386/i386-protos.h (standard_80387_constant_opcode):
2917 Prototype here.
2918 (standard_80387_constant_rtx): Likewise.
2919
2920 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
2921 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
2922 *movtf_integer): Simplify using new standard_80387_constant_opcode.
2923
d203738b
GK
29242003-02-15 Geoffrey Keating <geoffk@apple.com>
2925
2926 * doc/invoke.texi (Optimize Options): Correct @option syntax.
2927
0b077eac
RH
29282003-02-15 Richard Henderson <rth@redhat.com>
2929
2930 * Makefile.in (cfglayout.o): Depend on TARGET_H.
2931 * cfglayout.c: Include target.h.
2932 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
2933 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
2934 * target.h (struct gcc_target): Add cannot_copy_insn_p.
2935
2936 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
2937 (TARGET_CANNOT_COPY_INSN_P): New.
2938 (override_options): Revert 2003-02-08 hack.
2939
9a71ece1
RH
29402003-02-15 Richard Henderson <rth@redhat.com>
2941
2942 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
2943 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
2944
b54cf83a
DE
29452003-02-15 David Edelsohn <edelsohn@gnu.org>
2946
2947 * config/rs6000/rs6000.h (processor_type): Add PPC440.
2948 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2949 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2950 TARGET_SCHED_VARIABLE_ISSUE): Define.
2951 (rs6000_use_dfa_pipeline_interface): New function.
2952 (rs6000_multipass_dfa_lookahead): New Function.
2953 (rs6000_variable_issue): New function.
2954 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
2955 (rs6000_issue_rate): Add PPC440.
2956 * config/rs6000/rs6000.md (unspec list): Correct typo.
2957 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
2958 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
2959 cmp, delayed_cr, mfcr, mtcr.
2960 (automata_option): Set "ndfa".
2961 (extendMMNN2): Update attributes.
2962 (movcc_internal1): Discourage move to non-cr0. Update
2963 attributes.
2964 (movMM_update): Update attributes.
2965 (cmpMM_internal): Update attributes.
2966 (sCC CR materialization): Update attributes.
2967 (branch patterns): Do not discourage non-cr0.
2968 (cr logical patterns): Prefer destructive register allocation.
2969 Update attributes.
2970 (movesi_from_cr): Update attribute.
2971 (mtcrf_operation): Update attribute.
2972 (mtcrfsi): Update attribute.
2973 * config/rs6000/40x.md: New file.
2974 * config/rs6000/603.md: New file.
2975 * config/rs6000/6xx.md: New file.
2976 * config/rs6000/7450.md: New file.
2977 * config/rs6000/7xx.md: New file.
2978 * config/rs6000/mpc.md: New file.
2979 * config/rs6000/power4.md: New file.
2980 * config/rs6000/rios1.md: New file.
2981 * config/rs6000/rios2.md: New file.
2982 * config/rs6000/rs64.md: New file.
2983 [Some DFA descriptions based on work by Michael Hayes]
2984
99dc7277
RH
29852003-02-15 Richard Henderson <rth@redhat.com>
2986
2987 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
2988 successors with multiple predecessors.
2989 (connect_traces): Try harder to copy traces of length 1.
2990
2991 * function.h (struct function): Add computed_goto_common_label,
2992 computed_goto_common_reg.
2993 * function.c (free_after_compilation): Zap them.
a8d0ddaf 2994 * stmt.c (expand_computed_goto): Use them to produce one
99dc7277
RH
2995 indirect branch per function.
2996
5f24e0dc
RH
29972003-02-15 Richard Henderson <rth@redhat.com>
2998
2999 * cfgcleanup.c: Include params.h.
3000 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
3001 too many outgoing edges from a block.
3002 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
3003 * params.def (max-crossjump-edges): New.
3004 * doc/invoke.texi: Document it.
3005
9381bbc9
RH
30062003-02-15 Richard Henderson <rth@redhat.com>
3007
a8d0ddaf
ZW
3008 * recog.c (split_all_insns): Include new blocks in life update;
3009 do a global life update.
9381bbc9 3010
e898926c
DS
30112003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3012
3013 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
3014 Update copyright.
3015 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
3016 -mno-cygwin case.
3017
ce65116b
FH
30182003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3019
3020 PR optimization/7702
3021 * reload1.c (reload_cse_simplify_set): Honor
3022 CANNOT_CHANGE_MODE_CLASS.
3023
fe7496dd
AO
30242003-02-14 Alexandre Oliva <aoliva@redhat.com>
3025
3026 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
3027 function.
3028 * config/mn10300/mn10300-protos.h: Declare it.
3029 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
3030 attribute cc of instructions that may use clr.
3031
6017c719
KH
30322003-02-14 Kazu Hirata <kazu@cs.umass.edu>
3033
3034 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
3035 (x - (x & y)) is found.
3036
9fb28a67
RO
30372003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3038
3039 * configure.in: Fix typo.
3040 * configure: Regenerate.
3041
60f469fa
KH
30422003-02-14 Kazu Hirata <kazu@cs.umass.edu>
3043
3044 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
3045
8fd73754 30462003-02-13 Adam Nemet <anemet@lnxw.com>
60f469fa 3047
a8d0ddaf 3048 PR opt/2391
ce65116b
FH
3049 * combine.c: Fix spelling in comment.
3050 (cached_nonzero_bits): New function.
3051 (cached_num_sign_bit_copies): New function.
8fd73754
AN
3052 (nonzero_bits_with_known): New macro.
3053 (num_sign_bit_copies_with_known): New macro.
ce65116b 3054 (nonzero_bits1): Rename from nonzero_bits. Add three new
8fd73754
AN
3055 arguments. Change calls from nonzero_bits to
3056 nonzero_bits_with_known.
ce65116b 3057 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
8fd73754
AN
3058 three new arguments. Change calls from num_sign_bit_copies to
3059 num_sign_bit_copies_with_known.
ce65116b
FH
3060 (nonzero_bits): New macro.
3061 (num_sign_bit_copies): New macro.
3062 (update_table_tick): Don't traverse identical subexpression more
8fd73754 3063 than once.
ce65116b 3064 (get_last_value_validate): Likewise.
8fd73754 3065
ddb0ae00
ZW
30662003-02-13 Zack Weinberg <zack@codesourcery.com>
3067
3068 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
3069 * function.h (struct emit_status): Length of regno_pointer_align
3070 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
3071 not regno_pointer_align_length (i.e. length actually used, not
3072 length as allocated)
3073
3074 * config/i386/i386.c (struct stack_local_entry): New.
3075 (struct machine_function): Replace huge array with alist.
3076 (assign_386_stack_local): Change to match.
3077
c20b55c0
JDA
30782003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
3079
3080 * inclhack.def (hpux_long_double): Tighten select and add bypass
3081 regexp.
3082 * fixincl.x: Rebuilt.
3083
ffc8f11e
JZ
30842003-02-13 Josef Zlomek <zlomekj@suse.cz>
3085
3086 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
3087 edge and block ends with a jump insn it must be simple jump.
3088
047d636f
DJ
30892003-02-13 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * Makefile.in (PREPROCESSOR_DEFINES): Add
3092 @TARGET_SYSTEM_ROOT_DEFINE@.
3093 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
3094 is specified or if building a cross compiler.
3095 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
3096 if the sysroot is under $exec_prefix.
3097 * configure: Regenerated.
3098 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
3099 defined.
3100 (struct default_include): Add add_sysroot field.
3101 (cpp_SYSROOT): Declare.
3102 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
3103 field.
3104 (cpp_SYSROOT): New variable.
3105 * cppinit.c (cpp_create_reader): Initialize
3106 CPP_OPTION (pfile, sysroot).
3107 (init_standard_includes): Handle add_sysroot. Do not
3108 add unrelocated copies of relocated directories.
3109 (COMMAND_LINE_OPTIONS): Add -isysroot.
3110 (cpp_handle_option): Handle -isysroot.
3111 * cpplib.h (struct cpp_options): Add sysroot member.
3112 * gcc.c (The Specs Language): Update description of %I.
3113 (target_system_root_changed): New variable.
3114 (process_command): Conditionalize make_relative_prefix call
3115 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
3116 target_system_root_changed.
3117 (do_spec_1): Add -isysroot to %I.
3118 * doc/invoke.texi (Spec Files): Update description of %I.
3119 * doc/install.texi (--with-sysroot): Update comment about
3120 relocation.
3121
4302db79
KH
31222003-02-13 Kazu Hirata <kazu@cs.umass.edu>
3123
3124 * config/h8300/h8300.md (a peephole2): New.
3125
e0d9cc77 31262003-02-13 Robert Lipe <robertlipe@usa.net>
ddb0ae00 3127 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
e0d9cc77
RL
3128
3129 * doc/install.texi (Specific): Update three SCO-related URLs.
3130
9fb93b00
AS
31312003-02-13 Andreas Schwab <schwab@suse.de>
3132
3133 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
3134 Parenthesize properly.
3135 (NPREDECESORS): Parenthesize properly.
3136
22ffcc6f
GDR
31372003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
3138
3139 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
3140
1fb54135
RS
31412003-02-12 Roger Sayle <roger@eyesopen.com>
3142
3143 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
3144 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
3145
3146 * reg-stack.c (subst_stack_regs_pat): Add support for binary
3147 UNSPEC instructions (e.g. "fpatan").
3148
19a7414e
MS
31492003-02-12 Mike Stump <mrs@apple.com>
3150
3151 * varray.c (element_size): Remove.
3152 (uses_ggc): Remove.
3153 (element): Add.
3154 (varray_init): Use new interface.
3155 (varray_grow): Use new interface.
3156 (varray_clear): Use new interface.
3157
e589cc6e
AH
31582003-02-12 Aldy Hernandez <aldyh@redhat.com>
3159
ddb0ae00
ZW
3160 * config/rs6000/spe.h: Add casts to the arguments of the following
3161 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
3162 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
3163 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
3164 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
3165 __ev_get_u16, __ev_get_s16.
e589cc6e 3166
2bbfc542
KH
31672003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3168
3169 * config/h8300/h8300.md (a peephole2): New.
3170
e72fcfe8
JH
3171Wed Feb 12 22:47:18 CET 2003 Jan Hubicka <jh@suse.cz>
3172
3173 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
3174 (OBJS): Add callgraph.o
3175 (callgraph.o): New.
3176 * c-decl.c (expand_body_1): Break out from ...
3177 (expand_body): This one; change calling convention
3178 (finish_function): Move some of expand_body logic here.
3179 (c_expand_deferred_function): Update call of expand_body
3180 (c_expand_stmt): Use c_expand_body_1.
3181 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
3182 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
3183 * c-tree.h (c_expand_body): Declare.
3184 * callgraph.c: New file.
3185 * flags.h (flag_unit_at_a_time): Declare.
3186 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
3187 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
3188 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
3189 * langhooks.h (struct lang_hooks_for_callgraph): New.
3190 (struct lang_hooks): Add callgraph field.
3191 * toplev.c (flag_unit_at_a_time): New.
3192 (lang_independent_options): Add flag_unit_at_a_time.
3193 (process_options): Disable unit-at-a-time mode for frontends not
3194 supporting callgraph.
3195 * tree-inline.c (typedef struct inline_data): Add "decl"
3196 (expand_call_inline): Update callgraph.
3197 (optimize_inline_calls): Set id.decl.
3198 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
3199 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
3200 cgraph_calls_p): Declare.
3201 * invoke.texi (-funit-at-a-time): Document
3202
9037b0c7
AH
32032003-02-12 Aldy Hernandez <aldyh@redhat.com>
3204
ddb0ae00
ZW
3205 * config/rs6000/spe.h: Fix misc formatting.
3206 (__ev_create_ufix32_fs): Cast ev argument.
3207 (__ev_create_sfix32_fs): Same.
3208 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
3209 (__ev_get_ufix32_fs_internal): Same.
9037b0c7 3210
55ae46b1
RM
32112003-02-12 Ranjit Mathew <rmathew@hotmail.com>
3212
3213 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
3214 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
3215
3963c2e0
ZW
32162003-02-12 Zack Weinberg <zack@codesourcery.com>
3217
3218 * cpplib.c (do_include_common): Move warnings for
3219 #include_next and #import out to callers. Use early-return
3220 instead of nested ifs. Don't do check_eol here.
3221 (parse_include): Do check_eol here with the rest of the
3222 parsing stuff.
3223 (do_include_next, do_import): Now handle warnings.
3224
d1a86812
GP
32252003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3226
3227 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
3228
6efcd268
JH
3229Wed Feb 12 15:19:42 CET 2003 Jan Hubicka <jh@suse.cz>
3230
3231 * predict.c (estimate_probability): Fix roundoff error.
3232
9083b5da
KH
32332003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3234
3235 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
3236 (two peephole2): New.
3237
86bc9b19
KH
32382003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3239
3240 * config/h8300/h8300.md (several peephole2): Replace
3241 find_regno_note with peep2_reg_dead_p.
3242
ceda50e9
RH
32432003-02-11 Richard Henderson <rth@redhat.com>
3244
3245 * gcse.c (lookup_set): Remove unused argument PAT. Update
3246 both callers.
3247
886e0865
GK
32482003-02-11 Geoffrey Keating <geoffk@apple.com>
3249
3250 * diagnostic.c (real_abort): New.
3251 (diagnostic_report_diagnostic): Call real_abort on error.
3252 * diagnostic.h (diagnostic_abort_on_error): New.
3253 (struct diagnostic_context): Add abort_on_error field.
3254 * toplev.c (setup_core_dumping): New.
3255 (decode_d_option): Handle 'H' case.
3256 * doc/invoke.texi (Debugging Options): Document -dH.
3257
76438597
NN
32582003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
3259
3260 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
3261 which refers to obsolete directories.
3262
09b568fc
RH
32632003-02-11 Richard Henderson <rth@redhat.com>
3264
3265 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
3266
8b978a57
JH
3267Mon Oct 21 17:07:47 CEST 2002 Jan Hubicka <jh@suse.cz>
3268
3269 * i386.c (contains_128bit_aligned_vector_p): New function.
3270 (ix86_function_arg_boundary): Properly align vector modes.
3271
a3259be8
BW
32722003-02-11 Bob Wilson <bob.wilson@acm.org>
3273
3274 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
3275 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
3276 as a SET pattern.
3277
da52a069
RS
32782003-02-11 Roger Sayle <roger@eyesopen.com>
3279
3280 * builtins.c: Fix failure caused by commiting wrong patch.
3281
d58f6584
DJ
32822003-02-11 Dale Johannesen <dalej@apple.com>
3283 * ra-build.c (compare_and_free_webs): Relax checking.
3284 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
3285 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3286
22fd5743
FH
32872003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3288
3289 PR optimization/9651
3290 * rtlanal.c (may_trap_p): Handle FIX.
3291
3462df62
DJ
32922003-02-11 Dave Jones <davej@codemonkey.org.uk>
3293
3294 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
3295 * doc/invoke.texi: Extra alias.
3296
a693fbb9
GK
32972003-02-11 Geoffrey Keating <geoffk@apple.com>
3298
3299 * config/rs6000/host-darwin.c: Fix comment.
3300
bb157ff4
DE
33012003-02-11 David Edelsohn <edelsohn@gnu.org>
3302
3303 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
3304 predicate for mod result.
3305
16ddb599
JDA
33062003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3307
3308 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
3309 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
3310 * fixincl.x: Rebuilt.
3311 * tests/base/stdlib.h: Update.
3312 * tests/base/ctype.h: New file.
3313
6f0d3566
JH
3314Tue Feb 11 20:44:45 CET 2003 Jan Hubicka <jh@suse.cz>
3315
3316 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
3317
d0a5295a
RH
33182003-02-11 Richard Henderson <rth@redhat.com>
3319
3320 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
3321 appropriated as globals.
3322 (ix86_expand_clrstr): Similarly.
3323 * config/i386/i386.md (cmpstrsi): Similarly.
3324
9672132f
KH
33252003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3326
3327 * config/h8300/h8300.md (a peephole2): Add a case of 255.
3328
b5e01d4b
RS
33292003-02-11 Roger Sayle <roger@eyesopen.com>
3330
3331 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
3332 (pow_optab, atan2_optab): Define corresponding macros.
3333 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
3334 * genopinit.c (optabs): Implement pow_optab and atan2_optab
3335 using pow?f3 and atan2?f3 patterns.
3336 * builtins.c (expand_errno_check): New function to update errno
3337 if necessary, split out from expand_builtin_mathfn.
3338 (expand_builtin_mathfn): Use expand_errno_check.
3339 (expand_builtin_mathfn_2): New function to handle expanding binary
3340 math functions, reusing the code in expand_errno_check.
3341 (expand_builtin): Handle the pow and atan2 math built-ins,
3342 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
3343 expand_builtin_mathfn_2.
3344
3345 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
3346
cb119f82
JH
3347Tue Feb 11 19:03:22 MET 2003 Jan Hubicka <jh@suse.cz>
3348
3349 * combine.c (combine_simplify_rtx): Fix folding of
3350 nested float_truncates.
3351
a05566a3
KH
33522003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3353
3354 * config/h8300/h8300.md (a peephole2): Fix a typo.
3355
20ae4500
RE
33562003-02-11 Richard Earnshaw <rearnsha@arm.com>
3357
3358 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
3359 register number.
3360
717d8b71
KH
33612003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3362
3363 * config/h8300/h8300-protos.h: Add a prototype for
3364 gtuleu_operator.
3365 * config/h8300/h8300.c (gtuleu_operator): New.
3366 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
3367 * config/h8300/h8300.md (a peephole2): New.
3368
e36e8f52
JH
3369Tue Feb 11 13:32:12 CET 2003 Jan Hubicka <jh@suse.cz>
3370
3371 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
3372
c728da61
JH
3373Tue Feb 11 10:02:54 CET 2003 Jan Hubicka <jh@suse.cz>
3374
3375 * predict.c (choose_function_section): Choose sections correctly.
3376
4cc0fdd2
JDA
33772003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3378
3379 * reload1.c (first_label_num): New.
3380 (reload): Index offsets_known_at and offsets_at using difference of
3381 label number and first label number. Don't use offset pointers.
3382 (set_label_offsets, set_initial_label_offsets): Likewise.
3383
44b1fa11
RS
33842003-02-10 Roger Sayle <roger@eyesopen.com>
3385
3386 * mips-tfile.c (init_file): Add missing initializers in the
3387 "#ifdef __alpha" case.
3388 (file_offset, max_file_offset): Declare as unsigned long.
3389 (write_varray): Cast to "unsigned long" in comparisons against
3390 either file_offset or max_file_offset.
3391 (write_object): Likewise.
3392 (read_seek): Likewise.
3393 (copy_object): Likewise. Declare "ifd" as int to match its use
3394 in add_ext_symbol, and avoid signed/unsigned conditional warning.
3395
2948ade7 33962003-02-10 Nick Clifton <nickc@redhat.com>
3963c2e0 3397 Aldy Hernandez <aldyh@redhat.com>
2948ade7 3398
3963c2e0
ZW
3399 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
3400 override options which have been specified on the command line.
2948ade7 3401
2a4e6df4
KH
34022003-02-10 Kazu Hirata <kazu@cs.umass.edu>
3403
3404 * config/h8300/h8300.md (abssf2): New.
3405 (*abssf2_h8300): Likewise.
3406 (*abssf2_h8300hs): Likewise.
3407
411e2759
PE
34082003-02-10 Phil Edwards <pme@gcc.gnu.org>
3409
3410 * tree.c (build_tree_list): Fix parameter names in comment.
3411
2b24fc41
JJ
34122003-02-10 Janis Johnson <janis187@us.ibm.com>
3413
3414 * config/rs6000/ppc64-fp.c: New file.
3415 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
3416
aa634f11
JZ
34172003-02-10 Josef Zlomek <zlomekj@suse.cz>
3418
3419 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3963c2e0 3420 * bb-reorder.c (make_reorder_chain): Deleted.
aa634f11
JZ
3421 (make_reorder_chain_1): Deleted.
3422 (find_traces): New function.
3423 (rotate_loop): New function.
3424 (mark_bb_visited): New function.
3425 (find_traces_1_round): New function.
3426 (copy_bb): New function.
3427 (bb_to_key): New function.
3428 (better_edge_p): New function.
3429 (connect_traces): New function.
3430 (copy_bb_p): New function.
3431 (get_uncond_jump_length): New function.
3432 (reorder_basic_blocks): Use new functions (Software Trace Cache).
3433 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
3434 boundaries.
3435
17edbda5
AH
34362003-02-10 Aldy Hernandez <aldyh@redhat.com>
3437
3438 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
3439
57116c34
DN
34402003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3441
3442 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3963c2e0 3443 (DECL_LIVE_RANGE_RTL): Remove.
57116c34 3444
4f448245
NC
34452003-02-10 Nick Clifton <nickc@redhat.com>
3446
3447 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
3448 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
3449 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
3450 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
3451 config/arm/freebsd.h, config/arm/linux-elf.h,
3452 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
3453 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
3454 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
3455 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
3456 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
3457 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
3458 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
3459 and reformat as appropriate.
3460
19190d27
KH
34612003-02-10 Kazu Hirata <kazu@cs.umass.edu>
3462
3463 * config/h8300/clzsi2.c: Remove.
3464 * config/h8300/ctzsi2.c: Likewise.
3465 * config/h8300/paritysi2.c: Likewise.
3466 * config/h8300/popcountsi2.c: Likewise.
3467 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
3468 ctzsi2, paritysi2, and popcountsi2.
3469
ecf92f82 34702003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 3471 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
ecf92f82
EB
3472
3473 PR c/7741
3474 * c-decl.c (duplicate_decls): Discard the initializer of the
3475 new decl when the types are conflicting.
3476
ac5e69da
JZ
34772003-02-10 Josef Zlomek <zlomekj@suse.cz>
3478
3479 * Makefile.in (sreal.o): Added.
3480 (predict.o): Depends on sreal.h instead of real.h.
3481 * sreal.c: New file.
3482 * sreal.h: New file.
3483 * predict.c: Use sreal.c instead of real.c.
3484
9b6b54e2
NC
34852003-02-10 Nick Clifton <nickc@redhat.com>
3486
3487 * Contributed support for the Cirrus EP9312 "Maverick"
3488 floating point co-processor. Written by Aldy Hernandez
3963c2e0 3489 <aldyh@redhat.com>.
9b6b54e2
NC
3490 (config/arm/arm.c): Add Cirrus support.
3491 (config/arm/arm.h): Likewise.
3492 (config/arm/aout.h): Likewise.
3493 (config/arm/arm.md): Likewise.
3494 (config/arm/arm-protos.h): Likewise.
3495 (config.gcc): Likewise.
3496 (doc/invoke.texi): Describe new -mcpu value and new
3497 -mcirrus-fix-invalid-insns switch,
3498 (cirrus.md): New file.
3499
949824fe
JH
3500Mon Feb 10 11:40:18 CET 2003 Jan Hubicka <jh@suse.cz>
3501
3502 * combine.c (combine_simplify_rtx): Simplify using
3503 (float_truncate (float x)) is (float x)
3504 (float_extend (float_extend x)) is (float_extend x).
3505
546ff777
AM
35062003-02-10 Alan Modra <amodra@bigpond.net.au>
3507
3508 * calls.c (try_to_integrate): Tidy stack_usage_map access.
3509 (emit_library_call_value_1): Likewise. Formatting.
3510 (store_one_arg): Likewise.
3511
626098f9 35122003-02-09 Nick Clifton <nickc@redhat.com>
3963c2e0 3513 Aldy Hernandez <aldyh@redhat.com>
626098f9 3514
3963c2e0
ZW
3515 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
3516 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
3517 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
3518 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
3519 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
3520 docs. Add range test for immediate value.
626098f9
AH
3521
35222003-02-09 Aldy Hernandez <aldyh@redhat.com>
3523
3963c2e0
ZW
3524 Rename spe_evxor to xorv2si3.
3525 (xorv4hi3): New.
3526 (xorv1di3): New.
626098f9 3527
8d23a2c8 35282003-02-10 Glen Nakamura <glen@imodulo.com>
3963c2e0 3529
8d23a2c8
GN
3530 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
3531 tag.
3532
fdc4b40b
JH
3533Mon Feb 10 00:29:17 CET 2003 Jan Hubicka <jh@suse.cz>
3534
3535 * i386.c (vector_move_operand): New predicate.
3536 (ix86_expand_vector_move): Be happy about 0.
3537 * i386.h (PREDICATE_CODES): Add sse-move_operand.
3538 * i386.md (mov*_internal): Add 'C' alternative.
3539
35c28a13
JH
3540Sun Feb 9 23:58:33 CET 2003 Jan Hubicka <jh@suse.cz>
3541
3542 * i386.md (floathi*): Deal with SSE.
3543
852c8ba1
JH
3544Sun Feb 9 23:54:59 CET 2003 Jan Hubicka <jh@suse.cz>
3545
3546 * simplify-rtx.c (simplify_unary_operation,
3547 simplify_binary_operation): Deal with vector modes
3548 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
3549
2382b79f
RS
35502002-02-09 Richard Sandiford <rsandifo@redhat.com>
3551
3552 * toplev.c (rest_of_compilation): Recompute register usage after
3553 split_all_insns.
3554
8275b011
RH
35552003-02-09 Richard Henderson <rth@redhat.com>
3556
3557 * libgcc-std.ver (__clztf2): New.
3558 (__ctztf2, __popcounttf2, __paritytf2): New.
3559 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
3560 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
3561 adjust code to match the different type sizes.
3562 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
3563 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
3564
3565 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
3566 TImode; select word_mode and twice that.
3567 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
3568 select the modes from float, double, and long double.
3569 (init_optabs): Remove duplicate initializations.
3570
794aca5d
WB
35712003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3572
3573 * doc/install.texi: Squeeze and streamline section on
3574 testing and regression checking.
3575
d9deed68
JH
3576Sun Feb 9 13:33:34 CET 2003 Jan Hubicka <jh@suse.cz>
3577
3578 * i386.md (ahi?v*3): Set third operand type to TImode.
3579 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
3580
3581 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
3582 integer mode.
3583
3584 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
3585 Change code so they are arithmetic expressions now.
3586 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
3587 simplify_ternary_operation): Deal with VEC_* expressions.
3588
3589 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
3590
83fd323c
JH
3591Sat Feb 8 00:21:22 CET 2003 Jan Hubicka <jh@suse.cz>
3592
3593 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
3594 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
3595 possibly got duplicated.
3596
4ee7aa60
RH
35972003-02-08 Richard Henderson <rth@redhat.com>
3598
3599 * config/alpha/alpha.c (override_options): Turn off explicit
3600 relocs until post-peep2 code duplication resolved.
3601
c117dddc
KH
36022003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3603
3604 * optabs.c (expand_unop): Widen clz properly when clz is done
3605 via libcall.
3606
8aa063fb
KH
36072003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3608
3609 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
3610 * config/h8300/crti.asm: Likewise.
3611 * config/h8300/crtn.asm: Likewise.
3612 * config/h8300/ctzsi2.c: Likewise.
3613 * config/h8300/fixunssfsi.c: Likewise.
3614 * config/h8300/h8300-protos.h: Likewise.
3615 * config/h8300/h8300.c: Likewise.
3616 * config/h8300/h8300.h: Likewise.
3617 * config/h8300/h8300.md: Likewise.
3618 * config/h8300/paritysi2.c: Likewise.
3619 * config/h8300/popcountsi2.c: Likewise.
3620 * config/h8300/rtems.h: Likewise.
3621
01a132bb
ZD
36222003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3623
3624 * doc/invoke.texi: Documentation for my previous commit.
3625 * doc/passes.texi: Ditto.
3626
617b465c
ZD
36272003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3628
3629 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
3630 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3631 Declare.
3632 (DLTHE_FLAG_UPDATE_FREQ): New.
3633 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
3634 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
3635 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
3636 fix_bb_placement, fix_bb_placements, place_new_loop,
3637 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
3638 New static functions.
3639 (fix_loop_placement, can_duplicate_loop_p,
3640 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3641 New functions.
3642
3643 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
3644 unswitch_loops): Declare.
3645 * loop-init.c: New file.
3646 * loop-unswitch.c: New file.
3647 * Makefile.in (loop-init.o, loop-unswitch.o): New.
3648 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
3649 * toplev.c (DFI_loop2): New dump.
3650 (flag_unswitch_loops): New.
3651 (lang_independent_options): Add it.
3652 (rest_of_compilation): Call new loop optimizer.
3653 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
3654
3bd03194
KH
36552003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3656
3657 * config/h8300/clzsi2.c: New.
3658 * config/h8300/ctzsi2.c: Likewise.
3659 * config/h8300/paritysi2.c: Likewise.
3660 * config/h8300/popcountsi2.c: Likewise.
3661 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
3662
d865b122
DE
36632003-02-07 David Edelsohn <edelsohn@gnu.org>
3664
3665 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3666 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
94993909 3667 (ctzsi2): New pattern.
d865b122
DE
3668 (ffssi2): Use clz instead of unspec.
3669 (clzdi2): Rename from cntlzd2.
94993909 3670 (ctzdi2): New pattern.
d865b122
DE
3671 (ffsdi2): Use clz instead of unspec.
3672
8f37dd98
LR
36732003-02-07 Loren James Rittle <ljrittle@acm.org>
3674
3675 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
3676 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
3677 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3678 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
3679
83205b9b
WB
36802003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3681
3682 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
3683
710ee3ed
RH
36842003-02-07 Richard Henderson <rth@redhat.com>
3685
3686 PR 9226
3963c2e0
ZW
3687 * gcse.c (local_cprop_find_used_regs): New.
3688 (local_cprop_pass): Use it.
710ee3ed 3689
3ef879d2
FF
36902003-02-07 Fred Fish <fnf@intrinsity.com>
3691
3692 * mips-tfile.c (parse_def): Parenthesize assignments to fix
3963c2e0 3693 precedence bugs.
3ef879d2 3694
a0f0e963 36952003-02-07 Segher Boessenkool <segher@koffie.nl>
3ef879d2 3696
3963c2e0 3697 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
a0f0e963 3698
46847aa6
RS
36992003-02-07 Roger Sayle <roger@eyesopen.com>
3700
3701 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
3702 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
3703 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
3704 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
3705 builtin functions (and their __builtin_* variants).
3706 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
3707 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
3708 when not optimizing.
3709
3710 * doc/extend.texi: Document new pow and atan2 builtins, and
3711 their float and long double variants. Realphabetize builtins.
3712
c48d6750
JH
3713Fri Feb 7 23:24:28 CET 2003 Jan Hubicka <jh@suse.cz>
3714
3715 * i386.md (sse2_nandv2di3): Fix.
3716
5e062767
DS
37172003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
3718
3719 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
3720 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
3721 definition.
3722 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
3723 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
3724
3f755ed0
JH
3725Fri Feb 7 22:22:40 CET 2003 Jan Hubicka <jh@suse.cz>
3726
3727 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
3728
0816bcd2
DB
37292003-02-07 Daniel Berlin <dberlin@dberlin.org>
3730
3731 * cfg.c (dump_flow_info): Add back accidently deleted line.
3732
7bf0a593
AP
37332003-02-07 Andrey Petrov <petrov@netbsd.org>
3734
3735 * optabs.c (expand_float): Search wider integer modes first.
3736
01e4596e
BW
37372003-02-07 Bob Wilson <bob.wilson@acm.org>
3738
3739 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
3740 based on preprocessor flag.
3741
fbef91d8
RS
37422003-02-07 Roger Sayle <roger@eyesopen.com>
3743 Richard Henderson <rth@redhat.com>
3744
3745 * gcse.c (implicit_sets): New.
3746 (compute_hash_table_work): Include them in hash table.
3747 (find_implicit_sets, fis_get_condition): New.
3748 (one_cprop_pass): Allocate and free implicit_sets; call
3749 find_implicit_sets before building hash table.
3750
6713831e
JT
37512003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
3752
3753 * config/t-netbsd (USER_H): Revert previous change.
3754
10d2dbe2
GG
37552003-02-07 Gabor Greif <ggreif@lucent.com>
3756
3757 * doc/c-tree.texi (Namespaces): Fix typo.
3758
d1d3c9a6
JH
3759Fri Feb 7 02:18:57 CET 2003 Jan Hubicka <jh@suse.cz>
3760
3761 * regrename.c (do_replace, find_oldest_value_reg,
3762 copyprop_hardreg_forward_1): Update register attributes.
3763
1b1f249d
VM
37642003-02-06 Vladimir Makarov <vmakarov@redhat.com>
3765
3766 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
3767 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
3768 variables starting with underscore.
3769 (struct unit_usage): New structure.
3770 (unit_usages, cycle_alt_unit_usages): New global variables.
3771 (check_unit_distribution_in_reserv): Remove it.
3772 (store_alt_unit_usage): New function.
3773 (check_regexp_units_distribution): Rewrite it.
3774
90330d31
JDA
37752003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3776
3777 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
3778 target_cpu_default.
3779 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
3780 if not MASK_NO_SPACE_REGS.
3781 (output_call): Adjust return pointer, don't load new space register
3782 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
3783 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
3784 TARGET_NO_SPACE_REGS is true.
3785 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
3786 conditions.
3787 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
3788 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
3789 true. Use bve when TARGET_64BIT is true.
3790
d1164330
RH
37912003-02-06 Richard Henderson <rth@redhat.com>
3792
3793 * combine.c (nonzero_bits): Fix double break.
3794
5fbf0217 37952003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 3796 Richard Henderson <rth@redhat.com>
5fbf0217
EB
3797
3798 PR c/9530
3799 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
3800 from functions that return a float to functions that don't.
3801
8f62128d
JH
3802Thu Feb 6 00:18:38 CET 2003 Jan Hubicka <jh@suse.cz>
3803
3804 * i386.c (x86_inter_unit_moves): New variable.
3805 (ix86_secondary_memory_needed): Fix 64bit case, honor
3806 TARGET_INTER_UNIT_MOVES
3807 * i386.h (x86_inter_unit_moves): Declare.
3808 (TARGET_INTER_UNIT_MOVES): New macro.
3809 * i386.md (movsi_1): Cleanup constraints; disable
3810 when not doing inter-unit moves.
3811 (movsi_1_nointernunit): New.
3812 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
3813 (movdi_1_rex64_nointerunit): New.
3814 (mivsf_1): disable when not doing inter-unit moves.
3815 (movsf_1_nointerunit): New.
3816
3817 * basic-block.h (inside_basic_block_p): Declare.
3818 * cfgbuild.c (inside_basic_block_p): Make global.
3819 * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
3820 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
3821 update CFG.
3822 (fix_basic_block_boundaries, add_missing_bbs): New.
3823 (rank): Use profile.
3824 (scheudle_ebbs): Rely on CFG; update coments.
3825
476d9098
GK
38262003-02-05 Geoffrey Keating <geoffk@apple.com>
3827
3828 * Makefile.in (host_hook_obj): New.
3829 (OBJS): Add $(host_hook_obj).
3830 (host_default.o): New rule.
3831 * config.gcc (host_hook_obj): New, default to host-default.o.
3832 (powerpc-*-darwin*): Use host-darwin.o.
3833 (out_host_hook_obj): New.
3834 * configure: Regenerate.
3835 * configure.in: Print information about out_host_hook_obj, substitute
3836 into output files.
3837 * host-default.c: New file.
3838 * hosthooks.h: New file.
3839 * toplev.c (general_init): Call host_hooks.extra_signals.
3840 * config/rs6000/host-darwin.c: New file.
3841 * config/rs6000/x-darwin: New file.
3842 * doc/hostconfig.texi: Add documentation for new host hook.
3843 Rearrange existing documentation.
3844
69bd9368
RS
38452003-02-05 Roger Sayle <roger@eyesopen.com>
3846
3847 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
3848 with *targetm.delegitimize_address.
3849 (rtl_for_decl_location): Likewise.
3850 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
3851 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
3852
3853 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3854 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
3855 prototype.
3856 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
3857 i386_simplify_dwarf_addr. Made static. Prototyped.
3858 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
3859 i386_simplify_dwarf_addr to ix86_delegitimize_address.
3860 (ix86_find_base_term): Likewise.
3861 (maybe_get_pool_constant): Likewise.
3862
3863 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3864 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
3865 prototype.
3866 * config/s390/s390.c (s390_delegitimize_address): Renamed from
3867 s390_simplify_dwarf_addr. Made static. Prototyped.
3868 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
3869
7127fd58
RH
38702003-02-05 Richard Henderson <rth@redhat.com>
3871
8dde7a2c 3872 PR c/8602
3963c2e0
ZW
3873 * integrate.c (output_inline_function): Reset input_filename
3874 and lineno from the decl before rest_of_compilation.
7127fd58 3875
7dba8395
RH
38762003-02-05 Richard Henderson <rth@redhat.com>
3877
3878 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3879 (CTZ_DEFINED_VALUE_AT_ZERO): New.
3880 * doc/rtl.texi, doc/tm.texi: Document them.
3881
3882 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
3883 of the value at zero properly.
3884 * fold-const.c (tree_expr_nonnegative_p): Likewise.
3885 * simplify-rtx.c (simplify_unary_operation): Likewise.
3886
3887 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3888 (CTZ_DEFINED_VALUE_AT_ZERO): New.
3889
3890 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
3891 (TARGET_EXPAND_BUILTIN): Remove.
3892 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
3893 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3894 (enum arm_builtins): Remove.
3895 * config/arm/arm.md (UNSPEC_CLZ): Remove.
3896 (clzsi2): Rename from clz; use clz instead of unspec.
3897 (ctzsi2): New.
3898 * config/arm/arm-protos.h: Update.
3899
8d705469
JH
3900Wed Feb 5 23:12:57 CET 2003 Jan Hubicka <jh@suse.cz>
3901
3902 * i386-protos.h (x86_emit_floatuns): Declare.
3903 * i386.c (x86_emit_floatuns): New global function.
3904 * i386.md (floatunssisf2, floatunsdisf2,
3905 floatunsdidf2): New patterns.
3906
bc810602
ZD
39072003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3908
3909 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
3910
07938cec
HB
39112003-02-05 Hans Boehm <Hans.Boehm@hp.com>
3912
3913 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
3914 config/ia64/linux.h
3915
ca9398d1
RS
39162002-02-05 Roger Sayle <roger@eyesopen.com>
3917
3918 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
3919
4f6ae35d
JJ
39202003-02-05 Jakub Jelinek <jakub@redhat.com>
3921
3922 PR optimization/8555
3923 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
3924 instead of aborting.
3925
8acfdd43
RH
39262003-02-04 Richard Henderson <rth@redhat.com>
3927
3928 * config/i386/i386.md (UNSPEC_BSF): Remove.
3929 (ffssi2): Split into cmove and no_cmove insns and splitters;
3930 lose pentium float trick for now.
3931 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
3932 (ctzsi2, clzsi2, bsr): New.
3933
c407570a
RH
39342003-02-04 Richard Henderson <rth@redhat.com>
3935
3936 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
3937 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
3938 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
3939 (ffsdi2): Use popcount instead of unspec.
3940 (popcountdi2): Rename from *popcnt.
3941 (ctzdi2, clzdi2, getf_exp_tf): New.
3942
4b3cf522
KH
39432003-02-04 Kazu Hirata <kazu@cs.umass.edu>
3944
3945 * genconfig.c (main): Generate CC0_P.
3946 * rtl.h (CC0_P): Remove.
3947
dfff898c
RH
39482003-02-04 Richard Henderson <rth@redhat.com>
3949
3950 * libgcc2.h, libgcc2.c (__ffsSI2): New.
3951 (__ffsDI2): Rename from __ffsdi2.
3952 * mklibgcc.in (lib2funcs): Add _ffssi2.
3953
0c9ed856
RH
39542003-02-04 Richard Henderson <rth@redhat.com>
3955
3956 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
3957 rounds with a "bit table" lookup.
3958
9537511b
UW
39592003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3960
3961 * reload.c (find_reloads): Do not use the mode specified in the insn
3ef879d2 3962 pattern as reload mode for address operands. Do not generate optional
9537511b
UW
3963 reloads for operands where a mandatory reload was already pushed.
3964
1efd0b97
RH
39652003-02-04 Richard Henderson <rth@redhat.com>
3966
3967 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
3968 builtins instead of inline assembly.
3969
087fc75a 39702003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3ef879d2 3971
087fc75a
FH
3972 PR c/9376
3973 * libgcc2.c (__subvdi3): Fix typo.
3974
f0f0d98e
JH
3975Tue Feb 4 21:46:05 CET 2003 Jan Hubicka <jh@suse.cz>
3976
3977 * i386.md (movti_rex64): Fix constraint.
3978
09f26fb5
JH
3979Tue Feb 4 18:40:42 CET 2003 Jan Hubicka <jh@suse.cz>
3980
3981 * i386.md (vector push splitters): Fix typo in resolving conflict.
3982
ff6e2d3e
RB
39832003-02-04 Rodney Brown <rbrown64@csc.com.au>
3984
3985 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
3986
9e80ada7
PE
39872003-02-04 Phil Edwards <pme@gcc.gnu.org>
3988
3989 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
3990 for recent libstdc++. Remove formatting cruft.
3991
79c758fb
JJ
39922003-02-04 Jakub Jelinek <jakub@redhat.com>
3993
3994 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
3995 attribute even if input file name is absolute, but one of the
3996 includes is relative.
3997
b3a8389d
JM
39982003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
3999
4000 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
4001 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
4002 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
4003
dabb3f04
RH
40042003-02-03 Richard Henderson <rth@redhat.com>
4005
4006 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4007 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
4008 return type to "int". Shuffle declarations and undef int trap.
4009 * libgcc2.h: Remove their declarations.
4010 * optabs.c (expand_unop): Force outmode to int for bitops.
4011
985d0d50
BW
40122003-02-03 Bob Wilson <bob.wilson@acm.org>
4013
4014 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
4015 coprocessor registers before floating-point registers.
4016 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
4017 to account for a previously removed register.
4018 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
4019 Delete unused macros.
4020
7f0e57bd
JH
4021Mon Feb 3 21:19:11 CET 2003 Jan Hubicka <jh@suse.cz>
4022
4023 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
4024 (mov*_internal): Fix predicates; require one of operands to not be
4025 memory.
4026 (SSE?MMX move expanders): Fix predicates; force one of operands to
4027 register.
4028 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
4029 (movups/movupd/movdqu patterns): Force one of operands to not be
4030 memory.
4031
7daebb7a
RS
40322002-02-03 Roger Sayle <roger@eyesopen.com>
4033
4034 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
4035 takes a single rtx and returns it unmodified.
4036 * hooks.h (hook_rtx_rtx_identity): Prototype here.
ff6e2d3e 4037 * target.h (struct gcc_target): Add "delegitimize_address"
7daebb7a
RS
4038 field to target structure.
4039 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
4040 for delegitimize_address target using hook_rtx_rtx_identity.
4041 (TARGET_INITIALIZER): Initialize delegitimize_address field
4042 using TARGET_DELEGITIMIZE_ADDRESS macro.
4043 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
4044 extensions of constant pool references. Use delegitimize_address
4045 to undo the obfuscation of "-fpic".
4046 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
4047
4048 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
4049 i386_simplify_dwarf_addr.
4050 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
26182e15 4051 (maybe_get_pool_constant): Likewise.
7daebb7a 4052
84520a20
JH
4053Mon Feb 3 16:01:17 CET 2003 Jan Hubicka <jh@suse.cz>
4054
4055 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
4056
035b2a34
JH
4057Mon Feb 3 01:30:11 CET 2003 Jan Hubicka <jh@suse.cz>
4058
4059 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
4060
1f143d5a
KG
40612003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4062
4063 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
4064 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
4065
4b550d9f
AS
40662003-02-02 Andreas Schwab <schwab@suse.de>
4067
4068 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
4069
0732a089
RE
40702003-02-02 Richard Earnshaw <rearnsha@arm.com>
4071
4072 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
4073 (epilogue_insns): Likewise.
4074
f269f54f
JDA
40752003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4076
4077 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
4078
611ad29e
JDA
40792003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4080
4081 * pa-protos.h (attr_length_millicode_call): Remove second argument.
4082 (attr_length_indirect_call, attr_length_indirect_call,
4083 attr_length_save_restore_dltp): New prototypes.
4084 * pa.c (attr_length_millicode_call): Remove second argument. Check
4085 INSN_ADDRESSES_SET_P in distance calculation.
4086 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
4087 INSN_ADDRESSES.
4088 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
4089 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
4090 Call attr_length_call directly.
4091 (attr_length_indirect_call, output_indirect_call,
4092 attr_length_save_restore_dltp): New functions.
4093 * pa.md (attr_length_millicode_call): Drop second argument from all
4094 patterns.
4095 (return_internal_pic): Delete.
4096 (return_external_pic): Remove use of PIC register and pic operand and
4097 flag checks.
4098 (epilogue): Use return_internal for both normal and pic code.
4099 (call, call_value): Emit new 32-bit pic patterns for symref and
4100 indirect calls. Remove uses for arg pointer and pic register.
4101 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
4102 call_reg_pic_post_reload, call_val_symref_pic,
4103 call_val_symref_pic_post_reload, call_val_reg_pic,
4104 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
4105 Implement define_split and define_peephole2 patterns for pre reload
4106 patterns.
4107 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
4108 call_value_internal_reg_64bit): Shorten names.
4109 (all call patterns): Explicitly indicate registers used and clobbered.
4110 Use attr_length_indirect_call and attr_length_save_restore_dltp for
4111 attribute length calculation. Move code generation for indirect calls
4112 to output_indirect_call.
4113 (sibcall, sibcall_value): Don't restore PIC register.
4114 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
4115 register retore.
4116
8cacda7c
GP
41172003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4118
4119 * doc/install.texi (Testing): Simplify and compress instructions
4120 concerning Dejagnu.
4121
cbc158bb
JDA
41222003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4123
4124 * collect2.c (pexecute_pid): Rename to pid.
4125 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
4126 pid.
4127
dcef1843
GK
41282003-02-01 Geoffrey Keating <geoffk@apple.com>
4129
4130 * doc/extend.texi (Function Attributes): Remove documentation
4131 for PowerPC Windows NT function attributes..
4132
5d7bed9d
DJ
41332003-02-01 Daniel Jacobowitz <drow@mvista.com>
4134
4135 * dwarf2out.c (gen_type_die): Check for typedefs before calling
4136 for TYPE_MAIN_VARIANT.
4137
53585c36
RH
41382003-02-01 Richard Henderson <rth@redhat.com>
4139
4140 * libgcc2.c: Include auto-host.h.
4141 (ATTRIBUTE_HIDDEN): New.
4142 (__clz_tab): Don't declare here for clz and ctz.
4143 (__clzsi2, __clzdi2): Use count_leading_zeros.
4144 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
4145 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
4146 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
4147 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
4148
bc8a6d63
RH
41492003-02-01 Richard Henderson <rth@redhat.com>
4150
4151 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
4152 to the conditional.
4153 (ashlsi3_1_zext splitter): Likewise.
4154
2928cd7a
RH
41552003-02-01 Richard Henderson <rth@redhat.com>
4156
4157 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
4158 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4159 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
4160 return type to Wtype.
4161
4162 * libgcc-std.ver (GCC_3.4): Fix inheritance.
4163
4164 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
4165 expander input constraint.
4166
41672003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4168
ff6e2d3e
RB
4169 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
4170 OTI_parity.
4171 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
4172 * optabs.c (widen_clz, expand_parity): New.
4173 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
4174 for libcalls to clz, ctz, popcount, and parity.
4175 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
4176 parity_optab, and set up libfunc handlers.
4177 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4178 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
4179 __popcount_tab): New.
4180 * libgcc2.h: Declare them.
4181 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
4182 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
4183 and parity_optab.
4184 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
4185 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
4186 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
4187 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
4188 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
4189 BUILT_IN_PARITYLL): New.
4190 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
4191 and add optab argument.
4192 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
4193 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
4194 * expr.c (expand_expr): Handle them.
4195 * fold-const.c (tree_expr_nonnegative_p): Likewise.
4196 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
4197 * reload1.c (eliminate_regs): Handle them.
4198 (elimination_effects): Likewise.
4199 * function.c (instantiate_virtual_regs_1): Likewise
4200 * genattrtab.c (check_attr_value): Likewise.
4201 * simplify-rtx.c (simplify_unary_operation): Likewise.
4202 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
4203 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
4204 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
4205 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
4206 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
4207 __builtin_arm_clz.
4208 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
4209 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
4210 * doc/extend.texi (Other Builtins): Add new builtins.
4211 * doc/md.texi (Standard Names): Add new patterns.
2928cd7a 4212
112f7223
UW
42132003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
4214
4215 * reload.c: Revert 2003-01-31 change.
4216
434c87d4
JH
4217Sat Feb 1 14:14:40 CET 2003 Jan Hubicka <jh@suse.cz>
4218
4219 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
4220
271bd540
RS
42212003-02-01 Richard Sandiford <rsandifo@redhat.com>
4222
4223 * flags.h (flag_volatile): Remove declaration.
4224 (flag_volatile_global, flag_volatile_static): Likewise.
4225 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
4226 * toplev.c (flag_volatile): Remove definition.
4227 (flag_volatile_global, flag_volatile_static): Likewise.
4228 (f_options): Remove corresponding entries here.
4229 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
4230 or flag_volatile_static.
4231 * doc/invoke.texi: Remove documentation of -fvolatile,
4232 -fvolatile-global and -fvolatile-static.
4233
17e6098e
JDA
42342003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4235
4236 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
4237 updating of total_code_bytes from prologue to epilogue.
4238
2f278625
UW
42392003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
4240
4241 * reload.c (find_reloads): Do not use the mode specified in the insn
4242 pattern as reload mode for address operands. Do not generate optional
4243 reloads for operands where a mandatory reload was already pushed.
4244 Generate optional reloads only in the final pass though find_reloads.
4245 (have_replacement_p): New function.
4246
05c425a9
GP
42472003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4248
4249 * doc/install.texi (Testing): Remove a reference to our obsolete
4250 /testresults web pages and strip redundant information concerning
4251 test results.
4252 (Binaries): Refer to Microsoft Windows instead of listing all
4253 possible variants.
4254
b0c42aed
JH
4255Sat Feb 1 00:28:30 CET 2003 Jan Hubicka <jh@suse.cz>
4256
4257 * loop.c (emit_prefetch_instructions): Do conversion at right place in
4258 RTL chain.
4259
4260 * combine.c (simplify_set): Reverse order of ragumetns to
4261 REG_CANNOT_CHANGE_MODE_P
4262 * df.c (df_def_record_1): Likewise.
4263 * recog.c (register_operand): Likewise.
4264 * simplify-rtx.c (simplify_subreg): Likewise.
4265 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
4266 CANNOT_CHANGE_MODE_CLASS.
4267 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
4268 Likewise.
4269 * reload.c (push_reload): Likewise.
4270 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4271 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4272 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4273 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
4274 * mips.c (mips_cannot_change_mode_class): Update.
4275 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4276 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4277 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4278 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4279 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
4280 * sh.c (sh_cannot_change_mode_class): Update.
4281 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
4282 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
4283
1f61a15d
GK
42842003-01-31 Geoffrey Keating <geoffk@apple.com>
4285
4286 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
4287 change to LINK_COMMAND_SPEC in gcc.c.
4288
7c712dcc
LR
42892003-01-31 Jan Hubicka <jh@suse.cz>
4290
4291 PR c/9506
4292 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
4293
e137391e
JDA
42942003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4295
4296 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
4297 duplicated code.
4298
1824b90d
NS
42992003-01-31 Nathan Sidwell <nathan@codesourcery.com>
4300
4301 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
4302 (BINFO_ELTS): New #define.
4303 * stor-layout.c (finalize_record_size): Don't set them.
4304 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
4305 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
4306 (BINFO_LANG_ELTS): New #define.
4307 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
4308 * java/class.c (make_class): Use BINFO_ELTS.
4309 (set_super_info): Likewse.
4310 (add_interface_do): Likewise.
4311 * objc/objc-act.c (start_class): Use BINFO_ELTS.
4312
8f9a402c
DS
43132003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4314
4315 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
4316 (times): Don't ever declare if not HAVE_TIMES.
4317 (clock): Don't ever declare if not HAVE_CLOCK.
4318
cdd1f01b
RH
43192003-01-30 Richard Henderson <rth@redhat.com>
4320
4321 * flow.c (update_life_info): Zap life info after cleanup_cfg.
4322 (regno_uninitialized): Use correct live at function entry set.
4323 (regno_clobbered_at_setjmp): Likewise.
4324
4325 * expr.c (store_expr): Promote all MEM intermediates to regs.
4326
6bc82793
KH
43272003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4328
4329 * config/arm/arm.c: Fix comment typos.
4330 * config/arm/arm.h: Likewise.
4331 * config/arm/netbsd-elf.h: Likewise.
4332 * config/arm/netbsd.h: Likewise.
4333
f099d360
GK
43342003-01-30 Geoffrey Keating <geoffk@apple.com>
4335
4336 * gengtype.c (struct walk_type_data): Add needs_cast_p.
4337 (walk_type): Set needs_cast_p in walk_type_data.
4338 (write_types_process_field): Supply casts when required to suppress
4339 warnings.
4340 (write_root): Cast gt_pch_n_S to suppress warning.
4341 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
f099d360
GK
4342 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
4343 when they might exist.
4344 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
4345 insn-conditions.o, and rs6000.o.
4346
52895e1a
RH
43472003-01-30 Richard Henderson <rth@redhat.com>
4348
4349 * ggc-page.c (G.context_depth_allocations): New.
4350 (G.context_depth_collections): New.
4351 (alloc_page): Set G.context_depth_allocations.
4352 (ggc_collect): Set G.context_depth_collections.
4353 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
4354 (ggc_pop_context): Early exit for no allocations or collections.
4355
c35c7e52
RH
43562003-01-30 Richard Henderson <rth@redhat.com>
4357
4358 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
4359
e43dd89d
RE
43602003-01-30 Richard Earnshaw <rearnsha@arm.com>
4361
4362 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
4363 size, the link register is always saved if any other register is
4364 saved.
4365
87a902e4
KH
43662003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4367
4368 * config/h8300/h8300-protos.h: Update the prototype for
4369 compute_plussi_cc.
4370 (cpp_reader): Declare before it is used.
4371 * config/h8300/h8300.c (compute_plussi_cc): Change the return
4372 type to int.
4373 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
4374 see an unknown H8 variant.
4375
43762003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
0186a143 4377
ff6e2d3e 4378 PR target/9316
0186a143
RC
4379 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
4380 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
4381 * config/rs6000/t-rtems: New file. multilib variants to match OS.
4382 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
4383 rs6000/t-ppcgas so we get the desired multilibs.
4384
f55d7103
NC
43852003-01-30 Nick Clifton <nickc@redhat.com>
4386
4387 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
4388 when popping saved IP register off the stack.
4389
b6d08ca1
KH
43902003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4391
4392 * config/rs6000/aix43.h: Fix comment typos.
4393 * config/rs6000/aix51.h: Likewise.
4394 * config/rs6000/aix52.h: Likewise.
4395 * config/rs6000/altivec.h: Likewise.
4396 * config/rs6000/rs6000.c: Likewise.
4397 * config/rs6000/rs6000.h: Likewise.
4398 * config/rs6000/rs6000.md: Likewise.
4399 * config/rs6000/spe.md: Likewise.
4400
14d22dd6
MM
44012003-01-29 Mark Mitchell <mark@codesourcery.com>
4402
4403 * c-common.c (builtin_define_float_constants): Define
4404 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
4405
825db093
KH
44062003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4407
4408 * config/sh/lib1funcs.asm: Fix comment typos.
4409 * config/sh/linux.h: Likewise.
4410 * config/sh/sh.c: Likewise.
4411 * config/sh/sh.md: Likewise.
4412
f1d5271a
LR
44132003-01-30 Loren James Rittle <ljrittle@acm.org>
4414
4415 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
4416
266a9ef1
AO
44172003-01-30 Alexandre Oliva <aoliva@redhat.com>
4418
4419 * config/fp-bit.h (__make_dp): Declare if TMODES.
4420
0889116d
KH
44212003-01-29 Kazu Hirata <kazu@cs.umass.edu>
4422
4423 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
4424 general_operand_src and general_operand_dst.
4425
c8c99a68
DE
44262003-01-29 David Edelsohn <edelsohn@gnu.org>
4427
4428 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
4429 Return true for variable sized types.
4430 (rs6000_va_arg): Handle variable sized types passed by reference
4431 on non-SVR4 ABI.
4432
ccf4d512
RE
44332003-01-29 Richard Earnshaw <rearnsha@arm.com>
4434
4435 * arm.c (arm_legtimize_address): New function.
4436 * arm-protos.h (arm_legtimize_address): Add prototype.
4437 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
4438 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
4439 do ... while (0)
4440
0889116d 44412003-01-29 Joel Sherrill <joel@OARcorp.com>
0680c8fb 4442
7429b411 4443 PR bootstrap/9296
0680c8fb 4444 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
7429b411 4445 depended on it being defined until now.
0680c8fb 4446
7429b411 44472003-01-29 Joel Sherrill <joel@OARcorp.com>
c934274a 4448
7429b411 4449 PR target/9295
c934274a
JS
4450 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
4451 RTEMS code knows which C++ initialization style the toolset
7429b411 4452 configuration is using.
c934274a 4453
0889116d 44542003-01-29 Joel Sherrill <joel@OARcorp.com>
2e327e6e 4455
7429b411 4456 PR bootstrap/9293
ff6e2d3e 4457 * config/m68k/t-crtstuff: Replace spaces with tabs, add
2e327e6e 4458 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
2e327e6e 4459
0889116d 44602003-01-29 Joel Sherrill <joel@OARcorp.com>
64abe03e 4461
7429b411 4462 PR bootstrap/9292
64abe03e
JS
4463 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
4464 RTEMS threads.
4465 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
64abe03e 4466
2f12fb2b
NC
44672003-01-29 Nick Clifton <nickc@redhat.com>
4468
4469 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
4470 not $(srcdir).
4471
cf0150b9
AH
44722003-01-29 Andrew Haley <aph@redhat.com>
4473
4474 * tree-inline.c (walk_tree): Add CHAR_TYPE.
4475
9b74f3ea
JH
4476Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
4477
4478 * i386.md (subdi3_carry_rex64): Fix typo.
4479
e150159c
SS
44802003-01-28 Stan Shebs <shebs@apple.com>
4481
4482 * coretypes.h (cpp_reader): Forward declare struct.
4483 * c-pragma.h (cpp_reader): Remove forward declaration.
4484 * hashtable.h (cpp_reader): Likewise.
4485 * scan.h (cpp_reader): Likewise.
4486 * tree.h (cpp_reader): Likewise.
4487 * config/darwin-protos.h (cpp_reader): Likewise.
4488 * config/arm/arm-protos.h (cpp_reader): Likewise.
4489 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
4490 struct cpp_reader in prototypes.
4491
53b50ac1
CC
44922003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4493
4494 * doc/install.texi: Add documentation for installation into
4495 tooldirs and with DESTDIR.
4496
021aa6ed
RH
44972003-01-28 Richard Henderson <rth@redhat.com>
4498
4499 * config.gcc (ia64*-*-aix*): Remove.
4500 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
4501 * config/ia64/unwind-aix.c: Remove file.
4502
c1c1d123
AS
45032003-01-28 Andreas Schwab <schwab@suse.de>
4504
ff6e2d3e
RB
4505 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
4506 register.
4507 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
4508 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
4509 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
4510 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4511 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
4512 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4513 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
c1c1d123 4514
6d09ef27
RS
45152003-01-28 Richard Sandiford <rsandifo@redhat.com>
4516
4517 * combine.c (nonzero_bits): Fix check for negative divide operands.
4518
1e1bd14e
RH
45192003-01-28 Richard Henderson <rth@redhat.com>
4520
4521 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
4522 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
4523
e37135f7
RH
45242003-01-28 Richard Henderson <rth@redhat.com>
4525
4526 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
4527
75642f32
RH
4528 * config/cris/cris.c (cris_address_cost): Make static.
4529 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
4530 * config/cris/cris.h (ADDRESS_COST): Remove.
4531 * config/cris/cris-protos.h: Update.
4532
e37135f7 45332003-01-23 Mike Stump <mrs@apple.com>
1f80c9ef
MS
4534
4535 * regclass.c (init_reg_autoinc): New function.
4536 (regclass): Move initialization of forbidden_inc_dec_class from
26182e15 4537 here...
1f80c9ef 4538 (init_regs): to here. Avoids reinitialization for each function,
26182e15 4539 saving compilation time.
1f80c9ef 4540
9fbd3e41
JM
45412003-01-28 Jason Merrill <jason@redhat.com>
4542
4543 * cpplib.h (struct cpp_options): Add warn_deprecated field.
4544 * cppinit.c (cpp_create_reader): Turn it on by default.
4545 * c-opts.c (c_common_decode_option): Set it.
4546 * cpplib.c (do_pragma_once): Only complain about #pragma once
4547 if warn_deprecated is set.
4548
fe352c29 45492003-01-28 Dale Johannesen <dalej@apple.com>
9fbd3e41 4550
1e1bd14e
RH
4551 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
4552 * loop.c (scan_loop): Move movables on -Os rich-register targets.
4553 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
fe352c29 4554
dcefdf67
RH
45552003-01-28 Richard Henderson <rth@redhat.com>
4556
4557 * target.h (targetm.address_cost): New.
4558 * target-def.h (TARGET_ADDRESS_COST): New.
4559 (TARGET_RTX_COSTS): Uncomment. Oops.
4560 * cse.c (address_cost): Use new target hook.
4561 (default_address_cost): New.
4562 * output.h (default_address_cost): Declare.
4563 * hooks.c (hook_int_rtx_0): New.
4564 * hooks.h (hook_int_rtx_0): Declare.
4565 * loop.c (combine_givs_p): Remove if 0 code.
4566 * system.h (ADDRESS_COST): Poison.
4567
4568 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
4569 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
4570 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
4571 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
4572 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
4573 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
4574 config/xtensa/xtensa.c, config/xtensa/xtensa.h
4575 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
4576 (ADDRESS_COST): Remove.
4577
4578 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4579 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4580 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4581 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4582 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
4583 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
4584 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
4585 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
ff6e2d3e 4586 config/mips/mips.c, config/mips/mips.h,
dcefdf67 4587 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
ff6e2d3e 4588 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
dcefdf67
RH
4589 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
4590 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
4591 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
4592 config/vax/vax.c, config/vax/vax.h
4593 (foo_address_cost): Make static.
4594 (TARGET_ADDRESS_COST): New.
4595 (ADDRESS_COST): Remove.
4596
4597 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
4598 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
4599 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4600 config/stormy16/stormy16.h
4601 (ADDRESS_COST): Move code ...
4602 (foo_address_cost): ... here.
4603 (TARGET_ADDRESS_COST): New.
4604
4605 * config/m32r/m32r.c (m32r_address_cost): Remove.
4606 * config/m32r/m32r-protos.h: Update.
4607
4608 * config/mmix/mmix.c (mmix_address_cost): Remove.
4609 * config/mmix/mmix-protos.h: Update.
4610
4611 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
4612 mn10300_address_cost; move unsig allocation ...
4613 (mn10300_address_cost): ... here.
4614 (TARGET_ADDRESS_COST): New.
4615 * config/mn10300/mn10300-protos.h: Update.
4616 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
4617
75642f32
RH
4618 * doc/tm.texi: Update.
4619
58fb7809
VM
46202003-01-28 Vladimir Makarov <vmakarov@redhat.com>
4621
4622 * haifa-sched.c (schedule_insn): Return necessary cycle advance
4623 after issuing the insn.
4624 (rank_for_schedule): Make a insn with /S the highest priority
4625 insn.
4626 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
4627 (choose_ready): Check SCHED_GROUP_P.
4628 (schedule_block): Advance cycle after issuing insn if it is
4629 necessary. Don't reorder insns if there is an insn with /S.
4630 (set_priorities): Ignore schedule groups.
4631
4632 * sched-deps.c (remove_dependence, group_leader): Remove the
4633 functions.
4634 (add_dependence): Ignore schedule groups.
4635 (set_sched_group_p): Don't make copy of dependencies from previous
4636 insn of the schedule group. Add anti-dependency to the previous
4637 insn of the schedule group.
4638 (compute_forward_dependences): Ignore schedule groups.
4639
4640 * sched-ebb.c (init_ready_list): Ignore schedule groups.
4641
4642 * sched-rgn.c (init_ready_list): Ditto.
4643 (can_schedule_ready_p): Ditto.
ff6e2d3e 4644
371c988b
VM
46452003-01-28 Vladimir Makarov <vmakarov@redhat.com>
4646
4647 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
4648 register to another one.
4649
40cdfd5a
RH
46502003-01-28 Richard Henderson <rth@redhat.com>
4651
4652 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
4653
a77b7e32
RS
46542003-01-28 Roger Sayle <roger@eyesopen.com>
4655
4656 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
4657
3620944c
RS
46582003-01-28 Richard Sandiford <rsandifo@redhat.com>
4659
4660 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
4661 class contains a floating-point register, return the size of the
4662 mode in half words.
4663
e6e81735
JH
4664Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
4665
26182e15
SB
4666 * i386.c (ix86_carry_flag_operator): New predicate.
4667 (fcmov_operator): Fix whitespace.
4668 (ix86_expand_carry_flag_compare): Deal with floating point.
4669 (ix86_expand_int_movcc): Deal with fp; update insn expansion
4670 (ix86_expand_int_addcc): Likewise.
4671 (ix86_expand_strlensi_unroll_1): likewsie.
4672 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
4673 * i386.md (add?i_carry_rex64): Use new predicate.
4674 (sub?i3_carry_rex64): Likewise.
4675 (x86_mov?icc_0_m1*): Likewise.
e6e81735 4676
43196589
AS
46772003-01-28 Andreas Schwab <schwab@suse.de>
4678
32214c32
AS
4679 * cfgloopmanip.c (create_preheader): Initialize src to avoid
4680 warning.
4681
4682 * expmed.c (emit_store_flag): Fix cast to avoid sign
4683 comparison warning.
4684
43196589
AS
4685 * combine.c (force_to_mode): Add cast to fix warning when
4686 STORE_FLAG_VALUE is negative.
4687
3c50106f
RH
46882003-01-27 Richard Henderson <rth@redhat.com>
4689
4690 * Makefile.in (cse.o): Depend on TARGET_H.
4691 * cse.c (rtx_cost): Use targetm.rtx_costs.
4692 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
4693 * doc/tm.texi: Update.
ff6e2d3e 4694
3c50106f
RH
4695 * target.h (targetm.rtx_costs): New.
4696 * target-def.h (TARGET_RTX_COSTS): New.
4697 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
4698 * hooks.h: Update.
4699
4700 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
4701 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
4702 * config/alpha/alpha.h (PROCESSOR_MAX): New.
4703 (CONST_COSTS, RTX_COSTS): Remove.
4704
4705 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
4706 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
4707 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
4708 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
4709 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4710 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
4711 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
4712 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
4713 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
4714 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
4715 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
4716 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
4717 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
4718 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
4719 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
4720 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
4721 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4722 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
4723 config/v850/v850.c, config/v850/v850.h,
4724 config/xtensa/xtensa.c, config/xtensa/xtensa.h
4725 (CONST_COSTS, RTX_COSTS): Move code ...
4726 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
4727
4728 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
4729 (arm_rtx_costs, TARGET_RTX_COSTS): New.
4730 * config/arm/arm-protos.h: Update.
4731 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
4732
4733 * config/avr/avr.h (CONST_COSTS): Move code ...
4734 * config/avr/avr.c (avr_rtx_costs): ... here.
4735 (default_rtx_costs): Make static.
4736 * config/avr/avr-protos.h: Update.
4737
4738 * config/h8300/h8300.c (const_costs): Make static.
4739 (h8300_and_costs, h8300_shift_costs): Likewise.
4740 * config/h8300/h8300-protos.h: Update.
4741
4742 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
4743 (CONST_COSTS): Move code ...
4744 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
4745 default_rtx_costs; update for signature change.
4746 * config/ip2k/ip2k-protos.h: Update.
4747
4748 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
4749 (CONST_COSTS): Move code ...
4750 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
4751 (TARGET_RTX_COSTS): New.
4752 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
4753 * config/m68hc11/m68hc11-protos.h: Update.
4754
4755 * config/m68k/m68k.c (const_int_cost): Make static.
4756 * config/m68k/m68k-protos.h: Update.
4757
4758 * config/mcore/mcore.c (mcore_const_costs): Make static.
4759 (mcore_and_cost, mcore_ior_cost): Likewise.
4760 * config/mcore/mcore-protos.h: Update.
4761
4762 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
4763 (mmix_rtx_cost_recalculated): Remove.
4764 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
4765 * config/mmix/mmix-protos.h: Update.
4766
4767 * config/sh/sh.c (shiftcosts): Make static.
4768 (addsubcosts, andcosts, multcosts): Likewise.
4769 * config/sh/sh-protos.h: Update.
4770
4771 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
4772 (sparc_rtx_costs): Make static; update for change in signature.
4773 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
4774 * config/sparc/sparc-protos.h: Update.
4775
4776 * config/v850/v850.c (const_costs): Make static.
4777 * config/v850/v850-protos.h: Update.
4778
4779 * config/vax/vax.h (RTX_COSTS): Remove.
4780 (CONST_COSTS): Move code ...
4781 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
4782 from vax_rtx_cost.
4783 (vax_rtx_costs, TARGET_RTX_COSTS): New.
4784
b9962e0a
RH
47852003-01-27 Richard Henderson <rth@redhat.com>
4786
4787 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
5ca98980 4788 * config/vax/vax-protos.h: Update. Really.
b9962e0a 4789
8a381273
AO
47902003-01-28 Alexandre Oliva <aoliva@redhat.com>
4791
4792 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
4793 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
4794 zero if no hardware floating point.
4795 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
4796 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
4797 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
4798 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
4799 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
4800 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
4801 even FP registers on N32 and N64.
4802 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
4803 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
4804 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
4805 even-register-like alignment to 128-bit arguments.
4806 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
4807 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
4808 on N32 or N64.
4809 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
4810 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
4811 (TPBIT): Set to tp-bit.c.
4812 (tp-bit.c): Create out of fp-bit.c.
4813
820e01be
GDR
48142003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
4815
4816 * c-parse.in: Remove '%expect 32' directive in objc mode.
4817
23af32e6
NS
48182003-01-27 Nathan Sidwell <nathan@codesourcery.com>
4819
4820 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
4821 (LIBGCOV): New variable.
4822 (libgcc.mk): Add LIBGCOV.
4823 (LIBGCC_DEPS): Add libgcov.c.
4824 (libgcov.a): New target.
4825 (clean): Remove libgcov.a.
4826 (install-libgcc): Do libgcov too.
4827 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
4828 with libgcov.a.
4829 * libgcc2.c (L_gcov): Move into ...
4830 * libgcov.c: ... here. New file.
4831 * mklibgcc.in: Add libgcov rules.
4832 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
4833
4834 * doc/invoke.texi (profile-arcs, test-coverage): Update and
4835 clarify.
ff6e2d3e 4836
23af32e6
NS
4837 * profile.c (index_counts_file): Remove duplicate check for open file.
4838
9fe42917 48392003-01-27 Jerry Quinn <jlquinn@optonline.net>
d4463dfc
JQ
4840
4841 * gcc/doc/invoke.texi (Optimization Options): Group together
4842 optional and experimental flags. Move trapv and bounds-check
95fcd0ab 4843 out of this section. Group floating point flags together.
d4463dfc
JQ
4844 (Code Gen Options): Move trapv and bounds-check to here.
4845
244d05fb
JZ
48462003-01-27 Josef Zlomek <zlomekj@suse.cz>
4847
4848 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
4849
c552c146
RE
48502003-01-27 Richard Earnshaw <rearnsha@arm.com>
4851
4852 PR optimization/9090
4853 * function.c (purge_addressof_1): After pushing an addressed register
4854 onto the stack, simplify the result.
4855
90a21764
VR
48562003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4857
4858 * doc/extend.texi: Fix typo.
4859
9a376494
VR
48602003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4861
4862 * doc/cppopts.texi: Fix typo.
4863 * doc/objc.texi: Likewise.
4864 * doc/passes.texi: Likewise.
4865
f004e5f3
AO
48662003-01-27 Alexandre Oliva <aoliva@redhat.com>
4867
4868 * real.c (ibm_extended_format): Add 53 to minimum exponent.
4869 (encode_ibm_extended): Adjust.
4870
58c60e52
GDR
48712003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
4872
4873 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
4874 timevar_id enumerations.
4875
e869aa39
KH
48762003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4877
4878 * combine.c: Fix formatting.
4879
74fb4811
KH
48802003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4881
4882 * doc/gccint.texi: Update the copyright.
4883
3bcf1b13
KH
48842003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4885
4886 * doc/cpp.texi: Fix typos.
4887 * doc/extend.texi: Likewise.
4888 * doc/gty.texi: Likewise.
4889 * doc/install.texi: Likewise.
4890 * doc/passes.texi: Likewise.
4891 * doc/rtl.texi: Likewise.
4892 * doc/tm.texi: Likewise.
4893
9e4f94de
KH
48942003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4895
4896 * config/ia64/fde-glibc.c: Fix comment typos.
4897 * config/ia64/hpux.h: Likewise.
4898 * config/ia64/ia64.c: Likewise.
4899 * config/ia64/ia64.h: Likewise.
4900 * config/ia64/unwind-ia64.c: Likewise.
4901
4aae8a9a
KH
49022003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4903
4904 * config/i386/i386-modes.def: Fix comment typos.
4905 * config/i386/i386.c: Likewise.
4906 * config/i386/i386.md: Likewise.
4907
35d8c8e2
SB
49082003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
4909
4910 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
4911 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
4912 ASM_FINISH_DECLARE_OBJECT before defining it.
4913 * toplev.c (rest_of_decl_compilation): Don't define
4914 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
4915 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
4916 parameters for DWARF2 targets because they _are_ used.
4917
ea976606
AO
49182003-01-26 Alexandre Oliva <aoliva@redhat.com>
4919
b44cf3d9
AO
4920 * fp-bit.h: Define macros for TFmode floating-point constants
4921 in IBM-extended TFmode types.
4922 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
4923 widths.
4924 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
4925 TFmode type.
4926
ea976606
AO
4927 * config/fp-bit.h: Define macros for TFmode floating-point
4928 constants in IEEE quad TFmode type. Declare functions according
4929 to L_ macros.
4930 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
4931 (TFtype, TItype, UTItype): Define if TMODES is defined.
4932 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
4933 (F_T_BITOFF, D_T_BITOFF): Define.
4934 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
4935 guaranteed to be wide enough.
4936 * config/fp-bit.c: Check for L_ macros for tf functions.
4937 (__thenan_tf): New.
4938 (nan): Adjust.
4939 (pack_d, unpack_d): Support IEEE 854 quad type.
4940 (_fpmul_parts): Support TFmode. Compute exponent adjustment
4941 from FRAC_NBITS, FRAC_BITS and NGARDS.
4942 (usi_to_float): Cast constants to be shifted to fractype
4943 instead of assuming long long is wide enough.
4944 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
4945
fd7fd61e
AJ
49462003-01-26 Andreas Jaeger <aj@suse.de>
4947
4948 * df.c: Remove prototype of unused function df_regno_rtl_debug.
4949
8ae91fc0
AO
49502003-01-26 Alexandre Oliva <aoliva@redhat.com>
4951
88e83acb
AO
4952 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
4953 (DBBIT_FUNCS): Added _df_to_tf.
4954 (TPBIT_FUNCS): New.
4955 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
4956 (LIBGCC_DEPS): Added TPBIT.
4957 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
4958
2cd622c3
AO
4959 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
4960 been able to move the result to target.
4961
8ae91fc0
AO
4962 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
4963 for the appropriate mode.
4964
c3297561
AO
4965 * calls.c (emit_library_call_value_1): Handle return values
4966 in a PARALLEL.
4967
187515f5
AO
4968 * rtl.c (get_mode_alignment): Moved to...
4969 * stor-layout.c: ... here.
4970
6ebd2ef4
AO
4971 * print-rtl.c (print_rtx): Don't print MEM details in
4972 GENERATOR_FILEs.
4973
7890e8f3
MH
49742003-01-26 Michael Hayes <mph@paradise.net.nz>
4975
4976 * df.h: Update comments, tidy formatting.
4977 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
4978 REVERSE, UNION, INTERSECTION. All uses updated.
4979 (OLD_DF_INTERFACE): Remove.
4980 (struct insn_info): Remove commented out insn field.
4981 * df.c: Update comments, tidy formatting.
4982 (df_def_table_realloc): Remove.
4983
4984
b820d2b8
AM
49852003-01-26 Alan Modra <amodra@bigpond.net.au>
4986
4987 * calls.c (save_fixed_argument_area): Tidy.
4988 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
4989 (expand_call): Comment typo fixes. Don't init low_to_save. Start
4990 call chain loop at 1 if !try_tail_call. Formatting.
4991 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
4992 Use save_fixed_argument_area and restore_fixed_argument_area.
4993
42510de4
MH
49942003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4995
4996 * df.c (df_uses_record): Handle CC0.
4997
acf9fa5f
UW
49982003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
4999
1e1bd14e
RH
5000 * reload.c (maybe_memory_address_p): New function.
5001 (find_reloads_address): Use it instead of memory_address_p.
acf9fa5f 5002
5a09edba
KK
50032003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
5004
5005 * final.c (shorten_branches): Align the address of code label
1e1bd14e 5006 when computing initial lengths and addresses.
5a09edba 5007
f5818c0c
KH
50082003-01-25 Kazu Hirata <kazu@cs.umass.edu>
5009
5010 * config/m68hc11/m68hc11.md: Fix a comment typo.
5011
21ff35fb
AJ
50122003-01-25 Andreas Jaeger <aj@suse.de>
5013
5014 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
5015 TARGET_MACHO.
5016
7821bfc7
RS
50172003-01-25 Roger Sayle <roger@eyesopen.com>
5018
5019 * gcse.c (bypass_last_basic_block): New global variable.
5020 (bypass_block): Use redirect_edge_and_branch_force to redirect
5021 fall-through edges. Use bypass_last_basic_block to determine
5022 which blocks have valid PRE information.
5023 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
5024
5f0bea72
JH
5025Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
5026
5027 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
5028
1649d92f
JH
5029Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
5030 Eric Botcazou <ebotcazou@libertysurf.fr>
5031 PR opt/8492
5032 * gcse.c (one_cprop_pass): Delete unreachable blocks.
5033
6ca86a1a
RH
50342003-01-25 Richard Henderson <rth@redhat.com>
5035
5036 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
5037 from ia64_aix_select_rtx_section.
5038 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
5039 instead of saving and restoring flag_pic.
5040 (ia64_rwreloc_unique_section): Similarly.
5041 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
5042 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
5043 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
5044 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
5045
aa2fb4dd
KH
50462003-01-25 Kazu Hirata <kazu@cs.umass.edu>
5047
5048 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
5049 comment.
5050
1125849a
RH
50512002-01-25 Richard Henderson <rth@redhat.com>
5052
5053 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
5054
3900a23b
KC
50552002-01-25 Kelley Cook <kelleycook@comcast.net>
5056
5057 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
5058
72e42e26
SB
50592003-01-25 Segher Boessenkool <segher@koffie.nl>
5060
5061 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
5062 type for bitmaps. Use unsigned long.
5063 (nBITMAP_WORD_BITS): New macro.
5064 (BITMAP_WORD_BITS): New macro.
5065 (rest of file): Use it.
5066 * bitmap.c: Use it.
5067
8324663f
RH
50682003-01-25 Richard Henderson <rth@redhat.com>
5069
5070 2002-02-19 Robert Lipe <robertlipe@usa.net>
5071 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
5072
2adc9b0f
RS
50732002-01-25 Roger Sayle <roger@eyesopen.com>
5074
5075 * builtins.c (purge_builtin_constant_p): Scan insn stream
5076 sequentially rather than by basic block.
5077 * function.c (purge_addressof): Simplify test with INSN_P.
5078
ad487c38
KH
50792003-01-25 Kazu Hirata <kazu@cs.umass.edu>
5080
8324663f 5081 * combine.c (simplify_comparison, case AND): Remove a redundant test.
ad487c38 5082
07d9b20d
RS
50832002-01-25 Roger Sayle <roger@eyesopen.com>
5084
5085 * function.h (struct function): New field calls_constant_p.
5086 (current_function_calls_constant_p): New macro for above.
5087 * function.c (prepare_function_start): Initialize calls_eh_return
5088 and calls_constant_p.
5089 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
5090 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
5091 when the current_function_calls_constant_p.
5092 * integrate.c (expand_inline_function): Set calls_constant_p if
5093 the function being inlined has calls_constant_p set.
5094
41559112
RS
50952002-01-25 Roger Sayle <roger@eyesopen.com>
5096
5097 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
5098 optimizing, even if flag_gcse is true.
5099 * toplev.c (rest_of_compilation): purge_builtin_constant_p
5100 only needs to be called when "optimize > 0 && flag_gcse".
5101
9bb231fd
RS
51022003-01-25 Roger Sayle <roger@eyesopen.com>
5103
5104 * stmt.c (emit_case_bit_tests): New routine to implement suitable
5105 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
5106 (case_bit_test_cmp): New comparison function for "qsort" to order
5107 case_bit_tests by decreasing number of destination nodes.
5108 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
5109 (expand_end_case_type): Use emit_case_bit_tests to implement
5110 suitable switch statments.
5111 (CASE_USE_BIT_TESTS): New target macro to disable the above.
5112 * Makefile.in (stmt.o): Add dependency on optab.h.
5113 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
5114
a073323c
AS
51152003-01-23 Andreas Schwab <schwab@suse.de>
5116
5117 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
5118 __do_global_ctors_aux hidden global and don't put it in
5119 .init_array.
5120 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
5121 instead so that it comes first.
5122
36ddc6b0
JH
5123Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
5124
5125 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
5126 subreg is read/modify.
5127
26771da7
JH
5128Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
5129
5130 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
5131 do libcall for large blocks.
5132 * i386.md (comi patterns): Set type to ssecomi.
5133 (sse2_unpck?pd): Fix mode of vec_select.
5134
5135 * cse.c: Include except.h
5136 (cse_set_around_loop): Do not create new basic blocks.
5137 * Makefile.in (cse.o): Add dependnecy on except.h
5138
27a6aa72
JH
5139Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
5140
5141 * builtins.c (fold_trunc_transparent_mathfn): New function.
5142 (fold_builtin): Use it.
5143 * convert.c (convert_to_real): Re-enable code to convert
5144 math functions; add support for floor familly functions.
5145
cd68f4e4
ZD
51462003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5147
5148 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
5149 dependencies on coretypes.h and $(TM_H).
5150
67945f2e
JH
5151Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
5152
5153 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
5154
095fa594
SH
51552002-01-24 Stuart Hastings <stuart@apple.com>
5156
08f0414b 5157 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
095fa594 5158
1e4c04e0
MH
51592003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5160
5161 * config/c4x/c4x.md (UNSPEC_BU): New constants.
5162 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
5163 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
5164 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
5165 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
5166 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
5167 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
5168 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
5169
a560d4d4
JH
5170Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
5171
08f0414b 5172 * emit-rtl.c (reg_attrs_htab): New static variable.
a560d4d4
JH
5173 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
5174 functions.
5175 (reg_rtx): Do not maintain regno_decl.
5176 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
5177 set_mem_attrs_from_reg): New global function.
5178 (init_emit): Do not initialize regno_decl.
5179 (init_emit_once): initialize reg_attrs_htab.
5180 * final.c (alter_subreg): Do not replace REG by SUBREG.
5181 (gen_mem_expr_from_op): Improve output.
5182 (output_asm_operands): Likewise.
5183 * function.c (assign_params): Do not set REGNO_DECL.
5184 * function.h (struct function): Kill regno_decl.
5185 (REGNO_DECL): Kill.
5186 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
5187 * print_rtl.c (print_rtx): Output REG information.
5188 * regclass.c (reg_scan_mark_refs): Update attrs.
5189 * reload1.c (alter_reg): Likewise.
5190 * simplify_rtx.c (simplify_subreg): Likewise.
5191 * stmt.c (expand_decl): Likewise.
5192 * rtl.def (REG): Add new field.
5193 * rtl.h (struct reg_attrs): New.
5194 (rtunion_def): At rtreg.
5195 (X0MEMATTR): Add checking.
5196 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
5197 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
5198 Declare.
5199 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
5200
1d0ea52e
BW
52012003-01-24 Bob Wilson <bob.wilson@acm.org>
5202
5203 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
5204 (xtensa_emit_call, print_operand): Fix printf format strings
5205 to avoid compile warnings.
5206 (xtensa_function_prologue, xtensa_function_epilogue): Change type
5207 of "size" argument to HOST_WIDE_INT to fix compile warnings.
5208 * config/xtensa/xtensa-protos.h
5209 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
5210
272f51a3
JH
5211Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
5212
5213 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
5214 (implicit_built_in_decls): New global array.
5215 (mathfn_built_in): New global function.
5216 (fold_trunc_transparent_mathfn): New static function
5217 (expand_builtin_strstr, expand_bultin_strchr,
5218 expand_builtin_strpbrk, expand_builtin_strcpy,
5219 expand_builtin_strncpy, expand_bultin_strcmp,
5220 expand_bultin_strncat, expand_builtin_fputs): Use
5221 implicint_built_in_decls.
5222 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
5223 * builtins.def: Fix comments.
5224 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
5225 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
5226 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
5227 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
5228 (DEF_C99_C90RES_BULTIN): New.
5229 (*f, *l builtins): Update.
5230 * c-common.c (DEF_BUILTIN): Initialize implicit array.
5231 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
5232 * convert.c (strip_float_extensions): New global function.
5233 * tree.h (DEF_BUILTIN): Accept 10 arguments.
5234 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
5235 Declare.
5236 * java/builtins.c (define_builtin): Handle implicit.
5237 (DEF_BUILTIN): Update.
5238 * tm.texi (TARGET_C99_FUNCTIONS): Document.
5239 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
5240 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
5241 when using glibc2.
5242
1f37a5b2
BW
52432003-01-24 Bob Wilson <bob.wilson@acm.org>
5244
5245 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
5246 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
5247 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
5248 * config/xtensa/crti.asm: New file.
5249 * config/xtensa/crtn.asm: New file.
5250 * config/xtensa/t-elf: New file.
5251 * config/xtensa/t-linux: New file.
5252 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
5253 Move various CFLAGS settings to new t-elf file.
5254
84f5e1b1
RH
52552003-01-24 Richard Henderson <rth@redhat.com>
5256
5257 PR optimization/4382
5258 * tree-inline.c (find_builtin_longjmp_call_1): New.
5259 (find_builtin_longjmp_call): New.
5260 (inlinable_function_p): Use it.
5261
09b2e78d
ZD
52622003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5263
5264 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
5265 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5266 * config/i386/i386.c (function_arg_pass_by_reference): New.
5267 (ix86_va_arg): Support arguments passed by reference.
5268
3d436d2a
ZD
52692003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5270
5271 * cfgloopanal.c: New file.
5272 * cfgloopmanip.c: New file.
5273 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
5274 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
5275 cfglayout.o): Add dependency on cfgloop.h.
5276 (cfgloop.o): Add flags.h dependency.
5277 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
5278 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
5279 (struct loop, struct loops, flow_loops_find, flow_loops_update,
5280 flow_loops_free, flow_loops_dump, flow_loop_dump,
5281 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
5282 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
5283 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
5284 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
5285 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
5286 find_common_loop, verify_loop_structure): Declarations moved to ...
5287 * cfgloop.h: New file.
5288 * bb-reorder.c (reorder_basic_blocks): Modified.
5289 * cfglayout.c: Include cfgloop.h.
5290 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
5291 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
5292 (break_superblocks): New static function.
5293 (cfg_layout_finalize): Use it.
5294 (cfg_layout_split_block): New function.
5295 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
5296 fields.
5297 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
5298 changed.
5299 (cfg_layout_split_block): Declare.
5300 * cfgloop.c: Include cfgloop.h and flags.h.
5301 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
5302 get_loop_body): Avoid signed versus unsigned comparison warnings.
5303 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
5304 loop_latch_edge): Modified.
5305 (verify_loop_structure): Modified to use flags stored in loop structure;
5306 check irreducible loops.
5307 (cancel_loop, cancel_loop_tree): New functions.
5308 (estimate_probability): Use loop analysis code for predictions.
5309 (estimate_loops_at_level): Avoid signed versus unsigned comparison
5310 warnings.
5311 * doloop.c: Include cfgloop.h.
5312 * loop.c: Include cfgloop.h.
5313 * predict.c: Include cfgloop.h.
5314 * toplev.c: Include cfgloop.h.
5315 * unroll.c: Include cfgloop.h.
5316 * tracer.c (tracer): Modified.
5317
a38b3eea
KH
53182003-01-24 Kazu Hirata <kazu@cs.umass.edu>
5319
5320 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
5321
fd3cd001
UW
53222003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
5323
5324 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
5325 * configure: Regenerate.
5326
5327 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
5328 (tls_symbolic_reference_mentioned_p): Add prototype.
5329 (s390_tls_get_offset): Add prototype.
5330 (emit_pic_move): Remove prototype, replace by ...
5331 (emit_symbolic_move): .. this new prototype.
5332
5333 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
5334 (tls_model_chars): New global variable.
5335 (s390_encode_section_info): Encode TLS model.
5336 Use targetm.binds_local_p to check for local symbols.
5337 (s390_strip_name_encoding): New function.
5338 (TARGET_STRIP_NAME_ENCODING): Define.
5339
5340 (get_thread_pointer): New function.
21ff35fb 5341 (legitimize_tls_address): New function.
fd3cd001
UW
5342 (legitimize_address): Call it.
5343 (emit_pic_move): Remove, replace by ...
5344 (emit_symbolic_move): ... this new function.
5345
5346 (larl_operand): Handle TLS operands.
5347 (legitimate_constant_p): Likewise.
5348 (s390_decompose_address): Likewise.
5349 (s390_cannot_force_const_mem): New function.
5350 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5351
5352 (s390_output_symbolic_const): Handle TLS unspecs.
5353 (print_operand): New code 'J'.
5354 (machine_function): Add struct member 'some_ld_name'.
5355 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5356
5357 (enum s390_builtin): New type.
5358 (code_for_builtin_64, code_for_builtin_31): New global variables.
5359 (s390_init_builtins, s390_expand_builtin): New functions.
5360 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5361
5362 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
5363 (ASM_OUTPUT_LABELREF): Define.
5364 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
5365
5366 * config/s390/s390.md: Define TLS UNSPEC constants.
5367 ("movdi", "movsi"): Handle TLS operands.
5368 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
5369 ("*tls_load_64", "*tls_load_31"): New insns.
5370 ("call_value_tls", "call_value_tls_exp"): New expanders.
21ff35fb 5371 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
fd3cd001
UW
5372 "bas_tls_64", "bas_tls_31"): New insns.
5373
01f4962d
NS
53742003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5375
5376 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
5377 spe ABI is configured, if requested.
5378
70b91854
VR
53792003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5380
5381 * doc/passes.texi: Fix typo.
5382
b8089d8d
AS
53832003-01-24 Andreas Schwab <schwab@suse.de>
5384
5385 * stor-layout.c (excess_unit_span): Only define if used.
5386
38df970e
JQ
53872003-01-24 Jerry Quinn <jlquinn@optonline.net>
5388
5389 * gcc/doc/invoke.texi (Optimization Options): List -O levels
5390 for each optimization flag.
5391
dff23a65
KH
53922003-01-24 Kazu Hirata <kazu@cs.umass.edu>
5393
5394 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
5395
05739753
VR
53962003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5397
5398 * doc/bugreport.texi: Use @command instead of @code for commands.
5399 * doc/collect2.texi: Likewise.
5400 * doc/headerdirs.texi: Likewise.
5401 * doc/invoke.texi: Likewise.
5402 * doc/standards.texi: Likewise.
5403 * doc/tm.texi: Likewise.
5404 * doc/trouble.texi: Likewise.
5405
06bea5aa
NC
54062003-01-24 Nick Clifton <nickc@redhat.com>
5407
5408 * config/arm/arm.c (use_return_insn): Do not use a single return
5409 instruction for interrupt handelrs which have to create a stack
5410 frame.
5411 (arm_expand_prologue): Do not pre-bias the return address of
5412 interrupt handlers which create a stack frame.
5413
54142003-01-24 Nick Clifton <nickc@redhat.com>
5415
5416 * Add sh2e support:
5417
5418 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
5419
5420 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
5421 med_cbranches. Fix logic in short_cbranches.
5422
5423 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
5424
5425 * config/sh/sh.md (delay for cbranch): Don't annul delay
5426 slots on SH2e.
5427 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
5428 cbranch with unfilled delay slot on SH2e.
5429 (output_branch): Fill with a nop the delay slot of a
5430 branch that required a delay slot but didn't get one.
5431
5432 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
5433
5434 * doc/invoke.texi (SH options): Document -m2e.
5435 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
5436 * config/sh/lib1funcs.asm: Likewise.
5437 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
5438 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
5439 not __sh1__.
5440 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
5441 SH2E up.
5442 (SH3E_BIT): Renamed to...
5443 (SH_E_BIT): ... this. Replace all uses.
5444 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
5445 Replace all uses of TARGET_SH3E with TARGET_SH2E.
5446 (TARGET_SWITCHES): Added 2e.
5447 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
5448 (processor_type): Added PROCESSOR_SH2E.
5449 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
5450 TARGET_SH2E, except in sqrtsf2_i.
5451 (attribute cpu): Added sh2e.
5452 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
5453 (MULTILIB_MATCHES): Use m2e multilib for m3e.
5454 * config.gcc: Add sh2e target support.
5455
65ca2d60
PE
54562003-01-24 Phil Edwards <pme@gcc.gnu.org>
5457
5458 Rename -W to -Wextra.
5459 * c-decl.c: Update comments.
5460 * c-typeck.c: Likewise.
5461 * flags.h: Likewise.
5462 * function.c: Likewise.
5463 * stmt.c: Likewise.
5464 * toplev.c: Update comments.
5465 (W_options): Add 'extra'.
5466 (display_help): Remove '-W'.
5467 (decode_W_option): Special warn_uninitialized treatment in the case
5468 of -Wextra.
5469 * doc/invoke.texi: Update with new entries.
5470
3de9c088
RH
54712003-01-23 Richard Henderson <rth@redhat.com>
5472
8324663f
RH
5473 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
5474 in no-else-block case. Add commentary.
3de9c088 5475
49691411
KG
54762003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5477
b4862477
KG
5478 * configure.in: Revert last change.
5479
54802003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5481
5482 * configure.in: Don't include ansidecl.h in tconfig.h.
49691411
KG
5483 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
5484 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
5485 ATTRIBUTE_UNUSED.
5486
5487 * configure: Regenerate.
5488
c4db7ecb
FS
54892003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5490
5491 PR java/6748
5492 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
5493 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
5494 kernels.
5495
fc69c47c
KG
54962003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5497
5498 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
5499
adbe6dfd
UW
55002003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
5501
5502 * genattrtab.c (write_attr_get): Mark 'insn' paramter
5503 as ATTRIBUTE_UNUSED.
5504
76a318e9
RE
55052003-01-23 Richard Earnshaw <rearnsha@arm.com>
5506
5507 * arm.c (thumb_base_register_rtx_p): New function.
5508 (thumb_index_register_rtx_p): New function.
5509 (thumb_legitimate_address_p): New function.
5510 (thumb_legitimate_offset_p): New function.
5511 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
8891b787 5512 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
76a318e9
RE
5513 definitions.
5514 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
5515 (THUMB_LEGITIMATE_OFFSET): Delte.
5516 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
5517 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
5518 (thumb_legitimate_offset_p): Likewise.
5519
9a600d0c
AS
55202003-01-23 Andreas Schwab <schwab@suse.de>
5521
5522 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
5523
2d110c0a
KG
55242003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5525
5526 * fixinc/Makefile.in (FL_LIST): Revert last change.
5527
2d1d9215
VR
55282003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5529
5530 PR other/7341
5531 * invoke.texi (ftest-coverage): Fix broken cross-reference.
5532 Change @code to @command for gcov command.
5533
5534 * gcc.texi: Adjust title of gcov section.
5535 Adjust copyright.
5536 * gcov.texi: Likewise.
5537
34ee7f82
RS
55382003-01-22 Roger Sayle <roger@eyesopen.com>
5539
5540 PR optimization/8423
5541 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
5542 its argument is constant, or 0 if !flag_gcse.
5543 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
5544 if it's argument is constant.
5545 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
5546 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
5547 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
5548 * builtins.c (purge_builtin_constant_p): New function to force
5549 instantiation of any remaining CONSTANT_P_RTX nodes.
5550 * rtl.h (purge_builtin_constant_p): Prototype here.
5551 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
5552 pass after GCSE and before loop.
5553 (flag_gcse): No longer static.
5554 * flags.h (flag_gcse): Prototype here.
5555
bab0b43b
UW
55562003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
5557
5558 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
5559 introduced by last change.
5560
7e657a61
AS
55612003-01-22 Andreas Schwab <schwab@suse.de>
5562
5563 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
5564
75a3503b
KH
55652003-01-22 Kazu Hirata <kazu@cs.umass.edu>
5566
5567 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
5568 request a scratch reg on H8S when the shift count is 8.
5569
4888ec5d
UW
55702003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
5571
5572 * config/s390/s390-protos.h (preferred_la_operand_p):
5573 Remove second parameter.
5574 * config/s390/s390.c (preferred_la_operand_p): Likewise.
5575 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
5576 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
5577 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
5578 Add peepholes to transform ADD to LOAD ADDRESS.
5579
6b990f6b
RE
55802003-01-22 Richard Earnshaw <rearnsha@arm.com>
5581
5582 * arm.c (arm_address_register_rtx_p): New function.
5583 (arm_legitimate_address_p): New function.
5584 (arm_legitimate_index_p): New function.
5585 (legitimize_pic_address): Use arm_legitimate_index_p.
5586 * arm-protos.h (arm_legtimate_address_p): Add prototype.
5587 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
5588 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
5589
f0bf1270
HP
55902003-01-22 Hartmut Penner <hpenner@de.ibm.com>
5591
5592 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
5593 * config/s390/2064.md (define_bypass): Correct 'Load' and
5594 'Load-address' bypass values.
21ff35fb 5595
fcb6a0f5
AS
55962003-01-22 Andreas Schwab <schwab@suse.de>
5597
5598 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
5599
c24b8026
ZW
56002003-01-21 Zack Weinberg <zack@codesourcery.com>
5601
5602 * genautomata.c (output_internal_insn_latency_func,
5603 output_print_reservation_func): Short circuit when there is no
5604 automaton to generate code for.
5605
38afe605
KG
56062003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5607
5608 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
5609 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
5610
d24652ee
GK
56112003-01-21 Geoffrey Keating <geoffk@apple.com>
5612
5613 * config/rs6000/rs6000.md: Remove warning.
5614 (builtin_setjmp_receiver): Likewise.
5615 * config/darwin.c (update_stubs): Slightly improve terrible hack
5616 with identifiers. Add comment pointing out problems with it.
5617 (update_non_lazy_ptrs): Likewise.
5618
1c99d804
RH
56192003-01-21 Richard Henderson <rth@redhat.com>
5620
5621 * dwarf2out.c (lookup_filename): Fix printf format warning.
5622 * system.h (fread_unlocked, fwrite_unlocked): Undef.
5623
5624 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
5625 (fixincl.o-warn, gnu-regex.o-warn): New.
5626 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
5627 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
5628 * fixinc/fixincl.c (process): Fix printf format warning.
5629
f0b886ab
UW
56302003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5631
5632 * dwarf2out (output_file_names): Don't crash if called
5633 with empty file_table.
5634
490c57bb
ZW
56352003-01-21 Zack Weinberg <zack@codesourcery.com>
5636
5637 * genautomata.c (output_internal_insn_latency_func): Add
5638 missing break statement to generated code.
5639
100e3acb
RS
56402003-01-21 Roger Sayle <roger@eyesopen.com>
5641
5642 * stmt.c (same_case_target_p): New function to determine whether
5643 two case labels branch to the same target. Split out from...
5644 (group_case_nodes): ... here. Use same_case_target_p instead.
5645 (strip_default_case_nodes): Remove explicit case nodes
5646 that branch to the default destination.
5647 (expand_end_case_type): Call strip_default_case_nodes after
5648 group_case_nodes, to simplify the case-list before we count it.
5649 Only generate table_label RTX when actually needed. Try to share
5650 thiscase->exit_label and thiscase->data.case_stmt.default_label
5651 when a switch has no explicit default case. Simplify test for
5652 constant index.
5653
e8e8c1e5
KH
56542003-01-21 Kazu Hirata <kazu@cs.umass.edu>
5655
5656 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
5657 \t.
5658 (*negsf2_h8300hs): Likewise.
5659 (*addsi3_lshiftrt_16_zexthi): Likewise.
5660 (*iorhi3_lshiftrt_8): Likewise.
5661
044b4de3
UW
56622003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5663
5664 * dwarf2out.c (fde_table_in_use): Mark GTY.
5665 (dwarf2out_cfi_label_num): New variable, marked GTY.
5666 (dwarf2out_cfi_label): Use it instead of static label_num.
5667 * emit-rtl.c (label_num): Mark GTY.
5668
cfedf91b
KH
56692003-01-21 Kazu Hirata <kazu@cs.umass.edu>
5670
5671 * config/h8300/h8300.c (output_plussi): Support H8/300.
5672 (compute_plussi_length): Likewise.
5673 (compute_plussi_cc): Likewise.
5674 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
5675 output assembly instructions.
5676
dd859b8a
KG
56772003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5678
1f5b3282
KG
5679 * calls.c (fix_unsafe_tree): Prototype.
5680
dd859b8a
KG
5681 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
5682 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
5683 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
5684 c-parse.o-warn): Add -Wno-error.
5685 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
5686
5687 * configure.in (--enable-werror): Add new flag.
5688 * doc/install.texi (--enable-werror): Document.
5689 * configure: Regenerate.
5690
5691 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
5692
4f9365e2
AS
56932003-01-21 Andreas Schwab <schwab@suse.de>
5694
5695 * genautomata.c (output_internal_insn_latency_func): Fix missing
5696 close paren in output.
5697
a543eb5e
ZW
56982003-01-21 Zack Weinberg <zack@codesourcery.com>
5699
5700 * genautomata.c: Space savings in generated code:
5701 (output_dfa_insn_code_func): Split out the table-enlargement
5702 path to an out-of-line static function, dfa_insn_code_enlarge.
5703 (output_internal_insn_latency_func): Use a lookup table for the
5704 default latencies.
5705 (output_print_reservation_func): Use a lookup table for the
5706 strings.
5707
292e35a3
CE
57082003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5709
5710 PR opt/7507
5711 * calls.c (fix_unsafe_tree): Split out from ...
5712 (expand_call): ... here. Use it on the function address too.
5713
d8d0f5af
RH
57142003-01-20 Richard Henderson <rth@redhat.com>
5715
5716 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
5717
5b50aa9d
RH
57182003-01-20 Richard Henderson <rth@redhat.com>
5719
515e1c9f 5720 PR opt/7154
5b50aa9d
RH
5721 * stmt.c (expand_asm_operands): Validize memory operands.
5722
7a174a15
RH
57232003-01-20 Richard Henderson <rth@redhat.com>
5724
5725 PR opt/8848
5726 * ifcvt.c (noce_process_if_block): Correct arguments to
5727 modified_between_p for no-else-block case.
5728
9ac7ebba
KH
57292003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5730
5731 * config/h8300/h8300.c (const_costs): Remove a warning.
5732 (output_plussi): Likewise.
5733 (compute_plussi_length): Likewise.
5734 (compute_plussi_cc): Likewise.
5735
309c52b5
KH
57362003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5737
5738 * config/h8300/h8300.md (addsi_h8300): Remove the last
5739 alternative.
5740
b30686ec
KH
57412003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5742
5743 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5744
87608693
KG
57452003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5746
5747 * system.h (__NO_STRING_INLINES): Define.
5748
475c8250
JDA
57492003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5750
5751 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
5752 is not a scalar int mode.
5753
dbaff908
RS
57542003-01-20 Roger Sayle <roger@eyesopen.com>
5755
5756 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
5757 insn's notes following a substitution inside a libcall.
5758
da8a6064
ZW
57592003-01-20 Zack Weinberg <zack@codesourcery.com>
5760
5761 * configure.in: Check for system-provided 'uchar' type.
a12b5bd9 5762 * configure, config.in: Regenerate.
da8a6064
ZW
5763 * cpphash.h: Only typedef 'uchar' if the system doesn't.
5764
a4b1b92a
RH
57652003-01-20 Richard Henderson <rth@redhat.com>
5766
5767 * expr.h (MUST_PASS_IN_STACK): Move implementation...
5768 * calls.c (default_must_pass_in_stack): ... here.
5769
d530b07f
VM
57702003-01-20 Vladimir Makarov <vmakarov@redhat.com>
5771
da8a6064
ZW
5772 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
5773
d530b07f
VM
5774 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
5775
5776 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
5777 Wrap up definition of `insn_alts'.
5778
5779 * genattrtab.c (main): Wrap up `insn_alts'.
5780
351df804
KG
57812003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5782
5783 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
5784 prototyping.
5785 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
da8a6064 5786
351df804
KG
5787 * config.in, configure: Regenerate.
5788
e3289412
NC
57892003-01-20 Nick Clifton <nickc@redhat.com>
5790
5791 * config/arm/arm.md (sibcall_epilogue): Add an
5792 UNSPEC_PROLOGUE_USE to prevent the link register from being
5793 considered dead.
5794
5794139a
JH
5795Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
5796
5797 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
5798
0a18ddf9
AS
57992003-01-20 Andreas Schwab <schwab@suse.de>
5800
5801 * system.h: Don't declare strsignal if the decl test hasn't been
5802 run yet.
5803
d99c740f
KH
58042003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5805
5806 * config/h8300/h8300.c (notice_update_cc): Don't assume that
5807 recog_data.operands[0] is always associated with cc0.
5808
825c5408
DE
58092003-01-19 David Edelsohn <edelsohn@gnu.org>
5810
5811 * collect2.c (ldgetname): Expand declaration to prototype.
5812 * read-rtl.c (atoll): Add prototype.
da3e0142 5813 * system.h (strsignal): Also declare if no declaration found.
825c5408 5814
3bd6d4c4
AO
58152003-01-19 Alexandre Oliva <aoliva@redhat.com>
5816
5817 * config.gcc (mips64*-*-linux*): Added.
5818 * config/mips/linux64.h, config/mips/t-linux64: New file.
5819 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
5820 * config/mips/mips.c (override_options): Use it.
5821 * config/mips/mips.h (TARGET_SWITCHES): Added...
5822 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
5823 * Makefile.in (SPECS): New.
5824 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
5825 * gcc.c (process_command): Move self-spec processing past spec
5826 file loading.
5827 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
5828 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
5829 CRTSTUFF_T_CFLAGS.
5830 (SPECS): Document.
5831 * doc/invoke.texi (-mabi-fake-default): Document.
5832
e9f13564
SC
58332003-01-19 Stephane Carrez <stcarrez@nerim.fr>
5834
5835 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
5836 z_reg, z_reg_qi): Declare static and GTY().
5837 (da_reg): Remove.
5838 (create_regs_rtx): Don't create da_reg.
5839 ("gt-m68hc11.h"): Include for GTY roots.
5840 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
5841 and GTY() here.
5842 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
5843 (m68hc11_soft_tmp_reg): Likewise.
5844 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
5845
32dd366d
KH
58462003-01-18 Kazu Hirata <kazu@cs.umass.edu>
5847
5848 * basic-block.h: Fix comment formatting.
5849 * calls.c: Likewise.
5850 * combine.c: Likewise.
5851 * convert.c: Likewise.
5852 * gcov.c: Likewise.
5853 * haifa-sched.c: Likewise.
5854 * libgcc2.c: Likewise.
5855 * loop.c: Likewise.
5856 * profile.c: Likewise.
5857 * system.h: Likewise.
5858
bc3cb712
RS
58592003-01-18 Roger Sayle <roger@eyesopen.com>
5860
5861 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
5862
25e42e9d
KG
58632003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5864
5865 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
5866
6f9c81f5
DJ
58672003-01-17 Dale Johannesen <dalej@apple.com>
5868
da8a6064 5869 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
6f9c81f5
DJ
5870 (*floatunssidf2_internal): Ditto.
5871
95bd1dd7
KH
58722003-01-17 Kazu Hirata <kazu@cs.umass.edu>
5873
5874 * alias.c: Fix comment typos.
5875 * basic-block.h: Likewise.
5876 * c-common.c: Likewise.
5877 * c-common.h: Likewise.
5878 * c-decl.c: Likewise.
5879 * c-opts.c: Likewise.
5880 * c-pragma.c: Likewise.
5881 * c-pretty-print.h: Likewise.
5882 * cfg.c: Likewise.
5883 * cfganal.c: Likewise.
5884 * cfgbuild.c: Likewise.
5885 * cfgcleanup.c: Likewise.
5886 * cfglayout.c: Likewise.
5887 * cfgrtl.c: Likewise.
5888 * convert.c: Likewise.
5889 * cpphash.h: Likewise.
5890 * cpplex.c: Likewise.
5891 * cpplib.h: Likewise.
5892 * df.h: Likewise.
5893 * diagnostic.c: Likewise.
5894 * diagnostic.h: Likewise.
5895 * dwarf2.h: Likewise.
5896
d5840e09
SS
58972003-01-17 Stan Shebs <shebs@apple.com>
5898
5899 * config/darwin-protos.h: Forward-declare struct cpp_reader.
5900
e607534b
DR
59012003-01-17 Douglas B Rupp <rupp@gnat.com>
5902
5903 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
5904 mistake in last checkin.
5905
fbe5a4a6
KH
59062003-01-17 Kazu Hirata <kazu@cs.umass.edu>
5907
5908 * et-forest.c: Fix comment typos.
5909 * et-forest.h: Likewise.
5910 * except.c: Likewise.
5911 * expr.c: Likewise.
5912 * flags.h: Likewise.
5913 * flow.c: Likewise.
5914 * gcc.c: Likewise.
5915 * gcse.c: Likewise.
5916 * genattrtab.c: Likewise.
5917 * genautomata.c: Likewise.
5918 * gengtype.c: Likewise.
5919 * genrecog.c: Likewise.
5920 * global.c: Likewise.
5921 * gthr-rtems.h: Likewise.
5922
095f9093
KG
59232003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5924
5925 * i386.c (x86_function_profiler): Fix format specifier.
5926
084087e1
RH
59272003-01-17 Richard Henderson <rth@redhat.com>
5928
5929 * gengtype.c (walk_type): Allow paramN_is.
5930
4a13592e
NC
59312003-01-17 Nick Clifton <nickc@redhat.com>
5932
5933 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
5934
01193617
RH
59352003-01-16 Richard Henderson <rth@redhat.com>
5936
5937 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
5938
f030826a
RH
59392003-01-16 Richard Henderson <rth@redhat.com>
5940
5941 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
5942 (alpha_next_sequence_number): Likewise.
5943 (alpha_this_literal_sequence_number): Likewise.
5944 (alpha_this_gpdisp_sequence_number): Likewise.
5945 (struct alpha_funcs, alpha_funcs_num): Likewise.
5946 (struct alpha_links): Fix branch merge error.
5947 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
5948
e1551d47
AO
59492003-01-17 Alexandre Oliva <aoliva@redhat.com>
5950
5951 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
5952 R. Ghazi.
5953
3d042e77
KH
59542003-01-16 Kazu Hirata <kazu@cs.umass.edu>
5955
5956 * ifcvt.c: Fix comment typos.
5957 * lcm.c: Likewise.
5958 * libgcc2.c: Likewise.
5959 * local-alloc.c: Likewise.
5960 * loop.c: Likewise.
5961 * predict.c: Likewise.
5962 * ra-build.c: Likewise.
5963 * ra.c: Likewise.
5964 * ra-colorize.c: Likewise.
5965 * ra.h: Likewise.
5966 * ra-rewrite.c: Likewise.
5967 * regmove.c: Likewise.
5968 * reload.h: Likewise.
5969 * rtlanal.c: Likewise.
5970 * toplev.c: Likewise.
5971 * tree.h: Likewise.
5972 * unwind-dw2-fde-glibc.c: Likewise.
5973 * vmsdbgout.c: Likewise.
5974
c4274b22
RH
59752003-01-16 Richard Henderson <rth@redhat.com>
5976
5977 * dwarf2out.c (struct file_table): Remove.
5978 (FILE_TABLE_INCREMENT): Remove.
5979 (file_table): Make a varray; mark for GC. Update all users.
5980 (file_table_last_lookup_index): Extract from struct file_table.
5981 (output_file_names): Fix unsigned compare warnings.
5982 (add_name_attribute): Remove inline marker.
5983 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
5984 (lookup_filename): Don't manage size of file_table.
5985 (init_file_table): Allocate file_table with GC.
5986 (dwarf2out_init): Don't record main_input_filename here.
5987 (dwarf2out_finish): Do it here instead.
5988
19162d0e
BK
59892003-01-16 Bruce Korb <bkorb@gnu.org>
5990
5991 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
5992
f1e2239f
KK
59932003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
5994
da8a6064
ZW
5995 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
5996 instead of rotldi3_mextr.
f1e2239f 5997
cda1f765
VM
59982003-01-16 Vladimir Makarov <vmakarov@redhat.com>
5999
6000 * haifa-sched.c (move_insn): Restore moving all schedule group.
6001 (set_priorities): Restore taking SCHED_GROUP_P into account.
6002
6003 * sched-deps.c (add_dependence): Restore processing the last group
6004 insn.
6005 (remove_dependence, group_leader): Restore the functions.
6006 (set_sched_group_p): Restore adding dependencies from previous insn
6007 in the group.
6008 (compute_forward_dependences): Restore usage of group_leader.
6009
6010 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
6011 account.
6012
6013 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
6014 account.
6015 (can_schedule_ready_p): Ditto.
6016 (add_branch_dependences): Restore skipping over the group insns.
da8a6064 6017
200097cc
SC
60182003-01-16 Stephane Carrez <stcarrez@nerim.fr>
6019
6020 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
6021 68HC12 pre/post inc/dec side effects.
6022
f411c739
SC
60232003-01-16 Stephane Carrez <stcarrez@nerim.fr>
6024
6025 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
6026
08c43ea7
R
6027Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
6028
6029 * sh.md (mshflo_w_x): Fix description of operation.
6030
07488f32
ZW
60312003-01-16 Zack Weinberg <zack@codesourcery.com>
6032
6033 * config/rs6000/rs6000.h: Mention Altivec registers in
6034 commentary. Fix typo.
6035
27dc0551
DE
60362003-01-16 David Edelsohn <edelsohn@gnu.org>
6037
6038 * config/rs6000/rs6000.md (movti_string): Remove clobber.
6039 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
6040 generate PARALLEL with clobber for TARGET_POWER.
6041
0334ef47
KG
60422003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6043
6044 * ra-colorize.c (colorize_one_web): Initialize variable.
6045 * regmove.c (fixup_match_1): Likewise.
6046 * reload1.c (reload_as_needed): Likewise.
6047 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
6048
16f2b86a
ZD
60492003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6050
6051 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
6052
fc555370
KG
60532003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6054
93d8c755
KG
6055 * dbxout.c (lastfile, cwd): Fix `unused' warning.
6056 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
6057 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
6058 is_main_source, file_table, decl_die_table_in_use,
6059 abbrev_die_table_in_use, line_info_table_in_use,
6060 separate_line_info_table_in_use, pubname_table_in_use,
6061 arange_table_in_use, ranges_table_in_use,
6062 current_function_has_inlines): Likewise.
6063 * flow.c (life_analysis): Likewise.
6064 * genemit.c (gen_insn): Likewise.
6065 * protoize.c (cplus_suffix): Likewise.
6066
0c2ca901
KG
6067 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
6068 * arm.h (ROUND_UP_WORD): Likewise.
6069
fc555370
KG
6070 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
6071 warning.
6072 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
6073 init_emit_once): Likewise.
6074 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
6075 Likewise.
6076 * function.c (assign_stack_temp_for_type): Likewise.
6077 * loop.c (loop_invariant_p): Likewise.
6078 * recog.c (push_operand): Likewise.
6079 * regclass.c (init_reg_sets_1): Likewise.
6080 * reload.c (update_auto_inc_notes): Likewise.
6081 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
6082 * stmt.c (expand_asm_operands): Likewise.
6083 * stor-layout.c (start_record_layout): Likewise.
6084
64510a4f
HB
60852003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
6086
07488f32 6087 * config/c4x/c4x.md (epilogue): Correct last patch.
64510a4f 6088
77480b0b
RH
60892003-01-15 Richard Henderson <rth@redhat.com>
6090
6091 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
6092 also check that GP is being used.
6093 (alpha_find_lo_sum_using_gp): New.
6094 (alpha_does_function_need_gp): Use get_attr_usegp.
6095 * config/alpha/alpha-protos.h: Update.
6096 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
6097 as needed.
6098
a0134312
RS
60992003-01-15 Roger Sayle <roger@eyesopen.com>
6100
6101 * gcse.c (one_cprop_pass): Change function arguments to take both
6102 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
6103 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
6104 (bypass_jumps): New function to perform separate jump bypassing pass.
6105 * rtl.h (bypass_jumps): Add function prototype.
6106 * timevar.def (TV_BYPASS): New timing variable.
6107 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
6108 (dump_file): New entry for the bypass RTL dump file.
6109 (rest_of_compilation): Insert new jump bypassing optimization
6110 pass after loop.
6111 * doc/passes.texi: Document new pass.
6112
4af6a063
JDA
61132003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6114
6115 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
6116 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
6117 * pa.h (TARGET_SOM_SDEF): Define.
6118 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
6119
51e13b71
SC
61202003-01-16 Stephane Carrez <stcarrez@nerim.fr>
6121
07488f32 6122 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
51e13b71
SC
6123 allocate 4-bytes of locals on 68HC11.
6124 (expand_epilogue): Likewise.
6125 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
6126
f077f169
SC
61272003-01-15 Stephane Carrez <stcarrez@nerim.fr>
6128
6129 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
6130 and -mshort-double to the assembler to specify the ABI.
6131 (LINK_SPEC): Likewise.
6132 (CPP_SPEC): Pass HCS12 specific define.
6133 (MASK_M68S12): New define.
6134 (TARGET_M68S12): Likewise.
6135 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
6136 (TARGET_VERSION): Update.
6137 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
6138 (LINK_SPEC): Update.
6139 (ASM_SPEC): Update.
6140 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
6141 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
6142
c0f684dc
SC
61432003-01-15 Stephane Carrez <stcarrez@nerim.fr>
6144
6145 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
6146 the return code.
6147
6982ae15
JZ
61482003-01-15 Josef Zlomek <zlomekj@suse.cz>
6149
6150 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
6151 flag before setting it.
6152
8cadeff1
RS
61532003-01-15 Roger Sayle <roger@eyesopen.com>
6154
6155 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
6156 when loop condition is known true, i.e. "while (1) { ... }".
6157 (genrtl_for_stmt): Similarly for "for" statements.
6158
03cd8aba
RS
61592003-01-15 Roger Sayle <roger@eyesopen.com>
6160
6161 * real.c (real_sqrt): Return a bool result indicating whether
6162 a floating point exception or trap should be raised.
6163 * real.h (real_sqrt): Update function prototype.
6164 * builtins.c (fold_builtin): Only fold non-trapping square
6165 roots unless we're ignoring errno and trapping math.
6166
4da78214
JDA
61672003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
6168
6169 * expr.h (emit_conditional_add): Add PARAMS to declaration.
6170 * gengtype-lex.l (malloc, realloc): Move defines after include of
6171 system.h. Remove duplicate include of system.h.
6172
9ee0a442
RS
61732003-01-15 Roger Sayle <roger@eyesopen.com>
6174
6175 PR middle-end/9009
6176 * optabs.c (expand_unop): When manipulating the FP sign bit
6177 using integer operations, account for targets with different
6178 integer and FP word orders.
6179 (expand_abs): Likewise.
6180
e3981aab
DE
61812003-01-15 David Edelsohn <edelsohn@gnu.org>
6182
6183 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
6184 file extension in section name.
6185
89c4b810
RE
61862003-01-15 Richard Earnshaw <rearnsha@arm.com>
6187
6188 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
6189 constant offset.
6190
3cd45774
RE
61912003-01-15 Richard Earnshaw <rearnsha@arm.com>
6192
6193 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
6194 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
6195 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
6196 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
6197
b1a6f8db
JH
6198Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
6199
6200 PR f/9258
07488f32 6201 * global.c (struct allocno): Add no_stack_reg.
b1a6f8db
JH
6202 (global_conflicts): Set no_stack_reg.
6203 (find_reg): Use it.
6204
6205 * convert.c (convert_to_real): Fold - and abs only when profitable.
6206 * fold-const.c (fold): Fold truncates in - and abs.
6207
d18c7e59
JZ
62082003-01-15 Josef Zlomek <zlomekj@suse.cz>
6209
6210 Segher Boessenkool <segher@koffie.nl>
fbe3b30b
SB
6211
6212 * predict.c (real_inv_br_prob_base): New variable.
6213 (propagate_freq): Use multiply by reciprocal instead of
6214 division. Don't divide by 1.0 at all.
6215 (estimate_bb_frequencies): Similar.
6216
027faee7
AO
62172003-01-15 Alexandre Oliva <aoliva@redhat.com>
6218
6219 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
6220 * configure: Rebuilt.
6221
077dab3b 62222003-01-15 Hartmut Penner <hpenner@de.ibm.com>
3c0121e4 6223
077dab3b
HP
6224 * config/s390/s390.c (s390_safe_attr_type): New function.
6225 (s390_use_dfa_pipeline_interface): New function, return true for z900.
6226 (s390_issue_rate): New function.
6227 (s390_agen_dep_p): New function.
6228 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
6229 (s390_adjust_cost): Return 'cost' if new DFA is used.
6230 (s390_adjust_priority): Delete function.
6231 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
6232 * config/s390/s390.md (atype attribute): Attribute 'atype' default
6233 determined by 'op_type'.
6234 (type attribute): Added more type attributes.
6235 * config/s390/2064.md: New DFA description for z900 pipeline.
07488f32 6236
077dab3b 62372003-01-15 Alexandre Oliva <aoliva@redhat.com>
2b28d405 6238
acfa9d9f
AO
6239 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
6240 forced to memory. Fixes PR bootstrap/9036.
6241
3c0121e4
AO
6242 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
6243 to set $gp before the call.
6244
553eb139
RH
62452003-01-14 Richard Henderson <rth@redhat.com>
6246
6247 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
6248 for force_const_mem.
6249
dd1b7476
KG
62502003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * genattr.c (main): Rearrange output to avoid prototype warning.
6253 * genautomata.c (transform_3): Fix ambiguous-else warning.
6254 * local-alloc.c (requires_inout): Add parentheses around
6255 assignment used as truth-value.
6256 * timevar.c: Move system includes above local includes. Include
6257 toplev.h
6258 * Makefile.in (timevar.o): Depend on toplev.h.
6259
6028880a
DC
62602003-01-14 Denis Chertykov <denisc@overta.ru>
6261
6262 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
6263 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
6264
6265 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
07488f32 6266 attributes.
6028880a
DC
6267 (TARGET_ATTRIBUTE_TABLE): New macro.
6268 (valid_machine_type_attribute): Remove.
6269 (valid_machine_decl_attribute): Remove.
6270 (ip2k_handle_progmem_attribute): New function.
6271 (ip2k_handle_fndecl_attribute): New function.
6272
4a2953e4 62732003-01-10 Andrew Haley <aph@redhat.com>
a686ea5b
AH
6274
6275 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
6276 registers to be in correct order. Add rip.
6277
4d77fda2
KH
62782003-01-14 Kazu Hirata <kazu@cs.umass.edu>
6279
6280 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
6281 (*iorsi3_and_lshiftrt_9_sb): Likewise.
6282
77f9af81
JH
6283Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
6284
6285 * convert.c (strip_float_extensions): Look for narrowest type handling
6286 FP constants.
6287
6288 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
6289 float1 CMP float2.
6290 * convert.c (strip_float_extensions): Make global.
6291 * tree.h (strip_float_extensions): Declare.
6292
fd371a93
GDR
62932003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
6294
6295 * timevar.def: define TV_NAME_LOOKUP.
6296 * timevar.c (timevar_pop): Be verbose when aborting.
6297
dcd1c2b8
AS
62982003-01-13 Andreas Schwab <schwab@suse.de>
6299
6300 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
6301 $(parsedir), just move the temporary file at the end.
6302 ($(parsedir)/gengtype-yacc.c): Likewise.
6303
eb4b5f93
AO
63042003-01-13 Alexandre Oliva <aoliva@redhat.com>
6305
6306 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
6307 ${ac_tool_prefix} to ADAC or CC. Protect them from word
6308 splitting.
6309 * configure: Rebuilt.
6310
f7835768
KG
63112003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6312
6313 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
6314 internal_mcount): Don't use PARAMS.
6315 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
6316 ISO C style.
6317 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
6318
38a3dbbb
AS
63192003-01-13 Andreas Schwab <schwab@suse.de>
6320
6321 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
6322 directive.
6323
98dc53e3
KH
63242003-01-13 Kazu Hirata <kazu@cs.umass.edu>
6325
6326 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
6327 (*iorsi3_and_lshiftrt_n_sb): Likewise.
6328
e8f2b18d
MM
63292003-01-12 Mark Mitchell <mark@codesourcery.com>
6330
6331 PR c++/9264
6332 * c-lex.c (c_lex): Set the token value to error_mark_node for
6333 invalid numeric constants.
6334
70f8b89f
KG
63352003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6336
6337 * c-pch.c (asm_file_startpos): Change to `long'.
6338 (pch_init): Use ftell, not ftello.
6339 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
6340 Use `long' instead of `off_t'.
6341 (c_common_read_pch): Likewise.
6342 * ggc-common.c (gt_pch_save): Use long/ftell instead of
6343 off_t/ftello.
6344
8e37cba8
AM
63452003-01-12 Alan Modra <amodra@bigpond.net.au>
6346
6347 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
6348
04f08c8e
RE
63492003-01-11 Richard Earnshaw (rearnsha@arm.com)
6350
6351 * arm-protos.h (struct cpp_reader): Add declaration.
6352
a5cf80f0
JH
6353Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
6354
6355 PR target/9068
6356 * i386.c (output_fp_compare): Fix typo.
6357
bbfb86aa
DE
63582003-01-10 David Edelsohn <edelsohn@gnu.org>
6359
6360 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
6361
223b87b6
GK
63622003-01-10 Geoffrey Keating <geoffk@apple.com>
6363
3859c32a
GK
6364 * Makefile.in (parsedir): New variable.
6365 (docobjdir): New variable.
07488f32 6366 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
3859c32a
GK
6367 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
6368 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
6369 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
07488f32 6370 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
3859c32a
GK
6371 Use docobjdir.
6372 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
6373 objc.maintainer-clean): Use parsedir.
6374
63af3bd1
GK
6375 * varasm.c (struct constant_descriptor_rtx): Remove unused
6376 `label' field.
6377
223b87b6
GK
6378 * toplev.c (documented_lang_options): Document -Winvalid-pch.
6379
fbadafbc
RH
63802003-01-10 Richard Henderson <rth@redhat.com>
6381
6382 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
6383 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
6384
ab5ecb01
RH
63852003-01-10 Richard Henderson <rth@redhat.com>
6386
6387 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
6388 not INTEGRAL_MODE_P when widening extensions.
6389
7f24e7c5
RH
63902003-01-10 Richard Henderson <rth@redhat.com>
6391
6392 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
6393
6dd05d08
GK
63942003-01-10 Geoffrey Keating <geoffk@apple.com>
6395
19cc0dd4
GK
6396 * ggc-page.c (ggc_collect): Avoid overflow computing
6397 min_expand.
6398
6dd05d08
GK
6399 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
6400 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
6401 Remove calls.
6402 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
6403
5f1355ef
JH
6404Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
6405
6406 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
6407 with weird operands.
6408
0cdca92b 64092003-01-10 Dale Johannesen <dalej@apple.com>
6dd05d08
GK
6410
6411 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
6412 parameters. Call check_sibcall_argument_overlap if indicated.
6413 (check_sibcall_argument_overlap): Add mark_stored_args_map
6414 parameter. Don't mark parameter area as clobbered if not set.
6415 (expand_call): Adjust calls to above.
6416
64172003-01-10 Kelley Cook <kelleycook@comcast.net>
6cd656d0
KC
6418
6419 * configure.in (linker read-only and read-write section mixing):
6420 Squelch some assembler warnings.
6421 * configure: Likewise.
6422
be2c2a4b
HP
64232003-01-10 Hartmut Penner <hpenner@de.ibm.com>
6424
21ff35fb 6425 * doc/invoke.texi: Document -mtune, delete -mcpu
be2c2a4b
HP
6426 option for S/390 and zSeries.
6427 * config/s390/s390.c (s390_tune_string) New variable.
6428 (s390_cpu_string) Delete variable.
6429 (override_options): Use s390_tune_string instead of
6430 s390_cpu_string.
6431 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
6432
1f450138
KH
64332003-01-10 Kazu Hirata <kazu@cs.umass.edu>
6434
6435 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
6436
d330ce15
JZ
64372003-01-10 Josef Zlomek <zlomekj@suse.cz>
6438
6439 * jump.c (next_nonnote_insn_in_loop): New function.
6440 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
6441 next_nonnote_insn.
6442 (duplicate_loop_exit_test). Likewise.
6443
17211ab5
GK
64442003-01-09 Geoffrey Keating <geoffk@apple.com>
6445
6446 Merge from pch-branch:
6447
6448 2003-01-06 Geoffrey Keating <geoffk@apple.com>
6449
6450 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
6451 load.
6452
6453 2002-12-24 Geoffrey Keating <geoffk@apple.com>
6454
6455 * cpplib.c (count_registered_pragmas): New function.
6456 (save_registered_pragmas): New function.
6457 (_cpp_save_pragma_names): New function.
6458 (restore_registered_pragmas): New function.
6459 (_cpp_restore_pragma_names): New function.
6460 * cpphash.h (_cpp_save_pragma_names): Prototype.
6461 (_cpp_restore_pragma_names): Likewise.
6462 * cpppch.c (struct save_macro_item): Split from save_macro_data.
6463 (struct save_macro_data): New field 'saved_pragmas'.
6464 (save_macros): Update for changes to struct save_macro_data.
6465 (cpp_prepare_state): Call _cpp_save_pragma_names, update
6466 for changes to struct save_macro_data.
6467 (cpp_read_state): Call _cpp_restore_pragma_names, update
6468 for changes to struct save_macro_data.
6469
6470 * cpppch.c (cpp_read_state): Restore the hashtable references
6471 in the cpp_reader.
07488f32 6472
17211ab5
GK
6473 * tree.h (built_in_decls): Mark for PCH.
6474
6475 * dbxout.c (lastfile): Don't mark for PCH.
6476
6477 * ggc.h: Document PCH calls into memory managers.
6478
6479 2002-12-18 Geoffrey Keating <geoffk@apple.com>
6480
6481 * doc/invoke.texi (Precompiled Headers): Document the
6482 directory form of PCH.
6483 * cppfiles.c (validate_pch): New function.
6484 (open_file_pch): Search suitably-named directories for PCH files.
6485
6486 2002-12-14 Geoffrey Keating <geoffk@apple.com>
6487
6488 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
6489 reorder options.
6490 (Type Information): Mention that the information is also
6491 used to implement PCH.
6492 * doc/passes.texi (Passes): Improve documentation of
6493 language-specific files.
6494
6495 2002-12-11 Geoffrey Keating <geoffk@apple.com>
6496
6497 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
6498 (struct walk_type_data): Add reorder_fn field.
6499 (walk_type): Process 'reorder' option.
6500 (write_types_process_field): Reorder parameters to gt_pch_note_object,
6501 call reorder_note_routine.
6502 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
6503 (ggc_wtd): Update for change to struct write_types_data.
6504 (pch_wtd): Likewise.
6505 * ggc.h (gt_pch_note_object): Reorder parameters.
6506 (gt_handle_reorder): New definition.
6507 (gt_pch_note_reorder): New prototype.
6508 * ggc-common.c (struct ptr_data): Add reorder_fn.
6509 (gt_pch_note_object): Reorder parameters.
6510 (gt_pch_note_reorder): New.
6511 (gt_pch_save): Call reorder_fn.
6512 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
6513
6514 * dbxout.c (cwd): Don't mark for PCH.
6515
6516 2002-12-09 Geoffrey Keating <geoffk@apple.com>
6517
6518 * gengtype.c (finish_root_table): Fix some warnings.
6519 (write_root): Handle TYPE_STRING.
6520 * ggc.h (gt_ggc_m_S): Add prototype.
6521 * stringpool.c (gt_ggc_m_S): New function.
6522
6523 2002-11-30 Geoffrey Keating <geoffk@apple.com>
6524
6525 * dwarf2out.c (dw2_string_counter): New.
6526 (AT_string_form): Use it.
6527 (same_dw_val_p): Update for removal of hashtable.h hash tables.
6528
6529 2002-11-22 Geoffrey Keating <geoffk@apple.com>
6530
6531 * dbxout.c: Include gt-dbxout.h.
6532 (lastfile): Mark for PCH/GGC.
6533 (cwd): Likewise.
6534 (struct typeinfo): Likewise.
6535 (typevec): Likewise.
6536 (typevec_len): Likewise.
6537 (next_type_number): Likewise.
6538 (struct dbx_file): Likewise.
6539 (current_file): Likewise.
6540 (next_file_number): Likewise.
6541 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
6542 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
6543 (dbxout_end_source_file): Don't free struct dbx_file.
6544 (dbxout_type): Use GGC to allocate typevec.
6545 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
6546 (GTFILES): Add dbxout.c.
6547 (gt-dbxout.h): New rule.
07488f32 6548
17211ab5
GK
6549 * Makefile.in (c-pch.o): Add debug.h as dependency.
6550 * c-pch.c: Include debug.h.
6551 (pch_init): Call start_source_file to keep nesting right.
6552 (c_common_read_pch): Add orig_name parameter. Call
6553 start_source_file debug hook. Call end_source_file debug hook.
6554 * c-common.h (c_common_read_pch): Update prototype.
6555 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
6556 callback.
6557 * cppfiles.c (struct include_file): Add new field `header_name'.
6558 (find_or_create_entry): Default it to `name'.
6559 (open_file_pch): Set it to the original header file searched for.
6560 (stack_include_file): Don't stack an empty buffer, just handle
6561 PCH files immediately. Pass header_name field to read_pch callback.
6562
6563 2002-11-19 Geoffrey Keating <geoffk@apple.com>
6564
6565 * function.c (funcdef_no): Mark to be saved in a PCH.
6566
6567 2002-11-15 Geoffrey Keating <geoffk@apple.com>
6568
6569 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
6570
6571 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
6572
6573 2002-11-14 Geoffrey Keating <geoffk@apple.com>
6574
6575 * optabs.h (code_to_optab): Add GTY marker.
6576
6577 2002-11-13 Geoffrey Keating <geoffk@apple.com>
6578
6579 * Makefile.in (GTFILES): Add cpplib.h.
6580 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
6581 * c-decl.c (build_compound_literal): Don't use var_labelno.
6582 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
6583 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
6584 * varasm.c (const_labelno): Use gengtype to mark.
6585 (var_labelno): Likewise.
6586 (in_section): Likewise.
6587 (in_named_name): Likewise.
6588 (struct in_named_entry): Likewise.
6589 (in_named_htab): Likewise.
6590 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
6591 (init_varasm_once): Use GGC to allocate in_named_htab.
6592 * config/darwin.c (current_pic_label_num): Mark for PCH.
6593
6594 2002-11-11 Geoffrey Keating <geoffk@apple.com>
6595
6596 * ggc-simple.c (init_ggc_pch): New stub procedure.
6597 (ggc_pch_count_object): Likewise.
6598 (ggc_pch_total_size): Likewise.
6599 (ggc_pch_this_base): Likewise.
6600 (ggc_pch_alloc_object): Likewise.
6601 (ggc_pch_prepare_write): Likewise.
6602 (ggc_pch_write_object): Likewise
6603 (ggc_pch_finish): Likewise.
6604 (ggc_pch_read): Likewise.
6605
6606 2002-11-08 Geoffrey Keating <geoffk@apple.com>
6607
6608 * c-pch.c (c_common_write_pch): Write the macro definitions after
6609 the GCed data.
6610 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
6611 definitions after the GCed data.
6612 * cpplib.c (save_macros): New.
6613 (reset_ht): New.
6614 (cpp_write_pch_deps): Split out of cpp_write_pch.
6615 (cpp_write_pch_state): Split out of cpp_write_pch.
6616 (cpp_write_pch): Delete.
6617 (struct save_macro_data): Delete.
6618 (cpp_prepare_state): New.
6619 (cpp_read_state): Erase and restore initial macro definitions.
6620 * cpplib.h (struct save_macro_data): Forward-declare.
6621 (cpp_write_pch_deps): Prototype.
6622 (cpp_write_pch_state): Prototype.
6623 (cpp_write_pch): Delete prototype.
6624 (cpp_prepare_state): Prototype.
6625 (cpp_read_state): Add fourth argument.
6626
6627 2002-11-04 Geoffrey Keating <geoffk@apple.com>
6628
6629 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
6630 (write_array): Remove warning.
6631
6632 * gengtype.c (contains_scalar_p): New.
6633 (finish_root_table): Add the table to all languages, even if it's
6634 empty.
6635 (write_roots): Output gt_pch_scalar_rtab.
6636 * ggc-common.c (gt_pch_save): Write out scalars.
6637 (gt_pch_restore): Read scalars back.
6638
6639 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
6640 (struct page_entry): Delete pch_page field.
6641 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
6642 (clear_marks): Likewise.
6643 (sweep_pages): Likewise.
6644 (poison_pages): Likewise.
6645 (ggc_print_statistics): Likewise.
6646 (ggc_pch_read): Don't free objects read from a PCH.
6647 Properly set up in_use_p and page_tails.
6648
6649 2002-10-25 Geoffrey Keating <geoffk@apple.com>
6650
6651 * gengtype.c (struct write_types_data): New.
6652 (struct walk_type_data): Make `cookie' const; add extra
6653 prev_val item; add `orig_s' field.
6654 (walk_type): Update prev_val[3].
6655 (write_types_process_field): New.
6656 (write_func_for_structure): Take write_types_data structure.
6657 (write_types): New.
6658 (ggc_wtd): New.
6659 (pch_wtd): New.
6660 (write_types_local_process_field): New.
6661 (gc_mark_process_field): Delete.
6662 (write_local_func_for_structure): New.
6663 (gc_mark_func_name): Delete.
6664 (write_gc_types): Delete.
6665 (write_local): New.
6666 (finish_root_table): Don't include 'ggc_' in PFX.
6667 (write_root): Rename from write_root. Fill pchw field of structures.
6668 (write_array): New.
6669 (write_roots): Rename from write_gc_roots. Split out to write_array.
6670 Update to changes to other routines. Write gt_pch_cache_rtab table.
6671 (main): Write PCH walking routines.
6672 * ggc-common.c: Include toplev.h, sys/mman.h.
6673 (ggc_mark_roots): For cache hashtables, also mark the hash table
6674 and the array of entries.
6675 (saving_htab): New.
6676 (struct ptr_data): New.
6677 (POINTER_HASH): New.
6678 (gt_pch_note_object): New.
6679 (saving_htab_hash): New.
6680 (saving_htab_eq): New.
6681 (struct traversal_state): New.
6682 (call_count): New.
6683 (call_alloc): New.
6684 (compare_ptr_data): New.
6685 (relocate_ptrs): New.
6686 (write_pch_globals): New.
6687 (struct mmap_info): New.
6688 (gt_pch_save): New.
6689 (gt_pch_restore): New.
6690 * ggc-page.c (ROUND_UP_VALUE): New.
6691 (ROUND_UP): New.
6692 (struct page_entry): Add field `pch_page'.
6693 (init_ggc): Use ROUND_UP.
6694 (struct ggc_pch_data): Declare.
6695 (init_ggc_pch): New.
6696 (ggc_pch_count_object): New.
6697 (ggc_pch_total_size): New.
6698 (ggc_pch_this_base): New.
6699 (ggc_pch_alloc_object): New.
6700 (ggc_pch_prepare_write): New.
6701 (ggc_pch_write_object): New.
6702 (ggc_pch_finish): New.
6703 (ggc_pch_read): New.
6704 * ggc.h (gt_pointer_operator): New.
6705 (gt_note_pointers): New.
6706 (gt_pch_note_object): New prototype.
6707 (gt_pointer_walker): New.
6708 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
6709 (LAST_GGC_ROOT_TAB): Update.
6710 (gt_pch_cache_rtab): Declare.
6711 (gt_pch_scalar_rtab): Declare.
6712 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
6713 (LAST_GGC_CACHE_TAB): Update.
6714 (gt_pch_save_stringpool): Declare.
6715 (gt_pch_restore_stringpool): Declare.
6716 (gt_pch_p_S): Declare.
6717 (gt_pch_n_S): Declare.
6718 (struct ggc_pch_data): Forward-declare.
6719 (init_ggc_pch): Declare.
6720 (ggc_pch_count_object): Declare.
6721 (ggc_pch_total_size): Declare.
6722 (ggc_pch_this_base): Declare.
6723 (ggc_pch_alloc_object): Declare.
6724 (ggc_pch_prepare_write): Declare.
6725 (ggc_pch_write_object): Declare.
6726 (ggc_pch_finish): Declare.
6727 (ggc_pch_read): Declare.
6728 (gt_pch_save): Declare.
6729 (gt_pch_restore): Declare.
6730 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
6731 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
6732 const_double_htab, mem_attrs_htab using GGC.
6733 * c-pch.c: Include ggc.h.
6734 (pch_init): Allow reading PCH file back.
6735 (c_common_write_pch): Call gt_pch_save.
6736 (c_common_read_pch): Call gt_pch_restore.
6737 * c-parse.in (init_reswords): Delete now-untrue comment.
6738 Allocate ridpointers using GGC.
6739 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
6740 calling expand_deferred_fns.
6741 * c-common.h (ridpointers): Mark for GTY machinery.
6742 * Makefile.in (stringpool.o): Update dependencies.
6743 (c-pch.o): Update dependencies.
6744 (ggc-common.o): Update dependencies.
6745 * stringpool.c: Include gt-stringpool.h.
6746 (gt_pch_p_S): New.
6747 (gt_pch_n_S): New.
6748 (struct string_pool_data): New.
6749 (spd): New.
6750 (gt_pch_save_stringpool): New.
6751 (gt_pch_restore_stringpool): New.
6752 * tree.c (init_ttree): Make type_hash_table allocated using GC.
07488f32 6753
17211ab5
GK
6754 2002-10-04 Geoffrey Keating <geoffk@apple.com>
6755
6756 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
6757 (output_mangled_typename): Don't pass size_t to printf.
6758
6759 * tree.h (union tree_type_symtab): Add tag to `address' field.
6760 (union tree_decl_u2): Add tag to 'i' field.
6761 * varasm.c (union rtx_const_un): Add tags to all fields.
6762 * gengtype.c (struct walk_type_data): New.
6763 (output_escaped_param): Take struct walk_type_data parameter.
6764 (write_gc_structure_fields): Delete.
6765 (walk_type): New.
6766 (write_gc_marker_routine_for_structure): Delete.
6767 (write_func_for_structure): New.
6768 (gc_mark_process_field): New.
6769 (gc_mark_func_name): New.
6770 (gc_counter): Delete.
6771 (write_gc_types): Use write_func_for_structure.
6772 (write_gc_roots): Use walk_type.
6773
6774 2002-10-02 Geoffrey Keating <geoffk@apple.com>
6775
6776 * ggc-common.c (ggc_mark_roots): Delete 'x'.
6777 (ggc_splay_dont_free): Fix warning about unused 'x'.
6778 (ggc_print_common_statistics): Remove warnings.
6779
6780 2002-10-01 Mike Stump <mrs@apple.com>
6781
07488f32
ZW
6782 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
6783 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17211ab5
GK
6784
6785 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
6786 Catherine Moore <clm@redhat.com>
6787
6788 * Makefile (c-pch.o): Update dependencies.
6789 (LIBCPP_OBJS): Add cpppch.o.
6790 (cpppch.o): New.
6791 * c-common.c (c_common_init): Don't call pch_init here.
6792 * c-common.h (c_common_read_pch): Update prototype.
6793 * c-lex.c (c_common_parse_file): Call pch_init here.
6794 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
6795 (c_common_decode_option): Handle them.
6796 * c-pch.c: Include c-pragma.h.
6797 (save_asm_offset): Delete.
6798 (pch_init): Move contents of save_asm_offset into here, call
6799 cpp_save_state.
6800 (c_common_write_pch): Call cpp_write_pch.
6801 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
6802 cpp_valid_state.
6803 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
07488f32 6804 * cppfiles.c (stack_include_file): Update for change to
17211ab5
GK
6805 parameters of cb.read_pch.
6806 * cpphash.h (struct cpp_reader): Add `savedstate' field.
6807 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
6808 `restore_pch_deps' fields.
6809 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
6810 (cpp_save_state): Prototype.
6811 (cpp_write_pch): Prototype.
6812 (cpp_valid_state): Prototype.
6813 (cpp_read_state): Prototype.
6814 * cpppch.c: New file.
6815 * flags.h (version_flag): Remove prototype.
6816 * mkdeps.c (deps_save): New.
6817 (deps_restore): New.
6818 * mkdeps.h (deps_save): Prototype.
6819 (deps_restore): Prototype.
6820 * toplev.c (late_init_hook): Delete.
6821 (version_flag): Make static again.
6822 (compile_file): Don't call late_init_hook.
6823 * toplev.h (late_init_hook): Delete.
6824 * doc/cppopts.texi: Document -fpch-deps.
6825 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
6826
6827 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
6828
6829 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
6830 callers.
6831 (c_common_valid_pch): Rename from c_valid_pch, change callers.
6832 (c_common_read_pch): Rename from c_read_pch, change callers.
6833
6834 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
6835 a space between it and its argument.
6836
6837 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
6838
6839 * c-pch.c: New file.
6840 * toplev.h (late_init_hook): Declare.
6841 * toplev.c (late_init_hook): Define.
6842 (version_flag): Make globally visible.
6843 (compile_file): Call late_init_hook.
6844 (init_asm_output): Make output file seekable.
6845 * gcc.c (default_compilers): Update c-header rule.
6846 * flags.h (version_flag): Declare.
6847 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
6848 fields.
6849 * cppfiles.c (struct include_file): Add 'pch' field.
6850 (INCLUDE_PCH_P): New.
6851 (open_file_pch): New.
6852 (stack_include_file): Handle PCH files specially.
6853 (find_include_file): Call open_file_pch instead of open_file.
6854 (_cpp_read_file): Explain why open_file is used instead of
6855 open_file_pch.
6856 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
6857 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
6858 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
6859 in cpplib callbacks.
6860 * c-common.c (pch_file): Correct comment.
6861 (allow_pch): Define.
6862 (c_common_init): Call pch_init.
6863 * c-common.h (allow_pch): Declare.
6864 (pch_init): Declare.
6865 (c_valid_pch): Declare.
6866 (c_read_pch): Declare.
6867 (c_write_pch): Declare.
6868 * Makefile.in (c-pch.o): New.
6869 (C_AND_OBJC_OBJS): Add c-pch.o.
6870 * doc/invoke.texi (Precompiled Headers): Add index entries,
6871 complete truncated paragraph.
6872
6873 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
6874
6875 * c-common.c: (pch_file): Define.
6876 * c-common.h (pch_file): Declare.
6877 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
6878 (missing_arg): Require --output-pch= to have an argument.
6879 (c_common_decode_option): Handle --output-pch=.
6880 * gcc.c: Document new %V.
6881 (default_compilers): Handle compiling C header files.
6882 (do_spec_1): Implement %V.
6883 (main): Handle "gcc foo.h" without trying to run linker.
6884 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
6885 (Overall Options): Document what the driver does with header files,
6886 document new -x option possibilities.
6887 (Invoking G++): More documentation for PCH.
6888 (Precompiled Headers): New.
6889
6890 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
6891
6892 * ggc.h: Don't include varray.h. Rearrange functions to be more
6893 organized.
6894 (ggc_add_root): Delete.
6895 (ggc_mark_rtx): Delete.
6896 (ggc_mark_tree): Delete.
6897 (struct ggc_statistics): Remove contents.
6898 * ggc-common.c: Remove unneeded includes.
6899 (struct ggc_root): Delete.
6900 (roots): Delete.
6901 (ggc_add_root): Delete.
6902 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
6903 (ggc_print_common_statistics): Remove most of the contents.
6904 * Makefile.in (GGC_H): No longer uses varray.h.
6905 (ggc-common.o): Update dependencies.
6906 (c-parse.o): Add varray.h to dependencies.
6907 (c-common.o): Add varray.h.
6908 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
6909 (mark_ident_hash): Rename to ggc_mark_stringpool.
6910 (init_stringpool): Don't use ggc_add_root.
6911 * c-parse.in: Include varray.h.
6912 * c-common.c: Include varray.h.
6913 * objc/Make-lang.in (objc-act.o): Add varray.h.
6914 * objc/objc-act.c: Include varray.h.
6915
6916 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
6917
6918 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
6919 (dw_cfi_oprnd1_desc): Likewise.
6920
6921 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
6922
6923 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
6924 move out of ifdef.
6925 (alpha_links): Use gengtype to mark; move out of ifdef.
6926 (mark_alpha_links_node): Delete.
6927 (mark_alpha_links): Delete.
6928 (alpha_need_linkage): Use GGC to allocate splay tree, struct
6929 alpha_links, strings. Don't use ggc_add_root.
6930 * ggc-common.c (ggc_splay_alloc): New.
6931 (ggc_splay_dont_free): New.
6932 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
6933 (ggc_mark_tree): Likewise.
6934 (splay_tree_new_ggc): New.
6935 (ggc_splay_alloc): Declare.
6936 (ggc_splay_dont_free): Declare.
6937 * dwarf2asm.c: Include gt-dwarf2asm.h.
6938 (mark_indirect_pool_entry): Delete.
6939 (mark_indirect_pool): Delete.
6940 (indirect_pool): Use gengtype to mark.
6941 (dw2_force_const_mem): Don't use ggc_add_root.
6942 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
6943 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
6944 (gt-dwarf2asm.h): Depend on s-gtype.
6945
6946 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
6947
6948 * tree.h (union tree_type_symtab): Mark `die' field.
6949 * Makefile.in (dwarf2out.o): Update dependencies.
6950 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
6951 hash tables.
6952 (dw_cfi_oprnd1_desc): New function.
6953 (dw_cfi_oprnd2_desc): New function.
6954 (indirect_string_alloc): Delete.
6955 (debug_str_do_hash): New function.
6956 (debug_str_eq): New function.
6957 (mark_limbo_die_list): Delete.
6958 (dwarf2out_init): Don't call ggc_add_root.
6959
30028c85
VM
69602003-01-09 Vladimir Makarov <vmakarov@redhat.com>
6961
6962 The following changes are merged from itanium-sched-branch:
6963
6964 2003-01-08 David Edelsohn <edelsohn@gnu.org>
6965
6966 * doc/md.texi: Clarify assignment of units to automata description.
6967
6968 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
6969
6970 * genautomata.c (unit_decl): Remove members
6971 `the_same_automaton_unit' and
6972 `the_same_automaton_message_reported_p'.
6973 (process_unit_to_form_the_same_automaton_unit_lists,
6974 form_the_same_automaton_unit_lists_from_regexp,
6975 form_the_same_automaton_unit_lists, the_same_automaton_lists):
6976 Remove them.
6977 (annotation_message_reported_p): New global variable.
6978 (check_unit_distribution_in_reserv,
6979 check_regexp_units_distribution): New functions.
6980 (check_unit_distributions_to_automata): Rewrite it.
6981
6982 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
6983
6984 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6985 Use continue instead of break if cycle is too big.
6986
6987 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
6988
6989 * genautomata.c (check_unit_distributions_to_automata): Output at
6990 most one message for a unit.
6991 (process_unit_to_form_the_same_automaton_unit_lists): Check
6992 automaton of units instead of units themself.
6993
6994 * doc/md.texi: Describe the constraint about assigning unit to
6995 automata.
6996
6997 2002-12-20 Jan Hubicka <jH@suse.cz>
6998 Vladimir Makarov <vmakarov@redhat.com>
6999
7000 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
7001 and `in_set_p'.
7002 (gen_cpu_unit): Initialize the new members.
7003 (process_regexp_cycles): Calculate minimal finish cycle too. Set
7004 up `min_occ_cycle_num'.
7005 (evaluate_max_reserv_cycles): Change the function call.
7006 (CLEAR_BIT): New macro.
7007 (states_union, state_shift): Use the mask.
7008 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
7009 (form_reservs_matter): New function.
7010 (make_automaton): Call the function and use the mask.
7011 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
7012 account.
07488f32 7013
30028c85
VM
7014 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
7015
7016 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
7017
7018 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
7019
7020 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
7021 for Itanium.
7022
7023 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
7024
7025 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
7026 default cpu.
7027
7028 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
7029 2002-10-31 Dale Johannesen <dalej@apple.com>
7030
7031 * haifa-sched.c (find_set_reg_weight): New function.
7032 (find_insn_reg_weight): Use the new function.
7033 (schedule_block): Do sorting ready queue always
7034 after insn issue.
7035
7036 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
7037
7038 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
7039
7040 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
7041
7042 * haifa-sched.c (choice_entry): New structure.
7043 (choice_stack, cycle_issued_insns): New variables.
7044 (max_issue): Rewrite it.
7045 (choose_ready): Set up ready_try for unknown insns too.
7046 (schedule_block): Allocate and free choice_stack. Set up
7047 and modify cycle_issued_insns.
7048
7049 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
7050 with and without filling the bundle.
7051 (bundling): Combine calls of issue_nops_and_insn.
07488f32 7052
30028c85
VM
7053 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
7054
7055 * config/ia64/itanium1.md: New file.
7056
7057 * config/ia64/itanium2.md: New file.
7058
7059 * config/ia64/ia64.md: Move DFA descriptions into the new files.
7060 Remove the old pipeline description.
07488f32 7061
30028c85
VM
7062 * config/ia64/ia64.c (ia64_override_options): Add aliases of
7063 itanium processor names.
07488f32 7064
30028c85
VM
7065 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
7066
7067 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
7068 (ia64_reorg): Set up queried unit codes for Itanium2 too.
7069
7070 * config/ia64/ia64.md: Add descriptions for Itanium2.
7071
7072 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
7073
7074 * config/ia64/ia64.h (processor_type): New enumeration.
7075 (ia64_tune, ia64_tune_string): New external declarations.
7076 (TARGET_OPTIONS): Add option `tune='.
7077
7078 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
7079 variables.
7080 (ia64_override_options): Set up `ia64_tune'.
7081 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
7082 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
7083 (bundling): Add nops for MM-insns only for Itanium.
7084 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
7085 Itanium.
7086
7087 * config/ia64/ia64.md (cpu): New attribute.
7088 (DFA description): Enable it only for Itanium.
07488f32 7089
30028c85
VM
7090 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
7091 Richard Henderson <rth@redhat.com>
7092
7093 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
7094 MASK_EARLY_STOP_BITS.
7095 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
7096 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
7097 `early-stop-bits'.
07488f32 7098
30028c85
VM
7099 * config/ia64/ia64.c (ia64_dfa_new_cycle,
7100 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
7101 instead of TARGET_TUNE_STOP_BITS.
07488f32 7102
30028c85
VM
7103 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
7104 `-mearly-stop-bits'.
7105
7106 * config/ia64/ia64.c (automata_option "v"): Comment it.
07488f32 7107
30028c85
VM
7108 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
7109
07488f32 7110 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
30028c85
VM
7111 New macros.
7112 (TARGET_SWITCHES): Add entries for the new option.
07488f32 7113
30028c85
VM
7114 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
7115 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
7116 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
7117 global variables.
7118 (ia64_sched_reorder2): Set up `clocks'.
7119 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
7120 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
7121 queue when TARGET_TUNE_STOP_BITS.
7122 (bundling): Insert additional nops for MM-insns.
7123 (final_emit_insn_group_barriers): Add insertion of stop bits
7124 according `stops_p'.
7125 (ia64_reorg): Initiate the new varibales.
7126
7127 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
07488f32 7128
30028c85
VM
7129 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
7130
7131 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
7132 insns at the end of block insn scheduling.
7133
7134 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
7135
7136 * sched-deps.c (remove_dependence, group_leader): Remove it.
7137 (add_dependence): Add dependence to group leader to.
7138 (set_sched_group_p): Add dependence to the first insn of the
7139 schedule group too.
7140 (sched_analyze_insn): Make dependence to jump as anti-dependence.
7141 Change true dependence by anti-dependence when
7142 `reg_pending_barrier'.
7143
7144 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
7145 add_branch_dependences): Ignore schedule groups.
7146
7147 * sched-ebb.c (init_ready_list): Ditto.
7148
7149 * (move_insn, set_priorities): Ditto.
7150
7151 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
7152 flag is clear after reload.
7153 (adjust_cost): Change cost only for output dependencies.
07488f32 7154
30028c85 7155 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
07488f32 7156
30028c85
VM
7157 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
7158
7159 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
7160
7161 * target.h (gcc_target): Add member
7162 `dependencies_evaluation_hook'.
7163
7164 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
7165 macro.
7166 (TARGET_SCHED): Add initiatialization of the new member.
7167
7168 * sched-ebb.c: Include `target.h'.
7169 (schedule_ebb): Call `dependencies_evaluation_hook'.
7170
7171 * sched-rgn.c (schedule_region): Call
7172 `dependencies_evaluation_hook'.
7173
7174 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7175 New macro.
7176 (ia64_dependencies_evaluation_hook): New function.
7177
7178 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7179 Describe the new hook.
07488f32 7180
30028c85
VM
7181 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
7182
7183 * target.h (gcc_target): Add members
7184 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
7185
7186 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
7187 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
7188 macros.
7189 (TARGET_SCHED): Add initiatialization of the new members.
7190
7191 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
7192 insn scheduling too.
7193 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
7194 initialize `ready_try'.
7195 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
7196 `dfa_new_cycle' says not to do it.
07488f32 7197
30028c85
VM
7198 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
7199 bundling.
7200
7201 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
7202
7203 * config/ia64/ia64.c: Include `hashtab.h'.
7204 (ia64_first_cycle_multipass_dfa_lookahead_guard,
7205 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
7206 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
7207 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
7208 bundle_state_eq_p, insert_bundle_state,
7209 initiate_bundle_state_table, finish_bundle_state_table,
7210 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
7211 get_template, get_next_important_insn, bundling): New functions.
7212 (ia64_internal_sched_reorder): Remove it.
7213 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7214 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
7215 (ia64_safe_itanium_requires_unit0): Remove it.
7216 (group_barrier_needed_p): Place group barrier right before a real
7217 insn.
7218 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
7219 Remove them.
7220 (bundle_name): New variable.
7221 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
7222 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
7223 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
7224 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
7225 temp_dfa_state, prev_cycle_state): New global variables.
7226 (insn_matches_slot, maybe_rotate, finish_last_head,
7227 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
7228 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
7229 find_best_packet, itanium_reorder, dump_current_packet,
7230 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
7231 (sched_data, sched_ready, sched_types): Remove them.
7232 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
7233 `init_insn_group_barriers'.
7234 (ia64_sched_reorder, ia64_sched_reorder2): Call
7235 ia64_dfa_sched_reorder.
7236 (ia64_variable_issue): Rewrite it.
7237 (bundle_state): New structure.
7238 (index_to_bundle_states, bundle_states_num,
7239 allocated_bundle_states_chain, free_bundle_state_chain): New
7240 global variables.
7241 (ia64_sched_finish): Add stop bits and call `bundling' after the
7242 2nd insn scheduling.
7243 (ia64_use_dfa_pipeline_interface): Return zero always.
7244 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
7245 insn scheduling.
7246 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
7247 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
7248 (ia64_reorg): Add bundling insns.
7249
7250 * doc/tm.texi
7251 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7252 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
07488f32 7253
30028c85
VM
7254 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
7255
7256 * config/ia64/ia64.md: Add Itanium1 DFA description.
7257 (itanium_class): Add `nop' and `pre_cycle'. Add
7258 define_function_unit for `nop'.
7259 (nop): Change attribute `itanium_class'.
7260 (pre_cycle): New define_insn.
7261
7262 * config/ia64/ia64-protos.h (bundling_p): New external variable.
7263 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
7264 ia64_produce_address_p): New function prototypes.
7265
7266 * config/ia64/ia64.c (bundling_p): New global variable.
7267 (ia64_use_dfa_pipeline_interface,
7268 ia64_first_cycle_multipass_dfa_lookahead,
7269 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
7270 functions.
7271 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7272 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7273 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7274 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
7275 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
7276 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
7277 (dfa_pre_cycle_insn): New variable.
07488f32 7278
30028c85
VM
7279 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7280
7281 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
7282 constructions.
7283
7284 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
7285 New function prototypes.
7286
7287 * genattrtab.c (main): Process the new constructions.
7288
7289 * genautomata.c (gen_presence_absence_set,
7290 process_presence_absence_names, process_presence_absence_patterns,
7291 add_presence_absence, check_absence_pattern_sets): Add parameter
7292 `final_p'.
7293 (unit_decl): Add new members `final_presence_list' and
7294 `final_absence_list'.
7295 (unit_pattern_rel_decl): Add new member `final_p'.
7296 (gen_final_presence_set, gen_final_absence_set): New functions.
7297 (process_decls): Use member `final_p'.
7298 (temp_reserv): New global variable.
7299 (reserv_sets_are_intersected): Add processing `final_presence_set'
7300 and `final_absence_set'.
7301 (initiate_states): Allocate `temp_reserv'.
7302 (unit_final_presence_set_table, unit_final_absence_set_table): New
7303 gloabal variables.
7304 (initiate_presence_absence_pattern_sets): Initiate them.
7305 (NDFA_to_DFA): Fix typo.
7306 (output_description): Output `final_presence_set' and
7307 `final_absence_set'.
7308
7309 * doc/md.texi (final_presence_set, final_absence_set): Describe
7310 them.
07488f32 7311
30028c85
VM
7312 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7313
7314 * genautomata.c (transform_3): Process a missing case (nothing on
7315 unit place).
7316
7317 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7318
7319 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
7320 comments about queried units and the minimization.
07488f32 7321
30028c85 7322 * doc/md.texi: Ditto.
07488f32 7323
30028c85
VM
7324 * genautomata.c (create_composed_state): Return nonzero if the new
7325 state has been created.
7326 (first_cycle_unit_presence): New function.
7327 (state_is_differed): Add new parameter. Use the new function.
7328 Take queried units into account.
7329 (partition_equiv_class): Pass additional parameter to
7330 `state_is_differed'.
7331 (merge_states): Process composed states too.
7332 (build_automaton, create_automata, output_min_issue_delay_table,
7333 output_tables, output_statistics): Output more information.
7334 (output_reserved_units_table): Use function
7335 `first_cycle_unit_presence'.
7336 (output_tables): Output table of queried units even if the
7337 minimization is switched on.
7338 (write_automata): Output code for querying units even if the
7339 minimization is switched on.
07488f32 7340
30028c85
VM
7341 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
7342
7343 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
7344 syntax of the constructions.
07488f32 7345
30028c85
VM
7346 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
7347 extended syntax of the constructions.
07488f32 7348
30028c85
VM
7349 * genautomata.c (unit_rel_decl): Rename it to
7350 `unit_pattern_rel_decl'.
7351 (pattern_set_el, pattern_reserv): New structures.
7352 (pattern_set_el_t, pattern_reserv_t): New types.
7353 (gen_presence_absence_set): New function.
7354 (process_presence_absence): Remove it.
7355 (process_presence_absence_names,
7356 process_presence_absence_patterns): New functions.
7357 (get_presence_absence_set): Remove it.
7358 (initiate_presence_absence_sets): Rename it on
7359 `initiate_presence_absence_pattern_sets'. Use new function
7360 `form_reserv_sets_list'.
7361 (form_reserv_sets_list, check_presence_pattern_sets,
7362 check_absence_pattern_sets, output_pattern_set_el_list): New
7363 functions.
7364 (unit_decl): Change types of members `presence_list' and
7365 `absence_list'.
7366 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
7367 (decl): Change types of members `excl', `presence', and `absence'.
7368 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
7369 at the end of the vector.
7370 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7371 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
7372 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
7373 (gen_presence_set, gen_absence_set): Use new function
7374 `gen_presence_absence_set'.
7375 (add_presence_absence): Process `pattern_list' instead of
7376 `source_list'.
7377 (process_decls): USe new functions
7378 `process_presence_absence_names' and
7379 `process_presence_absence_patterns'.
7380 (reserv_sets_are_intersected): Use new function
7381 `check_presence_pattern_sets'.
7382 (presence_set, absence_set): Remove them.
7383 (unit_presence_set_table, unit_absence_set_table): New global
7384 variables.
7385 (output_description): Use new function
7386 `output_pattern_set_el_list'.
7387 (generate): Use `initiate_presence_absence_pattern_sets'.
07488f32 7388
30028c85
VM
7389 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
7390
7391 * genattr.c (main): Add output of prototype of new interface
7392 function `dfa_clean_insn_cache'.
7393
7394 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
7395 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
7396 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
7397 the generated code.
7398 (write_automata): Call the new function.
07488f32 7399
cb297538
JH
7400Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
7401
17211ab5
GK
7402 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
7403 correctly.
cb297538 7404
3a6e2189
PC
74052003-01-09 Paolo Carlini <pcarlini@unitus.it>
7406
7407 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
7408
97488870
R
7409Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
7410
7411 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
7412 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
7413 (CONSTRAINT_LEN): Provide default definition.
7414 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7415 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
7416 (EXTRA_CONSTRAINT_STR): Likewise.
7417 (REG_CLASS_FROM_CONSTRAINT): Define.
7418 * genoutput.c (check_constraint_len, constraint_len): New functions.
7419 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
7420 constraint / modifier.
7421 (gen_insn): Call check_constraint_len.
7422 * local-alloc.c (block_alloc): Update to use new macros / pass
7423 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
7424 * ra-build.c (handle_asm_insn): Likewise.
7425 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7426 (constrain_operands, peep2_find_free_register): Likewise.
7427 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
7428 * regmove.c (find_matches): Likewise.
7429 * reload.c (push_secondary_reload, find_reloads): Likewise.
7430 (alternative_allows_memconst): Likewise.
7431 * reload1.c (maybe_fix_stack_asms): Likewise.
7432 (reload_cse_simplify_operands): Likewise.
7433 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7434 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
7435 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7436 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
7437 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
7438 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
e2c734c1
R
7439
7440 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
7441
fc182093
KH
74422003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7443
7444 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
7445 length.
7446 (*extzv_1_r_h8300hs): Likewise.
7447 (*extzv_1_r_inv_h8300): Likewise.
7448 (*extzv_1_r_inv_h8300hs): Likewise.
7449
3b1c9927
KH
74502003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7451
7452 * config/h8300/h8300.h (PREDICATE_CODES): New.
7453
867504e6
KH
74542003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7455
7456 * config/h8300/h8300.md (*addsi3_upper): New.
7457 (*iorsi3_shift): Likewise.
7458 (two splitters): Likewise.
7459 (*addsi3_shift): Likewise.
7460 (two splitters): Likewise.
7461
4a69cf79
JZ
74622003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7463
7464 * Makefile.in (optabs.o): Add dependency on basic-block.h.
7465 * basic-block.h (control_flow_insn_p): Fuction was exported.
7466 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
7467 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
7468 notes only when the region is contained in a single basic block.
7469
4c46ea23
EB
74702003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
7471
7472 PR inline-asm/8832
7473 * tree.h (expand_asm): New prototype.
7474 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
7475 to do so.
7476 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
7477 down to expand_asm.
7478 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
7479 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
7480 (volatile_refs_p) [ASM_INPUT]: Likewise.
7481 (side_effects_p) [ASM_INPUT]: Likewise.
7482
f56e86bd
JH
7483Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
7484
7485 * i386.md (*mul*): FIx constraints; remove confused comment; fix
7486 athlon_decode attributes
7487 (imul/k8 optimization peep2s): New.
7488
7489 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
7490 * i386.md (type attribute): Add ssecomi.
7491 (unit, memory, prefix attributes): Handle ssecomi.
7492 (cvt?2? patterns): Fix athlon_decode attribute
7493 (comi patterns): Set attribute to ssecomi.
7494
7495 PR target/8343
7496 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
7497
98c29f71
RS
74982003-01-09 Richard Sandiford <rsandifo@redhat.com>
7499
7500 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
7501 that match register_operands.
7502 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
7503 register_operand the default case.
7504
bbb818c6
EB
75052003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
7506
7507 PR c/8032
7508 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
7509 an empty element, do not advance the pointer to unfilled
7510 fields if there are pending initializers.
7511
90961eff
AJ
75122003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7513
7514 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
7515 (install-gcc-tooldir, install-cpp, installdirs,
7516 install-common, install-driver, install-info, install-man,
7517 install-headers, install-include-dir, install-headers-tar,
7518 install-headers-cpio, install-headers-cp, install-mkheaders,
7519 install-collect2, uninstall): Prepend $(DESTDIR) to
7520 destination paths in all (un)installation commands.
7521 (install-driver): Rewrite $(LN) commands to support DESTDIR
7522 with "ln" as well as with "ln -s".
7523 (installdirs): Simply use mkinstalldirs.
7524 (install-libgcc, install-multilib): Also pass DESTDIR.
7525 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
7526 installation destination variable ldir.
7527 * config/alpha/t-osf4, config/arm/t-netbsd,
7528 config/ia64/t-hpux, config/mips/t-iris5-6,
7529 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
7530 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
7531 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
7532 in the definition of SHLIB_INSTALL.
7533 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
7534 $(libsubdir) in the installation commands.
7535
8b26829f
KK
75362003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
7537
7538 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
7539 non-optimizing compile.
7540 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
7541 compile.
7542
fe77449a
DR
75432003-01-08 Douglas B Rupp <rupp@gnat.com>
7544
7545 * config/i386/i386.c (ix86_attribute_table): Add new attributes
7546 ms_struct and gcc_struct.
7547 (ix86_handle_struct_attribute): New function.
7548 (ix86_ms_bitfield_layout_p): Update to take new attributes
7549 into account.
7550 * doc/extend.texi: Document new attributes.
7551 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
7552
98417968
DS
75532003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
7554
07488f32
ZW
7555 PR optimization/8750
7556 * config/i386/i386.c (ix86_expand_prologue): Don't allow
7557 scheduling pass to move insns across __alloca call.
98417968 7558
e46e3130
DJ
75592003-01-08 Dale Johannesen <dalej@apple.com>
7560
07488f32
ZW
7561 * config/rs6000/rs6000.md: Replace *store_multiple_string
7562 with *stmsi[3-8].
e46e3130 7563
c40e5172
JS
75642003-01-08 Jeff Sturm <jsturm@one-point.com>
7565
7566 PR target/9210
7567 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
7568 Set SYMBOL_REF_FLAG on local data sym_ref.
7569
de62b72c 75702003-01-08 Dale Johannesen <dalej@apple.com>
07488f32
ZW
7571
7572 * function.c (assign_parms): Don't set pretend_args_size if
de62b72c 7573 REG_PARM_STACK_SPACE.
07488f32 7574 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
de62b72c
DJ
7575 pretend_args_size.
7576
25839c41
NN
75772003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
7578
7579 * gcc.hlp: Delete.
7580
4bdc8610
JH
7581Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
7582
7583 * i386.c (ix86_expand_int_addcc): Fix thinko.
7584
5b71a4e7
DE
75852003-01-08 David Edelsohn <edelsohn@gnu.org>
7586
7587 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
7588 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
7589 as hook_bool_tree_hwi_hwi_tree_true.
7590 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
7591 (rs6000_emit_epilogue): Same.
7592 (rs6000_output_mi_thunk): Re-implement as RTL.
7593 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
7594 xcoffout_declare_function if any debugging enabled.
7595
2d2a50c3
CD
75962003-01-08 Chris Demetriou <cgd@broadcom.com>
7597
7598 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
7599 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
7600 * config/mips/mips.h (enum processor_type): Rename
7601 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
7602 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
7603 Add PROCESSOR_M4K.
7604 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
7605 (ISA_MIPS32R2): New define.
7606 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
7607 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
7608 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
7609 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
7610 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
7611 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
7612 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
7613 compiling MIPS16 code.
7614 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
7615 comment.
7616 (ISA_HAS_SEB_SEH): New define.
7617 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
7618 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
7619 processor_type value renaming. Add support for MIPS32R2.
7620 Clean up comments, and move "sb1" entry with other MIPS64 CPU
7621 entries.
7622 (override_options): Reimplement -mipsN option handling so that
7623 it will work correctly for -mips32r2. Avoid branch-likely
7624 instructions on MIPS32R2.
7625 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
7626 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
7627 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
7628 (extendhisi2_hw, extendqisi2_hw): New.
7629 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
7630 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
7631 MIPS32R2, and MIPS64.
7632 (LINK_SPEC): Pass -mips32r2 to linker.
7633 * config/mips/t-isa3264: Built -mips32r2 multilibs.
7634 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
7635 for mips32r2 in the -march description. Alphabetically sort
7636 CPU names in the -march description. Add long-missed -mips32
7637 and -mips64 to MIPS option summary.
7638
7639 * config.gcc: Update copyright years to include 2003.
7640 * config/mips/mips.c: Likewise.
7641 * config/mips/mips.h: Likewise.
7642 * config/mips/mips.md: Likewise.
7643 * config/mips/netbsd.h: Likewise.
7644 * doc/invoke.texi: Likewise.
7645
918c4fe4
AS
76462003-01-08 Andreas Schwab <schwab@suse.de>
7647
7648 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
7649 variable.
7650 * configure: Regenerated.
7651
c5e7ce43
KH
76522003-01-08 Kazu Hirata <kazu@cs.umass.edu>
7653
7654 * config/h8300/h8300.c (output_logical_op): Replace byte/word
7655 extraction of det with b0, b1, w0, w2, etc.
7656 (compute_logical_op_length): Likewise.
7657 (compute_logical_op_cc): Likewise.
7658
eb8a8ec4
KH
76592003-01-08 Kazu Hirata <kazu@cs.umass.edu>
7660
7661 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
7662 HIGH on all variants.
7663
56f15830 7664Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
07488f32 7665
56f15830
JZ
7666 * Makefile.in (PARTITION_H): New.
7667 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
7668 * basic-block.h: Include hard-reg-set.h.
7669
ab57893b
RE
76702003-01-08 Richard Earnshaw <rearnsha@arm.com>
7671
7672 * arm.h (ENABLE_XF_PATTERNS): Delete.
7673 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
7674 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
7675 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
7676 (cmpxf_trap): Delete.
7677 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
7678
7b52eede
JH
7679Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
7680
7681 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
7682 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
7683 (add??cc): New expanders.
7684 * i386.c (expand_int_addcc): New function.
7685 * i386-protos.h (expand_int_addcc): Declare.
7686
7687 * alias.c (memory_modified_1): New static function.
7688 (memory_modified): New static varaible.
7689 (memory_modified_in_insn_p): New global function.
7690 * rtl.h (memory_modified_in_insn_p): Declare.
7691 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
7692 references.
7693
7694 * expr.h (emit_conditional_add): Declare.
7695
74049755
JJ
76962003-01-07 Janis Johnson <janis187@us.ibm.com>
7697
7698 PR other/8947
7699 * doc/invoke.texi (-malign-double): Explain that the option breaks
7700 binary compatibility.
7701
e7edc5a0
AS
77022003-01-08 Andreas Schwab <schwab@suse.de>
7703
7704 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
7705 should come from the generic *-*-linux* entry.
7706
9635cfad
JH
7707Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
7708
7709 * cselib.c (cselib_current_insn_in_libcall): New static variable.
7710 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
7711 we are inside libcall.
7712 * cselib.h (elt_loc_list): Add in_libcall.
7713 * gcse.c (do_local_cprop): Do not copy propagate using insns
7714 in libcalls.
7715
3ee04299
DE
77162003-01-07 David Edelsohn <edelsohn@gnu.org>
7717
7718 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
7719 not normally affect to issue rate.
7720
068f5dea
JH
7721Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
7722
7723 * genopinit.c (optabs): Add addc_optab.
7724 * ifcvt.c (noce_try_store_flag): Rename to ...
7725 (noce_try_addcc): ... this one; handle generic conditional increment.
7726 (noce_process_if_block): Update noce_try_addcc call.
7727 * optabs.c (emit_conditional_add): New.
7728 (init_obtabs): Initialize addc_optab.
7729 * optabs.h (optab_index): Add OTI_addcc.
7730 (addcc_optab): New macro.
7731 * md.texi: Document addMcc
7732
7733 PR target/8322
7734 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
7735 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7736 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7737
7738 * reload1.c (delete_output_reload): Avoid repeated attempts
7739 to delete insn.
7740
eb70d86d
AS
77412003-01-07 Andreas Schwab <schwab@suse.de>
7742
e7edc5a0
AS
7743 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
7744 Move --enable-initfini-array check ...
7745 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
7746 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
7747 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
7748 * configure: Rebuild.
eb70d86d 7749
1afdf91c
RH
77502003-01-07 Richard Henderson <rth@redhat.com>
7751
e7edc5a0
AS
7752 * alias.c (find_base_value): Only use new_reg_base_value shortcut
7753 if the register is set once.
1afdf91c 7754
36210500 77552003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
07488f32 7756
36210500
SP
7757 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7758 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
7759 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
7760
cb25b0ce
BK
77612003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7762 Sunil Davasam <sunil.k.davasam@intel.com>
7763
07488f32 7764 PR libstdc++/9076
cb25b0ce
BK
7765 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
7766 DW_CFA_same_value, read next and ignore.
7767
94c040bd
RH
77682003-01-07 Richard Henderson <rth@redhat.com>
7769
7770 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
7771
f6cb56fa
DB
77722003-01-07 Daniel Berlin <dberlin@dberlin.org>
7773
7774 * cfg.c: Include alloc-pool.h
7775 (edge_pool): New pool.
7776 (bb_pool): New pool.
7777 (first_deleted_edge): Remove.
7778 (first_deleted_block): Remove.
7779 (init_flow): Alloc/free the pools.
7780 (free_edge): Use pools.
7781 (alloc_block): Ditto.
7782 (expunge_block): Ditto.
7783 (cached_make_edge): Ditto.
7784
7785 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
7786
77872003-01-07 Daniel Berlin <dberlin@dberlin.org>
7788
7789 * et-forest.c: Include alloc-pool.h.
7790 (struct et_forest): Add node_pool and occur_pool.
7791 (et_forest_create): Create the new pools.
7792 (et_forest_delete): Delete them.
7793 (et_forest_add_node): Allocate and free using pools.
7794 (et_forest_add_edge): Ditto.
7795 (et_forest_remove_node): Ditto.
7796 (et_forest_remove_edge): Ditto.
7797
7798 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
7799
f9ac2f95
KH
78002003-01-07 Kazu Hirata <kazu@cs.umass.edu>
7801
7802 * config/h8300/h8300.c (output_logical_op): Simplify and
7803 optimize the handling of SImode.
7804 * config/h8300/h8300.c (compute_logical_op_length): Update
7805 accordingly.
7806 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
7807
83282119
RS
78082003-01-07 Richard Sandiford <rsandifo@redhat.com>
7809
7810 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
7811 big-endian correction to indirect arguments too.
7812
59a4c851
AH
78132003-01-06 Aldy Hernandez <aldyh@redhat.com>
7814
7815 Segher Boessenkool <segher@koffie.nl>
7816
36210500
SP
7817 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
7818 (alt_reg_names): Ditto, fix formatting.
7819 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
59a4c851 7820
7798db98
KH
78212003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7822
7823 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
7824 (output_logical_op): Constify intval and det.
7825 (compute_logical_length): Likewise.
7826 (compute_logical_cc): Likewise.
7827 (output_a_shift): Constify mask.
7828 (h8300_encode_label): Constify len.
7829
4705d102
KH
78302003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7831
7832 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
7833 (h8300_expand_epilogue): Likewise.
7834
98c9a8e8
AH
78352003-01-06 Aldy Hernandez <aldyh@redhat.com>
7836
7837 Segher Boessenkool <segher@koffie.nl>
7838
36210500
SP
7839 * config/rs6000/altivec.md: Remove spaces from assembler
7840 instruction argument lists.
07488f32 7841
86143814
MH
78422003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7843
7844 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
7845 c4x_assembler_function_p.
7846 (c4x_null_epilogue_p): Complement return value, all uses updated.
7847 (c4x_insert_attributes): Add naked.
7848 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
7849 * doc/extend.texi: Update C4x function attributes.
7850
52fd80fb
RH
78512003-01-06 Richard Henderson <rth@redhat.com>
7852
7853 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
7854 properly when changing "local-ness".
7855 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
7856
a16b43c5
DJ
78572003-01-06 Dale Johannesen <dalej@apple.com>
7858
7859 * config/darwin-protos.h: Add prototypes for new section functions.
7860
ef8dfae6
CD
78612003-01-06 Chris Demetriou <cgd@broadcom.com>
7862
7863 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
7864 to EABI.
7865
44f9a8e4
ZW
78662003-01-06 Zack Weinberg <zack@codesourcery.com>
7867
7868 * hwint.h: If the current compiler has no 64-bit type at all,
7869 make HOST_WIDEST_INT 32 bits.
7870
2610198a
EC
78712003-01-06 Eric Christopher <echristo@redhat.com>
7872
7873 * config/mips/mips.md (movdf_internal2): Fix constraints.
7874
efbd757f
KH
78752003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7876
7877 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
7878
727b9b8c
RS
78792003-01-06 Richard Sandiford <rsandifo@redhat.com>
7880
7881 * config/mips/mips.md (leadi): Use dla rather than la.
7882
4705d102 78832003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
cebdac46
SS
7884
7885 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
7886 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
7887
4705d102 78882003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
fe1e789f 7889
44f9a8e4 7890 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
fe1e789f
HB
7891 redefinition.
7892
dff0ea43
KH
78932003-01-05 Kazu Hirata <kazu@cs.umass.edu>
7894
7895 * config/h8300/h8300.md (*extzv_8_23): New.
7896
94e6fd3e
JDA
78972003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7898
7899 * pa64-hpux.h (JCR_SECTION_NAME): Define.
7900 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
7901 USE_EH_FRAME_REGISTRY when defining.
7902
cd9b5ca8
KH
79032003-01-05 Kazu Hirata <kazu@cs.umass.edu>
7904
7905 * config/h8300/h8300.c (output_a_shift): Do not output a
7906 variable shift.
7907 * config/h8300/h8300.md (two splitters): New.
7908
1ba8a9c4
RS
79092003-01-05 Richard Sandiford <rsandifo@redhat.com>
7910
7911 * config/mips/mips.md: Disable the movstrsi define_split.
7912
c7c50494
KG
79132003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7914
7915 * alloc-pool.c: Don't include "libiberty.h".
7916 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
7917 * convert.c (convert_to_real): Hide unused variable.
7918
83fa8d7a
KG
79192003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7920
7921 * Makefile.in (gtyp-gen.h): Const-ify.
7922 * gcov-dump.c (tag_table): Likewise.
7923
871dab3e
BK
79242003-01-04 Bruce Korb <bkorb@gnu.org>
7925
7926 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
7927 of *both* the file name and the fix name.
7928
90961eff 79292003-01-04 John David Anglin <dave.anglin@nrc.ca>
35d434ed
JDA
7930
7931 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
7932 collect2.
7933 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
7934 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
7935 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
7936 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
7937 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
7938 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
7939 elfos.h.
7940 (EH_FRAME_IN_DATA_SECTION): Delete define.
7941 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
7942 (STARTFILE_SPEC): Use crtbegin.o.
7943 (ENDFILE_SPEC): Use crtend.o.
7944 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
7945 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
7946 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
7947 DTOR_LIST_BEGIN): Define.
7948 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
7949 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
7950 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
7951
b0588013
BK
79522002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
7953
7954 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
7955 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
7956 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
7957 Cleanup handling of replacement text.
7958 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
7959
79602003-01-04 Bruce Korb <bkorb@gnu.org>
7961
7962 * fixinc/tests/base/math.h: removed obsolete results
7963 * fixinc/tests/base/stdlib.h: ditto
7964 * fixinc/tests/base/sys/param.h: ditto
7965 * fixinc/tests/base/sys/stat.h: ditto
7966 * fixinc/tests/base/time.h: ditto
7967 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
7968 * fixinc/tests/base/sys/byteorder.h: ditto
7969 * fixinc/inclhack.def: Remove superfluous backslashes
7970
68ee6df6
KH
79712003-01-04 Kazu Hirata <kazu@cs.umass.edu>
7972
7973 * config/h8300/h8300-protos.h: Add prototypes for
7974 the new functions defined below.
7975 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
7976 define.
7977 (dosize): Emit RTL instead of assembly code.
7978 (push): Likewise.
7979 (pop): Likewise.
7980 (h8300_output_function_prologue): Remove.
7981 (h8300_expand_prologue): New.
7982 (h8300_expand_epilogue): New.
7983 (h8300_output_function_epilogue): Do only the reset of
7984 pragma_saveall.
7985 * config/h8300/h8300.md (push_h8300): New.
7986 (push_h8300hs): Likewise.
7987 (pop_h8300): Likewise.
7988 (pop_h8300hs): Likewise.
7989 (*stm_h8300s_2): Change the name to stm_h8300s_2.
7990 (*stm_h8300s_3): Change the name to stm_h8300s_3.
7991 (*stm_h8300s_4): Change the name to stm_h8300s_4.
7992 (*ldm_h8300s_2): New.
7993 (*ldm_h8300s_3): Likewise.
7994 (*ldm_h8300s_4): Likewise.
7995 (return): Likewise.
7996 (*return_1): Likewise.
7997 (prologue): Likewise.
7998 (epilogue): Likewise.
7999 (monitor_prologue): Likewise.
8000
d3c300d2
DJ
80012003-01-03 Dale Johannesen <dalej@apple.com>
8002
8003 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
8004 machopic_picsymbol_stub1.
8005 (EXTRA_SECTION_FUNCTIONS): Ditto.
8006 * rs6000/rs6000.c: Update copyright.
8007 (machopic_output_stub): Use them. Remove an insn from stub code.
8008
6cce57b0
JM
80092003-01-02 Jason Merrill <jason@redhat.com>
8010
4e8dca1c
JM
8011 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
8012
8013 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
8014 static/external decls.
2610198a 8015
6cce57b0
JM
8016 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
8017 outermost scope.
8018 * c-decl.c (c_make_fname_decl): Push the decls there, too.
8019
e392d367
KH
80202003-01-03 Kazu Hirata <kazu@cs.umass.edu>
8021
8022 * config/h8300/h8300-protos.h: Add a prototype for
8023 h8300_current_function_interrupt_function_p.
8024 * config/h8300/h8300.c (interrupt_handler): Remove.
8025 (os_task): Likewise.
8026 (monitor): Likewise.
8027 (pragma_interrupt): New.
8028 (WORD_REG_USED): Use
8029 h8300_current_function_interrupt_function_p.
8030 (dosize): Likewise.
8031 (h8300_output_function_prologue): Likewise.
8032 Do not set interrupt_handler, os_task, monitor.
8033 (h8300_output_function_prologue): Use
8034 h8300_current_function_interrupt_function_p.
8035 Do not set interrupt_handler, os_task, monitor.
8036 (h8300_current_function_interrupt_function_p): New.
8037 (h8300_pr_interrupt): Set pragma_interrupt.
8038 (h8300_insert_attributes): Reset pragma_interrupt.
8039
b15da5b7
GP
80402003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8041
8042 * doc/install.texi (Configuration): Fix markup for reference to
8043 gcc/config.gcc.
8044
bf16e745
KH
80452003-01-02 Kazu Hirata <kazu@cs.umass.edu>
8046
8047 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
8048 (*iorhi3_two_qi): Likewise.
8049 (*iorsi3_zexthi): Likewise.
8050 (*xorhi3_zextqi): Likewise.
8051 (*xorsi3_zexthi): Likewise.
8052 (*xorsi3_zextqi): Likewise.
8053
8ccf5d5f
KH
80542003-01-02 Kazu Hirata <kazu@cs.umass.edu>
8055
8056 * config/h8300/h8300.c (stack_pointer_operand): New.
8057 (const_int_gt_2_operand): Likewise.
8058 (const_int_ge_8_operand): Likewise.
8059 * config/h8300/h8300.md (a splitter): Likewise.
8060 (a peephole2): Likewise.
8061 * config/h8300/h8300-protos.h: Add prototypes for the new
8062 functions above.
8063
43c6a96a
SB
80642003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
8065
8066 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
8067 objc/objc-act.h: Fix copyright years.
8068
96c4e780
SB
80692003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
8070
8071 * doc/passes.texi: Fix documentation for -fssa-ccp
8072
8ed0a104
NB
80732003-01-02 Neil Booth <neil@daikokuya.co.uk>
8074
8075 * gccbug.in: Update for new categories.
8076
1b9f0361
KH
80772003-01-01 Kazu Hirata <kazu@cs.umass.edu>
8078
8079 * config/h8300/h8300.md: Reorder some patterns.
8080
dc5f17ec
KH
80812003-01-01 Kazu Hirata <kazu@cs.umass.edu>
8082
8083 * config/h8300/h8300.c (output_logical_op): Fix a warning.
8084
cd2801fb
NB
80852003-01-01 Neil Booth <neil@daikokuya.co.uk>
8086
8087 * config/darwin-protos.h, config/c4x/c4x-protos.h,
8088 config/cris/cris-protos.h, config/i370/i370-protos.h,
8089 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
8090 config/v850/v850-protos.h: Use struct, and don't conditionally
8091 compile on GCC_C_PRAGMA_H.
8092
378b1b8e
KH
80932003-01-01 Kazu Hirata <kazu@cs.umass.edu>
8094
8095 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
8096 * config/h8300/h8300-protos.h: Likewise.
8097 * config/sh/sh-protos.h: Likewise.
8098
7106a5bc
KH
80992003-01-01 Kazu Hirata <kazu@cs.umass.edu>
8100
8101 * config/arm/arm-protos.h: Use struct cpp_reader instead of
8102 cpp_reader.
8103 * config/h8300/h8300-protos.h: Likewise.
8104 * config/sh/sh-protos.h: Likewise.
8105
231b51a1
NB
81062003-01-01 Neil Booth <neil@daikokuya.co.uk>
8107
8108 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
8109 arm_pr_long_calls_off): Use struct.
8110 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
8111 : Similarly.
8112 Don't include cpplib.h.
8113 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
8114 sh_pr_nosave_low_regs): Similarly.
8115
0f18b2b0
KH
81162003-01-01 Kazu Hirata <kazu@cs.umass.edu>
8117
8118 * config/h8300/h8300.c: Include cpplib.h.
8119
b9593599
SB
81202003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
8121
8122 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
8123 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
8124 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
8125 "GCC" in the copyright header.
8126
c58b209a
NB
81272003-01-01 Neil Booth <neil@daikokuya.co.uk>
8128
8129 * c-pragma.c (c_register_pragma): New.
8130 (init_pragma): Use it.
8131 * c-pragma.h (cpp_register_pragma): Don't declare.
8132 (c_register_pragma): New.
8133 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
8134 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
8135 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
8136 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
8137 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
8138 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
8139 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
8140 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
8141 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
8142 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
8143 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
8144 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
8145
7210d5ae 8146See ChangeLog.8 for earlier changes.
This page took 1.176506 seconds and 5 git commands to generate.