]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* debug/debug.exp: Skip debug-[12].c at -O3 on non-Dwarf targets.
[gcc.git] / gcc / ChangeLog
CommitLineData
f08b4d88
DE
12003-05-12 David Edelsohn <edelsohn@gnu.org>
2
3 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
4 (ASM_OUTPUT_ALIGNED_COMMON): Same.
5 (ASM_OUTPUT_LOCAL): Same.
6
d3e0dffb
JH
7Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
8
9 * varasm.c (output_constant): Fix underflow.
10
96ef4bdc
MM
112003-05-12 Mark Mitchell <mark@codesourcery.com>
12
13 PR other/10745
14 * configure.in: Correct detection of GNU ld version number.
15 * configure: Regenerated.
16
9804f5fb
ZW
172003-05-12 Zack Weinberg <zack@codesourcery.com>
18
19 * diagnostic.c (diagnostic_for_decl): Take a
20 diagnostic_context argument. Restructure to be consistent
21 with diagnostic_report_diagnostic.
22 (diagnostic_count_diagnostic): Now static. Take a
23 diagnostic_info argument, not just a diagnostic_t. Some code
24 moved here from internal_error. Move a case label for
25 clarity.
26 (diagnostic_action_after_output): New function. Code moved
27 here from internal_error and fatal_error.
28 (bug_report_request): New #define so that this text appears in
29 only one place.
30 (diagnostic_report_diagnostic): Update to match changes to
31 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
32 (diagnostic_set_info): Call gettext here.
33
34 (pedwarn): Update comment. Don't call gettext here.
35 (sorry): Use report_diagnostic. Don't call gettext here.
36 (fatal_error): Remove final fnotice and exit, but call
37 real_abort to prevent warnings about noreturn function returning.
38 (internal_error): Likewise. Don't do ICE suppression here nor
39 call context->internal_error.
40 (warning_with_decl): Suppress for decls in system headers.
41 Adjust call to diagnostic_for_decl.
42 (pedwarn_with_decl): Likewise.
43 (error_with_decl): Adjust call to diagnostic_for_decl.
44 (error_recursion): Use bug_report_request.
45
46 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
47 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
48 diagnostic_count_diagnostic.
49
f64f0687
JDA
502003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
51
52 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
53
c394cdb7
JH
54Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
55
212e2065 56 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
c394cdb7
JH
57 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
58 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
59
70498da3
RS
602003-05-12 Roger Sayle <roger@eyesopen.com>
61
62 * doc/rtl.texi: Document zero_extract as a valid destination
63 of a set insn.
64
ce250a20
RE
652003-05-12 Richard Earnshaw <rearnsha@arm.com>
66
67 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
68 '.'. Change all local symbol definitions and references to use LSYM.
69
58e15542
JH
70Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
71
72 * expr.h (assemble_static_space): Update prototype.
73 * output.h (assemble_zeros, output_constant): Likewise.
74 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
75 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
76 it 64bit clean.
77 * elf.h (ASM_OTUPUT_SKIP): Likewise.
78 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
79 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
80 Expect HOST_WIDE_INT operand.
81 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
82 Expect HOST_WIDE_INT operand.
83 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
84 Expect HOST_WIDE_INT operand.
85 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
86 HOST_WIDE_INT operand.
87 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
88 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
89 * aout.h (ASM_OTUPUT_SKIP): Likewise.
90 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
91 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
92 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
93 * frv.h (ASM_OTUPUT_SKIP): Likewise.
94 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
95 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
96 Make it 64bit
97 clean.
98 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
99 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
100 Make it 64bit clean.
101 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
102 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
103 HOST_WIDE_INT operand
104 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
105 Expect HOST_WIDE_INT operand
106 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
107 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
108 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
109 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
110 Likewise.
111 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
112 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
113 Likewise.
114 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
115 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
116 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
117 ASM_OUTPUT_SKIP): Likewise.
118 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
119 Likewise.
120 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
121 ASM_OUTPUT_SKIP): Likewise.
122 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
123 ASM_OUTPUT_SKIP): Likewise.
124 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
125 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
126 ASM_OUTPUT_SKIP): Likewise.
127 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
128 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
129 ASM_OUTPUT_SKIP): Likewise.
130 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
131 Likewise.
132 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
133 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
134 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
135 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
136 ASM_OUTPUT_SKIP): Make it 64bit clean.
137 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
138 Make it 64bit clean.
139 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
140 ASM_OUTPUT_SKIP): Make it 64bit clean.
141 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
142 64bit clean.
143 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
144 HOST_WIDE_INT argument
145 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
146 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
147 HOST_WIDE_INT argument
148 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
149 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
150 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
151 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
152 HOST_WIDE_INT argument
153 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
154 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
155 * varasm.c (asm_output_bss, asm_output_aligned_bss,
156 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
157 HOST_WIDE_INT argument
158
9804f5fb 1592003-05-10 Steven Bosscher <steven@gcc.gnu.org>
7660e67e
SB
160
161 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
162 favor of walk_tree_without_duplicates. Add comments.
163
76abd4c6
JZ
1642003-05-12 Josef Zlomek <zlomekj@suse.cz>
165
166 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
9804f5fb 167 (struct alloc_pool_def): New element 'id'.
76abd4c6
JZ
168 * alloc-pool.c (fancy_abort): Extern function prototype.
169 (abort): Macro which uses fancy_abort.
170 (struct allocation_object_def): New structure.
171 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
172 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
173 (last_id): New variable.
174 (create_alloc_pool): Add the offset of u.data to size of element,
175 increase and use last_id.
176 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
177 (pool_alloc): Likewise. Set ID for elements.
178 (pool_free): Check whether the PTR was allocated from POOL.
179
66ea6f4c
RH
1802003-05-11 Richard Henderson <rth@redhat.com>
181
182 PR c/10675
183 * c-decl.c: Include hashtab.h.
184 (detect_field_duplicates): New.
185 (finish_struct): Use it.
186 * Makefile.in (c-decl.o): Update.
187 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
188 (component_decl_list, component_decl_list2,
189 components, components_notype): Build list in reverse order.
190 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
191
9804f5fb 192 * tree.c (chainon): Special case op2 null as well.
66ea6f4c
RH
193 Reorg for clarity.
194
358997e2
RS
1952003-05-11 Roger Sayle <roger@eyesopen.com>
196
197 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
198 to implement log, logf and logl built-ins as inline x87 intrinsics.
199 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
200 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
201 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
202
203 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
204 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
205
ffa916ba
KG
2062003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
207
9804f5fb 208 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
04f3680d 209
ffa916ba
KG
210 * sparc.c (print_operand): Fix uninitialized warning.
211
91f4cfe3
ZD
2122003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
213
214 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
215 real insns.
216 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
217 condition.
218
ac38d8da
NB
2192003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
220
221 * doc/cpp.texi: Fix typos.
222
82b1c974
UW
2232003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
224
225 * config/s390/s390.c (s390_function_arg_float): New function.
226 (s390_function_arg_pass_by_reference): Use it.
227 (s390_function_arg_advance): Likewise.
228 (s390_function_arg): Likewise.
229 (s390_va_arg): Likewise
230
6d70e6be
NS
2312003-05-11 Nathan Sidwell <nathan@codesourcery.com>
232
233 * coverage.h (coverage_counter_alloc): New function.
234 * function.h (struct function): Remove arc_profile flag.
235 * coverage.c (fn_ident): Remove.
236 (fn_b_ctrs, no_coverage): New.
237 (get_coverage_counts): Use current_function_funcdef_no.
238 (coverage_counter_alloc): New.
239 (coverage_counter_ref): Adjust.
240 (coverage_begin_output): Check no_coverage. Use
241 current_function_funcdef_no.
242 (coverage_end_function): Likewise.
243 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
244 than clearing flag_inline_functions. Do not clear arc_profile
245 flag.
246 * function.c (prepare_function_start): Do not set arc_profile
247 flag.
248 * profile.c (instrument_edges): Return number of instrumented
249 edges. Use a for loop.
250 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
251 local to here and simplify. Use profile_arc_flag not arc_profile
252 flag.
253 (find_spanning_tree): Reformat.
254 * toplev.c (rest_of_compilation): Use profile_arc_flags and
255 flag_test_coverage rather than arc_profile flag.
256
78d0a54d
GDR
2572003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
258
259 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
260
a71c8ddc
RK
2612003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
262
263 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
264
6e270179 2652003-05-11 Bruno Haible <bruno@clisp.org>
9804f5fb 266
6e270179
NB
267 * cppfiles.c (find_or_create_entry): Preserve errno.
268
2692003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
270
271 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
272 cpplib as it's a Standard Predefined Macro.
273 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
274 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
275 __STDC_HOSTED__ appropriately.
276 * cpplib.h (_cpp_init_builtins): Update.
277 * fix-header.c (read_scan_file): Update.
278 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
279
f333504d
GDR
2802003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
281
282 PR C++/689
283 PR C++/9257
284 * c-opts.c (c_common_decode_option): Don't set
285 warn_ctor_dtor_privacy wen -Wall.
286 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
287
6e5d72ba
AO
2882003-05-10 Alexandre Oliva <aoliva@redhat.com>
289
290 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
291 patch.
292
59650e48
ZW
2932003-05-10 Zack Weinberg <zack@codesourcery.com>
294
295 * diagnostic.c: Reorder functions for clarity, putting all the
296 functions in the "error" family next to each other, and
297 likewise all the functions in the "error_with_decl" family.
298 Some other routines were moved too. Add comments.
299 (vbuild_message_string): Fold into sole caller.
300
301
34dc173c
UW
3022003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
303
304 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
305 (EH_RETURN_HANDLER_RTX): Likewise.
306 (expand_builtin_eh_return): Do not copy stack adjustment
307 if EH_RETURN_STACKADJ_RTX is not defined.
308 (expand_eh_return): Likewise. Also, do not pass stack
309 adjustment as argument to the eh_return pattern.
310 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
311 because EH_RETURN_STACKADJ_RTX is not defined.
312 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
313 is not defined, treat stack pointer like a regular register.
314 (uw_init_context_1): Set up fake initial stack pointer register.
315 (uw_install_context_1): Do not compute stack adjustment if
316 EH_RETURN_STACKADJ_RTX is not defined.
317
318 * config/i386/i386.md ("eh_return"): Remove first argument.
319 * config/mips/mips.md ("eh_return"): Likewise.
320 * config/rs6000/rs6000.md ("eh_return"): Likewise.
321 * config/sh/sh.md ("eh_return"): Likewise.
322
323 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
324
a64d0bc6
AA
3252003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
326
327 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
328
9b514d25
NS
3292003-05-10 Nathan Sidwell <nathan@codesourcery.com>
330
331 * defaults.h (GCOV_TYPE_SIZE): Remove.
332 * gcov-io.h (gcov_type): Set to specific mode int on target.
333 (gcov_unsigned_t, gcov_position_t): New.
334 (GCOV_TYPE_NODE): New.
335 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
336 (GCOV_COUNTERS_SUMMABLE): New.
337 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
338 gcov_ctr_info, gcov_info): Adjust types.
339 (gcov_var): Adjust types.
340 (gcov_write_unsigned, gcov_write_tag,
341 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
342 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
343 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
344 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
345 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
346 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
347 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
348 __gcov_init, __gcov_merge_add): Adjust gcov types.
349 * coverage.c (ctr_merge_functions): Constify.
350 (ctr_names): New.
351 (read_counts_file): Adjust gcov types. Only summarize & merge
352 summable counters.
353 (coverage_counter_ref): Use GCOV_TYPE_NODE.
354 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
355 build_ctr_info_value, build_gcov_info): Adjust types.
356 * profile.c (branch_prob): Adjust gcov types.
357 * gcov_dump (dump_file): Adjust gcov types.
358
03f1640c
RE
3592003-05-10 Richard Earnshaw <rearnsha@arm.com>
360
59650e48 361 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
03f1640c
RE
362 constants.
363 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
59650e48 364 * arm.c (arm_select_dominance_cc_mode): Renamed from
03f1640c
RE
365 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
366 Callers updated.
367 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
368
3ee10665
RS
3692003-05-09 Roger Sayle <roger@eyesopen.com>
370
371 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
372 as unsigned to avoid signed/unsigned comparison warnings.
373
0bd0703d
BW
3742003-05-09 Bob Wilson <bob.wilson@acm.org>
375
376 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
377 instruction if the Xtensa density option is enabled.
378
1476c9d9
MK
3792003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
380
381 * mklibgcc.in: Remove extra quotes.
382
36e8d515
MM
3832003-05-09 Mark Mitchell <mark@codesourcery.com>
384
385 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
386 of int_ftype_void.
387
f8a30250
AO
3882003-05-09 Alexandre Oliva <aoliva@redhat.com>
389
390 * reload1.c (reload_cse_move2add): Don't turn an implicit
391 truncation into a self-set in the narrow mode.
392
e912eadf
RE
3932003-05-09 Richard Earnshaw <rearnsha@arm.com>
394
395 * arm.md (clzsi2): The CLZ instruction is predicable.
396
638db43e
BW
3972003-05-09 Bob Wilson <bob.wilson@acm.org>
398
399 * config/xtensa/xtensa.c: Formatting.
400
5675294b
DN
4012003-05-09 Diego Novillo <dnovillo@redhat.com>
402
403 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
404 instead of TREE_OPERAND to access the operand of a
405 CONSTRUCTOR node.
406
ec0f4995
DN
4072003-05-09 Diego Novillo <dnovillo@redhat.com>
408
409 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
410 one operand.
411
3c4b6438
GDR
4122003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
413
414 * toplev.h (warning_with_file_and_line): Don't declare.
415 (error_with_file_and_line): Likewise.
416 * diagnostic.c (error_with_file_and_line): Remove.
417 (warning_with_file_and_line): Likewise.
418
49468c8b
GDR
4192003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
420
421 * c-parse.in (if_stmt_locus): New object.
422 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
423 (select_or_iter_stmt rule): Likewise.
424 (if_stmt_file): Remove.
425 (if_stmt_line): Likewise.
426 * jump.c: include "diagnostic.h"
59650e48 427 (never_reached_warning): Don't use warning_with_file_and_line.
49468c8b
GDR
428 * Makefile.in (jump.o): Add dependce on diagnostic.h
429
c6b97fac
AM
4302003-05-09 Alan Modra <amodra@bigpond.net.au>
431
432 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
433 Move code handling pieces not larger than a word to..
434 * function.c (assign_parms): ..here, but use change_address instead
435 of adjust_address and operand_subword, and expand_binop instead of
436 expand_shift. Adjust calls to move_block_from_reg.
437 * expr.h (move_block_from_reg): Update declaration.
438 (copy_blkmode_from_reg): Formatting.
439 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
440 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
441 move_block_from_reg calls.
442 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
443 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
444 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
445 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
446 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
447 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
448 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
449 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
450 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
451
06d22853
DD
4522003-05-08 DJ Delorie <dj@redhat.com>
453
454 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
455 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
456 variable-sized types).
457 (xstormy16_function_arg): New. Pass them that way too.
458 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
459 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
460
d0affb9f
AH
4612003-05-08 Aldy Hernandez <aldyh@redhat.com>
462
59650e48
ZW
463 * mklibgcc.in: Use mkinstalldirs when installing multilib
464 directories.
d0affb9f 465
ddf8ec7e
R
4662003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
467
468 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
469 instead of CODE_FOR_jump
470
67f7893c
GDR
4712003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
472
473 * objc/objc-act.c (error_with_ivar): Don't use
59650e48 474 error_with_file_and_line.
67f7893c
GDR
475 (warn_with_method): Don't use warning_with_file_and_line.
476
c8608cd6
GDR
4772003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
478
479 * stmt.c (emit_locus): New macro.
480 (emit_filename): Remove.
481 (emit_lineno): Likewise.
482 (struct stmt_status): Replace members x_emit_filename and
483 x_emit_lineno with x_emit_locus.
484 (set_file_and_line_for_stmt): Adjust.
67f7893c 485 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
c8608cd6
GDR
486 (warn_if_unused_value): Likewise.
487 (check_seenlabel): Likewise.
488
95035b6f
GDR
4892003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
490
491 * c-decl.c (define_label): Tidy. Don't use any of
492 error_with_file_and_line or warning_with_file_and_file.
493 (pending_xref_error): Likewise.
494 (store_parm_decls): Likewise.
495 (current_function_prototype_locus): New object. Package from
496 current_function_prototype_file and current_function_prototype_line.
497 (start_function): Use it.
498 (current_function_prototype_file): Remove.
499 (current_function_prototype_line): Remove;
500
7dc61d6c
KG
5012003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
502
503 * builtins.c (readonly_data_expr): New function.
504 (expand_builtin_memmove): Optimize any rodata source, not just
505 strings.
506
044075ac
DM
5072003-05-07 David Mosberger <davidm@hpl.hp.com>
508
59650e48 509 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
044075ac 510
8231b3f9
RH
5112003-05-07 Richard Henderson <rth@redhat.com>
512
513 * config/i386/i386.c (ix86_split_long_move): Fix base register
514 mode for XFmode splits for TARGET_64BIT.
515
0212907f
RH
5162003-05-07 Richard Henderson <rth@redhat.com>
517
518 * sched-ebb.c (schedule_ebb): Supply the correct starting
519 block number to save_line_notes.
520
c079e6fe
RH
5212003-05-07 Richard Henderson <rth@redhat.com>
522
523 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
524 (dump_file): Likewise.
525
c35b64c2
DM
5262003-05-07 David Mosberger <davidm@hpl.hp.com>
527
59650e48 528 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
c35b64c2 529 forget to preserve gp.
59650e48
ZW
530 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
531
532 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
533 .prologue directive.
534 Use .skip instead of data8 for .bss section to make Intel
535 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
536 explicit in the .mib bundles and remove the unnecessary stop
537 bits. Replace local labels with normal labels, to make ias
538 happy. Don't register __do_global_ctors_aux here, do it in
539 crtend.asm instead.
540
541 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
542 __do_global_ctors_aux in .init_array section instead of
543 declaring it as a hidden global. Replace local labels with
544 ordinary labels to make ias happy.
c35b64c2 545
a944ceb9
RH
5462003-05-07 Richard Henderson <rth@redhat.com>
547
59650e48
ZW
548 PR c++/10570
549 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
550 * flags.h, toplev.c, doc/invoke.texi: Likewise.
a944ceb9 551
59650e48
ZW
552 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
553 * unwind.inc (_Unwind_DeleteException): Check for null
554 exception_cleanup.
a944ceb9 555
59650e48
ZW
556 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
557 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
558 * unwind.h: Declare them.
559 * libgcc-std.ver (GCC_3.3): Export them.
a944ceb9 560
9330e977
RH
5612003-05-07 Richard Henderson <rth@redhat.com>
562
a21d83cd 563 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
9330e977
RH
564 not _Unwind_Word.
565
046e4e36
ZW
5662003-05-07 Zack Weinberg <zack@codesourcery.com>
567
568 * stmt.c (force_label_rtx): New function, based on logic
569 formerly found in expand_expr.
570 * expr.h: Prototype it.
571 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
572 appropriate.
573 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
574
575 * print-tree.c (debug_tree): Free the table after we're done
576 with it. Use putc.
577
12850cf2
AH
5782003-05-07 Aldy Hernandez <aldyh@redhat.com>
579
046e4e36
ZW
580 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
581 Unreverse arguments for __ev_subw.
12850cf2 582
046e4e36 583 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
12850cf2 584
54350d48
NC
5852003-05-07 Nick Clifton <nickc@redhat.com>
586
587 * config/stormy16/stormy-abi: Update to include
588 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
589 R_XSTORMY16_12 relocs.
590
ffea5d1e
AM
5912003-05-07 Alan Modra <amodra@bigpond.net.au>
592
593 * function.c (assign_parms): Correct reversed reg_parm_stack_space
594 test. Add partial in-regs size to stack_args_size.
595
da635858
GP
5962003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
597
598 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
599 as a C only option.
600
474f141e
NS
6012003-05-07 Nathan Sidwell <nathan@codesourcery.com>
602
603 * gcov-io.h (GCOV_LOCKED): New #define.
604 (GCOV_LINKAGE): Make sure it is #defined.
605 (gcov_write_string, gcov_write_tag, gcov_write_length,
606 gcov_read_string, gcov_time): Poison in libgcov.
607 (gcov_seek_end): Remove.
608 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
609 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
610 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
611 GCOV_TAG_SUMMARY_LENGTH): New #defines.
612 (gcov_write_tag, gcov_write_length): Not in libgcov.
613 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
614 (gcov_write_tag, gcov_write_length): Not in libgcov.
615 (gcov_write_tag_length): New.
616 (gcov_write_summary): Use gcov_write_tag_length.
617 * libgcov.c: Always #include gcov-io.h.
618 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
619 (GCOV_LINKAGE): Define to nothing for L_gcov.
620 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
621 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
622 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
623 (read_count_file): Likewise.
624 * gcov-dump.c (dump_file): Likewise.
625 * coverag.c (read_counts_file): Likewise.
626
6cbeaa7e
MM
6272003-05-06 Mark Mitchell <mark@codesourcery.com>
628
629 PR other/10658
630 * gcc.c (process_command): Update copyright date.
631
26979a17
PE
6322003-05-06 Phil Edwards <pme@gcc.gnu.org>
633
634 * doc/install.texi (mips-*-*): Add note about libstdc++.
635
14b56832
DD
6362003-05-06 DJ Delorie <dj@redhat.com>
637
638 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
639 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
640 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
641
2c2bc09b
NB
6422003-05-06 <neil@cat.daikokuya.co.uk>
643
644 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
645 and -Wstrict-prototypes if C++.
646
2f3f95e9
AH
6472003-05-06 Aldy Hernandez <aldyh@redhat.com>
648
046e4e36 649 * config/rs6000/linuxspe.h: New file.
2f3f95e9 650
046e4e36 651 * config.gcc: Add powerpc-*-linux-gnuspe* target.
2f3f95e9 652
8b689196
RH
6532003-05-06 Richard Henderson <rth@redhat.com>
654
046e4e36 655 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8b689196
RH
656 previous frame didn't save sp. Clear sp for next frame.
657 (uw_install_context_1): Honor saved sp from frame.
658
5b0f0db6
RS
6592003-05-06 Richard Sandiford <rsandifo@redhat.com>
660
661 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
662 (mips_move_1word, mips_move_2words): Remove declaration.
663 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
664 (mips_restore_gp): Remove insn argument.
665 * config/mips/mips.h (FP_REG_RTX_P): New macro.
666 * config/mips/mips.c (volatile_buffer): Remove.
667 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
668 (mips_move_1word, mips_move_2words): Remove, replacing with...
669 (mips_output_move): ...this new function.
670 (mips_restore_gp): Remove insn argument. Adjust for above changes.
671 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
672 handling of floating-point constants. Handle zero CONST_DOUBLE
673 arguments.
674 (mips_annotate_frame_insn): Replace with...
675 (mips_set_frame_expr): ...this, which just takes one argument.
676 (mips_frame_set): Change the register argument to an rtx.
677 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
678 check whether moves should be split. Use mips_split_64bit_move
679 to split them. Use mips_subword to generate the high and low
680 parts of a paired FPR. Adjust calls to frame_set and
681 mips_set_frame_expr.
682 (mips_expand_prologue): Simplify due to above changes.
683 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
684 targets, replacing xisting register-only versions.
685 (UNSPEC_STORE_DF_HIGH): New unspec.
686 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
687 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
688 (*paradoxical_extendhidi2): Remove.
689 (movdi_internal, movdi_internal2): Use mips_output_move.
690 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
691 (movsf_internal1, movsf_internal2): Likewise.
692 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
693 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
694 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
695 Add m <- G alternative.
696 (load_df_low, load_df_high, store_df_low): New patterns.
697 (movhi_internal): Use @ template instead of calling a function.
698 Remove unnecessary 'z' alternatives.
699 (movqi_internal): Likewise.
700 (exception_receiver): Update call to mips_restore_gp.
701
e8b84d3d
RS
7022003-05-06 Richard Sandiford <rsandifo@redhat.com>
703
704 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
705 (mips_delegitimize_address): Declare.
706 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
707 (FIND_BASE_TERM): Define.
708 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
709 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
710 Handle small-data addresses.
711
e82a312b
RS
7122003-05-05 Roger Sayle <roger@eyesopen.com>
713
714 * real.c (real_powi): New function to calculate the value of
715 a real raised to an integer power, i.e. pow(x,n) for int n.
716 (real_sqrt): Convert to using the faster do_add, do_multiply
717 and do_divide API for consistency with the rest of real.c.
718 * real.h (real_powi): Prototype here.
719 * builtins.c (fold_builtin): Avoid local variable mode when
720 evaluating sqrt at compile time. Attempt to evaluate pow at
721 compile-time, by checking for an integral exponent.
722
905e8651
RH
7232003-05-05 Richard Henderson <rth@redhat.com>
724
725 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
726
88467101
DB
7272003-05-05 David O'Brien <obrien@FreeBSD.org>
728
729 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
730 other FreeBSD ports.
731 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
cb1f476f 732 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
88467101 733
6ccfe27c
JJ
7342003-05-05 Janis Johnson <janis187@us.ibm.com>
735
736 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
737 expanded variables.
738 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
739
10b6a274
ZW
7402003-05-05 Zack Weinberg <zack@codesourcery.com>
741
742 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
743 * varasm.c (struct varasm_status): Add deferred_constants field.
744 (n_deferred_strings): Delete variable.
745 (n_deferred_constants): New #define.
746 (struct constant_descriptor_tree): Kill next and label fields.
747 (const_hash_table, MAX_HASH_TABLE): Delete.
748 (const_desc_htab): New static variable.
749 (const_hash): Rename const_desc_hash, and make it fit the
750 hashtab.h interface.
751 (const_desc_eq): New.
752 (const_hash_1, compare_constant): Const-ify arguments.
753 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
754 SYMBOL_REFs. Clarify comments. Don't set desc->label.
755 (output_constant_def): Do the lookup/insert using the
756 hashtab.h interface. Don't muck with n_deferred_constants or
757 DEFERRED_CONSTANT_P here.
758 Always call maybe_output_constant_def_contents.
759 (maybe_output_constant_def_contents): Take a pointer to the
760 descriptor, not the EXP and RTL separately. Return
761 immediately if this constant is not deferred. Defer output of
762 everything, except writable string constants. Update
763 n_deferred_constants here.
764 (output_constant_def_contents): Now takes just one argument,
765 an rtx. Clear DEFERRED_CONSTANT_P here.
766 (mark_constant_pool): Update for rename of n_deferred_strings.
767 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
768
769 (init_varasm_status): Clear p->deferred_constants.
770 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
771
68ef8841
KG
7722003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
773
774 * builtins.c (expand_builtin_stpcpy): Only expand when the length
775 of the source string can be evaluated at compile-time.
776
9938b5d9
AH
7772003-05-05 Aldy Hernandez <aldyh@redhat.com>
778
10b6a274 779 * testsuite/gcc.c-torture/compile/simd-6.c: New.
9938b5d9 780
10b6a274 781 * c-typeck.c (digest_init): Handle arrays of vector constants.
9938b5d9 782
e3e9f108
JJ
7832003-05-05 Jakub Jelinek <jakub@redhat.com>
784
785 * builtins.c (expand_builtin_mempcpy): New function.
786 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
787 ignored into strcpy no matter what arguments it has.
788 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
789 expand_builtin_mempcpy.
790
6035d635
AH
7912003-05-05 Aldy Hernandez <aldyh@redhat.com>
792
10b6a274 793 * testsuite/gcc.dg/20030505.c: New.
6035d635 794
10b6a274
ZW
795 * c-typeck.c (convert_for_assignment): Opaque pointers can
796 interconvert.
6035d635 797
10b6a274
ZW
798 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
799 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
800 (spe_init_builtins): Rename all pv2si_type_node to
801 opaque_p_V2SI_type_node.
802 Remove declaration of pv2si_type_node.
803 (is_ev64_opaque_type): Accept opaque pointers.
6035d635 804
36b29d7d
GK
8052003-05-05 Geoffrey Keating <geoffk@apple.com>
806
bc9ec0e0
GK
807 * config/rs6000/rs6000.c (validate_condition_mode): Use
808 flag_finite_math_only.
809 (rs6000_reverse_condition): Never return UNKNOWN; use
810 flag_finite_math_only.
811 (rs6000_generate_compare): Use flag_finite_math_only.
812 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
813 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
10b6a274 814 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
bc9ec0e0 815
36b29d7d
GK
816 * toplev.c (check_global_declarations): Suppress not-used warning
817 for volatile variables.
818
9e5f281f
OH
8192003-05-05 Olivier Hainque <hainque@act-europe.fr>
820
10b6a274
ZW
821 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
822 usage of bitfield instructions for mode1 != BLKmode, only ignoring
823 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
824 (store_field): Likewise.
9e5f281f 825
f5119d10
AH
8262003-05-05 Aldy Hernandez <aldyh@redhat.com>
827
10b6a274
ZW
828 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
829 evsubifw to builtins accepting 5-bit unsigned constants.
830 (easy_vector_constant): Return if V1DImode. Fix typo.
f5119d10 831
25ecd459
AH
8322003-05-05 Aldy Hernandez <aldyh@redhat.com>
833
10b6a274 834 * config/rs6000/spe.h: Revert licensing change from last patch.
25ecd459 835
9be13211
DD
8362003-05-05 DJ Delorie <dj@redhat.com>
837
838 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
839 before reload, but defer the split until after.
840 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
841 to match.
842
2c9d95ef
DE
8432003-05-05 David Edelsohn <edelsohn@gnu.org>
844
845 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
846 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
847
1e77e673
ZD
8482003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
849
850 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
10b6a274 851 is defined.
1e77e673 852
00362064
KG
8532003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
854
855 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
856 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
857 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
858
859 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
860 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
861 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
862 New.
863
864 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
865 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
866
867 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
868 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
869 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
870 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
871 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
872 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
873 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
874 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
875 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
876 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
877 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
878 BUILT_IN_STRDUP): Add "nonnull" attribute.
879
ad26fb41
RK
8802003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
881
c1853da7
RK
882 * expr.c (store_field): Don't clobber TEMP in shift: it might be
883 a variable.
884 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
885 whose purpose is to step up the alignment.
886 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
887
ad26fb41
RK
888 * stor-layout.c (compute_record_mode): Relax restriction
889 on fields crossing word boundaries forcing BLKmode.
890
1fecc266
NB
8912003-05-04 Neil Booth <neil@daikokuya.co.uk>
892
893 * cppinit.c (cpp_create_reader, post_options): Warn about
894 trigraphs unless explicity set or -trigraphs.
895 * cpplex.c (warn_in_comment): New.
896 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
897 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
898 * doc/cppopts.texi, doc/cpp.texi: Update.
899
09780dfb
ZD
9002003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
901
902 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
903 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
904 namespace clash.
905 (GCOV_MERGE_FUNCTIONS): New.
906 (gcov_merge_fn): Declare.
907 (struct gcov_ctr_info): New field "merge".
908 (__gcov_merge_add): Declare.
909 * coverage.c (ctr_merge_functions): New.
910 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
911 of gcov_ctr_info type.
912 * libgcov.c (__gcov_merge_add): New.
913 (gcov_exit): Call a hook to merge values of counters.
914
c71f2ffd
GDR
9152003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
916
917 * toplev.h (pedwarn_with_file_and_line): Don't declare.
918 * diagnostic.c (pedwarn_with_file_and_line): Remove.
919
3d885683
GDR
9202003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
921
922 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
923
8c9b38d7
KG
9242003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
925
926 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
927 expand_builtin_frame_address): Update prototypes.
928 (expand_builtin_constant_p, expand_builtin_strlen,
929 expand_builtin_strcpy, expand_builtin_memset,
930 expand_builtin_bzero, expand_builtin_args_info,
931 expand_builtin_frame_address): Pass in just the argument(s)
932 needed, not the entire expression `exp'.
933 (expand_builtin): Update all calls to these functions.
934
9c80ff25
RH
9352003-05-03 Richard Henderson <rth@redhat.com>
936
937 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
938 <BUILT_IN_DWARF_SP_COLUMN>: New.
939 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
940 (BUILT_IN_DWARF_SP_COLUMN): New.
941 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
942 (expand_builtin_dwarf_sp_column): New.
943 * except.h: Update to match.
944 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
945 (execute_cfa_program): Record location expression address
946 before extracting length.
947 (uw_update_context_1): Install old CFA into stack pointer column.
948 (uw_init_context_1): Set cfa_reg to stack pointer column.
949
4d588c14
RH
9502003-05-03 Richard Henderson <rth@redhat.com>
951
952 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
953 return bool.
954 (toc_relative_expr_p): Likewise.
955 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
956 (legitimate_constant_pool_address_p): Move from rs6000.h, change
957 into a function, downcase all users.
958 (legitimate_small_data_p): Likewise.
959 (legitimate_offset_address_p): Likewise.
960 (legitimate_indexed_address_p): Likewise.
961 (legitimate_indirect_address_p): Likewise.
962 (legitimate_lo_sum_address_p): Likewise.
963 (rs6000_mode_dependent_address): Likewise.
964 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
965 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
966 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
967 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
968 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
969 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
970 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
971 * config/rs6000/rs6000-protos.h: Update.
972
8d90f9c0
GK
9732003-05-03 Geoffrey Keating <geoffk@apple.com>
974
b39358e1
GK
975 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
976 (REVERSE_CONDITION): Define.
977
b7053a3f
GK
978 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
979 to branch_positive_comparison_operator.
980 (ccr_bit): Check that sCOND conditions are actually a positive bit.
981 (print_operand): Remove %D substitution.
982 (rs6000_emit_sCOND): Generate complement operation to ensure that
983 sCOND input is a positive bit.
984 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
985 same order as bCOND, and add the missing ones. Remove the %D
986 substitutions from the scc patterns.
987
8d90f9c0
GK
988 * simplify-rtx.c (simplify_relational_operation): Add case for
989 ! (fabs(x) < 0.0).
990
8882ac3a
BK
9912003-05-03 Bruce Korb <bkorb@gnu.org>
992
993 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
994 in fixincl.x
995 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
996
bd879e9a
AH
9972003-05-03 Aldy Hernandez <aldyh@redhat.com>
998
4d588c14 999 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
bd879e9a 1000
87f85ea0
ZW
10012003-05-03 Zack Weinberg <zack@codesourcery.com>
1002
1003 PR c/10604
1004 * c-common.c (warn_sign_compare): Initialize to -1.
1005 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
1006 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
1007 for C++ only.
1008 (c_common_post_options): Set warn_sign_compare from extra_warnings
1009 if it's still -1 at this point.
1010
1011 * toplev.c (maybe_warn_unused_parameter): New static variable.
1012 (set_Wextra): New static function.
1013 (W_options): Remove "extra".
1014 (decode_W_option): Call set_Wextra.
1015 (independent_decode_option): Likewise.
1016 (set_Wunused): Cooperate with set_Wextra in setting
1017 warn_unused_parameter.
1018 (rest_of_compilation): No need to check extra_warnings as
1019 well as warn_uninitialized.
1020
1021 * c-typeck.c (build_binary_op, build_conditional_expr):
1022 No need to check extra_warnings as well as warn_sign_compare.
1023 (internal_build_compound_expr): No need to check extra_warnings
1024 as well as warn_unused_value.
1025 * function.c (expand_function_end): No need to check extra_warnings
1026 as well as warn_unused_parameter.
1027 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
1028 as well as warn_unused_value.
1029
1030 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
1031
1032 * Makefile.in: Disable -Werror for gengtype-lex.o.
1033
ee960939
OH
10342003-05-03 Olivier Hainque <hainque@act-europe.fr>
1035
1036 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
1037 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
1038 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
1039 * calls.c (emit_call_1): Likewise.
87f85ea0 1040 (expand_call): For calls initializing constant memory, replace
ee960939
OH
1041 emission of standalone mem /u clobber with function usage entry.
1042 * expr.c (emit_block_move_via_libcall): Likewise.
1043 * cse.c (count_reg_usage, case EXPR_LIST): New case.
1044 * flow.c (propagate_one_insn): Pass entire operand of
1045 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
1046 * integrate.c (try_constants): For CALL_INSNs, substitute constants
1047 within the FUNCTION_USAGE also.
1048 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
1049 FUNCTION_USAGE lists.
1050 * reload1.c (replace_pseudos_in): Renamed.
1051 (reload): Use it for clobbers surviving until the end of the reload.
1052
3923e410
RK
10532003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1054
13cf99ec
RK
1055 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
1056 gen_lowpart on non-integer modes.
1057
3923e410
RK
1058 * stor-layout.c (place_field): When adjusting offset_align, use
1059 desired_align, not DECL_ALIGN.
1060
070588f0
NS
10612003-05-03 Nathan Sidwell <nathan@codesourcery.com>
1062
1063 * c-decl.c (pending_invalid_xref_file): Remove.
1064 (pending_invalid_xref_line): Remove.
1065 (pending_invalid_xref_location): New.
1066 (lookup_label): Use location_t and input_location directly.
1067 (lookup_tag): Likewise.
1068 (pending_xref_error): Likewise.
1069 (c_expand_body_1): Likewise.
1070 * c-common.c (x_expand_start_cond): Likewise.
1071 * c-semantics.c (genrtl_for_stmt): Likewise.
1072 (find_reachable_label): Likewise.
1073 * expr.c (expand_expr): Likewise.
1074 * integrate.c (output_inline_function): Likewise.
1075 * tree-inline.c (find_alloca_call): Likewise.
1076 (find_builtin_longjmp_call): Likewise.
1077 * gcc.c (input_filename): Make static.
87f85ea0 1078
b259a9a6
RS
10792003-05-03 Richard Sandiford <rsandifo@redhat.com>
1080
969c6c43
RS
1081 * config/mips/mips.md: Fix comment typo.
1082
b259a9a6
RS
1083 * config/mips/mips.c (mips_integer_op): New structure.
1084 (MIPS_MAX_INTEGER_OPS): Define.
1085 (mips_const_insns): Use mips_build_integer to determine the number
1086 of instructions needed to load a CONST_INT.
1087 (move_operand): Reject compound CONST_INTs.
1088 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
1089 (mips_move_integer): New fn.
1090 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
1091 (mips_legitimize_move): Only legitimize constants when moving
1092 word or subword values.
1093
28068c2c
MK
10942003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
1095
1096 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
1097
685828f7
KG
10982003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1099
1100 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
1101 modifying it.
1102
d9e95c63
FH
11032003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1104 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1105
1106 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
1107 Hernandez, and Kazu Hirata. Update Richard Henderson.
1108
7454096f
GK
11092003-05-02 Geoffrey Keating <geoffk@apple.com>
1110
b86fe7b4
GK
1111 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
1112 to tentative declaration.
87f85ea0 1113
20bfcd69
GK
1114 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
1115 (SYMBOL_FLAG_SMALL_V4): Delete.
1116 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
1117 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
1118 (rs6000_elf_in_small_data_p): Add extra section names. Add
1119 comment about TREE_PUBLIC test.
1120
7454096f
GK
1121 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
1122 expand_stmt on result of expand_unreachable_stmt.
1123
3f4a3170
GP
11242003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1125
1126 * doc/contrib.texi (Contributors): Add Daniel Berlin.
1127
473f51b6
DE
11282003-05-02 David Edelsohn <edelsohn@gnu.org>
1129
1130 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
1131 number of automata.
1132
1133 * config/rs6000/rs6000.c (symbol_ref_operand): Check
1134 SYMBOL_REF_FUNCTION_P on AIX.
1135 (current_file_function_operand): Same.
1136 * config/rs6000/rs6000.md (call,call_value): Force non-function
1137 symbol_ref into register on AIX.
1138
e7949876
AM
11392003-05-02 Alan Modra <amodra@bigpond.net.au>
1140
1141 * calls.c (struct arg_data): Move offset, slot_offset, size and
1142 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
1143 (initialize_argument_information): Adjust call to locate_and_pad_parm.
1144 Delete alignment_pad var. Don't calculate slot_offset here.
1145 (emit_library_call_value_1): Delete alignment_pad, offset and size
1146 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
1147 Adjust call to locate_and_pad_parm. Don't tweak arg size for
1148 partial in-regs here. Formatting fixes.
1149 * expr.h (struct locate_and_pad_arg_data): New struct.
1150 (locate_and_pad_parm): Adjust declaration.
1151 * function.c (assign_parms): Localize vars. Use "locate" instead of
1152 other arg location vars. Don't invoke FUNCTION_ARG or
1153 FUNCTION_INCOMING_ARG unless pretend_named is different from
1154 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
1155 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
1156 Use slot_offset for stack home of reg parms. Correct test for
1157 parm passed in memory. Formatting fixes.
1158 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
1159 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
1160 Correct initial_offset_ptr handling. Localize vars. Always pad
1161 locate->offset even when in_regs.
1162
6060edcb
NS
11632003-05-02 Nathan Sidwell <nathan@codesourcery.com>
1164
1165 * Makefile.in (TREE_H): Replace location.h with input.h.
1166 (GTFILES) Remove location.h
1167 (gt-lists.h): Replace gt-location.h with gt-input.h
1168 * input.h (input_filename, input_line): Remove variables.
1169 (location_s, location_t): Move from location.h.
1170 (input_location): New.
1171 (input_filename, input_line): New #defines.
1172 * location.h: Remove.
1173 * tree.h: Replace location.h with input.h.
1174 (input_filename, input_line): Remove.
1175 * diagnostic.h: Replace location.h with input.h.
1176 * gcc.h (input_filename, input_filename_length): Remove declarations.
1177 * toplev.c (input_filename, input_line): Remove.
1178 (input_location): Define.
1179 (push_srcloc, pop_srcloc): Adjust.
1180 * diagnostic.c (diagnostic_report_current_module): Adjust.
1181
f8000836
NC
11822003-05-02 Nick Clifton <nickc@redhat.com>
1183
1184 * configure.in: Add xstormy16 to list of targets that has a nop
1185 instruction and hence which can be tested to see if the
1186 assembler supports the --gdwarf2 switch.
1187 * configure: Regenerate.
1188
409f52d3 11892003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
87f85ea0
ZW
1190
1191 PR target/8257
1192 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
1193 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
1194 Avoid undefined shifts by making the shift operand unsigned.
1195
57458e8a
DD
11962003-05-01 DJ Delorie <dj@redhat.com>
1197
1198 * reload.c (find_reloads): Also check that all of a multi-reg
1199 value is in the class.
1200
774cb6d1
NS
12012003-05-01 Nathan Sidwell <nathan@codesourcery.com>
1202
1203 * scan.h (lineno): Revert the rename here.
1204
e1a4211d
SS
12052003-05-01 Stan Shebs <shebs@apple.com>
1206
1207 * config/darwin.c (darwin_encode_section_info): Call
1208 default_encode_section_info.
1209
02ca7595
DE
12102003-05-01 David Edelsohn <edelsohn@gnu.org>
1211
1212 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
1213 (movsi_internal1): Use new mfjmpr attribute.
1214 (movhi_internal): Same.
1215 (movqi_internal): Same.
1216 (movcc_internal1): Same.
1217 (movdi_internal64): Same.
1218 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
1219 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
1220 * config/rs6000/40x.md: Add fpu_405.
1221 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
1222 into power4misc automata. Remove extraneous parentheses.
1223 * config/rs6000/440.md: New file.
1224 * config/rs6000/rs6000.c (processor_target_table): Add 440,
1225 440fp. Rename 405f to 405fp.
1226 (function_arg_padding): Correct formatting.
1227 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
1228
3b895f8e
NS
12292003-05-01 Nathan Sidwell <nathan@codesourcery.com>
1230
d479d37f
NS
1231 * input.h (lineno): Rename to ...
1232 (input_line): ... here.
1233 * tree.h (lineno): Rename to ...
1234 (input_line): ... here.
1235 * scan.h (lineno): Rename to ...
1236 (input_line): ... here.
1237 * toplev.c (lineno): Rename to ...
1238 (input_line): ... here.
1239 (push_srcloc, pop_srcloc): Rename lineno to input_line.
1240 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
1241 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
1242 store_parm_decls, c_expand_body_1): Likewise.
1243 * c-errors.c (pedwarn_c99): Likewise.
1244 * c-format.c (status_warning): Likewise.
1245 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
1246 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
1247 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
1248 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
1249 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
1250 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
1251 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
1252 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
1253 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
1254 * coverage.c (create_coverage): Likewise.
1255 * diagnostic.c (pedwarn, sorry, error, fatal_error,
1256 internal_error, warning, diagnostic_report_current_module,
1257 inform): Likewise.
1258 * expr.c (expand_expr): Likewise.
1259 * integrate.c (expand_inline_function,
1260 output_inline_function): Likewise.
1261 * rtl-error.c (file_and_line_for_asm): Likewise.
1262 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
1263 walk_tree): Likewise.
1264 * tree.c (make_node): Likewise.
1265 * ada, cp, f, java, objc, treelang: Likewise.
1266 * objc/objc-act.c (objc_init): Rename lineno to input_line.
1267 (build_module_descriptor, build_selector_translation_table,
1268 build_protocol_template, build_method_prototype_list_template,
1269 build_category_template, build_selector_table,
1270 build_class_template, build_super_template, build_ivar_template,
1271 build_ivar_list_template, build_method_list_template,
1272 build_method_template, add_instance_variable): Likewise.
1273
3b895f8e
NS
1274 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
1275 name from input_filename.
1276
cafe096b
EC
12772003-04-30 Eric Christopher <echristo@redhat.com>
1278 Richard Sandiford <rsandifo@redhat.com>
1279
1280 * configure: Regenerate from patches below.
1281 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
1282 for all symbolic operands.
1283 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
1284 to function.
1285 * config/mips/linux.h: Fix typo.
1286 * Merge from mips-3_4-rewrite branch:
1287
1288 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
1289
87f85ea0
ZW
1290 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
1291 handling local labels when TARGET_ABICALLS.
cafe096b
EC
1292
1293 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
1294
87f85ea0
ZW
1295 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
1296 integer argument.
1297 (mips_expand_call): Likewise.
1298 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
1299 (FIXED_REGISTERS): Clear $31 entry.
1300 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
1301 (EPILOGUE_USES): Define.
1302 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
1303 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
1304 (override_options): Add a 'j' register class.
1305 (mips_expand_call): Handle sibcalls
1306 (mips_expand_epilogue): Handle epilogues for sibcalls.
1307 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
1308 (sibcall_epilogue): New pattern.
1309 (call, call_value): Adjust calls to mips_expand_call.
1310 (sibcall, sibcall_value): New expanders.
1311 (sibcall_internal, sibcall_value_internal): New patterns.
1312 (sibcall_value_multiple_internal): New pattern.
cafe096b
EC
1313
1314 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
1315
87f85ea0
ZW
1316 * config/mips/mips.md (extended_mips16): New attribute.
1317 (define_attr length): Default to 8 if extended_mips16 == yes.
1318 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
1319 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
1320 (call_internal): Set extended_mips16 to yes for direct jumps.
1321 Remove redundant mode attribute.
1322 (call_value_internal, call_value_multiple_internal): Likewise.
1323 (call_split): Remove redundant mode attribute.
1324 (call_value_split, call_value_multiple_split): Likewise.
cafe096b 1325
87f85ea0
ZW
1326 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
1327 of unaligned offsets.
cafe096b
EC
1328
1329 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
87f85ea0 1330 of SYMBOL_GENERAL.
cafe096b
EC
1331
1332 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
1333
87f85ea0
ZW
1334 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
1335 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
1336 for mips16 code.
cafe096b
EC
1337
1338 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
1339
87f85ea0 1340 * config/mips/mips.h (ADDRESS_COST): Define.
cafe096b
EC
1341
1342 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
1343
87f85ea0
ZW
1344 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
1345 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
1346 * config/mips/mips.md: Replace 'R' constraints with 'U'.
cafe096b
EC
1347
1348 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
1349
87f85ea0
ZW
1350 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
1351 of a two-instruction sequence. Add register->memory alternative.
1352 (truncdihi2, truncdiqi2): Likewise.
1353 Rework shift/truncate instructions so that they only handle right
1354 shifts of 32 (or more, in the case of arithmetic shifts).
1355 Add patterns for truncate/sign-extend.
cafe096b
EC
1356
1357 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1358
87f85ea0
ZW
1359 * configure.in (mips*-*-*): Check for explicit relocation support.
1360 * configure: Regenerate.
cafe096b
EC
1361
1362 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1363
87f85ea0
ZW
1364 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
1365 and -mno-explicit-relocs.
1366 (MASK_EXPLICIT_RELOCS): Define.
1367 (TARGET_EXPLICIT_RELOCS): Use it.
1368 (mips_split_addresses): Remove declaration.
1369 * config/mips/mips.c (override_options): Update comment for
1370 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
cafe096b
EC
1371
1372 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1373
87f85ea0
ZW
1374 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
1375 a CONST as identity. Check the return value of gen_lowpart_common.
cafe096b
EC
1376
1377 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1378
87f85ea0
ZW
1379 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
1380 references for TARGET_EXPLICIT_RELOCS.
1381 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
1382 !TARGET_MIPS16.
cafe096b
EC
1383
1384 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1385
87f85ea0
ZW
1386 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
1387 (addsi3): Remove redundant constraints.
1388 (addsi3_internal): Use separate register & constant alternatives.
1389 Use a 'Q' constraint and "addiu" insn for the latter.
1390 (adddi3_internal_3, addsi3_internal_2): Likewise.
cafe096b
EC
1391
1392 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
1393
87f85ea0
ZW
1394 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
1395 (mips_expand_unaligned_store): Declare.
1396 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
1397 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
1398 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
1399 (UNSPEC_ULD, UNSPEC_USD): Remove.
1400 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
1401 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
1402 (extv, extzv): Use mips_expand_unaligned_load.
1403 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
1404 predicate for operand 3.
1405 (movsi_ulw, movsi_usw): Replace with...
1406 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
1407 (movdi_uld, movdi_usd): Likewise replace with...
1408 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
cafe096b
EC
1409
1410 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
1411
87f85ea0
ZW
1412 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
1413 * config/mips/mips.h (LEA_REGS): New register class.
1414 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
1415 (GR_REG_CLASS_P): Include LEA_REGS.
1416 (DANGEROUS_FOR_LA25_P): New macro.
1417 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
1418 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
1419 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
1420 entries to LEA_REGS.
1421 (mips_global_pic_constant_p): New function.
1422 (override_options): Add 'e' register constraint.
1423 (mips_secondary_reload_class): Return LEA_REGS when reloading
1424 a dangerous constant into a class containing $25.
1425 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
1426 (movsi_internal): Likewise.
cafe096b
EC
1427
1428 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
1429
87f85ea0
ZW
1430 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
1431 * config/mips/mips.md (call_split): New insn.
1432 (call_value_split, call_value_multiple_split): New insns.
1433 (call_internal): Turn into a define_insn_and_split. Split the
1434 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
1435 (call_value_internal, call_value_multiple_internal): Likewise.
cafe096b
EC
1436
1437 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
1438
87f85ea0
ZW
1439 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
1440 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
1441 (mips_encode_section_info): Don't take symbol visibility into
1442 account if TARGET_ABICALLS. Add more commentary.
1443 * config/mips/mips.md: Add commentary above reloc constants.
cafe096b
EC
1444
1445 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
1446
87f85ea0
ZW
1447 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
1448 from mips_legitimize_move. Legitimize constant pool references.
1449 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
1450 a REG_EQUAL note to the last instruction.
cafe096b
EC
1451
1452 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
1453
87f85ea0
ZW
1454 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
1455 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
1456 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
1457 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
1458 * config/mips/mips.md (UNSPEC_HIGH): New constant.
1459 (UNSPEC_RELOC_GPREL16): Rename to...
1460 (RELOC_GPREL16): ...this.
1461 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
1462 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
1463 (macro_calls): New attribute.
1464 (length): Use it to set the default length of calls. Don't allow
1465 calls to have delay slots if macro_calls is "yes".
1466 (luisi, luidi): New patterns.
1467 (lowsi, lowdi): Use '%R' to print the relocation.
1468 (lowdi_extend): Remove.
1469 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
1470 (call_internal): Merge alternatives. Always use "jal".
1471 (call_value_internal, call_value_multiple_internal): Likewise.
1472 (reloc_gprel16): Remove.
1473 * config/mips/mips.c (mips_got_alias_set): New variable.
1474 (mips_classify_constant): Handle the new relocation constants.
1475 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
1476 (mips_symbolic_address_p): Return false if generating explicit relocs.
1477 Otherwise allow local PIC symbols to have an offset.
1478 (mips_splittable_symbol_p): New function.
1479 (mips_classify_address): Use it to check whether a LO_SUM is valid.
1480 (mips_const_insns): Always accept HIGH.
1481 (call_insn_operand): Don't accept global symbols if using explicit
1482 relocs.
1483 (move_operand): Don't accept HIGH when generating PIC.
1484 (mips_reloc, mips_lui_reloc): New functions.
1485 (mips_force_temporary): Remove MODE argument. Expect VALUE to
1486 be a valid right-hand-side for a SET pattern.
1487 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
1488 (mips_emit_high): New function.
1489 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
1490 case. Use mips_splittable_symbol_p to check whether a LO_SUM
1491 address should be used. Use mips_emit_high to generate the
1492 high part of such an address. Adjust the global symbol + offset
1493 case to match the change to mips_force_temprorary.
1494 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
1495 If generating explicit-reloc PIC, load the address of global
1496 symbols from the GOT. Use mips_emit_high to emit the high part
1497 of an address.
1498 (mips_simplify_dwarf_addr): New function.
1499 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
1500 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
1501 (mips_expand_call): Load the addresses of global functions using
1502 %call* relocs if generating explicit-reloc PIC. Don't generate
1503 an exception_receiver pattern.
1504 (override_options): Initialize mips_got_alias_set.
1505 (print_relocation): Remove in favour of...
1506 (mips_reloc_string): ...this new function.
1507 (print_operand): Handle '%R'. Use mips_reloc_string.
1508 (print_operand_address): Use print_operand to print the symbolic
1509 part of a LO_SUM address.
1510 (mips_output_function_prologue): Use .cprestore, reverting last patch.
1511 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
1512 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
1513 for local symbols.
cafe096b
EC
1514
1515 2003-02-02 Eric Christopher <echristo@redhat.com>
1516
1517 * config/mips/mips.c (mips_sign_extend): Remove.
87f85ea0
ZW
1518 * config/mips/mips-protos.h: Ditto.
1519 * config/mips/mips.md (movdi_internal2_extend): Remove.
1520 (extendsidi2): Fix mode of convert_memory_address.
cafe096b
EC
1521
1522 2003-01-24 Eric Christopher <echristo@redhat.com>
1523
87f85ea0
ZW
1524 * config/mips/mips.md: Rewrite zero_extend* and extend*
1525 patterns. Use explicit instructions and split after reload
1526 for register extensions.
1527 (ashlsi3_internal1_extend): New combiner pattern for
1528 shift and extend combinations.
1529 * config/mips/mips.h: Change Pmode back to ptr_mode
1530 for performance enhancement.
1531 * combine.c (expand_compound_operation): Make sure
1532 that zero_extend operation is profitable.
cafe096b
EC
1533
1534 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
1535
87f85ea0
ZW
1536 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
1537 addresses depend on ptr_mode rather than Pmode.
1538 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
1539 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
1540 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
1541 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
1542 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
1543 condition for selecting cpaddsi or cpadddi: use cpadd instead.
1544 (tablejump_internal1): Remove condition.
1545 (tablejump_internal2): Change condition to TARGET_64BIT.
1546 (cpaddsi): Rename to...
1547 (cpadd): ...this.
1548 (cpadddi): Remove.
cafe096b
EC
1549
1550 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
1551
87f85ea0
ZW
1552 * config/mips/mips-protos.h (mips16_constant_after_function_p,
1553 mips_address_cost, mips_check_split, double_memory_operand,
1554 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
1555 pic_address_needs_scratch, symbolic_operand): Remove declarations.
1556 (mips_legitimate_address_p): Return bool.
1557 (mips_address_insns, mips_fetch_insns, mips_const_insns,
1558 mips_legitimize_address, mips_legitimize_move,
1559 mips_expand_call): Declare.
1560 (mips_return_addr): Move outside #ifdef RTX_CODE.
1561
1562 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
1563 (PIC_FN_ADDR_REG): New reg_class.
1564 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
1565 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
1566 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
1567 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
1568 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
1569 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
1570 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
1571 (LEGITIMATE_PIC_OPERAND): Undefine.
1572 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
1573 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
1574 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
1575 (FUNCTION_MODE): Change to SImode.
1576 (CONST_COSTS): Use mips_const_insns to calculate the cost of
1577 most constants. Treat const_artih_operands specially if they
1578 occur in a PLUS or MINUS.
1579 (CONSTANT_POOL_COST): New macro.
1580 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
1581 Add LO_SUM handling.
1582 (ADDRESS_COST): Undefine.
1583 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
1584 Add CONST to the list of codes for arith_operand. Add LABEL_REF
1585 to call_insn_operand and remove CONST_INT.
1586
1587 * config/mips/mips.c: Include integrate.h.
1588 (SINGLE_WORD_MODE_P): New macro.
1589 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
1590 (mips_constant_info, mips_address_info): New structs.
1591 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
1592 (mips_classify_constant, mips_classify_symbol,
1593 mips_valid_base_register_p, mips_symbolic_address_p,
1594 mips_classify_address, mips_symbol_insns,
1595 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
1596 mips_fetch_insns, mips_force_temporary, mips_add_offset,
1597 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
1598 mips_print_relocation): New functions.
1599 (const_arith_operand): New operand predicate.
1600 (arith_operand): Use it.
1601 (mips_const_double_ok, mips16_simple_memory_operand,
1602 simple_memory_operand, double_memory_operand, mips_check_split,
1603 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
1604 mips16_gp_offset_p, mips16_output_gp_offset,
cafe096b 1605 mips16_constant_after_function_p, mips16_constant): Remove.
87f85ea0
ZW
1606 (call_insn_operand): Be more fussy about symbolic constants.
1607 Use register_operand.
1608 (move_operand): Use mips_symbolic_address_p to check symbolic
1609 operands and general_operand to check the rest.
1610 (symbolic_operand): Use mips_classify_constant.
1611 (mips_legitimate_address_p): Use mips_classify_address.
1612 (mips_move_1word): Combine handling of symbolic addresses.
1613 Remove special treatment of gp-relative loads for TARGET_MIPS16.
1614 (move_move_2words): Likewise. Assume addresses are offsettable
1615 if they need to refer to more than one word. Add HIGH handling.
1616 (mips_restore_gp): Use ptr_mode for the GP save slot.
1617 (mips_expand_call): New function, combining the old mips.md
1618 call and call_internal define_expands. If the address isn't
1619 a call_insn_operand, force it into a register. For SVR4 PIC,
1620 emit an exception_receiver instruction after the call.
1621 (override_options): Only override flag_pic for TARGET_ABICALLS
1622 if it is currently zero. Allow mips_split_addresses when
1623 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
1624 Add new register class letter, 'c'.
1625 (print_operand): Use mips_classify_constant for constant operands.
1626 (print_operand_address): Use mips_classify_address.
1627 (mips_output_function_prologue): Don't use .cprestore.
1628 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
1629 via the frame pointer if current_function_calls_eh_return.
1630 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
1631 to mark whether a symbol is local or global.
1632 (build_mips16_call_stub): Expect the address of the function rather
1633 than a MEM reference to it. Update call generation sequences.
1634 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
1635 small-data adjustments.
1636
1637 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
1638 length for loads and stores.
1639 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
1640 (define_attr type): Add const and prefetch.
1641 (define_attr length): Use mips_const_insns for const instructions.
1642 Use mips_fetch_insns for load and store instructions.
1643 (define_attr single_insn): New.
1644 (define_attr can_delay): Use it.
1645 (define_attr abicalls): Remove.
1646 (define_delay): Use can_delay. Always allow calls to have delay slots.
1647 (addsi3_internal_2): Add 'Q' constraint.
1648 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
1649 (high): Remove.
1650 (lowsi): Renamed from low.
1651 (lowdi): New pattern.
1652 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
1653 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
1654 (loadgp): Change operand 0 to an immediate_operand.
1655 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
1656 beforehand.
1657 (cpaddsi, cpadddi): New patterns.
1658 (tablejump_internal3, tablejump_internal4): Remove define_expands
1659 and associated define_splits.
1660 (call, call_value): Use mips_expand_call.
1661 (call_internal): New, replacing all existing call_internal* insns.
1662 (call_value_internal): Likewise call_value_internal*.
1663 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
1664 (untyped_call): Remove if (operands[0]) magic.
1665 (prefetch_si_address, prefetch_si): Change type to "prefetch".
1666 (prefetch_di_address, prefetch_di): Likewise.
1667 (leasi, leadi): Remove.
1668 (reloc_gprel16): New.
1669
1670 * config/mips/5400.md (ir_vr54_hilo): Include const type.
1671 * config/mips/5500.md (ir_vr55_hilo): Likewise.
1672 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
cafe096b
EC
1673
1674 2003-01-08 Eric Christopher <echristo@redhat.com>
1675
87f85ea0
ZW
1676 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
1677 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
1678 configure check for libgloss.
1679 * config/mips/elf64.h: Ditto.
1680 * config/mips/mips.c: Remove ABI_MEABI.
1681 * config/mips/mips.h: Ditto.
cafe096b
EC
1682
1683 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
1684
87f85ea0
ZW
1685 Fix merge fallout.
1686 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
1687 (muldi3_internal): Remove outdated comment.
1688 (*muls_di, *umuls_di): Fix comment and 64-bitness.
1689 (*smsac_di, *umsac_di): Likewise. Reformat.
1690 (umulsi3_highpart): Minor formatting tweaks.
1691 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
1692 redundant scratch operand. Minor formatting tweak.
1693 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
1694 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
1695 (smulsi3_highpart): As for the unsigned version.
1696 (smulsi3_highpart_internal): Likewise.
1697 (smulsi3_highpart_mulhi_internal): Likewise.
1698 (smulsi3_highpart_neg_mulhi_internal): Likewise.
1699 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
1700 (*smul_acc_di): Remove duplicated pattern.
1701 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
1702 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
1703 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
cafe096b
EC
1704
1705 2002-10-22 Eric Christopher <echristo@redhat.com>
1706
87f85ea0
ZW
1707 * config/mips/mips-protos.h (mips_return_addr): New.
1708 * config/mips/mips.c (mips_return_addr): New.
1709 (movdi_operand): Remove.
1710 (se_register_operand): Ditto.
1711 (se_reg_or_0_operand): Ditto.
1712 (se_uns_arith_operand): Ditto.
1713 (se_arith_operand): Ditto.
1714 (se_nonmemory_operand): Ditto.
1715 (extend_operator): Ditto.
1716 (highpart_shift_operator): Ditto.
1717 (mips_initial_elimination_offset): Remove return address pointer
1718 elimination.
1719 (mips_reg_names): Remove $ra.
1720 (mips_regno_to_class): Ditto.
1721 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
1722 and TARGET_64BIT.
1723 (POINTER_BOUNDARY): Remove.
1724 (POINTERS_EXTEND_UNSIGNED): Define to 0.
1725 (PROMOTE_MODE): Promote to Pmode.
1726 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
1727 (Pmode): Define to TARGET_64BIT.
1728 (FUNCTION_MODE): Define as Pmode.
1729 (mips_args): Remove deleted functions.
1730 (SIZE_TYPE): Depend on POINTER_SIZE.
1731 (PTRDIFF_TYPE): Ditto.
1732 (FIXED_REGISTERS): Fix extra registers.
1733 (CALL_USED_REGISTERS): Ditto.
1734 (CALL_REALLY_USED_REGISTERS): Ditto.
1735 (RAP_REG_NUM): Remove.
1736 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
1737 (RETURN_ADDR_RTX): Define to mips_return_addr.
1738 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1739 (CAN_ELIMINATE): Ditto.
1740 * config/mips/mips.md: For DImode patterns, take into account
1741 deletions above. Split mulsidi patterns into sign_extend and
1742 zero_extend.
cafe096b
EC
1743
1744 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
87f85ea0
ZW
1745 Michael Meissner <meissner@redhat.com>
1746
1747 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
1748 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
1749 mop up unnecessarly moves through LO.
1750 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
1751 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
1752 change mtlo/macc sequences into mul/add sequences when a three-
1753 address mul is available.
1754 (*macc2): New pattern. Add a define_peephole2 to generate it.
1755 (*mul_sub_si): Fix contraint for operand 5.
1756 (*muls): Use in 32-bit code as well.
1757 (*msac): Likewise. Use msub instead of msac in vr5500 code
1758 if the destination is LO. Remove duplicate define_split.
1759 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
1760 (*msac_di): Likewise. Fix formatting.
1761 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
1762 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
1763 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
1764 (*xmulsi3_neg_highpart_mulhi): Likewise.
1765 (*mul_acc_64bit_di): Remove.
1766 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
cafe096b
EC
1767
1768 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1769
87f85ea0
ZW
1770 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
1771 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
1772 (MULTILIB_DIRNAMES): Remove long32.
1773 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
1774 (MULTILIB_REDUNDANT_DIRS): Remove.
cafe096b
EC
1775
1776 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1777
87f85ea0
ZW
1778 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
1779 * gcc.c (driver_self_specs): New variable.
1780 (do_self_spec): New function.
1781 (main): Use it to process driver_self_specs.
cafe096b
EC
1782
1783 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
1784
87f85ea0
ZW
1785 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
1786 Remove DImode define_split for !TARGET_64BIT.
1787 (anddi3): Remove !TARGET_64BIT support from here as well.
1788 Change operand 2's predicate to se_uns_arith_operand.
1789 Add constant alternatives to define_insn.
1790 (iordi3, xordi3, *nordi3): Likewise.
1791 (anddi3_internal1, xordi3_immed): Remove.
cafe096b
EC
1792
1793 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1794
87f85ea0
ZW
1795 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
1796 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
1797 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
1798 * config/mips/mips.md: Apply same renaming here.
cafe096b
EC
1799
1800 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1801
87f85ea0
ZW
1802 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
1803 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
1804 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
1805 * config/mips/mips.md (define_attr cpu): Remove r4320.
1806 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
cafe096b
EC
1807
1808 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1809
87f85ea0
ZW
1810 * config/mips/mips.c (mips16_strings): New variable.
1811 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
1812 symbol in mips16_strings. Free the list.
1813 (mips_encode_section_info): Keep track of local strings.
cafe096b
EC
1814
1815 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1816
87f85ea0
ZW
1817 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
1818 (sordered_df, sordered_sf): Remove.
1819 * config/mips/mips.c (get_float_compare_codes): New fn.
1820 (gen_int_relational, gen_conditional_move): Use it.
cafe096b
EC
1821
1822 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1823
87f85ea0
ZW
1824 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
1825 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
1826 * config/mips/mips.c (fcc_register_operand): New function.
1827 (mips_emit_fcc_reload): New function, extracted from reload_incc.
1828 (override_options): Allow TFmode values in float registers
1829 if ISA_HAS_8CC.
1830 * cnfig/mips/mips.md (reload_incc): Change destination prediate
1831 to fcc_register_operand. Remove misleading source constraint.
1832 Use mips_emit_fcc_reload.
cafe096b
EC
1833 (reload_outcc): Duplicate reload_incc.
1834
1835
44c8a5f8
DN
18362003-04-30 Diego Novillo <dnovillo@redhat.com>
1837
1838 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
1839
5d638f70
GK
18402003-04-30 Geoffrey Keating <geoffk@apple.com>
1841
1842 * tree-inline.c (inlinable_function_p): Back out last change, it's
1843 unnecessary.
1844
5e26df64
SB
18452003-04-30 Steven Bosscher <steven@gcc.gnu.org>
1846
1847 * ggc-page.c (TREE_EXP_SIZE): Define.
1848 (extra_order_size_table): New entry for expr trees with
1849 two operands.
1850
fba020b1
GDR
18512003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1852
1853 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
1854 (c_expand_start_cond): Adjust.
1855 (c_expand_end_cond): Don't use warning_with_file_and_file.
1856 (shadow_warning): Likewise.
1857
62216ea0
NS
18582003-04-30 Nathan Sidwell <nathan@codesourcery.com>
1859
1860 * tree.h (DECL_POINTER_DEPTH): Remove.
1861 (struct tree_decl): Remove pointer_depth.
cafe096b 1862
d1908feb
JJ
18632003-04-30 Janis Johnson <janis187@us.ibm.com>
1864
1865 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
1866 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
1867 (rs6000_xcoff_encode_section_info): Remove.
1868 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
1869 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
1870 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
1871 Use SYMBOL_REF_FLAGS.
1872 (rs6000_elf_encode_section_info): Call default_encode_section_info for
1873 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
1874 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
1875 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
1876 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
1877 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
1878
0e42348d
GDR
18792003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1880
1881 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
1882
dad78426
AS
18832003-04-30 Andreas Schwab <schwab@suse.de>
1884
1885 * doc/extend.texi (Other Builtins): Enclose multiple word data
1886 type in braces for @deftypefn.
1887
4c80872c
RK
18882003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1889
5826955d
RK
1890 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
1891
4c80872c
RK
1892 * doc/install.texi (--enable-threads): Document "gnat" option.
1893
10256cf5
GDR
18942003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1895
1896 * diagnostic.h (output_formatted_scalar): Tweak.
1897 * diagnostic.c (output_long_decimal): Likewise.
1898 (output_unsigned_decimal): Likewise.
1899 (output_long_unsigned_decimal): Likewise.
1900 (output_octal): Likewise.
1901 (output_long_octal): Likewise.
1902 (output_hexadecimal): Likewise.
1903 (output_long_hexadecimal): Likewise.
1904 (output_pointer): New function.
1905 (output_format): Use it. Recognize "%p" format specifier.
1906
b2a7fa89
ZD
19072003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1908
1909 * function.c (purge_addressof_1): Postpone insn in fewer cases.
1910
a6fdc086
GK
19112003-04-29 Geoffrey Keating <geoffk@apple.com>
1912
505b0fd6
GK
1913 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
1914 call abort() after running out of stack space.
1915
a6fdc086
GK
1916 * c-typeck.c (function_types_compatible_p): Ignore incompatible
1917 'volatile' qualifiers on a function's return type in GNU mode.
1918
9c0631a7
AH
19192003-04-29 Aldy Hernandez <aldyh@redhat.com>
1920
87f85ea0
ZW
1921 * expr.c (emit_group_load): Dump parallels of simd types to
1922 memory.
9c0631a7 1923
74719742
VM
19242003-04-29 Vladimir Makarov <vmakarov@redhat.com>
1925
1926 * genautomata.c (add_vect): Check undefined value for range type
1927 too.
1928
baade80b
PE
19292003-04-29 Phil Edwards <pme@gcc.gnu.org>
1930
1931 * configure.in: More general test for cmp --ignore-initial.
1932 * configure: Regenerate.
1933
84d8756d
RK
19342003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1935
0384674e
RK
1936 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
1937 (layout_decl, place_field): Likewise.
1938 Also make minor type and whitespace changes.
1939
84d8756d
RK
1940 * tree.c (save_expr): Don't fold a COMPONENT_REF.
1941
0219237c
OH
19422003-04-29 Olivier Hainque <hainque@act-europe.fr>
1943
1944 * calls.c (expand_call): When modes of target and valreg match, force
1945 sibcall failure when target is a MEM.
1946
b9538b2e
GK
19472003-04-29 Geoffrey Keating <geoffk@apple.com>
1948
b3d627e2
GK
1949 * tree-inline.c (inlinable_function_p): Don't support inlining
1950 functions using varargs.
1951
f4ddb75b
GK
1952 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
1953
0366359a
GK
1954 * dwarf2out.c (output_call_frame_info): No need to output EH
1955 unwind information if all_throwers_are_sibcalls.
1956
e55614ca
GK
1957 * c-semantics.c (expand_unreachable_stmt): Return a tree.
1958 (expand_stmt): Update for change to expand_unreachable_stmt.
1959 (expand_unreachable_if_stmt): Likewise.
1960
b9538b2e
GK
1961 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
1962
72e940d2
JM
19632003-04-29 Jason Merrill <jason@redhat.com>
1964
1965 PR middle-end/10336
cafe096b 1966 * jump.c (never_reached_warning): Really stop looking if we reach
72e940d2
JM
1967 the beginning of the function.
1968
9193479f
BW
19692003-04-29 Bob Wilson <bob.wilson@acm.org>
1970
1971 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
1972 Remove redundant macros.
1973 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
1974 (LOCAL_LABEL_PREFIX): Define unconditionally.
1975 (NO_DOT_IN_LABEL): Clarify comment.
1976 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
1977 definition to "long int".
1978
b0501ec1
AK
19792003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
1980
1981 bootstrap/10452
1982 * gengtype-yacc.y: Improve portability.
1983
8e720e8b
ZW
19842003-04-29 Zack Weinberg <zack@codesourcery.com>
1985
1986 * config.gcc: Install obsolete target list for GCC 3.3.
1987 * doc/install.texi: Mention in specific-target instructions
1988 that certain configurations are deprecated.
1989
1be3f80f
ZW
19902003-04-29 Zack Weinberg <zack@codesourcery.com>
1991
1992 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
1993
8e854b76
KL
19942003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1995
1996 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
1997 * gcc.c (display_help): Likewise.
1998 * toplev.c (f_options): Likewise.
1999 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
2000 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
2001 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
2002 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
2003 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
2004
267594f3
R
20052003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
2006
2007 * varasm.c (default_assemble_visibility): Use assemble_name.
2008
667b43dd
DB
20092003-04-29 David O'Brien <obrien@FreeBSD.org>
2010
2011 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
5b51b1f5
DB
2012 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
2013 (SIZE_TYPE): New macro.
fbf17dab
DB
2014 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
2015 (SET_ASM_OP): New macro.
2016 (HANDLE_SYSV_PRAGMA): New macro.
2017 (ASM_WEAKEN_LABEL): New macro.
667b43dd 2018
a833faa5
MM
20192003-04-28 Mark Mitchell <mark@codesourcery.com>
2020
2021 PR c++/10180
2022 * tree-inline.c (expand_call_inline): Call push_srcloc when
2023 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
2024
a72bf3e9
MS
20252003-04-28 Mike Stump <mrs@apple.com>
2026
2027 * gdbinit.in: Update to reflect new identifier structure.
2028
0864034e
ZW
20292003-04-28 Zack Weinberg <zack@codesourcery.com>
2030
2031 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
2032 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
2033 struct tree_complex, struct tree_vector): Remove RTL field.
2034 (CONSTRUCTOR_ELTS): Use elt 0.
2035 * tree.def (CONSTRUCTOR): Delete first of its two operands.
2036 * varasm.c (output_constant_def): Remove early exit if
2037 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
2038 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
2039 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
2040 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
2041
9661b15f
JJ
20422003-04-28 Jakub Jelinek <jakub@redhat.com>
2043
2044 * c-decl.c (finish_decl): When prototype with asmspec is found
2045 for built-in, adjust built_in_decls as well as expr.c decls.
2046 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
2047 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
2048 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
2049
8707fe93
RH
20502003-04-28 Richard Henderson <rth@redhat.com>
2051
0864034e
ZW
2052 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
2053 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
2054 integral constant mult operand.
2055 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
2056 (const_smulsi3_highpart_v8plus): Likewise.
2057 (const_smulsi3_highpart): Likewise.
2058 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
2059 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
2060 (const_umulsi3_highpart_v8plus): Likewise.
2061 (const_umulsi3_highpart): Likewise.
8707fe93 2062
ff4cb2e7
DB
20632003-04-28 David O'Brien <obrien@FreeBSD.org>
2064
2065 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
2066 Define as 1.
2067
495d8dd6
DB
20682003-04-28 David O'Brien <obrien@FreeBSD.org>
2069
2070 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
2071
e31603c4
JJ
20722003-04-28 Jakub Jelinek <jakub@redhat.com>
2073
2074 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
2075 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
2076 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
2077 functions.
2078 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
2079
dbe983a8
NC
20802003-04-28 Nick Clifton <nickc@redhat.com>
2081
2082 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
2083
afc6aaab
ZW
20842003-04-27 Zack Weinberg <zack@codesourcery.com>
2085
2086 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
2087 output_constant_def, use its result instead of TREE_CST_RTL (exp).
2088 Can assume it has the form (mem (symbol_ref ".LCxxx")).
2089 (expand_expr <COMPONENT_REF>): Can always just extract the
2090 relevant field of a CONSTRUCTOR.
2091 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
2092 ARRAY_RANGE_REF>): Make control flow explicit.
2093 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
2094 an INTEGER_CST.
2095
860992e6
KH
20962003-04-27 Kazu Hirata <kazu@cs.umass.edu>
2097
2098 * reload1.c (reg_set_luid): Fix a comment typo.
2099
32a61907
ZW
21002003-04-27 Zack Weinberg <zack@codesourcery.com>
2101
2102 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
2103 struct deferred_string, const_str_htab): Kill.
2104 (n_deferred_strings): New static variable.
2105 (build_constant_desc): Set SYMBOL_REF_DECL of the new
2106 symbol_ref to point to the constant.
2107 (output_constant_def): When a deferred string is forced out,
2108 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
2109 (mark_constant): Likewise.
2110 (maybe_output_constant_def_contents): When deferring a string
2111 constant, just set STRING_POOL_ADDRESS_P and increment
2112 n_deferred_strings.
2113 (mark_constant_pool): Check n_deferred_strings, not the size
2114 of const_str_htab.
2115 (init_varasm_once): No need to create const_str_htab.
2116
2117 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
2118 SYMBOL_REF_DECL points to a constant.
2119
293107d1
ZW
21202003-04-26 Zack Weinberg <zack@codesourcery.com>
2121
2122 * varasm.c (output_constant_def): Split out two new static
2123 functions, build_constant_desc and maybe_output_constant_def_contents.
2124 Restructure for comprehensibility. Don't call
2125 output_addressed_constants. Treat defstr being non-NULL for
2126 STRING_POOL_ADDRESS_P constants as an invariant.
2127 (struct deferred_string): Remove labelno field.
2128 (output_constant_def_contents): Kill labelno argument. Call
2129 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
2130 asm_out.internal_label.
2131 (mark_constant): Update call to output_constant_def_contents.
2132 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
2133 constants as an invariant.
2134
12969f45
RH
21352003-04-26 Richard Henderson <rth@redhat.com>
2136
2137 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
2138 (ix86_expand_call, ix86_rtx_consts): Likewise.
2139
5cc2f4f3
KG
21402003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2141
2142 * doc/md.texi (cmpstr): Document additional restrictions.
2143
09b04f2d
NB
21442003-04-26 Neil Booth <neil@daikokuya.co.uk>
2145
2146 * flags.h (time_report): Remove.
2147 * timevar.c (timevar_enable): New.
2148 (TIMEVAR_ENABLE): Remove, use timevar_enable.
2149 (timevar_init): Rename from init_timevar.
2150 * timevar.h (timevar_init): Rename from init_timevar.
2151 * toplev.c (time_report): Make static.
2152 (do_compile): Conditionally call init_timevar first.
2153 (preprocess_options): Move some code to do_compile.
2154
3e35d143
SC
21552003-04-26 Stephane Carrez <stcarrez@nerim.fr>
2156
2157 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
2158
e6dc0cc6
NB
21592003-04-26 Neil Booth <neil@daikokuya.co.uk>
2160
2161 * _cpp_lex_direct: Remove pointless code.
2162
5936c7e7
SC
21632003-04-26 Stephane Carrez <stcarrez@nerim.fr>
2164
2165 * doc/extend.texi (Function Attributes): Document "near" and "far"
2166 for 68HC11 and 68HC12.
2167
85a43a2f
RK
21682003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2169
2170 * expr.c (store_field): When making temporary for store, don't
2171 make it TYPE_QUAL_CONST.
2172
09e4ab56
PE
21732003-04-25 Phil Edwards <pme@gcc.gnu.org>
2174
2175 * toplev.c (read_integral_parameter): Use "argument" in error
2176 message to distinguish it from actual invalid options.
2177
ab409f1b
BW
21782003-04-25 Bob Wilson <bob.wilson@acm.org>
2179
2180 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
2181 addition of __PIC__ and __pic__ macros.
2182 * config/xtensa/xtensa.h: Clean up indentation.
2183
6a2b287f
BW
21842003-04-25 Bob Wilson <bob.wilson@acm.org>
2185
2186 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
2187 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
2188 (SUBTARGET_CPP_SPEC): Define.
2189 (LIB_SPEC): Delete.
2190 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
2191 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
2192 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
2193 Define.
2194 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2195 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
2196
60986d64
L
21972003-04-25 H.J. Lu <hjl@gnu.org>
2198
2199 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
2200 for return mode.
2201 (ia64_expand_builtin): Set rmode to SImode for
2202 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
2203 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
2204 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
2205 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
2206
c7a5cf61
PE
22072003-04-25 Phil Edwards <pme@gcc.gnu.org>
2208
2209 * configure.in (make_compare_target): Test for GNU cmp and set this
2210 variable appropriately.
2211 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
2212 compare4-lean): Rename actual targets to slowcompare*. New compare*
2213 targets depend on names based on make_compare_target.
2214 * configure: Regenerated.
2215
f5bdba44
RH
22162003-04-25 Richard Henderson <rth@redhat.com>
2217
2218 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
2219 to clobber ar.pfs and ar.unat.
2220 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
2221 fix test for spilling ar.pfs to the stack.
2222
22232003-04-25 Richard Henderson <rth@redhat.com>
8f4e6caf 2224
293107d1
ZW
2225 PR opt/10315
2226 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
2227 checks during reload; use validize_mem instead of adjust_address.
8f4e6caf 2228
eda833e3
BE
22292003-04-26 Ben Elliston <bje@wasabisystems.com>
2230
2231 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
2232 return values from recog_memoized().
2233
9feff114
JDA
22342003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2235
2236 PR opt/8705
2237 * gcse.c (try_replace_reg): On a successful substitution of a constant
2238 into a single set, try to simplify the source of the set.
2239 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
2240 constant source.
2241
59325650
NB
22422003-04-24 Neil Booth <neil@daikokuya.co.uk>
2243
2244 * cpplex.c (cpp_token_len): Tighten up.
2245 (cpp_token_as_text): Need extra byte now.
2246 * cpplib.c (glue_header_name): Need extra 2 bytes.
2247 * cppmacro.c (cpp_macro_definition): Need extra byte.
2248
b746b8cb
AK
22492003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
2250
2251 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
293107d1 2252 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
b746b8cb
AK
2253 where they might be not present. Use their _sp64 equivalent
2254 instead.
2255
019238b7
JH
2256Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2257
2258 * i386.md (cvtsi2sdq): Fix typo in previous patch.
293107d1 2259
39f6c4c8
KW
22602003-04-24 Krister Walfridsson <cato@df.lth.se>
2261
2262 * configure.in: Check whether mbstowcs works.
2263 * configure, config.in: Regenerate.
2264 * intl.c: Use HAVE_WORKING_MBSTOWCS.
2265
0c79f08b
L
22662003-04-24 H.J. Lu <hjl@gnu.org>
2267
2268 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
2269 for __sync_bool_compare_and_swap_di for int return type.
2270
2271 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
2272 Change return type to int.
2273 (__sync_bool_compare_and_swap): Likewise.
2274
26f74aa3
JH
2275Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
2276
2277 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
2278 looking for fallthru edge.
2279
2280 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
2281 Fix.
2282 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
2283 athlon-fvector): New.
2284 (athlon_*): Revisit to match new optimization guide.
2285 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
2286 * i386.md (cvt??2?? patterns): Fix modes.
2287 (fistp patterns): Set modes.
2288
2289 Accidentaly commited with my earlier reload patch:
2290 PR c/10308
2291 * reload.c (find_reloads_address_1): Reload plus at the place of
2292 index register.
293107d1 2293
796621e8
NS
22942003-04-24 Nathan Sidwell <nathan@codesourcery.com>
2295
2296 New GCOV_TAG_FUNCTION layout
2297 * coverage.c (struct function_list): Replace name with ident.
2298 (struct counts_entry): Likewise.
2299 (fn_ident): New.
2300 (htab_counts_entry_hash, htab_counts_entry_eq,
2301 htab_counts_entry_del): Adjust.
2302 (reads_count_file, get_coverage_counts,
2303 coverage_begin_output, coverage_end_function): Adjust.
2304 (build_fn_info_type, build_fn_info_value): Likewise.
2305 * gcov-dump.c (tag_function): Adjust.
2306 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
2307 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
2308 * gcov.c (struct function_info): Add ident.
2309 (read_graph_file, read_count_file): Adjust.
2310 * libgcov.c (gcov_exit): Adjust.
2311
6ff76c36
RH
23122003-04-23 Richard Henderson <rth@redhat.com>
2313
2314 PR opt/8300
2315 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
2316 after initialize_uninitialized_subregs; update reg info assuming
2317 new pseudos were created.
2318
6338b358
NB
23192003-04-23 Neil Booth <neil@daikokuya.co.uk>
2320
2321 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
2322 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
2323 (lex_string): Take cpp_string with full spelling.
2324 (cb_ident): Update.
2325 (c_lex): Update diagnostics.
2326 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
2327 (create_literal): New.
2328 (lex_string): Unterminated literals have type CPP_OTHER.
2329 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
2330 for CPP_OTHER.
2331 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
2332 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
2333 * cpplib.c (parse_include, do_line, do_linemarker,
2334 destringize_and_run): Update for token storing full spelling.
2335 * cpplib.h: Update token spelling types.
2336 * cppmacro.c (stringify_arg, check_trad_stringification):
2337 Update for token storing full spelling.
2338
011fd56b
UW
23392003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
2340
2341 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
2342
7052a099
RE
23432003-04-23 Richard Earnshaw <rearnsha@arm.com>
2344
2345 * arm.h (TARGET_OPTIONS): Add value field.
2346
f0ddce84
MM
23472003-04-23 Mark Mitchell <mark@codesourcery.com>
2348
2349 * doc/extend.texi: Remove duplicate 2003 copyright date.
2350
cdb23767
NS
23512003-04-23 Nathan Sidwell <nathan@codesourcery.com>
2352
2353 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
2354 (libgcov.a): Depends on LIBGCC_DEPS.
2355 * basic-block.h (profile_info): Moved here from coverage.h. Made
2356 a pointer.
2357 * coverage.c (struct function_list): Fixed array of counter types.
2358 (struct counts_entry): Keyed by counter type, contains summary.
2359 (profile_info): Moved to profile.c.
2360 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
2361 vars.
2362 (profiler_label): Remove.
2363 (ctr_labels): New.
2364 (set_purpose, label_for_tag, build_counter_section_fields,
2365 build_counter_section_value, build_counter_section_data_fields,
2366 build_counter_section_data_values, build_function_info_fields,
2367 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
2368 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
2369 build_ctr_info_value, build_gcov_info): New.
2370 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
2371 (reads_counts_file): Adjust.
2372 (get_coverage_counts): Takes counter number. Add summary
2373 parameter. Adjust.
2374 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
2375 create counter array labels.
2376 (coverage_end_function): Adjust.
2377 (create_coverage): Adjust.
2378 (find_counters_section): Remove.
2379 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
2380 (struct section_info, struct profile_info): Remove.
2381 (profile_info): Moved to basic-block.h.
2382 (coverage_counter_ref): Takes a counter number.
2383 (get_coverage_counts): Takes a counter number. Added summary
2384 parameter.
2385 (find_counters_section): Remove.
2386 * gcov-dump.c (tag_arc_counts): Rename to ...
2387 (tag_counters): ... here. Adjust.
2388 (tag_table): Move tag_counters to 3rd entry. Remove
2389 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
2390 (dump_file): Check for counter tag values here.
2391 (tag_summary): Adjust.
2392 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
2393 * gcov-io.h (GCOV_LOCKED): New.
2394 (GCOV_TAG_ARC_COUNTS): Rename to ...
2395 (GCOV_TAG_COUNTS_BASE): ... here.
2396 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
2397 Remove.
2398 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
2399 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
2400 GCOV_TAG_IS_COUNTER): New.
2401 (struct gcov_ctr_summary): New.
2402 (struct gcov_summary): Adjust.
2403 (struct gcov_counter_section): Remove.
2404 struct gcov_counter_section_data): Remove.
2405 (struct gcov_function_info): Rename to ...
2406 (struct gcov_fn_info): ... here. Adjust.
2407 (struct gcov_ctr_info): New.
2408 (struct gcov_info): Adjust.
2409 * gcov.c (read_count_file): Adjust.
2410 (output_lines): Adjust.
2411 * libgcov.c (gcov_exit): Adjust.
2412 (__gcov_flush): Adjust.
2413 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
2414 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
2415 probably_never_executed_bb_p, compute_frequency_function): Adjust
2416 profile_info use.
2417 * profile.c (struct counts_entry): Remove.
2418 (profile_info): Define here.
2419 (get_exec_counts): Adjust get_coverage_counts call.
2420 (compute_branch_probablilities): Remove find_counters_section
2421 call.
2422 (gen_edge_profiler): Adjust coverage_counter_ref call.
2423 * tracer.c (tail_duplicate): Adjust profile_info use.
2424
2be3b5ce
RS
24252003-04-23 Roger Sayle <roger@eyesopen.com>
2426
2427 PR optimization/10339
2428 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
2429 directly instead of unsafely transforming call into a memcmp.
2430 (expand_builtin_strncmp): Likewise.
2431
c57ddcf1
RS
24322003-04-22 Roger Sayle <roger@eyesopen.com>
2433
2434 * alias.c (mark_constant_function): Check for constancy and
2435 purity even of void functions. Update both the function decl
2436 and the cgraph RTL info with the results.
2437
c1a19acb
RS
24382003-04-22 Roger Sayle <roger@eyesopen.com>
2439
2440 * real.c (do_add): Change to return a bool indicating that the
2441 result of the operation may be inexact due to loss of precision.
2442 (do_multiply): Likewise.
2443 (do_divide): Likewise.
2444
c2e9147c
GK
24452003-04-22 Geoffrey Keating <geoffk@apple.com>
2446 Loren James Rittle <ljrittle@acm.org>
2447
2448 * dwarf2out.c (fde_table_allocated): Mark with GTY.
2449 (decl_die_table_allocated): Likewise.
2450 (abbrev_die_table_allocated): Likewise.
2451 (line_info_table_allocated): Likewise.
2452 (separate_line_info_table_allocated): Likewise.
2453 (pubname_table_allocated): Likewise.
2454 (arange_table_allocated): Likewise.
2455 (ranges_table_allocated): Likewise.
2456 (decl_die_table_in_use): Unconditionalize; mark with GTY.
2457 (abbrev_die_table_in_use): Likewise.
2458 (line_info_table_in_use): Likewise.
2459 (separate_line_info_table_in_use): Likewise.
2460 (pubname_table_in_use): Likewise.
2461 (arange_table_in_use): Likewise.
2462 (ranges_table_in_use): Likewise.
2463 (have_location_lists): Likewise.
2464 (emitcount): New GTY-marked static, moved...
2465 (maybe_emit_file): ...from here.
2466 (label_num): New GTY-marked static, moved...
2467 (gen_internal_sym): ...from here.
2468
4da2eb6b
RH
24692003-04-22 Richard Henderson <rth@redhat.com>
2470
293107d1
ZW
2471 PR 8866
2472 * rtl.h (MEM_NOTRAP_P): New.
2473 (MEM_COPY_ATTRIBUTES): Copy it.
2474 * rtlanal.c (may_trap_p): Check it.
2475 * expr.c (do_tablejump): Set it.
4da2eb6b
RH
2476 * doc/rtl.texi (Flags): Document it.
2477
293107d1 2478 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
4da2eb6b 2479
c1238896
OH
24802003-04-22 Olivier Hainque <hainque@act-europe.fr>
2481
2482 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
2483 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
2484
6d412a7b
VC
24852003-04-22 Vincent Celier <celier@gnat.com>
2486
293107d1
ZW
2487 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
2488 --enable-threads=gnat.
2489 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
2490 * configure.in: Add gnat to the list of thread packages
2491 * configure: Rebuild.
2492 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6d412a7b 2493
b78f9414
NB
24942003-04-22 Neil Booth <neil@daikokuya.co.uk>
2495
2496 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
f945b4e0
DP
2497
24982003-04-22 Devang Patel <dpatel@apple.com>
2499
b78f9414
NB
2500 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
2501 parameter count.
f945b4e0 2502 (_cpp_copy_replacement_text): Same.
293107d1 2503
1067694a
NB
25042003-04-22 Neil Booth <neil@daikokuya.co.uk>
2505
2506 * c-lex.c (c_lex): Handle CPP_OTHER differently.
2507 * cppexp.c (_cpp_parse_expr): Similarly.
2508 * cpplex.c (SPELL_CHAR): Remove.
2509 (_cpp_lex_direct): Stray chars are saved as byte strings.
2510 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
2511 handle SPELL_CHAR.
2512 (cpp_avoid_paste): Update handling of CPP_OTHER.
2513 * cpplib.h: Spell CPP_OTHER like a number.
2514 (struct cpp_token): Remove member c.
2515 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
2516
77c915d8
DT
25172003-04-22 David Turner <novalis@gnu.org>
2518
2519 * gbl-ctors.h: Add special license exception.
2520 * libgcc2.h: Likewise.
2521 * tsystem.h: Likewise.
2522 * gcov-io.h: Likewise.
2523
85e50b6b
DE
25242003-04-22 David Edelsohn <edelsohn@gnu.org>
2525
2526 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
2527 macro defaulting to original BRANCH_COST heuristic.
2528 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
2529
2530 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
2531
00c060a4
AH
25322003-04-22 Aldy Hernandez <aldyh@redhat.com>
2533
293107d1 2534 * config/rs6000/t-spe: Merge in t-fprules into file.
00c060a4 2535
293107d1 2536 * config.gcc: Add t-spe to powerpc-eabispe.
00c060a4 2537
e4d72771
KJ
25382003-04-22 Kean Johnston <jkj@sco.com>
2539
2540 * tlink.c (recompile_files): Add missing '=' to putenv calls
2541
ad27e65a
NS
25422003-04-22 Nathan Sidwell <nathan@codesourcery.com>
2543
2544 * ginclude/stddef.h: Provide C++ safe offsetof.
2545
277b3b18
R
25462003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
2547
2548 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
2549 for reg notes, if there are no substitutions, just use a SUBREG.
2550
b2dd096b
MM
25512003-04-21 Mark Mitchell <mark@codesourcery.com>
2552
2553 * Makefile.in (calls.o): Depend on except.h.
2554 * calls.c: Include except.h.
2555 (emit_call_1): Call note_eh_region_may_contain_throw if
2556 appropriate.
2557 * except.c (eh_region): Add may_contain_throw.
2558 (expand_eh_region_end_cleanup): Do not include handler code when
2559 it cannot be reached.
2560 (note_eh_region_may_contain_throw): New function.
2561 * except.h (note_eh_region_may_contain_throw): New function.
2562
bfc6c67e
MM
25632003-04-21 Mark Mitchell <mark@codesourcery.com>
2564
2565 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
2566 changes.
2567
95b1c7b6
AH
25682003-04-21 Aldy Hernandez <aldyh@redhat.com>
2569
293107d1
ZW
2570 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
2571 64-bit long doubles.
95b1c7b6 2572
6a48df45
OH
25732003-04-21 Olivier Hainque <hainque@act-europe.fr>
2574
3cd58fd7
OH
2575 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
2576 a number of conversions required for type consistency and previously
2577 stripped off by STRIP_NOPS.
2578
6a48df45
OH
2579 * calls.c (expand_call): Prevent sibcall optimization for calls to
2580 nested subprograms.
2581
0d2f38ee 2582 * expmed.c (extract_bit_field): Reverse operands of && condition to
293107d1 2583 prevent a potential division by zero in the previously first branch.
0d2f38ee
OH
2584 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
2585
c3cdeef4
JB
25862003-04-21 Joel Brobecker <brobecker@gnat.com>
2587
2588 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
2589 (subrange_type_die): Likewise.
2590 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
2591 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
2592
ca29da43
NS
25932003-04-21 Nathan Sidwell <nathan@codesourcery.com>
2594
293107d1
ZW
2595 Break out coverage routines to new file.
2596 * Makefile.in (COVERAGE_H): New variable
2597 (C_OBJS): Add coverage.o
2598 (coverage.o): New target.
2599 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
2600 dependencies.
2601 (GTFILES): Adjust.
2602 (gt-coverage.h): New target.
2603 (gt-profile.h): Remove.
2604 * profile.h: Remove. Move to ...
2605 * coverage.h: ... here. New. #include gcov-io.h.
2606 * gcov-io.h: Move function definitions to ...
2607 * gcov-io.c: ... here. New.
2608 * profile.c: Move coverage routines to coverage.c.
2609 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
2610 end_branch_prob): Adjust.
2611 * coverage.c: New. Coverage routines from profile.c
2612 (coverage_counter_ref, coverage_init, coverage_finish,
2613 coverage_end_function, coverage_begin_output,
2614 coverage_counter_ref, get_coverage_counts): Define.
2615 * gcov-dump.c, gcov.c: #include gcov-io.c.
2616 * libgcov.c: Likewise. Adjust.
2617 * loop-init.c: Don't #include profile.h
2618 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
2619 * rtl.h: Add coverage prototypes.
2620 * toplev.c (compile_file): Init coverage, not branch_prob.
2621 Always call coverage_finish.
2622 (rest_of_compilation): Call coverage_end_function.
ca29da43 2623
1774b213 26242003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
dd0fbae2
MK
2625
2626 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
2627
74eb4b3e
NB
26282003-04-21 Neil Booth <neil@daikokuya.co.uk>
2629
2630 * c-ppoutput.c (cb_include): Don't take a cpp_token.
2631 * cppfiles.c: Don't undef strcmp.
2632 (find_include_file): Don't take a cpp_token. Check for empty
2633 file names.
2634 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
2635 (cpp_push_include): Simplify.
2636 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
2637 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
2638 (parse_include): Similary. Don't check for zero-length filenames.
2639 (do_include_common, do_pragma_dependency): Update accordingly.
2640 * cpplib.h (struct cpp_callbacks): Change prototype of include.
2641
337f4314 26422003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
293107d1 2643
9e91ce11
RK
2644 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
2645 details of conflict handling.
293107d1 2646
26b84487
RK
2647 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
2648 when conversion overflows.
2649
1a96dc46
RK
2650 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
2651
337f4314
RK
2652 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
2653 before clearing.
2654
3819b963
MM
26552003-04-21 Mark Mitchell <mark@codesourcery.com>
2656
2657 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
2658 have the same form as the old RTL.
2659
0e7a8c4b
AJ
26602003-04-21 Andreas Jaeger <aj@suse.de>
2661
293107d1 2662 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
0e7a8c4b 2663
b39b8084
CL
26642003-04-20 Chris Lattner <sabre@nondot.org>
2665 Zack Weinberg <zack@codesourcery.com>
2666
2667 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
2668 genrtl_cleanup_stmt. Correct comment at head of
2669 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
2670
2671 * stmt.c (struct nesting): Kill n_function_calls.
2672 (expand_start_bindings): Don't set
2673 thisblock->data.block.n_function_calls.
2674 (expand_end_bindings): Compare function_call_count against 0.
2675 (expand_cleanups): Kill DONT_DO argument; all callers passed
2676 NULL_TREE. All callers updated to match.
2677
b20cbca2
ZW
26782003-04-20 Zack Weinberg <zack@codesourcery.com>
2679
2680 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
2681 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
2682 (output_constant_def): Remove code predicated on
2683 defer_addressed_constants_flag.
2684
2685 * output.h: Remove prototypes of deleted functions.
2686 * c-typeck.c (constructor_subconstants_deferred): Kill.
2687 (struct initializer_stack): Remove 'deferred' field.
2688 (start_init): Remove all references to the above.
2689 (finish_init): Likewise. Also remove never-executed call to
2690 output_deferred_addressed_constants. Pull assignment to
2691 defstr out of if expression.
2692
41c32c98
NB
26932003-04-20 Neil Booth <neil@daikokuya.co.uk>
2694
2695 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
2696 NOTE_NEWLINE): Remove.
2697 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
2698 to handle new form of line note type.
2699
c6a2438a
ZW
27002003-04-20 Zack Weinberg <zack@codesourcery.com>
2701
2702 * target.h (encode_section_info): Add new argument carrying
2703 the RTL to be modified by the hook.
2704
2705 * varasm.c (make_decl_rtl, output_constant_def): Update calls
2706 to encode_section_info.
2707 (default_encode_section_info): Take and use RTL argument,
2708 don't use TREE_CST_RTL or DECL_RTL.
2709 * output.h: Update prototype of default_encode_section_info.
2710 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
2711 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
2712 Update calls to encode_section_info.
2713
2714 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
2715 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
2716 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
2717 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
2718 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
2719 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
2720 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
2721 except for PE dllimport/dllexport. Update calls to
2722 default_encode_section_info.
2723
2724 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
2725 Update prototypes.
2726
2727 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
2728
8c7d377f
JDA
27292003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2730
2731 PR/8705
2732 * pa.md (movccfp): New expander.
2733 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
2734 Reverse fcmp conditions.
2735
1052bb09
MM
27362003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
2737
2738 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
2739 of operand 1 correctly.
2740
299f79b5
NS
27412003-04-20 Nathan Sidwell <nathan@codesourcery.com>
2742
2743 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
2744 * gcov.c (output_lines): Don't be so fussy about going past EOF.
2745
1613e52b
NB
27462003-04-20 Neil Booth <neil@daikokuya.co.uk>
2747
2748 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
2749 (cppcharset.o): New target.
2750 * c-lex.c (is_extended_char): Move to cppcharset.c.
2751 (utf8_extend_token): Delete.
2752 * cppcharset.c: New file.
2753 * cpphash.h (_cpp_valid_ucn): New.
2754 * cpplex.c (lex_identifier): Update prototype.
2755 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
2756 escapes.
2757 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
2758 in cppcharset.c.
2759 (lex_number, lex_identifier, cpp_parse_escape): Update.
2760 (_cpp_lex_direct): Update to handle UCNs.
2761 (cpp_avoid_paste): Don't paste to form a UCN.
2762
0a45ec5c
RS
27632003-04-19 Roger Sayle <roger@eyesopen.com>
2764
2765 * builtins.c (expand_builtin): Don't expand a pure or const
2766 built-in function if the result will be ignored and none of
2767 its arguments are volatile.
2768
16477cc5
KJ
27692003-04-19 Kean Johnston <jkj@sco.com>
2770
2771 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
2772 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
2773 target fragment now: t-sco5; dont compile crti.o.
2774 * config/i386/sco5.h: major overhaul to remove all COFF remnants
2775 and to use elfos.h for most definitions.
2776 (BSS_SECTION_ASM_OP): set correct segment attributes.
2777 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
2778 (DWARF2_UNWIND_INFO): Always set to 1.
2779 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
2780 (MD_STARTFILE_PREFIX_1): Define.
2781 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
2782 (DEFAULT_LINKER): Define if not specified to configure.
2783 (CTORS_SECTION_ASM_OP): Remove COFF crud.
2784 (DTORS_SECTION_ASM_OP): Remove COFF crud.
2785 (WINT_TYPE): Define.
2786 (SDB_DEBUGGING_INFO): Remove.
2787 (EXTRA_SECTIONS): Likewise.
2788 (EXTRA_SECTION_FUNCTIONS): Likewise.
2789 (CTOR_LIST_BEGIN): Likewise.
2790 (CTOR_LIST_END): Likewise.
2791 (INIT_SECTION_FUNCTION): Likewise.
2792 (FINI_SECTION_FUNCTION): Likewise.
2793 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
2794 (LOCAL_LABEL_PREFIX): Likewise.
2795 (NON_SAVING_SETJMP): Likewise.
2796 (RETURN_POPS_ARGS): Likewise.
2797 (ASM_OUTPUT_SKIP): Likewise.
2798 (TARGET_ASM_NAMED_SECTION): Likewise.
2799 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2800 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2801 (ASM_OUTPUT_IDENT): Likewise.
2802 (ASM_OUTPUT_CASE_LABEL): Likewise.
2803 (ASM_OUTPUT_ASCII): Likewise.
2804 (ASM_OUTPUT_LIMITED_STRING): Likewise.
2805 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2806 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2807 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2808 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2809 (ASM_DECLARE_OBJECT_NAME): Likewise.
2810 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
2811 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2812 (ASM_DECLARE_RESULT): Likewise.
2813 (ASM_WEAKEN_LABEL): Likewise.
2814 (SUPPORTS_WEAK): Likewise.
2815 (APPLY_RESULT_SIZE): Likewise.
2816 (LPREFIX): Likewise.
2817 (ALIGN_ASM_OP): Likewise.
2818 (ASCII_DATA_ASM_OP): Likewise.
2819 (IDENT_ASM_OP): Likewise.
2820 (ASM_SHORT): Likewise.
2821 (ASM_LONG): Likewise.
2822 (TYPE_ASM_OP): Likewise.
2823 (SIZE_ASM_OP): Likewise.
2824 (STRING_ASM_OP): Likewise.
2825 (SKIP_ASM_OP): Likewise.
2826 (EH_FRAME_SECTION_ASM_OP): Likewise.
2827 (READONLY_DATA_SECTION_ASM_OP): Likewise.
2828 (INIT_SECTION_ASM_OP): Likewise.
2829 (FINI_SECTION_ASM_OP): Likewise.
2830 (TEXT_SECTION_ASM_OP): Likewise.
2831 (DATA_SECTION_ASM_OP): Likewise.
2832 (TYPE_OPERANT_FORMAT): Likewise.
2833 (ASM_SPEC): Remove COFF code.
2834 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
2835 cause -pg to emit an error; use pcrt1elf.o with -pp
2836 (ENDFILE_SPEC): Likewise.
2837 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
2838 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
2839 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
2840 add -z alt_resolve to support weak symbols the way GCC wants them.
2841 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
2842 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
2843 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
2844 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
2845 (CRTSTUFF_T_CFLAGS_S): Define.
2846 (MULTILIB_OPTIONS): Likewise.
2847 (MULTILIB_DIRNAMES): Likewise.
2848 (MULTILIB_MATCHES): Likewise.
2849 (MULTILIB_EXTRA_OPTS): Likewise.
2850 (LIBGCC): Likewise.
2851 (INSTALL_LIBGCC): Likewise.
2852 (crti.o): Remove.
2853 * config/i386/t-sco5gas: Remove.
2854 * doc/install.texi: Updated for new OpenServer instructions.
2855 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
2856
de0656cf
KJ
28572003-04-19 Kean Johnston <jkj@sco.com>
2858
2859 * fixinc/check.tpl: Allow user to over-ride diff program.
2860 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
2861 (sco_math): Added test for SCO math header files.
2862 (sco_regset): Added check for conflicts with ieeefp.h.
2863 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
2864 * fixinc/fixincl.x: Regenerated
2865 * fixinc/tests/base/math.h: Added sco_math tests.
2866 * fixinc/tests/base/string.h: New file.
2867 * fixinc/tests/base/sys/regset.h: New file.
2868
6f572ac2
NB
28692003-04-19 Neil Booth <neil@daikokuya.co.uk>
2870
2871 * cpphash.h (struct cpp_buffer): Remove backup_to.
2872 * cpplex.c (BACKUP, get_effective_char): Die.
2873 (_cpp_skip_block_comment): Assume '*' is location on entry.
2874 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
2875 (IF_NEXT_IS): Update.
2876 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
2877
ced2ad76
MK
28782003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
2879
2880 * README.Portability: Move to a new section and obsolete K+R
2881 portability issues.
2882
07015444
JH
2883Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
2884
2885 * rtlanal.c (subreg_offset_representable_p): Fix call of
2886 subreg_lowpart.
2887
bced6edf
NB
28882003-04-19 Neil Booth <neil@daikokuya.co.uk>
2889
2890 * cpphash.h (struct cpp_reader): New member warned_dollar.
2891 * cpplex.c (continues_identifier_p): New function.
2892 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
2893 lex_number and lex_string, and simplify.
2894 (parse_slow, unescaped_terminator_p): Die.
2895 (_cpp_lex_direct): Update.
2896
a259f218
RK
28972003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2898
2899 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
2900
8555daff
NS
29012003-04-19 Nathan Sidwell <nathan@codesourcery.com>
2902
2903 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
2904 fork behaviour.
2905
4e1f0f8e
NB
29062003-04-19 Neil Booth <neil@daikokuya.co.uk>
2907
2908 * cppexp.c (eval_token): Permit true and false even if pedantic.
2909
bf805def
NB
29102003-04-19 Neil Booth <neil@daikokuya.co.uk>
2911
2912 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
2913
26aea073
NB
29142003-04-19 Neil Booth <neil@daikokuya.co.uk>
2915
2916 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
2917 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
2918 (struct include_file): Remove fefcnt, mapped members.
2919 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
2920 (read_include_file): Don't use mmap, terminate buffers in '\r'.
2921 (purge_cache): Don't use munmap.
2922 * cpphash.h (CPP_BUF_COLUMN): Update.
2923 (lexer_state): Remove lexing_comment.
2924 (struct _cpp_line_note): New.
2925 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
2926 next_line and need_line. Remove col_adjust and saved_flags.
2927 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
2928 _cpp_skip_block_comment, scan_out_logical_line): New.
2929 (_cpp_init_mbchar): Remove.
2930 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
2931 (cpp_read_main_file): Set line to 1 earlier.
2932 (post_options): -traditional-cpp doesn't want trigraphs.
2933 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
2934 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
2935 _cpp_get_fresh_line): New.
2936 (handle_newline, skip_escaped_newlines, trigraph_p,
2937 continue_after_nul, _cpp_init_mbchar): Remove.
2938 (get_effective_char): Update.
2939 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
2940 (skip_line_comment): Simplify.
2941 (skip_whitespace, parse_identifier, parse_slow, parse_number,
2942 parse_string): Update.
2943 (cpp_lex_direct): Use clean lines and process line notes. Update.
2944 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
2945 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
2946 directly.
2947 (_cpp_handle_directive): Don't set saved_flags.
2948 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
2949 cpp_undef, handle_assertion, cpp_push_buffer): Update.
2950 (_cpp_pop_buffer): Free notes.
2951 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
2952 * cpppch.c (cpp_read_state): \n terminate buffer.
2953 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
2954 (copy_comment): Use _cpp_skip_block_comment.
2955 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
2956 Simplify.
2957 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
2958 save_replacement_text): Update.
2959 (scan_out_logical_line): Update to use clean lines and process
2960 line notes.
2961 * fix-header.c (read_scan_file): Update.
2962
7008a11b
DR
29632003-04-18 Douglas B Rupp <rupp@gnat.com>
2964
2965 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
2966 null begin parameter (as well as pointer to null).
2967 (__deregister_frame_info_bases): Likewise.
2968
21102f25
RK
29692003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2970
34d21fe3
RK
2971 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
2972 hard or virtual register and copy into pseudo if replacement fails.
2973
2974 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
dd4ff203 2975
21102f25
RK
2976 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
2977
e59baa1f
OH
29782003-04-18 Olivier Hainque <hainque@act-europe.fr>
2979
38afb23f
OH
2980 * calls.c (expand_call): Move special case for constructor calls
2981 to right place. Ensures constructor calls used to initialize
c6a2438a 2982 arguments get a clean outgoing argument block for themselves.
38afb23f
OH
2983 Move check for stack deallocation completeness until after last
2984 deallocation. Add stack_pointer_delta to set of state
2985 variables saved and restored along with current stack_level.
c6a2438a
ZW
2986
2987 * integrate.c (expand_inline_function): Ensure non-const actuals
2988 don't end up const in the caller's flow after conversion to possibly
2989 const formal type.
e59baa1f 2990
8dcea3f3
VC
29912003-04-18 Vincent Celier <celier@gnat.com>
2992
c6a2438a
ZW
2993 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
2994 and *_DIV_EXPR as TRUNC_*_EXPR.
8dcea3f3 2995
3e378f14
MM
29962003-04-18 Mark Mitchell <mark@codesourcery.com>
2997
2998 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
2999 for orphaned jump tables.
3000
1b0d0e84
KH
30012003-04-18 Kazu Hirata <kazu@cs.umass.edu>
3002
3003 * reload1.c: Revert my previous patch on 2002-04-17.
3004
906042f5
GP
30052003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3006
3007 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
3008 Add Segher Boessenkool.
3009
38a31425
AS
30102003-04-18 Alexander Sotirov <sluncho@mirizma.org>
3011
3012 PR c/9177
3013 * c-decl.c (c_expand_body): Don't garbage collect the function
3014 body if we are going to dump it later.
3015
59c60a98
RH
30162003-04-18 Richard Henderson <rth@redhat.com>
3017
3018 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
3019 (alpha_end_function): Don't set them.
3020 (decl_in_text_section): Remove.
3021 (alpha_encode_section_info): Remove.
3022 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
3023 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
3024 sections, rather than decl_in_text_section results.
3025
c553b702
RS
30262003-04-18 Roger Sayle <roger@eyesopen.com>
3027
3028 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
3029 and SIGN_EXTRACT.
3030
6a29edea
EB
30312003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3032
3033 PR optimization/7675
3034 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
3035 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
3036 nested functions if they refer to declarations from parent functions.
3037 * stmt.c (expand_decl): Don't put automatic variables in registers
3038 if the DECL_NONLOCAL flag is set.
3039
4d3eb89a
HPN
30402003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3041
3042 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
3043 consider those to be movable where the source matches
3044 want_to_gcse_p.
3045 (update_ld_motion_stores): In comment, refer to
3046 compute_ld_motion_mems for validity of replacement.
3047
04c5580f
JH
3048Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3049
d101590b 3050 * gcov-dump.c (tag_summary): Remove max_sum
ca29da43
NS
3051 * gcov-io.h (gcov_summary, gcov_write_summary,
3052 gcov_read_summary): Kill max_sum.
3053 * libgcov.c (gcov_exit): Do one pass over the data. Make error
3054 message more verbose.
3055
3056 * emit-rtl.c (subreg_hard_regno): Check that register is
3057 representable.
293107d1 3058
04c5580f
JH
3059 * reload.c (reload_inner_reg_of_subreg): When register is not
3060 representable, reload the whole thing.
3061 (find_reloads): Likewsie.
3062 * rtlanal.c (subreg_representable_p): New function.
3063
3064 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
3065 allow negative probabilities for edges from the call to exit.
ca29da43
NS
3066 (branch_prob): Do not add fake edges for functions that may return
3067 twice.
04c5580f 3068
c409ea0d
DD
30692003-04-17 DJ Delorie <dj@redhat.com>
3070
3071 * toplev.c (target_options): Add value field.
3072 (set_target_switch): Handle target options with values.
3073 * doc/tm.texi: Document how fixed vs variable target
3074 options work.
3075 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3076 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
3077 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3078 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
3079 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
3080 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
3081 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
3082 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
3083 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
3084 Add value initializer to target options.
3085
36801818
LR
30862003-04-07 Loren James Rittle <ljrittle@acm.org>
3087
3088 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
3089
a211395b
KH
30902003-04-17 Kazu Hirata <kazu@cs.umass.edu>
3091
3092 * reload1.c (move2add_last_cc0): New.
3093 (reload_cse_move2add): Detect implicit sets.
3094 (move2add_note_store): Notice a store into cc0.
3095
220a35cc
RS
30962003-04-17 Roger Sayle <roger@eyesopen.com>
3097
3098 PR c/10375
3099 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
3100 function attributes.
3101
7ed0620a 31022003-04-17 Janis Johnson <janis187@us.ibm.com>
46b2356d
JJ
3103
3104 * doc/sourcebuild.texi (Test Suites): Document support for testing
3105 binary compatibility (moved from testsuite/README.compat).
3106
3907500b
RH
31072003-04-17 Richard Henderson <rth@redhat.com>
3108
3109 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
3110
d22b2e54
SL
31112003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
3112
c6a2438a
ZW
3113 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
3114 the one provided by the FSF.
d22b2e54 3115
616de62f
GP
31162003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3117
3118 * doc/install.texi (Binaries): Update URL and list of platforms
3119 provided by ftp.thewrittenword.com.
3120
f2dd0c42
RH
31212003-04-17 Richard Henderson <rth@redhat.com>
3122
3123 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
3124 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
3125 * config/xtensa/xtensa.md (call, call_value): Likewise.
3126
50d1ff6a
RH
31272003-04-17 Richard Henderson <rth@redhat.com>
3128
3129 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
3130 (print_operand_address): Likewise.
3131 (ep_memory_operand): Likewise.
3132 (special_symbolref_operand): Likewise.
3133 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
3134 (v850_encode_section_info): Call default_encode_section_info.
3135 (v850_strip_name_encoding): Remove.
3136 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
3137 (ASM_OUTPUT_LABELREF): Remove.
3138 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
3139 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
3140 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
3141 (ENCODED_NAME_P): Remove.
3142 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
3143 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
3144 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
3145
e7d687bb
RH
31462003-04-17 Richard Henderson <rth@redhat.com>
3147
3148 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
3149 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
3150 SYMBOL_REF_FUNCTION_P.
3151
72628c61
RH
31522003-04-17 Richard Henderson <rth@redhat.com>
3153
3154 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
3155 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
3156 (text_segment_operand): Likewise.
3157
675ff4c7
RH
31582003-04-17 Richard Henderson <rth@redhat.com>
3159
3160 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
3161 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3162 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
3163 (sh_encode_section_info): Remove.
3164 (sh_strip_name_encoding): Remove.
3165 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
3166 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
3167 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
3168 (ASM_OUTPUT_LABELREF): Remove.
3169 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
3170 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
3171
114278e7
RH
31722003-04-17 Richard Henderson <rth@redhat.com>
3173
3174 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
3175 (tls_model_chars): Remove.
3176 (larl_operand): Use SYMBOL_REF_FLAGS.
3177 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
c6a2438a 3178 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
114278e7
RH
3179 (s390_output_mi_thunk): Likewise.
3180 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
3181 (s390_function_profiler): Likewise.
3182 (s390_encode_section_info): Use default_encode_section_info
3183 and SYMBOL_FLAG_ALIGN1.
3184 (s390_strip_name_encoding): Remove.
3185 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
3186 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
3187 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
3188
e95ef187
RH
31892003-04-17 Richard Henderson <rth@redhat.com>
3190
3191 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
3192 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
3193 (print_operand_address): Likewise.
3194
3195 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
3196 * config/ns32k/ns32k.c (expand_block_move): Don't check
3197 flag_unroll_loops.
3198
6cd4a764
RH
31992003-04-17 Richard Henderson <rth@redhat.com>
3200
3201 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
3202 SYMBOL_REF_FLAG.
3203
89e6b702
RH
32042003-04-17 Richard Henderson <rth@redhat.com>
3205
3206 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
3207
3208 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
3209 (SYMBOL_REF_MODEL): New.
3210 (LIT_NAME_P): Move from m32r.h.
3211 (m32r_select_section): Remove.
3212 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
3213 (m32r_strip_name_encoding): Remove.
3214 (m32r_in_small_data_p): New.
3215 (small_data_operand): Use SYMBOL_REF_SMALL_P.
3216 (addr24_operand): Use SYMBOL_REF_MODEL.
3217 (call26_operand): Likewise.
3218 (addr32_operand): Tidy.
3219 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
3220 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
3221 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
3222 (READONLY_DATA_SECTION_ASM_OP): Remove.
3223 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3224 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
3225 (TARGET_ASM_SELECT_SECTION): Remove.
3226 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
3227 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
3228 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
3229 (ASM_OUTPUT_LABELREF): Remove.
3230
ec94fc00
RH
32312003-04-17 Richard Henderson <rth@redhat.com>
3232
3233 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
3234 (encode_section_info): Remove.
3235 * config/ip2k/ip2k-protos.h: Update.
3236
1b8135a4
RH
32372003-04-17 Richard Henderson <rth@redhat.com>
3238
c6a2438a 3239 * varasm.c (default_encode_section_info): Don't set
1b8135a4
RH
3240 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
3241 * config/i370/i370.c (i370_encode_section_info): Remove.
3242 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
3243 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
3244 * config/i370/i370.md (movsi): Likewise.
3245
3246 * config/i370/t-i370: Add missing backslash.
3247
6d7fe8b3
EB
32482003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3249
3250 * doc/invoke.texi (inline-limit): Fix pasto.
3251
dc66a1c4
RH
32522003-04-17 Richard Henderson <rth@redhat.com>
3253
3254 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
3255 (small_call_insn_operand): Use it.
3256 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
3257 (h8300_eightbit_constant_address_p): Use it.
3258 (SYMBOL_FLAG_TINY_DATA): New.
3259 (h8300_tiny_constant_address_p): Use it.
3260 (h8300_encode_label, h8300_strip_name_encoding): Remove.
3261 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
3262 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
3263 (ASM_OUTPUT_LABELREF): Remove.
3264
90a63880
RH
32652003-04-16 Richard Henderson <rth@redhat.com>
3266
0f6e5d45
RH
3267 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
3268 all users with SYMBOL_REF_SMALL_P.
3269 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
3270 (frv_encode_section_info): Remove.
3271 (frv_strip_name_encoding): Remove.
3272 (frv_in_small_data_p): Merge tests from encode_section_info.
3273 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
3274 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
3275 (SDATA_NAME_P): Remove.
3276 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
3277 (ASM_OUTPUT_LABELREF): Remove.
3278 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
3279
90a63880
RH
3280 * config/frv/frv.c (frv_asm_out_constructor): New.
3281 (frv_asm_out_destructor): New.
3282 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
3283 (DTORS_SECTION_ASM_OP): New.
3284 (ASM_OUTPUT_CONSTRUCTOR): Remove.
3285 (ASM_OUTPUT_DESTRUCTOR): Remove.
3286
5c93e01b
RH
32872003-04-16 Richard Henderson <rth@redhat.com>
3288
3289 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
3290 SYMBOL_REF_LOCAL_P; abort if not pic.
3291 (cris_encode_section_info): Remove.
3292
11467df2
RH
32932003-04-16 Richard Henderson <rth@redhat.com>
3294
3295 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
3296 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
3297
3298 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
3299 flag_inline_trees.
3300
74b66b3c
RH
33012003-04-16 Richard Henderson <rth@redhat.com>
3302
3303 * config/avr/avr.c (avr_encode_section_info): Remove.
3304 (avr_insert_attributes): New.
3305 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
3306 (avr_assemble_integer): Likewise.
3307
8cbd5ce0
RH
33082003-04-16 Richard Henderson <rth@redhat.com>
3309
3310 * arc.c (arc_encode_section_info): Remove.
c6a2438a 3311 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
8cbd5ce0
RH
3312 (arc_print_operand, arc_print_operand_address): Likewise.
3313 * arc.h (EXTRA_CONSTRAINT): Likewise.
3314
96c6931d
RS
33152003-04-16 Roger Sayle <roger@eyesopen.com>
3316
3317 * c-semantics.c (find_reachable_label): New function to find a
3318 potentially reachable label in an expression.
3319 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
3320 assumes the start of the IF_STMT is unreachable (dead) code.
3321 (expand_unreachable_stmt): Similar to expand_stmt but assumes
3322 the start of the statement list is unreachable (dead) code.
3323 (genrtl_if_stmt): If the controlling expression of the IF
3324 is constant, use expand_unreachable_stmt for the THEN or ELSE
3325 clause as appropriate.
3326 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
3327 the body of a SWITCH statement.
3328 (expand_stmt): The code immediately following a "return",
3329 "break", "continue" or "goto" is unreachable.
3330 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
3331
3568b0ef
RH
33322003-04-16 Richard Henderson <rth@redhat.com>
3333
3334 * rtl.h (MEM_ALIAS_SET): Update documentation.
3335 * doc/rtl.texi (Special Accessors): New node.
3336 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
3337
60fa6660
AO
33382003-04-16 Alexandre Oliva <aoliva@redhat.com>
3339
3340 * reload1.c (reload_cse_noop_set_p): Return false if mode of
3341 SET_DEST is not the same as that returned by...
3342 * cselib.h (cselib_reg_set_mode): ... new function.
3343 * cselib.c (cselib_reg_set_mode): Define it.
3344 (REG_VALUES): Document semantics of first element as set mode.
3345 (cselib_subst_to_values): Skip first element if ELT is NULL.
3346 (cselib_lookup): Likewise. Insert past the first element.
3347 (cselib_invalidate_regno): NULLify first element.
3348 (cselib_record_set): Set first element.
3349
15b19a7d
OH
33502003-04-16 Olivier Hainque <hainque@act-europe.fr>
3351
c6a2438a
ZW
3352 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
3353 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
3354 * tree.h: Add prototypes for the two new functions.
3355 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
3356 updates introduced in the previous revision by call to saved_expr_p.
3357 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
a9ecacf6 3358
c6a2438a
ZW
3359 * expr.c (store_field): Force usage of bitfield instructions when
3360 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
3361 (expand_expr, case BIT_FIELD_REF): likewise.
15b19a7d 3362
f2d80e7e
MM
33632003-04-16 Mark Mitchell <mark@codesourcery.com>
3364
3365 PR middle-end/8866
3366 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
3367 jumptables.
3368
1cdbd630
RH
33692003-04-16 Richard Henderson <rth@redhat.com>
3370
3371 * config/ia64/ia64.c (sdata_symbolic_operand): Use
3372 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
3373 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3374 (function_operand): Use SYMBOL_REF_FUNCTION_P.
3375 (ia64_expand_load_address): Likewise.
3376 (ia64_assemble_integer): Likewise.
3377 (ia64_encode_section_info): Remove.
3378 (ia64_strip_name_encoding): Remove.
3379 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
3380 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
3381
d055668e
RH
33822003-04-16 Richard Henderson <rth@redhat.com>
3383
3384 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
3385 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
3386 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
3387 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
3388 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
3389 (global_symbolic_operand): Similarly.
3390 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
3391 (tls_symbolic_operand_type): Likewise.
3392 (alpha_encode_section_info): Use default_encode_section_info.
3393 (alpha_strip_name_encoding): Remove.
3394 (get_tls_get_addr): Split out from ...
3395 (alpha_legitimize_address): ... here.
3396 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
3397 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
3398 (alpha_initialize_trampoline): Use init_one_libfunc.
3399 (alpha_setup_incoming_varargs): Mark unused parameters.
3400 (alpha_initial_elimination_offset): Likewise.
3401 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
3402 (unicosmk_unique_section): Use default_strip_name_encoding.
3403 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
3404
ffd25996
AH
34052003-04-16 Aldy Hernandez <aldyh@redhat.com>
3406
c6a2438a 3407 * config.gcc: Add t-spe for eabispe.
ffd25996 3408
c6a2438a 3409 * config/rs6000/t-spe: New.
ffd25996 3410
7f0ea82e
R
34112003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
3412
3413 Re-apply this patch:
3414
3415 2002-05-16 Dale Johannesen <dalej@apple.com>
3416 * combine.c (cant_combine_insn_p): Reenable combinations
3417 involving hard regs unless CLASS_LIKELY_SPILLED_P.
3418
c328adfa
JDA
34192003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3420
3421 PR/10271
3422 * pa-protos.h (function_arg): Remove last argument.
3423 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
c6a2438a 3424 * pa.h (struct hppa_args): Add member incoming.
c328adfa
JDA
3425 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
3426 member incoming.
3427 (FUNCTION_ARG): Revise call to function_arg.
3428 (FUNCTION_INCOMING_ARG): Delete.
3429
f9c1196a
ZW
34302003-04-15 Zack Weinberg <zack@codesourcery.com>
3431
3432 * configure.in: Unify the code which creates symlinks to a
3433 just-built as, ld, objdump, and nm with the code that detects
3434 their presence for purposes of feature tests.
3435 * configure: Regenerate.
3436
0b78a9b6
ZW
34372003-04-15 Zack Weinberg <zack@codesourcery.com>
3438
3439 * varasm.c (output_constant_def): Do not consult
3440 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
3441 (after_function_constants, output_after_function_constants): Delete.
3442 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
3443 * config/mips/mips-protos.h, config/mips/mips.c
3444 (mips16_constant_after_function_p): Delete.
3445 * config/mips/mips.h: Delete #if-0-ed definition of
3446 CONSTANT_AFTER_FUNCTION_P.
3447 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
3448 mention of CONSTANT_AFTER_FUNCTION_P in comment.
3449
03907fbd
GK
34502003-04-15 Geoffrey Keating <geoffk@apple.com>
3451
3452 * tree.c (next_decl_uid): Mark with GTY.
3453 (next_type_uid): Likewise.
3454
9959c8c7
R
34552003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
3456
3457 PR target/9594:
3458 * sh.c (barrier_align): Also recognize stuff_delay_slot as
3459 an indicator that a barrier was created by branch splitting.
3460
c8b718ba
MM
34612003-04-15 Mark Mitchell <mark@codesourcery.com>
3462
3463 * c-decl.c (implicitly_declare): Copy declarations that are going
3464 to be placed in a local scope.
3465
f5034c5e
JM
34662003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
3467
3468 * invoke.texi (Spec Files): Wrap if-exists-else example.
3469 (MCore): Remove duplicate @itemx entries and @opindex entries.
3470
7344f3d7
UW
34712003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
3472
3473 * unwind.inc (_Unwind_Backtrace): New function.
3474 * unwind.h (_Unwind_Backtrace): Declare it.
3475 * libgcc-std.ver (_Unwind_Backtrace): Export it.
3476
9547e8fd
JM
34772003-04-14 Jason Merrill <jason@redhat.com>
3478
3479 PR middle-end/10336, c++/10401
0b78a9b6 3480 * jump.c (never_reached_warning): Also stop looking if we reach the
9547e8fd
JM
3481 beginning of the function.
3482
55adc7bd
KG
34832003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3484
3485 PR target/10338
3486 PR bootstrap/10198
3487 PR bootstrap/10140
3488 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
3489
d2b54839
R
34902003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
3491
3492 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
3493
d0ccc658
RK
34942003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3495
3496 * optabs.c (expand_binop): In multi-word add cases, ensure
3497 XTARGET is copied to TARGET if they are different.
3498
29921faf
OH
34992003-04-15 Olivier Hainque <hainque@act-europe.fr>
3500
3501 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
3502 to region, possible after integration of function with unreachable
3503 regions that were optimized away.
3504
ff3867ae
JJ
35052003-04-15 Jakub Jelinek <jakub@redhat.com>
3506
3507 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
3508 instead of TOC_REGISTER in epilogue in
3509 current_function_calls_eh_return functions.
3510
f4e92987
MM
35112003-04-14 Mark Mitchell <mark@codesourcery.com>
3512
db0b376e
MM
3513 * doc/extend.texi (Empty Structures): Correct description of G++'s
3514 handling of these structures.
3515
f4e92987
MM
3516 * c-decl.c (grokdeclarator): Reject extern redeclarations of
3517 static variables.
3518
629f6514
JJ
35192003-04-14 Janis Johnson <janis287@us.ibm.com>
3520
615158e2
JJ
3521 * config/rs6000/rs6000.md (define_constants): Define constants for
3522 all UNSPEC usage, including new values for TLS support.
3523 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
3524 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
3525 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
3526 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
3527 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
3528 eh_set_lr_di): Use them.
3529 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
3530 rs6000_emit_epilogue) Use them.
3531
629f6514
JJ
3532 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
3533
8951a635
NB
35342003-04-14 Neil Booth <neil@daikokuya.co.uk>
3535
3536 * Makefile.in (c-opts.o): Use custom action.
3537
798a3935
DR
35382003-04-14 Douglas B Rupp <rupp@gnat.com>
3539
3540 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
3541
2443af37
RK
35422003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3543
0d3c8800
RK
3544 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
3545 handle "superflat arrays" in Ada.
3546
2443af37
RK
3547 * integrate.c (expand_inline_function): Don't inline if would
3548 lose /u on a BLKmode TARGET.
3549
8cb5fbbf
JB
35502003-04-14 Joel Brobecker <brobecker@gnat.com>
3551
39d658e3
JB
3552 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
3553 extracted from dbxout_type.
3554 (dbxout_range_type): print large bounds in octal format.
3555 (dbxout_type): Replace extracted code by call to
3556 print_int_cst_bounds_in_octal_p.
3557
0b78a9b6
ZW
3558 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
3559 of DW_LANG_Ada83 for Ada units.
8cb5fbbf 3560
9ceca302
OH
35612003-04-14 Olivier Hainque <hainque@act-europe.fr>
3562
41ee3204
OH
3563 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
3564 temporary used to round CONST_INT sizes.
3565
4694840a
OH
3566 * tree.c (int_fits_type_p): Extract generic checks from the case
3567 of constant type bounds. Refine the checks against constant type
3568 bounds to allow for possible decisions against each of these bounds
3569 without requiring both bounds to be constant.
3570 (tree_int_cst_msb): Put back.
3571 * tree.h (tree_int_cst_msb): Likewise.
3572
4147232b
OH
3573 * global.c (global_conflicts): Prevent allocation of call clobbered
3574 hard regs to pseudos live across abnormal edges, as later passes are
3575 not ready to handle them.
3576
0b78a9b6
ZW
3577 * fold-const.c (fold): Reorder tests for conditional expressions.
3578
3579 * expr.c (highest_pow2_factor): Return unsigned.
3580 * expr.h (offset_address): Likewise.
3581 * emit-rtl.c (offset_address): POW2 argument now unsigned.
cbcafd35 3582
712b7a05
RS
35832003-04-14 Roger Sayle <roger@eyesopen.com>
3584
3585 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
3586 string literals at compile-time.
3587
15d4fd98
RS
35882003-04-14 Roger Sayle <roger@eyesopen.com>
3589
3590 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
3591 comparison operation and c1/c2 are floating point constants into
3592 x swap(cmp) (c1 - c2).
3593
2fcb395c
VM
35942003-04-14 Vladimir Makarov <vmakarov@redhat.com>
3595
3596 * genautomata.c (output_translate_vect): Fix a typo in loop
3597 condition.
3598
747a0d9d
HPN
35992003-04-14 Hans-Peter Nilsson <hp@axis.com>
3600
3601 PR target/10377
3602 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
3603 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
3604 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
3605 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
3606 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
3607 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
3608 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
3609 ("*extopqihi_swap_side", "*extopqisi_swap_side")
3610 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
3611 When next to constraint R, replace constraint i with n.
3612
58e6ae30
JH
3613Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
3614
3615 PR opt/10024
3616 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
3617
88657a26
KL
36182003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3619
3620 * doc/contrib.texi (Contributors): Correct my entry.
3621
7f685e17
RS
36222003-04-13 Roger Sayle <roger@eyesopen.com>
3623
3624 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
3625 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
3626 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
3627 implies DECL_BUILT_IN to simplify logic.
3628 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
3629
1331d16f
RS
36302003-04-13 Roger Sayle <roger@eyesopen.com>
3631
3632 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
3633 (BT_FN_PTR_SIZE_SIZE): Likewise.
3634 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
3635 New built-in functions for malloc, calloc and strdup respectively.
3636 * calls.c (special_function_p): No need to handle malloc-like
3637 functions any longer. ECF_MALLOC is set via built-in attributes.
3638
3639 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
3640
3641 * doc/extend.texi: Document these new built-in functions.
3642
9cb65f92
KG
36432003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3644
3645 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
3646 (expand_builtin_stpcpy): New.
3647 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
3648 * builtins.def: Add mempcpy & stpcpy support.
3649 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
3650
5de601cf
NC
36512003-04-13 Nick Clifton <nickc@redhat.com>
3652
3653 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
3654 "GCC".
3655 * config/rs6000/40x.md, config/rs6000/603.md,
3656 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
3657 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
3658 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
3659 config/rs6000/aix43.h, config/rs6000/aix51.h,
3660 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
3661 config/rs6000/altivec.h, config/rs6000/altivec.md,
3662 config/rs6000/beos.h, config/rs6000/darwin.h,
3663 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
3664 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
3665 config/rs6000/freebsd.h, config/rs6000/gnu.h,
3666 config/rs6000/host-darwin.c, config/rs6000/linux.h,
3667 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
3668 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
3669 config/rs6000/netbsd.h, config/rs6000/power4.md,
3670 config/rs6000/rios1.md, config/rs6000/rios2.md,
3671 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
3672 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3673 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
3674 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
3675 config/rs6000/spe.md, config/rs6000/sysv4.h,
3676 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
0b78a9b6 3677 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5de601cf 3678
50d440bc
NC
36792003-04-13 Nick Clifton <nickc@redhat.com>
3680
3681 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
3682 support for -mcall-aix switch.
3683 * config/rs6000/eabiaix.h: Delete.
3684 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
3685 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
3686 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
3687 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
3688 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
3689 debug_stack_info, output_function_profiler,
3690 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
3691 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
3692 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
3693 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
3694 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
3695 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
3696 multilibs.
3697 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
3698 (MULTILIB_EXCEPTIONS): Delete.
3699 (MULTILIB_MATCHES): Remove mcall-aix matches.
3700
3701 * doc/fragments.texi: Replace -mcall-aix example with an ARM
3702 one.
3703 * doc/install.texi: Delete powerpc-*-eabiaix target.
3704 * doc/invoke.texi: Remove documentation of mcall-aix switch.
3705 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
3706 * config.gcc: Delete powerpc-*-eabiaix target.
3707
62b9c42c
KH
37082003-04-13 Kazu Hirata <kazu@cs.umass.edu>
3709
3710 * doc/invoke.texi: Fix typos.
3711 * doc/tm.texi: Likewise.
3712
6d0c8bb1
ZW
37132003-04-12 Zack Weinberg <zack@codesourcery.com>
3714
3715 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
3716
dcf92453
ZW
37172003-04-12 Zack Weinberg <zack@codesourcery.com>
3718
3719 * tree.c (build_constructor): New function.
3720 * tree.h: Prototype it.
3721
3722 * c-typeck.c (build_c_cast, pop_init_level)
3723 * profile.c (build_function_info_value, build_gcov_info_value)
3724 (create_profiler):
3725 Use build_constructor.
3726
3727 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
3728
3729 * objc/objc-act.c (build_constructor):
3730 Rename objc_build_constructor. Use build_constructor.
3731 (build_objc_string_object, objc_add_static_instance)
3732 (init_def_list, init_objc_symtab, init_module_descriptor)
3733 (generate_static_references, build_selector_translation_table)
3734 (build_descriptor_table_initializer, generate_descriptor_table)
3735 (build_protocol_initializer, build_ivar_list_initializer)
3736 (generate_ivars_list, build_dispatch_table_initializer)
3737 (generate_dispatch_table, generate_protocol_list)
3738 (build_category_initializer, build_shared_structure_initializer):
3739 Update to match.
3740
c85b28e8
ZW
37412003-04-12 Zack Weinberg <zack@codesourcery.com>
3742
3743 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
3744
cebcfdc8
SC
37452003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3746
dcf92453 3747 * config/m68hc11/m68hc11-protos.h
cebcfdc8
SC
3748 (m68hc11_eq_compare_operator): Declare
3749 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
3750 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
3751 (d_register_operand): Check the operand mode.
3752 (hard_addr_reg_operand): Likewise.
3753
0ae32ec0
SC
37542003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3755
3756 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
3757 pattern for dbcc/ibcc generation for 68HC12.
3758 ("doloop_end"): New pattern.
3759 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
3760 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
3761 ("m68hc12_dbcc_dec_qi"): New pattern.
3762 ("m68hc12_dbcc_inc_qi"): New pattern.
3763 (split): Add split for the above when we can't use dbcc/ibcc due to
3764 reloading.
3765 (peephole2): Add peephole2 to generate the above when possible.
3766
a67bac5f
SC
37672003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3768
3769 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
3770 mode of operand 0.
3771 (peephole2 optimize const load): Likewise for operand 2.
3772 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
3773 clobbers CC_REGNUM.
3774 ("*rotrhi3_with_carry"): Likewise.
3775 (ashift:DI 1 split): Update pattern to create the above rotate.
3776 (lshiftrt:DI 1 split): Likewise.
3777
09214424
SC
37782003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3779
3780 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
3781 ("tstqi_z_used" split): Use it.
3782 ("cmphi_z_used"): Likewise.
3783 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
3784 ("cmpqi_z_used"): Likewise.
3785
355b81d5
MM
37862003-04-12 Mark Mitchell <mark@codesourcery.com>
3787
3788 PR c++/7910
3789 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
3790
2bd02043
ZW
37912003-04-12 Zack Weinberg <zack@codesourcery.com>
3792
3793 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
3794 * configure, config.in: Regenerate.
3795 * intl.c (gcc_gettext_width): New function.
3796 * intl.h: Prototype it.
3797
96cd9069
SC
37982003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3799
3800 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
3801 recognize -mnorelax.
3802 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
3803 (REG_CLASS_NAMES): Add its name.
3804 (REG_CLASS_CONTENTS): Define its content.
3805
c364c3a6
SC
38062003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3807
3808 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
3809 parameters so that offsets are valid for far definition.
3810 (__mulsi3): Likewise and use ret to return.
3811 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
3812
09501938
DE
38132003-04-12 David Edelsohn <edelsohn@gnu.org>
3814
3815 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
3816
ff3d4e83
AO
38172003-04-12 Alexandre Oliva <aoliva@redhat.com>
3818
17a15c67
AO
3819 * mklibgcc.in (libgcc-stage-start): For every multilib directory
3820 containing a libgcc.a, move lib* to the corresponding stage dir.
3821
ff3d4e83
AO
3822 * Makefile.in (stage1-start, stage2-start, stage3-start,
3823 stage4-start): Move $(SPECS) to specs in stage dir.
3824 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
3825 back as $(SPECS).
3826
9e6ccb98
AO
3827 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
3828 object files from the non-libgcc/ multilib directories as well.
3829
ba05abd3
GK
38302003-04-11 Geoffrey Keating <geoffk@apple.com>
3831
0aaafe73
GK
3832 * profile.c (read_counts_file): Initialise 'checksum'.
3833
d5b9108c
GK
3834 * emit-rtl.c (gen_rtx): Really correct typo.
3835
a37db56b
GK
3836 PR c++/9393
3837 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
3838 * configure.in: Check for gettimeofday.
3839 * tree.c (flag_random_seed): Define.
3840 (default_flag_random_seed): New.
3841 (append_random_chars): Use flag_random_seed rather than trying
3842 to acquire randomness here.
3843 * tree.h (default_flag_random_seed): Declare.
3844 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
3845 descriptions.
3846 (decode_f_option): Handle -frandom-seed.
3847 (print_switch_values): Call default_flag_random_seed.
3848 * flags.h (flag_random_seed): Declare.
3849 * configure: Regenerate.
3850 * config.in: Regenerate.
3851 * config/alpha/t-crtfm: Use -frandom-seed.
2bd02043 3852
ba05abd3
GK
3853 * doc/extend.texi (Empty Structures): New.
3854
df026186
GK
3855 * c-pch.c: Include flags.h. Add comments to routines.
3856 (struct c_pch_validity): New.
3857 (get_ident): Update PCH file version number.
3858 (pch_init): Output current debugging type.
3859 (c_common_valid_pch): Check debugging type.
3860 * Makefile.in (c-pch.o): Update dependencies.
3861 * flags.h (debug_type_names): Declare.
3862 * toplev.c (debug_type_names): Move out of decode_g_option.
3863
15c812e3
EC
38642003-04-11 Eric Christopher <echristo@redhat.com>
3865
3866 * emit-rtl.c (gen_rtx): Fix typos.
3867
a73071bc
RH
38682003-04-11 Richard Henderson <rth@redhat.com>
3869
3870 * emit-rtl.c (gen_rtx): Zero '0' fields.
3871
ca06cfe6
RH
38722003-04-11 Richard Henderson <rth@redhat.com>
3873
3874 PR c++/10202
3875 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
3876 not COMPLETE_TYPE_P for re-invoking layout_decl.
3877
d2d42a91
SL
38782003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
3879
3880 * doc/bugreport.texi: Fix paragraph breaking between sections
3881 in preparation for TeXinfo's paragraph indentation fixes.
3882 * doc/extend.texi: Ditto.
3883 * doc/invoke.texi: Ditto.
3884 * doc/objc.texi: Ditto.
3885 * doc/gcov.texi: Wrap 'gcov' in @command{}.
3886 * doc/invoke.texi (Darwin Options): Add a preamble.
3887
2ae5ae57
RH
38882003-04-11 Richard Henderson <rth@redhat.com>
3889
3890 * config/i386/i386.c (tls_model_chars): Remove.
3891 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
3892 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
3893 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3894 (tls_symbolic_operand_1): Likewise.
3895 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
3896 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
3897 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
3898 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
3899 bits "copied from i386.h" with default_encode_section_info.
3900
52859c77
RH
39012003-04-11 Richard Henderson <rth@redhat.com>
3902
3903 * rtl.def (SYMBOL_REF): Add two 0 fields.
3904 * gengtype.c (adjust_field_rtx_def): Handle them.
3905 * print-rtl.c (print_rtx): Print them.
3906 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
3907 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
3908 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
3909 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
3910 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
3911 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
3912 (SYMBOL_FLAG_MACH_DEP): New.
3913 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
3914 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
3915 (assemble_static_space): Set SYMBOL_REF_FLAGS.
3916 (assemble_trampoline_template): Likewise.
3917 (output_constant_def, force_const_mem): Likewise.
3918 (default_encode_section_info): New.
3919 * output.h: Declare it.
3920 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
3921
68d28100
RH
39222003-04-11 Richard Henderson <rth@redhat.com>
3923
3924 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
3925 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
3926 * optabs.c (init_optabs): Initialize them.
3927 (init_libfuncs): Use init_one_libfunc.
3928 * calls.c (expand_call): Use gcov_flush_libfunc.
3929 * expr.c (store_constructor): Use setbits_libfunc.
3930 * function.c (expand_main_function): Use init_one_libfunc.
3931 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
3932
11fe27a5
MM
39332003-04-11 Mark Mitchell <mark@codesourcery.com>
3934
3935 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
3936 documentation; add DECL_FRIEND_CONTEXT.
3937
f401d0f5
JDA
39382003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3939
3940 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
3941 notes on linker selection and configuration for 64-bit HP-UX port.
3942 * doc/invoke.texi (hppa): Remove hppa text from description for
3943 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
3944 and -threads options.
3945
3946 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
3947 libc.a on libdld.sl when -static is specified and -nolibdld is not
3948 specified.
3949 * pa64-hpux.h (LIB_SPEC): Likewise.
3950 * pa-hpux11.h (LIB_SPEC): Likewise.
3951 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
3952 is not specified.
3953
43451169
ZW
39542003-04-11 Zack Weinberg <zack@codesourcery.com>
3955
3956 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
3957 not IDENTIFIER_LOCAL_VALUE.
3958
a46666a9
RH
39592003-04-11 Richard Henderson <rth@redhat.com>
3960
3961 PR c/10201
3962 * expr.c (expand_expr): Move DECL_RTL frobbing ...
3963 * stor-layout.c (layout_decl): ... here.
3964
6d2f9dd3
JM
39652003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
3966
3967 * doc/invoke.texi: Eliminate extra white-space caused by
3968 @gccoptlist{ on its own line.
3969 * doc/invoke.texi: Ensured there are two spaces between each option.
3970 * doc/invoke.texi: Re-wrapped option lines that were too wide.
3971 Added @gol to options that didn't have them.
3972
94de45d9
NS
39732003-04-11 Nathan Sidwell <nathan@codesourcery.com>
3974
3975 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
3976 gcov-iov.h.
3977
3978 Simplify interface to gcov reading and writing.
3979 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
3980 gcov_alloc, gcov_modified, gcov_errored): Move into ...
3981 (struct gcov_var gcov_var): ... this static structure.
3982 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
3983 Return void.
3984 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
3985 read object.
3986 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
3987 (gcov_reserve_length): Remove.
3988 (gcov_write_tag): New.
3989 (gcov_write_length): Adjust.
3990 (gcov_read_summary, gcov_write_summary): Adjust.
3991 (gcov_eof, gcov_ok): Rename to ...
3992 (gcov_is_eof, gcov_is_error): ... here. Return error code.
3993 (gcov_save_position, gcov_resync): Rename to ...
3994 (gcov_position, gcov_seek): ... here.
3995 (gcov_skip, gcov_skip_string): Remove.
3996 (gcov_error): Remove.
3997 (gcov_open, gcov_close): Adjust.
3998 * gcov.c (find_source): Take const char *, copy it on allocation.
3999 (read_graph_file): Adjust.
4000 (read_count_file): Adjust.
4001 * libgcov.c (gcov_exit): Adjust.
4002 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
4003 tag_arc_counts, tag_summary): Return void. Adjust.
4004 (struct tag_format): Adjust proc member.
4005 (dump_file): Adjust gcov calls.
4006
7a615b25
AO
40072003-04-11 Alexandre Oliva <aoliva@redhat.com>
4008
4009 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
4010 mkfixinc.sh.
4011 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
4012 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
4013 build != host sysrooted builds.
4014 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
4015 TARGET_SYSTEM_ROOT even on sysrooted natives.
4016 * configure: Rebuilt.
4017
339a28b9
ZW
40182003-04-10 Zack Weinberg <zack@codesourcery.com>
4019
4020 * c-decl.c (struct binding_level): Add shadowed_tags and
4021 function_body; remove this_block, tag_transparent, and
4022 subblocks_tag_transparent; update comments.
4023 (clear_binding_level, lookup_tag_reverse): Kill.
4024 (make_binding_level): Use ggc_alloc_cleared or memset.
4025 (lookup_tag): Remove struct binding_level* parameter. All
4026 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
4027 current_binding_level->tags if asked for thislevel_only or if
4028 we might have to diagnose "struct foo; union foo;"
4029 (pushlevel): Ignore argument. Do not push another binding
4030 level on the transition from the parameters to the top level
4031 of the function body; just tweak the flags and proceed.
4032 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
4033 a function body, separate the parameter list from the
4034 top-level local variables.
4035 (set_block): Do nothing.
4036 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
4037 shadowed_tags if necessary.
4038 (warn_if_shadowing): Nuke the special case for local shadowing
4039 parameter.
4040 (pushdecl): Do not create a shadow entry if we are replacing
4041 an older decl in the same binding level.
4042 (pushdecl_function_level): Tweak for new way of indicating
4043 function scope.
4044 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
4045 (start_function): Don't set subblocks_tag_transparent.
4046 (finish_function): Fix up the binding_level stack for totally
4047 empty functions. Otherwise, don't call poplevel.
4048
4049 * c-common.c (shadow_warning): MANDATORY argument is no longer
4050 necessary. Always use plain warning.
4051 * c-common.h: Update to match.
4052
4053 * cfglayout.c (scope_to_insns_initialize): Clear block when we
4054 hit the FUNCTION_DECL.
4055 * function.c: Do not create cyclic tree structure.
4056
40572003-04-10 Zack Weinberg <zack@codesourcery.com>
4058
4059 * c-tree.h (struct lang_identifier): Replace global_value,
4060 local_value members with symbol_value, tag_value. Kill
4061 implicit_decl and limbo_value.
4062 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
4063 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
4064 C_MISSING_PROTOTYPE_WARNED): Kill.
4065 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
4066 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
4067 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
4068 (implicit_decl_warning, lookup_name_current_level,
4069 record_function_scope_shadow): Don't prototype.
4070 (pushdecl_function_level): Prototype.
4071
4072 * c-decl.c (truly_local_externals): New variable.
4073 (struct binding_level): Adjust commentary.
4074 (get_function_binding_level, clear_limbo_values,
4075 record_function_scope_shadow): Kill.
4076 (lookup_name_current_level, implicit_decl_warning): Are now static.
4077 (any_external_decl, record_external_decl): New static functions.
4078 (clone_underlying type): Split out of pushdecl.
4079 (c_print_identifier): Update to match changes to struct
4080 lang_identifier.
4081 (poplevel): Delete #if 0 block. Make externals invisible
4082 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
4083 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
4084 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
4085 (duplicate-decls): For real parm decl after a forward decl,
4086 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
4087 foo(...) { } with only a warning. Say whether a previous
4088 declaration was implicit.
4089 (warn_if_shadowing): Now handles all shadowing, not just
4090 local-over-local. Clarify comments.
4091 (pushdecl): Rewritten. There is no longer a distinction
4092 between global and local symbol values; they're all
4093 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
4094 DECL_EXTERNAL decls, and use any_external_decl to check
4095 against previous externals. Kill #if 0 blocks. Don't
4096 tolerate error_mark_node being NULL.
4097 (pushdecl_top_level): Handle only those cases which
4098 Objective C (the only user) needs.
4099 (pushdecl_function_level): New function.
4100 (implicitly_declare): Create ordinary decls with
4101 C_DECL_IMPLICIT set. Recycle old decls, however they got
4102 created.
4103 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
4104 for C_DECL_INVISIBLE symbols.
4105 (lookup_name_current_level): Likewise. Use chain_member.
4106 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
4107 Use pushdecl_function_level.
4108 (builtin_function): Use C_DECL_INVISIBLE.
4109 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
4110 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
4111 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
4112 (identifier_global_value): Same. Must scan
4113 global_binding_level in extremis.
4114
4115 * c-typeck.c (undeclared_variable): New static function, split
4116 from build_external_ref.
4117 (build_external_ref): Use DECL_CONTEXT, not
4118 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
4119 an instance variable. Restructure for clarity.
4120 * objc/objc-act.c: Use identifier_global_value, not
4121 IDENTIFIER_GLOBAL_VALUE.
4122
6d9c4c83
JW
41232003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
4124
4125 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
4126 not Working Paper.
4127 * doc/invoke.texi (C++ Dialect Options): Same.
4128
06790e5f
ZW
41292003-04-10 Zack Weinberg <zack@codesourcery.com>
4130
4131 * tree.c (tree_operand_check_failed): New function.
4132 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
4133 TREE_RTL_OPERAND_CHECK): New checking macros.
4134 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
4135 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
4136 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
4137 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
4138 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
4139 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
4140 checking macros.
4141
f90e4dea
JH
4142Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4143
4144 PR inline-asm/8803
4145 * function.c (instantate_virtual_regs): Verify that all ASM statements
4146 match after the virutal regs instantiation.
4147
08744705
SE
41482003-04-10 Steve Ellcey <sje@cup.hp.com>
4149
4150 * ia64-protos.h (addp4_optimize_ok): New.
4151 * ia64.c (addp4_optimize_ok): New.
4152 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
4153 (*ptr_extend_plus_2): Ditto.
4154
267b28bd
SE
41552003-04-10 Steve Ellcey <sje@cup.hp.com>
4156
4157 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
4158 not with convert_memory_address.
4159 (store_constructor): Ditto, and same for copy_size_rtx.
4160 (expand_expr): Ditto.
4161
021bad8e
DR
41622003-04-10 Douglas B Rupp <rupp@gnat.com>
4163
4164 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
4165
1839841c
BW
41662003-04-10 Bob Wilson <bob.wilson@acm.org>
4167
4168 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
4169 even if it is configured to be write-through.
4170
e23795ea
UW
41712003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4172
4173 * config/s390/s390.c (larl_operand): Do not allow symbols
4174 marked with '@'.
4175 (s390_encode_section_info): Mark symbols with forced 1-byte
4176 alignment with '@'.
4177 (s390_strip_name_encoding): Strip '@'.
4178 (legitimize_pic_address): Handle symbols that are not valid
4179 LARL operands in 64-bit mode.
4180
0bb7378d
AH
41812003-04-10 Andrew Haley <aph@redhat.com>
4182
4183 * tree-inline.c (inlinable_function_p): Disable inlining for
4184 synchronized methods.
4185
009ed910
SB
41862003-04-09 Steven Bosscher <steven@gcc.gnu.org>
4187
4188 * c-common.h (lang_statement_code_p): Remove declaration.
4189 (statement_code_p): Ditto.
4190 (c_common_stmt_codes): Define; list of c-common statement codes.
4191 (statement_code_p): New extern declaration.
4192 (STATEMENT_CODE_P): Define.
4193 (INIT_STATEMENT_CODES): Define.
4194 * c-common.c (statement_code_p): Kill the function, declare
4195 as an array of bools instead.
4196 (lang_statement_code_p): Remove.
4197 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
4198 (c_safe_from_p): Ditto.
4199 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
4200 to initialize the statement_code_p array.
4201 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
4202 statement_code_p.
4203 (copy_tree_r): Ditto.
4204 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
4205 statement tree codes.
4206 * cp/lex.c (cxx_init): Add missing print line break. Use
4207 INIT_STATEMENT_CODES to initialize the statement_code_p array.
4208 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
4209 instead of statement_code_p.
4210 * cp/pt.c (tsubst_expr): Ditto.
4211 * cp/tree.c (verify_stmt_tree_r): Ditto.
4212 (cp_statement_code_p): Remove.
4213 (init_tree): Don't set lang_statement_code_p, it's gone.
4214
496324d0
DN
42152003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4216 Zack Weinberg <zack@codesourcery.com>
4217
4218 * regrename.c (struct du_chain): Use a bitfield for reg_class.
4219 * cse.c (struct qty_table_elem, struct table_elt, struct set):
4220 Use bitfields for fields holding enum rtx_code or
4221 enum machine_mode values. Add comments explaining size choices.
4222
9c951124
AO
42232003-04-09 Alexandre Oliva <aoliva@redhat.com>
4224
4225 * config/fp-bit.c (unpack_d): Handle pair of doubles with
4226 different signs correctly.
4227
d1c9693e
VM
42282003-04-09 Vladimir Makarov <vmakarov@redhat.com>
4229
4230 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
4231 (reg_pending_barrier): Make it of the enumeration type.
4232 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
4233 TRUE_BARRIER.
4234 (sched_analyze): Ditto.
4235 (sched_analyze_insn): Ditto. Use anti-dependencies for
4236 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
4237 (init_deps_global): Initialize the barrier as NO_BARRIER.
06790e5f 4238
f32360c7
VM
42392003-04-09 Vladimir Makarov <vmakarov@redhat.com>
4240
4241 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
4242 Check that asm insn starts on a new cycle. Add nops after asm
4243 insn to end bundle.
4244 (bundling): Move insn type evaluation from the loop. Call
4245 issue_nops_and_insn with the new parameter. Ignore changing
4246 position for nops after asm insn.
4247
0913e4b4
AO
42482003-04-09 Alexandre Oliva <aoliva@redhat.com>
4249
4250 * optabs.c: Comment that gen_add2_insn and others may actually
4251 return emitted insns, if the gen functions turn out to return
4252 emitted insns.
4253 * reload1.c (reload_cse_move2add): Cope with emitted insns from
4254 gen_add2_insn.
4255
21515593
RH
42562003-04-09 Richard Henderson <rth@redhat.com>
4257
4258 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
4259 but not tls_symbolic_operand.
4260 (ia64_expand_load_address): Remove scratch operand.
4261 (ia64_expand_tls_address): Split out from ia64_expand_move.
4262 (ia64_expand_move): Split symbolics only after reload.
4263 (ia64_emit_cond_move): New.
4264 * config/ia64/ia64-protos.h: Update.
4265 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
4266 (symbolic splitter): Accept SImode operands too.
4267 (cmove splitter): Use ia64_emit_cond_move.
4268
66d6bf1f
NC
42692003-04-09 Nick Clifton <nickc@redhat.com>
4270
4271 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
4272 newer.
4273 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
4274 instead of -mno-fpu.
4275 * config/arm/semi.h (ASM_SPEC): Likewise.
4276 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
4277 but only if -msoft-float is specified pass. Otherwise pass
4278 -mfpu=softvfp.
06790e5f 4279
22659ac9
ZD
42802003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4281
4282 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
4283 free_EXPR_LIST_node.
4284
5fce2c65
RS
42852003-04-08 Roger Sayle <roger@eyesopen.com>
4286
4287 * fold-const.c (fold): Use "fold" following build in more places.
4288 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
4289 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
4290
531878a6
RS
42912003-04-08 Roger Sayle <roger@eyesopen.com>
4292
4293 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
4294 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
4295 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
4296 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
4297 Delete function scope "fcode" variable to avoid shadowing.
4298
c583e7c3
KB
42992003-04-08 Kevin Buettner <kevinb@redhat.com>
4300
4301 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
4302 Take into account DWARF_INITIAL_LENGTH_SIZE.
4303
5a82c0b1
HPN
43042003-04-08 Hans-Peter Nilsson <hp@axis.com>
4305
4306 * reorg.c (fill_slots_from_thread): When considering changing the
4307 insn following a reg-to-reg copy insn to use the source reg of the
4308 copy, bail out if there's overlap between the registers.
4309
8a5275eb
ZD
43102003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4311
4312 * function.c (postponed_insns): New.
4313 (purge_addressof_1): Postpone processing of insns if addressofs
4314 are not put into stack.
06790e5f 4315 (purge_addressof): Process postponed insns.
8a5275eb 4316
ac55736a
R
43172003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
4318
4319 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
4320 this is FP_MODE_DOUBLE .
4321 * sh.c (ra.h): #include.
4322 (push_regs): Add second parameter. Changed all callers.
4323 If necessary, set fpscr before saving floating point registers.
4324 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
4325 do saves / restores with SZ == 1.
4326 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
4327 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
4328 registers are being restored, restore FPSCR only after restoring them.
4329
3fdaa45a
AH
43302003-04-08 Aldy Hernandez <aldyh@redhat.com>
4331
496324d0
DN
4332 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
4333 regardless of architecture.
4334 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
3fdaa45a 4335
490dbac7
R
43362003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
4337
4338 * sh.c (push_regs, calc_live_regs): Return int. Take single
4339 HARD_REG_SET * parameter. Changed all callers.
4340
799b33a0
JH
4341Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
4342
4343 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
4344 GOTOFF operand.
4345 (legitimize_pic_address): Move plus outside the unspec.
4346 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
4347 for validity.
4348
3e71e002
NS
43492003-04-08 Nathan Sidwell <nathan@codesourcery.com>
4350
4351 * gcov-io.h (gcov_save_position): Remove __inline__ from
4352 declaration.
4353
7ba4ca63
MK
43542003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
4355
4356 * doc/install.texi: Use @command and @samp for single- and
4357 multi-word commands respectively.
4358 * doc/makefile.texi: Likewise.
4359 * doc/sourcebuild.texi: Likewise.
4360
f8d4be57 43612003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
496324d0 4362 Richard Henderson <rth@redhat.com>
f8d4be57 4363
496324d0
DN
4364 PR c/9516
4365 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
4366 favour of looping and tail recursion for TREE_LIST and binops.
f8d4be57 4367
760e8e42
ZD
43682003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4369
4370 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
4371 for insns without luid.
4372
b0a3412c
GN
43732003-04-07 Glen Nakamura <glen@imodulo.com>
4374
4375 PR opt/8634
4376 * explow.c (maybe_set_unchanging): Don't flag non-static const
4377 aggregate type initializers with RTX_UNCHANGING_P.
4378
c5a1e3d6
RH
43792003-04-07 Richard Henderson <rth@redhat.com>
4380
496324d0
DN
4381 PR opt/8634
4382 * function.c (purge_addressof_1): Don't try arithmetics for
4383 unchanging memories.
c5a1e3d6 4384
138d4703
JJ
43852003-04-07 Janis Johnson <janis187@us.ibm.com>
4386
4387 * doc/sourcebuild.texi (Test Suites): Document testing support for
4388 gcov and profile-directed optimizations; describe gcc.misc-tests.
4389
1d5b4e0b
JH
4390Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
4391
4392 PR target/10077
4393 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
4394
60ba917e
EB
43952003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4396
4397 * doc/rtl.texi (Comparison operations): Update to
4398 record the allowed comparison modes.
4399
2abe3e28
AH
44002003-04-07 Aldy Hernandez <aldyh@redhat.com>
4401
496324d0
DN
4402 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
4403 V2SI_type_node to opaque_V2SI_type_node. Rename all
4404 V2SF_type_node to opaque_V2SF_type_node.
4405 (rs6000_init_builtins): Define opaque_V2SI_type_node and
4406 opaque_V2SF_type_node.
4407 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
4408 opaque_V2SF_type_node are opaque types.
2abe3e28 4409
9a318d30
R
44102003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
4411
4412 * gcse.c (replace_store_insn): Use single_set.
4413
546d2adb
NS
44142003-04-07 Nathan Sidwell <nathan@codesourcery.com>
4415
4416 Change gcov file interface to single file at a time.
4417 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
4418 Convert to C89 prototypes.
4419 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
4420 gcov_error, gcov_modified): New static variables.
4421 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
4422 functions.
4423 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4424 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
4425 (gcov_read_summary, gcov_write_summary): Adjust.
4426 (gcov_save_position, gcov_reserve_length, gcov_write_length):
4427 Adjust.
4428 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
4429 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
4430 (da_file_position, da_file_seek, da_file_write, da_file_read):
4431 Remove.
4432 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
4433 * gcov.c (gcov_type): Don't typedef here.
4434 (IN_GCOV): #define
4435 (read_graph_file, read_count_file): Adjust.
4436 * gcov-dump.c (gcov_type): Don't typedef here.
4437 (IN_GCOV): #define.
4438 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
4439 Remove FILE parameter, adjust.
4440 (struct tag_format): Adjust proc member.
4441 (dump_file): Adjust.
4442 * libgcov.c (IN_LIBGCOV): #define.
4443 (gcov_exit): Adjust.
4444 * loop-init.c: Don't #include gcov-io.h
4445 * profile.c (struct counts_entry): New structure to hold counter
4446 values.
4447 (struct section_reference, struct da_index_entry): Remove.
4448 (bbg_file, da_file): Remove.
4449 (htab_counts_index_hash, htab_counts_index_eq,
4450 htab_counts_index_del): Replace with ...
4451 (htab_counts_entry_hash, htab_counts_entry_eq,
4452 htab_counts_entry_del): ... these.
4453 (cleanup_counts_index, index_counts_file): Remove.
4454 (read_counts_file): New function.
4455 (get_exec_counts): Adjust.
4456 (compute_branch_probabilities): Don't free the exec counts here.
4457 (branch_prob): Adjust.
4458 (init_branch_prob): Adjust.
4459 (end_branch_prob): Adjust.
4460
5da702b1
AH
44612003-04-07 Aldy Hernandez <aldyh@redhat.com>
4462
496324d0
DN
4463 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4464 -mfloat-gprs.
5da702b1 4465
496324d0
DN
4466 * config/rs6000/rs6000.c: Delete rs6000_fprs.
4467 Declare rs6000_float_gprs.
4468 Declare rs6000_float_gprs_string.
4469 (rs6000_parse_float_gprs_option): New.
4470 (rs6000_override_options): Genericize rs6000_parse_* calls to use
4471 rs6000_parse_yes_no_option.
4472 Change check for cpu=8540, to use TARGET_E500.
4473 (rs6000_parse_isel_option): Delete.
4474 (rs6000_parse_spe_option): Delete.
4475 (rs6000_parse_vrsave_option): Delete.
5da702b1 4476
496324d0
DN
4477 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
4478 Define rs6000_float_gprs_string.
4479 (TARGET_OPTIONS): Add rs6000_float_gprs option.
5da702b1 4480
496324d0 4481 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5da702b1 4482
496324d0 4483 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5da702b1 4484
cde1d5bf
JH
4485Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
4486
4487 PR opt/10024
4488 * cfglayout.c (cfg_layout_redirect_edge):
4489 Redirect any branch edges unified with the fallthru one.
4490 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
4491 case fallthru edges when called via cfglayout.c
4492
d5019ba3
R
44932003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
4494
4495 * c-typeck.c (output_init_element): Check for type == error_mark_node.
4496
093b05b6
KH
44972003-04-07 Kazu Hirata <kazu@cs.umass.edu>
4498
4499 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
4500 split.
4501 (a splitter): Do zero-extension via HImode.
4502
9a94f7f3
JM
45032003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
4504
4505 * doc/invoke.texi: Eliminate extra white-space caused by
4506 @gccoptlist{ on its own line.
4507 * doc/invoke.texi: Ensured there are two spaces between each option.
4508 * doc/invoke.texi: Re-wrapped option lines that were too wide.
4509 Added @gol to options that didn't have them.
4510
85ebf0c6
JM
45112003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
4512
4513 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
4514
d78e771d
ZW
45152003-04-06 Zack Weinberg <zack@codesourcery.com>
4516
4517 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
4518 at the sizes of the relevant structures, rather than relying
4519 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
4520 sizes of any such we don't know about. Use
4521 lang_hooks.identifier_size for IDENTIFIER_NODE.
4522
4523 (initializer_zerop): Use CONSTRUCTOR_ELTS.
4524 * tree.def: Update commentary. Make fourth element of
4525 the definition for all 'c' and 'x' nodes zero.
4526
4527 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
4528 * langhooks-def.h: Update to match.
4529 * langhooks.c: New default, lhd_tree_size.
4530
4531 * c-common.def (SRCLOC): Kill.
4532 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
4533 Remove entirely - was already #if-ed out.
4534
4535
48a79342
ZW
45362003-04-06 Zack Weinberg <zack@codesourcery.com>
4537
4538 * mklibgcc.in: Use a here document to avoid running afoul of
4539 shells that generate control-A from "echo \1".
4540
993f19a8
AH
45412003-04-06 Aldy Hernandez <aldyh@redhat.com>
4542
d78e771d
ZW
4543 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
4544 option.
993f19a8 4545
d78e771d
ZW
4546 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4547 rs6000_spe.
993f19a8 4548
d78e771d 4549 * config/rs6000/eabi.h (TARGET_E500): Define.
993f19a8 4550
d78e771d
ZW
4551 * config/rs6000/rs6000.h (TARGET_E500): Define.
4552 (TARGET_OPTIONS): Add spe= option.
4553 Declare rs6000_spe and rs6000_spe_string extern.
993f19a8 4554
d78e771d
ZW
4555 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
4556 Change TARGET_SPE to TARGET_E500.
4557 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
4558 !TARGET_FPRS.
4559 (print_operand): Same.
4560 (rs6000_generate_compare): Same.
4561 (output_cbranch): Same.
4562 (rs6000_spe): Declare.
4563 (rs6000_spe_string): Declare.
4564 (rs6000_override_options): Call rs6000_parse_spe_option.
4565 (rs6000_parse_spe_option): New.
993f19a8 4566
95ec27aa
SB
45672003-04-06 Steven Bosscher <steven@gcc.gnu.org>
4568
4569 * hashtable.c (gcc_obstack_init): Delete this function
4570 and everything related to it.
4571 * hashtable.h: Remove prototype.
4572 * bitmap.c (bitmap_element_allocate): Cleanup redundant
4573 defines. Cleanup some unnecessary whitespace.
4574 * defaults.h (obstack_chunk_alloc): Redefine with
4575 appropriate casts for libiberty obstacks.
4576 (obstack_chunk_free): Ditto.
4577 (OBSTACK_CHUNK_SIZE): Define, default to 0.
4578 (gcc_obstack_init): Define as a call to _obstack_begin.
4579 * tree.c (print_obstack_statistics): Delete this unused
4580 function.
4581 * tree.h (obstack): Don't forward-declare.
4582 (print_obstack_statistics): Delete prototype.
4583 (print_obstack_name): Ditto.
4584 (gcc_obstack_init): Ditto.
4585 * rtl.h (gcc_obstack_init): Ditto.
4586 * java/jv-scan.c (gcc_obstack_init): Delete this
4587 function, its prototype and related defines.
4588 * java/jvgenmain.c (gcc_obstack_init): Delete this
4589 function, and related defines.
4590 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
4591 (obstack_chunk_free): Ditto
4592
62e64b0b
GK
45932003-04-06 Geoffrey Keating <geoffk@apple.com>
4594
4595 * dbxout.c (dbxout_handle_pch): Move prototype out from
4596 #if defined DBX_DEBUGGING_INFO.
4597
10b7602f
NS
45982003-04-05 Nathan Sidwell <nathan@codesourcery.com>
4599
4600 * gcov.c (struct arc_info): Replace local_span with cycle.
4601 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
4602 (solve_flow_graph): Set is_call_return.
4603 (add_line_counts): Adjust. In block mode, blocks attach to last line.
4604 (accumulate_line_counts): Find graph cycles, not spanning tree.
4605 (output_branch_count): Adjust.
4606 (output_lines): Adjust.
4607 * doc/gcov.texi: Update.
4608
910c46b5
KH
46092003-04-06 Kazu Hirata <kazu@cs.umass.edu>
4610
4611 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
4612 the second alternative to "#".
4613
ef378bbe
KH
46142003-04-05 Kazu Hirata <kazu@cs.umass.edu>
4615
4616 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
4617 (single_zero_operand): Likewise.
4618
873ceaab
DB
46192003-04-05 Daniel Berlin <dberlin@dberlin.org>
4620
4621 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
4622 * df.c: Include alloc-pool.h, not obstack.h.
4623 (df_ref_obstack): Remove.
4624 (df_ref_pool, df_link_pool): Add pools.
4625 (df_alloc): Init the new pools.
4626 (df_free): And free them.
4627 (df_link_create): Use the pools.
4628 (df_ref_create): Ditto.
4629
5be86fec
KH
46302003-04-05 Kazu Hirata <kazu@cs.umass.edu>
4631
4632 * simplify-rtx.c: Fix formatting.
4633
984e25ac
DE
46342003-04-05 Andrew Pinski <apinski@apple.com>
4635
4636 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
4637 reg with reg1 == reg2 and offset1 = -8.
4638
46392003-04-05 David Edelsohn <edelsohn@gnu.org>
4640
4641 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
4642 multiply costs. Correct Power4 divide costs.
4643 * config/rs6000/power4.md: Restore multiply and FP latency.
4644
94f24ddc
ZD
46452003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4646
4647 * alias.c (find_base_term): Export.
4648 * rtl.h (find_base_term): Declare.
4649 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
4650 instead of flag_exceptions. Move test for parameter passing ...
4651 (store_killed_in_insn): ... here.
4652
92441f83
GP
46532003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4654
4655 PR bootstrap/10267
4656 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
4657 for configuring.
4658
33b49800
GK
46592003-04-04 Geoffrey Keating <geoffk@apple.com>
4660
4661 * dbxout.c (scope_labelno): Add GTY.
4662 (have_used_extensions): Add GTY.
4663 (source_label_number): Add GTY.
4664 (lastfile): Add GTY.
4665 (lastfile_is_base): New.
4666 (base_input_file): New.
4667 (dbxout_handle_pch): New.
4668 (dbx_debug_hooks): Add handle_pch.
4669 (xcoff_debug_hooks): Likewise.
4670 (dbxout_function_end): Remove scope_labelno.
4671 (dbxout_init): Set base_input_file.
4672 (dbxout_handle_pch): New.
4673 (dbxout_source_file): Honour lastfile_is_base.
4674 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
4675 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
4676 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
4677 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
4678 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
4679 * debug.h (struct gcc_debug_hooks): Add handle_pch.
4680 * c-pch.c (pch_init): Don't call start_source_file, but do call
4681 handle_pch.
4682 (c_common_write_pch): Call handle_pch.
4683 (c_common_read_pch): Don't call start_source_file,
06790e5f 4684 or end_source_file.
33b49800 4685
bb056a77
OH
4686Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
4687
d78e771d
ZW
4688 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
4689 use of default attributes to agree MEM_ALIGN macro.
bb056a77 4690
08b0f5f9
JB
4691Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
4692
d78e771d 4693 * dbxout.c (dbxout_type): When printing type index of range type
08b0f5f9
JB
4694 whose bounds are printed in octal format, print type of parent type if
4695 it exists so enumerated type descriptions are not transformed
d78e771d 4696 into unsigned types.
08b0f5f9 4697
45ca2106
KH
46982003-04-04 Kazu Hirata <kazu@cs.umass.edu>
4699
4700 * config/h8300/h8300-protos.h: Add a prototype for
4701 compute_a_shift_cc.
4702 * config/h8300/h8300.c (shift_one): Update the CC status.
4703 (shift_two): Likewise.
4704 (output_a_shift_cc): Set cc_inline and cc_special.
4705 (compute_a_shift_cc): New.
4706 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
4707
7c2aa9d7
RH
47082003-04-04 Richard Henderson <rth@redhat.com>
4709
4710 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
4711
0705a2a2
LR
47122003-04-04 Loren James Rittle <ljrittle@acm.org>
4713
4714 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
4715 * fixinc/fixincl.x: Rebuilt.
4716 * fixinc/tests/base/stdio.h: Regenerated.
4717
1a482881
NS
47182003-04-04 Nathan Sidwell <nathan@codesourcery.com>
4719
4720 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
4721
5d806217
R
4722Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
4723
4724 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
4725 (NORMAL_MODE).
4726 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
4727
0dc5ac92 47282003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
06790e5f 4729
0dc5ac92
GP
4730 * doc/contrib.texi (Contributors): Add entries for Wolfgang
4731 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
4732 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
4733 Danny Smith, and Ulrich Weigand.
4734 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
4735 entry.
4736
5eb7ad07
NC
47372003-04-04 Nick Clifton <nickc@redhat.com>
4738
4739 * config/sparc/sol2-bi.h: Revert previous delta.
4740 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
4741
fdf3bb57
NC
47422003-04-04 Nick Clifton <nickc@redhat.com>
4743
4744 * config/v850/v850.c (expand_prologue): Only use register save
4745 helper functions if long calls are not being used.
4746 Add a clobber of r11 id using long calls.
4747 (pattern_is_ok_for_prologue): Account for the extra clobber.
4748 (construct_save_jarl): Likewise.
4749 * config/v850/v850.md (prolog pattern): Do not use this pattern
4750 for v850e's.
4751
ad3f5759
AS
47522003-04-04 Andreas Schwab <schwab@suse.de>
4753
4754 * stor-layout.c (layout_decl): Avoid syntax error in last change
4755 when PCC_BITFIELD_TYPE_MATTERS is defined but not
4756 EMPTY_FIELD_BOUNDARY.
4757
ed2e5902
JM
47582003-04-03 Jason Merrill <jason@redhat.com>
4759
4760 PR c/10175
4761 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
4762 Look backwards for a line note.
4763
7b43d104
NB
47642003-04-03 Neil Booth <neil@daikokuya.co.uk>
4765
4766 * fix-header.c (read_scan_file): Defer switch processing.
4767
d24ecd21
MA
47682003-04-03 Matt Austern <austern@apple.com>
4769
4770 * cpppch.c (reset_ht): Remove.
4771 (cpp_read_state): Remove loop to reset hashtable identifiers.
4772 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
4773 after pch file is written.
4774 * ggc.h (gt_pch_fixup_stringpool): Declare.
4775 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
4776 hashnode's value to another hashtable, then clear the original.
4777 (saved_ident_hash): Define.
4778 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
4779 store definitions in ident_hash, and clear ident_hash.
4780 (gt_pch_fixup_stringpool): Define. Restore definitions from
4781 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
4782
bcc53e2a
JH
4783Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
4784
4785 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
4786
773eae39
EB
47872003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4788
4789 PR optimization/10157
4790 * gcse.c (can_copy_p): Rename it to can_copy.
4791 (can_copy_init_p): Remove.
4792 (compute_can_copy): Use can_copy instead of can_copy_p.
4793 (can_copy_p): New exported function. Call compute_can_copy.
4794 (hash_scan_set): Use it.
4795 (gcse_main): Don't call compute_can_copy.
4796 (bypass_jumps): Don't call compute_can_copy.
4797 * rtl.h (can_copy_p): Declare.
4798 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
4799 copy if the mode doesn't support copy operations.
4800
78d55cc8
JM
48012003-04-03 Jason Merrill <jason@redhat.com>
4802
613fa146
JM
4803 * Makefile.in (unstrap): Also remove stage_last.
4804
7bf6b23d
JM
4805 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
4806 (dwarf2out_source_line): Don't do anything if line==0.
4807
78d55cc8 4808 * stor-layout.c (do_type_align): New fn, split out from...
06790e5f 4809 (layout_decl): ...here. Do all alignment calculations for
78d55cc8
JM
4810 FIELD_DECLs here.
4811 (update_alignment_for_field): Not here.
4812 (start_record_layout, debug_rli): Remove unpadded_align.
4813 * tree.h (struct record_layout_info_s): Remove unpadded_align.
4814 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
4815 or DECL_MODE on the CONST_DECLs.
4816 (finish_struct): Don't mess with DECL_ALIGN.
4817
d10f5ecf
JH
4818Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
4819
4820 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
4821
4822Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
8d3b0953 4823
70aadfcc
R
4824 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
4825 function is an interrupt handler.
4826
4827 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
4828 restoring target registers with EH_RETURN_STACKADJ_RTX; use
4829 multiple registers in round-robin fashion.
8d3b0953 4830
de94b46c
KG
48312003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4832
4833 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
4834 * system.h (CHAR_BITFIELD): New.
4835
203dcb74
KH
48362003-04-03 Kazu Hirata <kazu@cs.umass.edu>
4837
4838 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
4839 and LE.
4840 (another peephole2): Likewise.
4841
dc00aebd
NC
48422003-04-03 Nick Clifton <nickc@redhat.com>
4843
4844 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
d78e771d 4845 (DEF_ARCH64_SPEC): Likewise.
dc00aebd 4846
a94f136b
JH
4847Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
4848
4849 * i386.c (constant_address_p): Use legitimate_constant_p.
4850 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
4851
9a2dd2dd
KH
48522003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4853
4854 * config/h8300/h8300-protos.h: Add a prototype for
4855 gtle_operator.
4856 * config/h8300/h8300.c (gtle_operator): New.
4857 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
4858 gtle_operator.
4859 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
4860 and LE.
4861
378683cf
RH
48622003-04-02 Richard Henderson <rth@redhat.com>
4863
4864 * libgcc-std.ver (_Unwind_GetCFA): New.
4865 * unwind-dw2.c (_Unwind_GetCFA): New.
4866 * unwind-libunwind.c (_Unwind_GetCFA): New.
4867 * unwind-sjlj.c (_Unwind_GetCFA): New.
4868 * unwind.h: Declare it.
4869
a67a3220
JH
4870Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
4871
4872 PR inline-asm/8088
4873 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
4874 when MMX/SSE is not available.
4875
11292480
MS
48762003-04-02 Mike Stump <mrs@apple.com>
4877
4878 * doc/install.texi (Specific): Update pointers to apple.com.
4879
a94f136b 4880Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
a5b378d6
JH
4881
4882 * i386.c (override_options): Disable red zone by default on i386.
06790e5f 4883 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
a5b378d6
JH
4884 Do not test TARGET_64BIT together with TARGET_RED_ZONE
4885
8fc9a7ba
KH
48862003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4887
4888 * config/h8300/h8300.md (a peephole2): Tighten the condition.
4889
496e1c4b
RH
48902003-04-02 Richard Henderson <rth@redhat.com>
4891
4892 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
4893
d98cd543
KH
48942003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4895
4896 * config/h8300/h8300.md (a peephole2): New.
4897
b30abdf2
RH
48982003-04-02 Richard Henderson <rth@redhat.com>
4899
4900 * except.c (sjlj_find_directly_reachable_regions): Recognize when
4901 must-not-throw region has been deleted.
4902
ad5eeaa9
RH
49032003-04-02 Richard Henderson <rth@redhat.com>
4904
d78e771d
ZW
4905 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
4906 optimization when flag_exceptions not enabled.
ad5eeaa9 4907
be12c2b0
VM
49082003-04-02 Vladimir Makarov <vmakarov@redhat.com>
4909
4910 * config/rs6000/rs6000.c
4911 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
4912 macros.
4913 (rs6000_issue_rate): Add case for 8540.
4914 (rs6000_use_sched_lookahead): New function.
4915
4916 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
4917 units into MU ones.
4918 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
4919 reservation before retirement.
4920 (ppc8540_multiply, ppc8540_load, ppc8540_store,
4921 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
4922 Remove additional cycle in the reservation before retirement.
4923 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
4924 reservation of ppc8540_issue.
06790e5f 4925
f875310e
AS
49262003-04-02 Andreas Schwab <schwab@suse.de>
4927
4928 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
4929
125ca8fd
RH
49302003-04-01 Richard Henderson <rth@redhat.com>
4931
d78e771d
ZW
4932 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
4933 notes for nothrow calls if flag_forced_unwind_exceptions.
4934 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
4935 (sjlj_find_directly_reachable_regions): Likewise.
4936 (reachable_handlers): Likewise.
4937 (can_throw_external): Likewise.
4938 (collect_one_action_chain): Record cleanups after catch-all and
4939 must-not-throw if flag_forced_unwind_exceptions.
4940 * flags.h (flag_forced_unwind_exceptions): Declare.
4941 * toplev.c (flag_forced_unwind_exceptions): New.
4942 (lang_independent_options): Add it.
125ca8fd
RH
4943 * doc/invoke.text: Add it.
4944
8f744ea9
DM
49452003-04-01 David Mosberger <davidm@hpl.hp.com>
4946
d78e771d
ZW
4947 * config/ia64/crti.asm: Clean up trailing whitespace.
4948 Remove trailing hashes (#) from identifiers.
8f744ea9 4949
d78e771d 4950 * config/ia64/crtn.asm: Ditto.
8f744ea9 4951
d78e771d
ZW
4952 * config/ia64/crtend.asm: Remove trailing hashes (#) from
4953 identifiers.
4954 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
4955 directives. Drop explicit bundling---it just makes the code
4956 harder to read. Don't save/restore gp needlessly.
8f744ea9 4957
d78e771d
ZW
4958 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
4959 identifiers (they're only needed if the identifier would clash
4960 with a register name otherwise).
4961 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
4962 directives. Drop explicit bundling---it just makes the code
4963 harder to read.
4964 (__do_jv_register_classes): Ditto.
4965 (.fini_array): Remove "progbits" (newer
4966 assemblers don't like wrong section-types).
4967 (.init_array): Ditto.
8f744ea9 4968
e129b3f9
RS
49692003-04-01 Roger Sayle <roger@eyesopen.com>
4970
4971 PR fortran/9974
15d4fd98 4972 * gcse.c (reg_killed_on_edge): New function to test whether the
e129b3f9
RS
4973 given reg is overwritten by any instruction queued on an edge.
4974 (bypass_block): Ignore substitutions killed on incoming edges.
4975 Don't bypass outgoing edges that have queued instructions.
4976
fe0002ee
AO
49772003-04-01 Alexandre Oliva <aoliva@redhat.com>
4978
4979 * real.h (EXP_BITS): Make room for...
4980 (struct real_value): ... added canonical bit.
4981 (struct real_format): Added pnan.
4982 (mips_single_format, mips_double_format, mips_extended_format,
4983 mips_quad_format): New.
4984 * real.c: Copy p to pnan in all formats.
4985 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
4986 (real_nan): Use pnan to compute significand's shift.
4987 (real_identical): Disregard significand in canonical
4988 NaNs.
4989 (real_hash): Likewise. Take signalling into account.
4990 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
4991 Disregard significand bits in canonical NaNs. Set all bits of
4992 canonical NaN if !qnan_msb_set.
4993 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
4994 qnan_msb_set to tell the base double format.
4995 (ibm_extended_format): Use 53 as pnan.
4996 (mips_single_format, mips_double_format, mips_extended_format,
4997 mips_quad_format): Copied from the corresponding ieee/ibm
4998 formats, with qnan_msb_set false.
4999 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
5000 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
5001 * config/mips/mips.c (override_options): Use mips_single_format
5002 and mips_double_format. Default TFmode to mips_quad_format.
5003 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
5004 * config/mips/t-irix6: Likewise.
5005 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
5006 * config/fp-bit.c (pack_d, unpack_d): Obey it.
5007
481a8181
GK
50082003-04-01 Geoffrey Keating <geoffk@apple.com>
5009
5010 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
5011 (live_image_destructor): Reset image to initial state.
5012 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
5013
375ffbe6
EB
50142003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5015
5016 * config/sparc/sparc.c (input_operand): Accept bare
5017 CONSTANT_P_RTX operands.
5018
47a3dae1
ZD
50192003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5020
5021 * gcse.c (struct ls_expr): Added pattern_regs field.
5022 (ldst_entry): Initialize it.
5023 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
5024 (store_ops_ok): Use regs precomputed by them.
5025 (find_loads, store_killed_in_insn, load_kills_store): Change return
5026 type to bool.
5027 (store_killed_before, store_killed_after): Take position of register
5028 set in account.
5029 (reg_set_info): Store position of the setter.
5030 (gcse_main): Enable store motion.
5031 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
5032 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
5033 sharing.
5034 (simple_mem): Enable store motion of non-symbol mems.
5035 (regvec): Type changed.
5036 (LAST_AVAIL_CHECK_FAILURE): New.
5037 (compute_store_table_current_insn): New.
5038 (build_store_vectors): Computation of availability and anticipatability
5039 moved ...
5040 (compute_store_table, find_moveable_store): ... here.
5041 (delete_store): Remove senseless comment.
5042 (store_motion): Reorganize.
5043
77d4f3a4
KB
50442003-04-01 Kevin Buettner <kevinb@redhat.com>
5045
5046 * config/mips/mips.c (override_options): Provide mappings for
5047 HI_REGNUM and LO_REGNUM.
5048 * config/mips/mips.h (MD_DBX_FIRST): Define.
5049
7d4444ea
FS
50502003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5051
5052 * combine.c (merge_outer_ops): Fix typo.
5053
5054 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
5055
9259f3b0
DE
50562003-04-01 David Edelsohn <edelsohn@gnu.org>
5057
5058 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5059 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
5060 imul_compare. Add lmul_compare.
5061 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
5062 in second pair of dispatch slots. Model stores more accurately.
5063 Tweak multiply model. Add bypasses for CR instructions dependent
5064 on complicated compares.
5065 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
5066 (muldi3): Add lmul_compare patterns.
5067 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
5068 and FPSTORE_UX to split instructions and add COMPARE,
5069 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
5070 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
5071 (rs6000_rtx_costs): Separate POWER4 multiply case.
5072
7fe317e4
UW
50732003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
5074
5075 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
5076 Do nothing if __builtin_return_address was not used.
5077
e1fea6ee
JH
5078Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5079
5080 * i386.md (test patterns): Allow memory operand in operand1.
5081
d744e06e
AH
50822003-02-31 Aldy Hernandez <aldyh@redhat.com>
5083
d78e771d
ZW
5084 * testsuite/gcc.c-torture/execute/simd-3.c: New.
5085
5086 * expr.c (expand_expr): Handle VECTOR_CST.
5087 (const_vector_from_tree): New.
5088
5089 * varasm.c (output_constant): Handle VECTOR_CST.
5090
5091 * c-typeck.c (digest_init): Build a vector constant from a
5092 VECTOR_TYPE.
5093
5094 * config/rs6000/rs6000.c: Remove prototype for
5095 easy_vector_constant.
5096 (easy_vector_constant): Add mode parameter. Rewrite to handle
5097 more easy constants.
5098 (rs6000_emit_move): Pass mode to easy_vector_constant.
5099 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
5100 (emit_easy_vector_insn): New.
5101 (easy_vector_same): New.
5102 (EASY_VECTOR_15): New macro.
5103 (EASY_VECTOR_15_ADD_SELF): New macro.
5104 (bdesc_2arg): Rename to xorv2si3.
5105 (easy_vector_constant_add_self): New.
5106 (input_operand): Allow vector constants.
5107
5108 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5109 easy_vector_constant, easy_vector_constant_add_self.
5110 (EXTRA_CONSTRAINT): Add 'W'.
5111
5112 * config/rs6000/rs6000-protos.h: Add prototype for
5113 easy_vector_constant, emit_easy_vector_insn.
5114
5115 * config/rs6000/altivec.md (xorv8hi3): New.
5116 (xorv16qi3): New.
5117 Remove all _const0 patterns.
5118 (movv4si_internal): Rewrite to use code. Add vector constant to
5119 vector alternative. Add splitter.
5120 (movv8hi_internal): Same.
5121 (movv16qi_internal): Same.
5122 (movv4sf_internal): Same.
5123 Change the unspecs for vspltis* to use constants.
5124
5125 * config/rs6000/spe.md ("xorv4hi3"): New.
5126 ("spe_evxor"): Rename to xorv2si3.
5127 ("xorv1di3"): New.
5128 Remove all _const0 patterns.
5129 (movv2si_internal): Rewrite to use code. Add vector constant to
5130 alternatives. Add splitter.
5131 (movv4hi_internal): Add vector constant to alternatives.
5132 (movv1di_internal): Same.
5133 (movv2sf_internal): Same.
d744e06e 5134
46e33d43
MM
51352003-03-31 Mark Mitchell <mark@codesourcery.com>
5136
5137 PR c/9936
5138 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
5139 variably-sized arrays in parameters.
5140 (set_save_expr_context): New function.
5141 (c_expand_body): Use it, via walk_tree.
5142
73a39fc4
EC
51432003-03-31 Eric Christopher <echristo@redhat.com>
5144
5145 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
5146 (combinable_i3pat): Remove call to expand_field_assignment and
5147 #if 0'd code.
5148
6b665219
MM
51492003-03-31 Mark Mitchell <mark@codesourcery.com>
5150
5151 PR c++/10278
5152 * c-common.c (finish_label_address_expr): Handle the
5153 error_mark_node.
5154
6c06208f
RH
51552003-03-31 Richard Henderson <rth@redhat.com>
5156
5157 * real.c (real_identical): Reorg so as to not compare
5158 signalling for normals.
5159
11789584
SC
51602003-03-31 Stephane Carrez <stcarrez@nerim.fr>
5161
5162 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
5163
c25292ce
SC
51642003-03-31 Stephane Carrez <stcarrez@nerim.fr>
5165
5166 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
5167 notes as they are boggus.
5168 (m68hc11_gen_movqi): Likewise.
5169
07faf2d6
SC
51702003-03-31 Stephane Carrez <stcarrez@nerim.fr>
5171
5172 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
5173 save the soft registers after the frame pointer so that gdb can unwind
5174 the frame more easily.
5175 (expand_epilogue): Likewise in opposite order; allow to use X register
5176 as scratch if the return value is by reference.
5177
adff28c3
JM
51782003-03-31 Jason Merrill <jason@redhat.com>
5179
5180 PR java/10145
5181 * stor-layout.c (update_alignment_for_field): Respect
5182 DECL_USER_ALIGN for zero-length bitfields, too.
5183 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
5184 fields.
5185
c419b113
MA
51862003-03-31 Matt Austern <austern@apple.com>
5187
5188 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
5189 (count_defs): Keep track of number of defs as well as total size.
5190 (write_defs): Put every definition in cpp_savedstate's defs array.
5191 (comp_hashnode): Define. Comparison function for qsort.
5192 (cpp_write_pch_deps): Sort definitions before writing them.
5193 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
5194 (collect_ht_nodes): Define.
5195 (cpp_valid_state): When verifying that undefined identifiers in
5196 the pch file are still undefined, read a sorted list of undefined
5197 identifiers, collect all defined identifiers into a sorted list,
5198 and walk through both lists to make sure there's no match.
73a39fc4 5199
ef3a7d56
KH
52002003-03-31 Kazu Hirata <kazu@cs.umass.edu>
5201
5202 * config/h8300/h8300.md (a peephole2): New.
5203
5ccd517a
MM
52042003-03-31 Michael Matz <matz@suse.de>
5205
5206 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
5207
52082003-03-31 Segher Boessenkool <segher@koffie.nl>
c8ae788f
SB
5209
5210 PR target/10177
5211 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
5212 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
5213 all call-clobbered registers as used.
5214
7f1fc38e
MM
52152003-03-31 Michael Matz <matz@suse.de>
5216
5217 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
5218 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
5219
27283c73
NS
52202003-03-31 Nathan Sidwell <nathan@codesourcery.com>
5221
5222 * gcov.c: Add -a & -u options.
5223 (struct arc_info): Add local_span, is_call_non_return,
5224 is_nonlocal_return, is_unconditional flags, remove is_call flag.
5225 (struct block_info): Add flags, is_call_site, is_nonlocal_return
5226 members. Make encodings a union with span member.
5227 (struct function_info): Add blocks_executed, line, src, line_next
5228 members.
5229 (struct coverage_info): Make branches a union with blocks member.
5230 (struct source_info): Add functions member.
5231 (object_summary, program_count): New global variables.
5232 (flag_all_blocks, flag_unconditional): New flags.
5233 (find_source, output_branch_count): New functions.
5234 (print_usage): Adjust.
5235 (options): Adjust.
5236 (process_args): Adjust.
5237 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
5238 <GCOV_TAG_BLOCKS>: Read flags.
5239 <GCOV_TAG_LINES>: Adjust.
5240 (read_count_file): Process SUMMARY tags.
5241 (solve_flow_graph): Set is_unconditional and clear is_call_site
5242 appropriately.
5243 (add_branch_counts): Adjust. Don't count unconditional branches.
5244 (add_line_counts): Deal with all-blocks mode, accumulate block
5245 coverage.
5246 (accumulate_line_counts): Adjust, generate local spanning tree for
5247 all-blocks mode.
5248 (output_lines): Adjust.
5249 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
5250 * doc/gcov.texi: Document.
5251
212d9313
KH
52522003-03-31 Kazu Hirata <kazu@cs.umass.edu>
5253
63855aa6 5254 * config/h8300/h8300.md: Organize peephole2's that transform
212d9313
KH
5255 (compare (reg:HI) (const_int)).
5256
03f2ea93
RS
52572003-03-31 Roger Sayle <roger@eyesopen.com>
5258
5259 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
5260 (init_emit_once): Initialize dconstm2 and dconsthalf here.
5261 * real.h (dconstm2, dconsthalf): Add prototypes here.
5262 * real.c (real_sqrt): Use dconsthalf rather than local copy.
5263 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
5264 exp(x/2.0) remember to fold the division if possible.
5265 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
5266 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
5267 1.0/(x*x) and pow(x,0.5) as sqrt(x).
5268
155de338
KH
52692003-03-31 Kazu Hirata <kazu@cs.umass.edu>
5270
5271 * config/h8300/h8300.md (a new peephole2): New.
5272
98d3d336
RS
52732003-03-31 Richard Sandiford <rsandifo@redhat.com>
5274
5275 * gcse.c (simple_mem): Return false for floating-point accesses
5276 if flag_float_store is true.
5277
6b2d1c9e
RS
52782003-03-30 Roger Sayle <roger@eyesopen.com>
5279
5280 * gcse.c (gcse_constant_p): New function to identify constants
5281 suitable for constant propagation, including COMPARE with two
5282 integer constant arguments.
5283 (hash_scan_set): Use gcse_constant_p.
5284 (find_avail_set): Likewise.
5285 (cprop_insn): Likewise.
5286 (do_local_cprop): Likewise.
5287 (find_implicit_sets): Likewise.
5288 (find_bypass_set): Likewise.
5289
af829441
MK
52902003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
5291
5292 * except.h: Remove definition of varray_type.
5293
3d1f4922
RH
52942003-03-30 Richard Henderson <rth@redhat.com>
5295
5296 PR opt/10011, opt/10252:
d78e771d
ZW
5297 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
5298 before post-gcse cse pass.
3d1f4922 5299
9311f3f6
RS
53002003-03-30 Roger Sayle <roger@eyesopen.com>
5301
5302 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
5303
ececa172
DD
53042003-03-30 DJ Delorie <dj@redhat.com>
5305
5306 * profile.c (instrument_edges): Make sure any newly created
5307 jump insns have correct jump label info.
5308
e1233a7d
RH
53092003-03-30 Richard Henderson <rth@redhat.com>
5310
5311 * cfgbuild.c (make_edges): Use tablejump_p.
5312 * cfgcleanup.c (label_is_jump_target_p): Likewise.
5313 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
5314 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
5315 (try_redirect_by_replacing_jump): Likewise.
5316 (redirect_edge_and_branch): Likewise.
5317 * cse.c (fold_rtx): Likewise.
5318 * jump.c (delete_related_insns): Likewise.
5319 * rtlanal.c (get_jump_table_offset): Likewise.
5320 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
5321
78e68f88
GDR
53222003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5323
d78e771d
ZW
5324 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
5325 (STRICT2_WARN): Likewise.
73a39fc4 5326
15dda4d3
KG
53272003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5328
5329 PR other/6955
5330 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
5331 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
5332
5bf92e20
RH
53332003-03-30 Richard Henderson <rth@redhat.com>
5334
5335 PR c/10083
5336 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
5337 don't zero_extend const inputs.
5338
9a8075a1
KH
53392003-03-30 Kazu Hirata <kazu@cs.umass.edu>
5340
5341 * reload1.c (reload_cse_move2add): Fix a comment typo.
5342
f3926c48
KH
53432003-03-30 Kazu Hirata <kazu@cs.umass.edu>
5344
5345 * config/h8300/h8300.md (a peephole2): Remove useless code.
5346
39ecf301
KH
53472003-03-29 Kazu Hirata <kazu@cs.umass.edu>
5348
5349 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
5350 (*iorsi3_and_lshiftrt): Likewise.
5351 (*iorsi3_zero_extract): Likewise.
5352
d4048ff6
KH
53532003-03-29 Kazu Hirata <kazu@cs.umass.edu>
5354
5355 * config/h8300/h8300.md (*insv_si_8_8): New.
5356 (*insv_si_8_8_lshiftrt_8): Likewise.
5357 (a peephole2): Likewise.
5358
62d08205
GP
53592003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5360
60ef8bdd 5361 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
73a39fc4 5362 Uniformly use bugfix instead of bug fix.
60ef8bdd
GP
5363
53642003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
73a39fc4 5365
62d08205
GP
5366 PR doc/895
5367 * ONEWS: Remove those items that already appear in the EGCS
5368 release notes on our web pages.
5369
e87a88d3
AM
53702003-03-29 Alan Modra <amodra@bigpond.net.au>
5371
5372 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
5373 TARGET_HARD_FLOAT. Reformat.
5374 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
5375
ce4a8f7d
ACY
53762003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
5377
5378 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
5379 work on Solaris 2.5.1.
5380
12f76820
KH
53812003-03-28 Kazu Hirata <kazu@cs.umass.edu>
5382
5383 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
5384 section of h8300.md
5385 (*addsi3_and_nor_r_1): Likewise.
5386
7d798969
UW
53872003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5388
5389 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
5390 set up before any trapping memory access if flag_non_call_exceptions.
5391
00dcfe80
AM
53922003-03-29 Alan Modra <amodra@bigpond.net.au>
5393
5394 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
5395
5396 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
5397
d869a8c4
NN
53982003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
5399
5400 * configure.in: Clarify comments.
5401 * configure: Regenerate.
5402
5c033b9f
UW
54032003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5404
73a39fc4 5405 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
5c033b9f
UW
5406 label even if pool empty when generating PIC.
5407 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
5408
d18ad191
KH
54092003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
5410 Dhananjay Deshpande <dhananjayd@kpit.com>
5411
5412 PR target/10205
5413 * config/h8300/h8300.c (h8300_initial_elimination_offset):
5414 Correct the offset computation when TARGET_NORMAL.
5415
0c85dbfd
EB
54162003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
5417
5418 PR target/10067
5419 * config/sparc/sparc.md (jump pattern): Correct order
5420 when issuing the annuling marker.
5421
f7670e7b
EB
54222003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
5423
5424 PR c/8281
5425 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
5426 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
5427
c9280dfe
AM
54282003-03-28 Alan Modra <amodra@bigpond.net.au>
5429
5430 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
5431 globalize_label.
5432 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
73a39fc4 5433 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
c9280dfe
AM
5434 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5435 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5436 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5437 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5438 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
5439
e81eb37f
AM
54402003-03-28 Alan Modra <amodra@bigpond.net.au>
5441
5442 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
5443 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
5444 notes after hoisting.
5445 (load_mems): Adjust replace_loop_mems call.
5446
1ce324c3 54472003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
d78e771d 5448 Richard Henderson <rth@redhat.com>
1ce324c3
EB
5449
5450 PR target/10114 and PR target/10084
5451 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
5452
c6cf19a8
RH
54532003-03-27 Richard Henderson <rth@redhat.com>
5454
5455 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
5456
9ddae796
RS
54572003-03-27 Roger Sayle <roger@eyesopen.com>
5458
5459 * fold-const.c (fold_inf_compare): New function to simplify FP
5460 comparisons against +Infinity or -Infinity.
5461 (fold): Optimize floating point comparisons against Infs and NaNs.
5462
01e60c33
JJ
54632003-03-27 Janis Johnson <janis187@us.ibm.com>
5464
5465 * libgcov.c: Provide only dummy functions if libc is not available.
5466
ad59ba20
RH
54672003-03-27 Richard Henderson <rth@redhat.com>
5468
5469 * real.h (struct real_value): Add signalling.
5470 (EXP_BITS): Decrement.
5471 * real.c (get_canonical_qnan): Don't set MSB-1.
5472 (get_canonical_snan): Likewise. Set signalling.
5473 (real_identical): Compare signalling.
5474 (round_for_format): Remove force-one-bit on code.
5475 (real_nan): Likewise. Set signalling.
5476 (encode_ieee_single): Add force-one-bit code; honor signalling.
5477 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
5478 (decode_ieee_single): Set signalling.
5479 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
5480
940bbb74
OH
54812003-03-27 Olivier Hainque <hainque@act-europe.fr>
5482
5483 PR ada/9953
5484 * ada/Makefile.in (gnatlib configuration for HPUX): Split
5485 the general section for HPUX into specific sections for
5486 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
5487 11 case.
5488
c7d325c8
GN
54892003-03-27 Glen Nakamura <glen@imodulo.com>
5490
5491 PR opt/10087
5492 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
5493 while incrementing giv.
5494 (record_biv): Check for duplicate biv locations and
5495 set (struct induction *) v->same if found.
5496
f18ab437
DM
54972003-03-27 David Mosberger <davidm@hpl.hp.com>
5498
d78e771d
ZW
5499 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
5500 v0.9 API change: replace read of UNW_REG_HANDLER with
5501 unw_get_proc_info().
5502 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
5503 with unw_get_proc_info().
5504 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
5505 unw_get_proc_info().
f18ab437 5506
eaff4b90
VM
55072003-03-27 Vladimir Makarov <vmakarov@redhat.com>
5508
5509 * config/rs6000/8540.md: Use presence_set instead of absence_set.
5510
3684a055
RH
55112003-03-26 Richard Henderson <rth@redhat.com>
5512
5513 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
5514
de132314
RS
55152003-03-26 Roger Sayle <roger@eyesopen.com>
5516
5517 PR bootstrap/10051, PR bootstrap/10169.
5518 * mips-tfile.c (init_file): Don't provide a static initializer.
5519 (initialize_init_file): Initialize the contents of init_file.
5520 (add_file): Call initialize_init_file if not already initialized.
5521
6f84708a
UW
55222003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5523
5524 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
5525 registers used for global asm variables.
5526 (s390_frame_info, s390_arg_frame_offset): Likewise.
5527 (s390_emit_prologue, s390_emit_epilogue): Likewise.
5528
5e8006fa
VM
55292003-03-26 Vladimir Makarov <vmakarov@redhat.com>
5530
d78e771d 5531 * config/rs6000/8540.md: New file.
73a39fc4 5532
5e8006fa
VM
5533 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
5534 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
5535 reservations for imul.
5536
5537 * config/rs6000/rs6000.md: Include 8540.md. Change
5538 delayed_compare onto mult_compare for insns generating
5539 multiplication.
5540 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
5541 New type attribute values.
5542
5543 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
5544 fpsimple instead of fp.
5545 (*divsf3_gpr): Use type vecfdiv instead of fp.
5546 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
5547 instead of vecfloat.
5548 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
5549 (spe_brinc): Use type brinc instead of veccomplex.
5550 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
5551 veccomplex.
5552 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
5553 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
5554 *movv2sf_internal): Define type attribute values for all
5555 alternatives.
5556 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
5557 of fpcompare.
5558 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
5559 instead of fpcompare.
73a39fc4 5560
29ae9364
DE
55612003-03-26 David Edelsohn <edelsohn@gnu.org>
5562
5563 * config/rs6000/power4.md: Allow delay between dispatch and
5564 function units for simple instructions. Correct store units.
5565 Allow branch to occupy as many dispatch slots as necessary.
5566
be565ad7
JJ
55672003-03-26 Jakub Jelinek <jakub@redhat.com>
5568
5569 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
5570 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
5571 zero extend old to it.
5572 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
5573 operand.
5574
27e484bc
EB
55752003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
5576
5577 PR target/7784
5578 * reload.c (find_reloads_address): Handle
5579 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
5580 all base registers.
5581
b47161ec
MA
55822003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
5583
5584 PR other/10203
5585 * version.c: Reference the GCC web site in the URL.
5586
611f0729
AM
55872003-03-26 Alan Modra <amodra@bigpond.net.au>
5588
5589 * c-incpath.c (add_standard_paths): Add both "translated" and
5590 non-translated header paths.
5591
e4e7d312
LR
55922003-03-25 Loren James Rittle <ljrittle@acm.org>
5593
5594 * doc/install.texi (*-*-freebsd*): Update with known status.
5595
2e2255ff
JM
55962003-03-21 Jason Merrill <jason@redhat.com>
5597
5598 PR optimization/10171
5599 * unroll.c (unroll_loop): Don't delete the jump at the end unless
5600 we also delete a jump at the beginning.
5601
8725a499
SC
56022003-03-25 Stephane Carrez <stcarrez@nerim.fr>
5603
5604 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
5605 contributor.
5606
3504dad3
JH
5607Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
5608
5609 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
5610 constants are not expensive.
5611
cb9a1d9b
JH
5612Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
5613
5614 PR opt/10056
5615 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
5616 jump jumping to the next instruction.
5617 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5618
d6d05f8d
GP
56192003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5620
5621 * doc/passes.texi (Passes): Properly document that we do not
5622 perform jump2 any longer; remove command-line option -dJ.
5623
d2fc7725
EB
56242003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
5625
5626 PR optimization/8746
5627 * config/i386/i386.md (and promoting splitters): Disable HImode to
5628 SImode promoting when the sign bit matters and is not preserved, or
5629 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
5630 for size.
5631
beb14cfe
KH
56322003-03-24 Kazu Hirata <kazu@cs.umass.edu>
5633
5634 * config/h8300/h8300.md (a peephole2): Extend to support loads
5635 in QImode and HImode.
5636
dbcedbc4
SC
56372003-03-24 Stephane Carrez <stcarrez@nerim.fr>
5638
5639 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
5640 _return_far
5641 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
5642 (MULTILIB_EXCEPTIONS): Likewise.
5643 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
5644 by calling some board support routine.
5645 ("call_value"): Likewise.
5646 ("*return_void"): Likewise for return.
5647 ("*return_16bit"): Likewise.
5648 ("*return_32bit"): Likewise.
5649 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
5650 for 68HC11 too.
73a39fc4 5651 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
dbcedbc4
SC
5652 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
5653 -mlong-calls for 68HC11.
5654 * config/m68hc11/larith.asm (declare_near): New macro.
5655 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
5656 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
5657 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
5658 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
5659 (__mulhi32): Likewise.
5660 (ret): Update macro for 68HC11.
5661 (__far_trampoline): Implement for 68HC11.
5662 (__call_a16, __call_a32, __return_void, __return_16): New support
5663 routines for 68HC11 memory bank switching calling support.
5664 (__return_32): Likewise.
5665
696fe23c
NB
56662003-03-24 Neil Booth <neil@daikokuya.co.uk>
5667
5668 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
5669
05253aed
JJ
56702003-03-24 Janis Johnson <janis187@us.ibm.com>
5671
5672 * doc/install.texi (Testing): Mention test result links from build
5673 status pages.
5674
f8928391
MM
56752003-03-24 Mark Mitchell <mark@codesourcery.com>
5676
5677 * function.c (put_var_into_stack): Change bool parameter to int.
5678 (gen_mem_addressof): Likewise.
5679 * rtl.h (gen_mem_addressof): Likewise.
5680 * tree.h (put_var_into_stack): Likewise.
5681 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
5682 gen_mem_addressof or put_var_into_stack.
5683 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
5684 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
5685
b980d725
KH
56862003-03-24 Kazu Hirata <kazu@cs.umass.edu>
5687
5688 * config/h8300/h8300.md (a peephole2): New.
5689
2ff1fb45
JJ
56902003-03-24 Jakub Jelinek <jakub@redhat.com>
5691
5692 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
5693
8b5777db
GP
56942003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5695
5696 * doc/contrib.texi (Contributors): Update Janis Johnson.
5697
02484af9
EB
56982003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5699
5700 PR target/10072
5701 * combine.c (simplify_if_then_else): Check that the mode
5702 has MODE_INT class before applying the (OP Z (mult COND C2))
5703 transformation.
5704
941bc659
EB
57052003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5706
5707 PR optimization/9414
5708 * config/sparc/sparc.md (widening peepholes): Use
5709 widen_memory_access instead of change_address.
5710
f29a2bd1
MM
57112003-03-23 Mark Mitchell <mark@codesourcery.com>
5712
5713 PR c++/7086
5714 * c-typeck.c (c_mark_addressable): Adjust calls to
5715 put_var_into_stack.
5716 * expr.c (expand_expr): Likewise.
5717 * function.c (put_var_into_stack): Add rescan parameter. Do not
5718 call fixup_var_refs when rescan is false.
5719 (gen_mem_addressof): Likewise.
5720 (assign_parms): Adjust calls to put_var_into_stack.
5721 (setjmp_protect): Likewise.
5722 (setjmp_protect_args): Likewise.
5723 * rtl.h (gen_mem_addressof): Change prototype.
5724 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
5725 * tree.h (put_var_into_stack): Change prototype.
5726
fa9b4904
AB
57272003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
5728
b099daeb 5729 PR middle-end/9967
fa9b4904
AB
5730 * builtins.c (expand_builtin_fputs): When optimizing for size,
5731 don't transform fputs into fwrite.
5732
068d2c9d
MM
57332003-03-23 Glen Nakamura <glen@imodulo.com>
5734
5735 PR c/8224
5736 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
5737 when signedness changes for division or modulus.
5738
c967e28c
AM
57392003-03-24 Alan Modra <amodra@bigpond.net.au>
5740
5741 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
5742 globalize_label.
5743
766dec0e
RS
57442003-03-23 Roger Sayle <roger@eyesopen.com>
5745
5746 PR c/10178
5747 * stmt.c (expand_end_case_type): Check for overflow in range when
5748 determining whether to use a bit-test implementation.
5749
ef3e9886
RH
57502003-03-23 Richard Henderson <rth@redhat.com>
5751
5752 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
5753 before flow2.
5754 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
5755
bd2eae18
RH
57562003-03-23 Richard Henderson <rth@redhat.com>
5757
5758 PR opt/10116
5759 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
5760 from then_bb or else_bb after flow2.
5761
62c9aa5f
ZW
57622003-03-23 Zack Weinberg <zack@codesourcery.com>
5763
5764 * configure.in: Check whether it is necessary to link against
5765 libm to use ldexp.
5766 * configure: Regenerate.
5767 * Makefile.in: Add LDEXP_LIB substitution variable.
5768
4d1da12a
KH
57692003-03-23 Kazu Hirata <kazu@cs.umass.edu>
5770
5771 * config/h8300/h8300.md: Fix comment typos.
5772
7772f0a9
JDA
57732003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5774
5775 * pa.c (output_cbranch): Fix typo in comment.
5776
3ce6bef0
RH
57772003-03-22 Richard Henderson <rth@redhat.com>
5778
5779 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
5780 after reload.
5781
7a9cdb10
DD
57822003-03-22 DJ Delorie <dj at redhat dot com>,
5783 Bruce Korb <bkorb at gnu dot org>
5784
5785 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
5786 buggy Solaris 2.6 mutex/cond initializers.
5787 (solaris_mutex_init): Rename to solaris_mutex_init_2.
5788 * fixinc/fixincl.x: Regenerate.
5789 * fixinc/tests/base/pthread.h: Update.
00af168c
BK
5790 * fixinc/fixincl.c(initialize): be explicit about the default case
5791 and indicate verbose level when being very, very verbose.
5792 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7a9cdb10 5793
8330e2c6
AJ
57942003-03-22 Andreas Jaeger <aj@suse.de>
5795
5796 * config/i386/i386.c (ix86_init_machine_status): Return value.
5797
02a57c73
JDA
57982003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5799
5800 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
5801 conditional branch to the following instruction. Use next_real_insn
5802 instead of next_active_insn.
5803 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
5804 instead of next_active_insn.
5805
97c6f7ad
UW
58062003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
5807
c967e28c
AM
5808 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
5809 instead of 'm' constraint in forced-split alternatives.
97c6f7ad
UW
5810 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
5811 VALIDATE_ADDRESS parameter to operand_subword.
5812
c8fcf20c
KH
58132003-03-22 Kazu Hirata <kazu@cs.umass.edu>
5814
5815 * config/h8300/h8300.c (notice_update_cc): Correctly handle
5816 the case where the set destination is STRICT_LOW_PART.
5817
21c0e624
SS
58182003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
5819
5820 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
5821 c30 instead of a c40 processor.
5822
70e1b8fc
AM
58232003-03-22 Alan Modra <amodra@bigpond.net.au>
5824
5825 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
5826
d9b2742a
ZW
58272003-03-21 Zack Weinberg <zack@codesourcery.com>
5828
5829 * c-common.c: Include intl.h.
5830 (shadow_warning): Rewrite to allow better diagnostic translations.
5831 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
5832 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
5833 use it throughout.
5834 * Makefile.in (c-common.o): Add intl.h.
5835
cbbf876b
NN
58362003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
5837
bea41393
NN
5838 * config.gcc: Remove 'float_format'.
5839
cbbf876b
NN
5840 * fixproto: Define NULL and size_t in generated stdlib.h and
5841 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
5842 Rearrange file generation loop for readability. Generate time.h,
5843 string.h if missing.
5844 * tsystem.h: Include <string.h>, <time.h> unconditionally.
5845 * config.gcc: Blow away POSIX defines.
5846
84fcbe0a
SC
58472003-03-22 Stephane Carrez <stcarrez@nerim.fr>
5848
5849 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
5850
639a8102
SC
58512003-03-22 Stephane Carrez <stcarrez@nerim.fr>
5852
5853 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
5854 writing .interrupt command.
5855 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
5856 if it's a far or near function.
5857 ("call_value"): Likewise.
5858 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
5859 near attributes.
5860 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
5861 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
5862 (m68hc11_initial_elimination_offset): Set current_function_far
5863 according to attributes.
5864 (expand_prologue): Likewise.
5865 (trap_handler_symbol): New global to keep track of trap handlers.
5866 (m68hc11_encode_section_info): Mark symbol as far if needed; set
5867 trap symbol.
5868 (m68hc11_is_far_symbol): New function.
5869 (m68hc11_is_trap_symbol): New function.
5870 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
5871 (m68hc11_is_trap_symbol): Declare.
5872
62c9aa5f 58732003-03-21 Jan Hubicka <jh@suse.cz>
d7394366
JH
5874
5875 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
5876 only when amount of saved regs changed.
5877 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
5878 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
5879
62c9aa5f 58802003-03-21 Jan Hubicka <jh@suse.cz>
5dc96d60
JH
5881
5882 PR inline-asm/7916
5883 * function.c (instantiate_virtual_regs_lossage): New function.
5884 (instantiate_virtual_regs_1): Use it.
5885 (instantiate_virtual_regs): Do not continue in substition when insn has
5886 been deleted.
5887
c5c15353
KH
58882003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5889
5890 * combine.c (make_field_assignment): Fix a warning.
5891
5c1c25f0
KH
58922003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5893
5894 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
5895
6b13641d
DJ
58962003-03-21 Dale Johannesen <dalej@apple.com>
5897
5898 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
5899 priority for R2 on Darwin.
5900 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
5901
6e814b8d
KH
59022003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5903
5904 * combine.c (make_field_assignment): Remove unnecessary AND
5905 when storing into zero_extract.
5906
2d295af5
ZW
59072003-03-21 Zack Weinberg <zack@codesourcery.com>
5908
5909 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
5910 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
5911 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
5912 in comment.
5913
c0510d84
DD
59142003-03-21 DJ Delorie <dj@redhat.com>
5915
5916 * optabs.c (init_integral_libfuncs): Make sure we init at least up
5917 to "long long" size words.
5918
fe86047c
UW
59192003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5920
5921 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
5922 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
5923 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
5924
526278c9
VR
59252003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5926
5927 PR doc-bug/9813
5928 * doc/extend.texi: Move misplaced paragraph about underscores in
5929 variables in macros.
5930
731458a4 59312003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2d295af5 5932 Richard Henderson <rth@redhat.com>
731458a4
EB
5933
5934 PR optimization/8366
5935 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
5936 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
5937 PIC+SYMBOLIC_CONST in other modes than Pmode.
5938 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
5939 the form PIC+SYMBOLIC_CONST as mode dependent.
5940
f3cd0185
DD
59412003-03-21 DJ Delorie <dj@redhat.com>
5942
5943 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
5944 sure we always emit at least one insn.
5945
70e5e841
CF
59462003-03-21 Christopher Faylor <cgf@redhat.com>
5947
5948 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
5949 stub t-cygming. Use common target header cygming.h. Add extra
5950 c_target_obj and cxx_target_obj file. Default cygwin to posix
5951 threading. Enforce i386 as float format.
5952 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
5953 Remove cygwin.h as target header. Use common target header
5954 cygming.h Enforce i386 as float format. Correct typo.
5955 * config/i386/cygming.h: New file, containing definitions
5956 common to mingw32 and cygwin.
5957 * config/i386/cygwin.h: Remove definitions common to cygwin and
5958 mingw. Simplify special spec logic. Define "wrappers" around
5959 certain include path defines to accommodate -mno-cygwin.
5960 Remove some #if 0'ed code.
2d295af5 5961 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
70e5e841
CF
5962 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
5963 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
5964 * config/i386/mingw32.h: Remove definitions common to cygwin and
5965 mingw.
5966 (EXTRA_OS_CPP_BUILTINS): Adjust.
5967 (TARGET_VERSION): Define.
5968 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
5969 mingw32.h definitions.
5970 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
5971 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
5972 Add compilation rules for cygwin1.o cygwin2.o.
5973 * config/i386/cygwin1.c: New file.
5974 * config/i386/cygwin2.c: New file.
5975 * config/i386/t-cygming: New makefile stub.
5976
4bddea4c
RH
59772003-03-20 Richard Henderson <rth@redhat.com>
5978
5979 * fold-const.c (extract_muldiv_1): Revert changing order of
5980 operands in case MULT_EXPR of 2003-02-16 patch.
5981
b3411d7e 59822003-03-20 Daniel Berlin <dberlin@dberlin.org>
06790e5f 5983 Merge changes from new-regalloc-branch
b3411d7e
DB
5984
5985 From Michael Matz <matz@suse.de>
5986 * df.c (df_ref_record_1): Move init of loc to safe point.
5987 Only recurse on interesting things in parallels.
5988 Handle CLASS_CANNOT_CHANGE_MODE smarter.
5989 (df_uses_record): Ditto.
2d295af5 5990
b3411d7e
DB
5991 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
5992 it's already okay to use memory operands in (IE doesn't require
5993 adding another insn or anything).
5994
05d482b9
RH
59952003-03-20 Richard Henderson <rth@redhat.com>
5996
5997 PR middle-end/6348
5998 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
5999 different from word_mode.
6000
86a36a0e
KH
60012003-03-20 Kazu Hirata <kazu@cs.umass.edu>
6002
6003 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
6004 source operand to those that can be extracted with bld.
6005
228692e2
RE
60062003-03-20 Richard Earnshaw <rearnsha@arm.com>
6007
6008 PR 10066
6009 * arm.md (UNSPEC_PIC_BASE): New constant.
6010 (pic_add_dot_plus_four): Wrap with unspec.
6011 (pic_add_dot_plus_eight): Likewise.
6012
d0940a55
KH
60132003-03-20 Kazu Hirata <kazu@cs.umass.edu>
6014
6015 * config/h8300/h8300.md (*insv_si_1_n): New.
6016 (*insv_si_1_n_lshiftrt): Likewise.
6017
c876997f
RS
60182003-03-20 Roger Sayle <roger@eyesopen.com>
6019
6020 * fold-const.c (fold_mathfn_compare): New function to simplify
6021 comparisons against built-in math functions. Fold comparisons
6022 of sqrt against constants.
6023 (fold): Call fold_mathfn_compare when appropriate.
6024
952a6df7
RE
60252003-03-20 Richard Earnshaw <rearnsha@arm.com>
6026
6027 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
6028 information.
6029
8826ff0f
PB
60302003-03-20 Per Bothner <pbothner@apple.com>
6031
6032 Various cleanups to help compile server.
6033
b4e46cea
PB
6034 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
6035 and pass that to _cpp_init_hashtable.
6036 (cpp_read_main_file): Drop hash_table* argument; don't call
6037 _cpp_init_hashtable.
6038 * cpplib.h: Update declarations to match.
6039 * c-opts.c (c_common_init_options): Pass ident_hash to
6040 cpp_create_reader.
6041 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
6042 * fix-header.c (read_scan_file): Likewise pass NULL table to
6043 cpp_create_reader rather than cpp_read_main_file.
6044
6045 * cppfiles.c (cpp_rename_file): Generalized and renamed
6046 to cpp_change_file.
6047 * cpplib.h: Update declaration to match.
6048 * c-opts.c (push_command_line_line, finish_options): Change
6049 cpp_rename_file calls to cpp_change_file.
2d295af5 6050
8826ff0f 6051 * line-map.c (add_line_map): Allow leaving the outermost file.
2d295af5 6052 Allowing entering an outermost-file after the initial time.
8826ff0f
PB
6053
6054 * toplev.c (pop_srcloc): Allow popping from initial file.
6055
015c3186
KH
60562003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
6057
6058 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
6059
101cb92a
KH
60602003-03-20 Kazu Hirata <kazu@cs.umass.edu>
6061
6062 * config/h8300/h8300.md (a peephole2): New.
6063
f4613a2e
KH
60642003-03-20 Kazu Hirata <kazu@cs.umass.edu>
6065
6066 * config/h8300/h8300.md (*addsi3_and_r_1): New.
6067 (*addsi3_and_not_r_1): Likewise.
6068
31260fb8
LR
60692003-03-19 Loren James Rittle <ljrittle@acm.org>
6070
6071 * Makefile.in (STRICT2_WARN): Add @WERROR@.
6072 (GCC_WARN_CFLAGS): Remove $(WERROR).
6073 (fixinc.sh-warn): New.
6074 * ada/Make-lang.in (ada-warn): Add $(WERROR).
6075 * cp/Make-lang.in (cp-warn): Add $(WERROR).
6076 * f/Make-lang.in (f-warn): Add $(WERROR).
6077 * java/Make-lang.in (java-warn): Add $(WERROR).
6078 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
6079
2bd3ecad
NN
60802003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
6081
6082 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
6083 langhooks-def.h (lhd_tree_dump_dump_tree),
6084 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
6085 Change return type from 'int' to 'bool'. Replace 0 and 1 with
6086 true and false in return statements.
6087
9eb0ef7a
KB
60882003-03-19 Kevin Buettner <kevinb@redhat.com>
6089
6090 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
6091 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
6092 DWARF_INITIAL_LENGTH_SIZE.
6093 (output_compilation_unit_header, output_pubnames, output_aranges)
6094 (output_line_info): Output 0xffffffff escape value for 64-bit
6095 DWARF extension.
6096 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
6097
8b5642e0 60982003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
0796c16a
UW
6099
6100 * config/s390/s390.c (s390_preferred_reload_class): Do not
6101 force constants to the pool unless necessary.
6102 (s390_decompose_address): Prefer to use pointer as base,
6103 not index register.
6104 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
6105 Q alternative.
2d295af5 6106 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
0796c16a
UW
6107 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
6108 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
6109 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
6110 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
6111
62c9aa5f 61122003-03-19 Jan Hubicka <jh@suse.cz>
d9b40e8d
JH
6113
6114 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
6115 * i386.c (use_fast_prologue_epilogue): Remove.
6116 (ix86_frame): New field save_regs-using_mov;
6117 (ix86_compute_frame_layout): Decide on fast prologues;
6118 allocate saved registers in red zone.
6119 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
6120
31488c64
NC
61212003-03-19 Nick Clifton <nickc@redhat.com>
6122
6123 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
6124
685d0e07
JDA
61252003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6126
6127 PR 10062
6128 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
6129 * pa-protos.h (output_lbranch): New prototype.
6130 * pa.c (compute_frame_size): Change size of the frame marker on the
6131 64-bit ports to 48 bytes.
6132 (pa_output_function_prologue): Document why SAVE_SP is set.
6133 (hppa_expand_prologue): Save previous stack pointer into frame marker
6134 on targets which use the hpux unwind library.
6135 (output_cbranch): Use output_lbranch.
6136 (output_lbranch): New function to output long unconditional branches.
6137 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
6138 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
6139 64-bit ports.
6140 * pa.md (jump): Use output_lbranch.
6141 (allocate_stack): New expander for dynamic stack allocation.
6142
6a04f4e0
AM
61432003-03-19 Alan Modra <amodra@bigpond.net.au>
6144
178274da
AM
6145 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
6146 when debugging on XCOFF targets. Delete "abi" temp.
6147
6a04f4e0
AM
6148 PR target/10073
6149 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
6150
6b2300b3
JJ
61512003-03-18 Jakub Jelinek <jakub@redhat.com>
6152
6153 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
6154 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
6155 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
6156
6157 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
6158 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
6159 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
6160
5ba6918e
GK
61612003-03-18 Geoffrey Keating <geoffk@apple.com>
6162
6788f5ca
GK
6163 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
6164 the result of machopic_function_base_name.
6165 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
6166 string rather than a static array.
6167
5ba6918e
GK
6168 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
6169
6170 * gengtype.c: Include rtl.h.
6171 (enum rtx_code): Don't define.
6172 (rtx_format): Make declaration match rtl.h.
6173 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
6174 users.
6175 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
6176 * Makefile.in (gengtype.o): Update dependencies.
6177
e0ec941e
AS
61782003-03-18 Andreas Schwab <schwab@suse.de>
6179
6180 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
6181 martin@blom.org.
6182
8291cc0e
GK
61832003-03-18 Geoffrey Keating <geoffk@apple.com>
6184
f83b236e
GK
6185 * function.c (next_block_index): Mark with GTY.
6186
8291cc0e
GK
6187 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
6188
b39eb2f9
RH
61892003-03-18 Richard Henderson <rth@redhat.com>
6190
6191 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
6192 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
6193 until after reload.
6194
6c537d03
RH
61952003-03-18 Richard Henderson <rth@redhat.com>
6196
6197 * builtins.c (expand_builtin_unop): New target_mode operand;
6198 use it to convert the result to the correct mode.
6199 (expand_builtin): Update all callers.
6200
fe03d631
UW
62012003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6202
6203 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
6204
62c9aa5f 62052003-03-18 Jan Hubicka <jh@suse.cz>
45183e03 6206
75fbf7d9
JH
6207 * i386.md: Fix previous commit that mistakely applied the patch
6208 twice.
6209
45183e03
JH
6210 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
6211 canonicalized.
6212 (memrefs_conflict_p): Likewise.
6213 (addr_side_effect_eval): Canonicalize the constructed address.
6214
62c9aa5f 62152003-03-18 Jan Hubicka <jh@suse.cz>
8dfa3bb0
JH
6216
6217 * i386.md (cvtts?2si peep2): New.
6218
1e788887
KH
62192003-03-18 Kazu Hirata <kazu@cs.umass.edu>
6220
6221 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
6222
94e001a9
AS
62232003-03-18 Andreas Schwab <schwab@suse.de>
6224
6225 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
6226 for format.
6227
bdaa131b
JM
62282003-03-17 Jason Merrill <jason@redhat.com>
6229
6230 PR c++/10091
6231 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
6232 an unaligned member of TREE_ADDRESSABLE type.
6233
ffcfcb5f
AM
62342003-03-18 Alan Modra <amodra@bigpond.net.au>
6235
6236 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
6237 (TARGET_PROFILE_KERNEL): Define.
6238 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
6239 (PROFILE_BEFORE_PROLOGUE): Don't define.
6240 (PROFILE_KERNEL): Remove hacks.
6241 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
6242 (rs6000_stack_info): No need to save lr if just for profiling when
70e1b8fc
AM
6243 TARGET_PROFILE_KERNEL.
6244 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
ffcfcb5f
AM
6245 (output_function_profiler): Localize label generation. Emit code
6246 for kernel profiling.
6247
9b98dc74
KH
62482003-03-17 Kazu Hirata <kazu@cs.umass.edu>
6249
6250 * config/h8300/h8300-protos.h: Add a prototype for
6251 byte_accesses_mergeable_p.
6252 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
6253 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
6254 (a splitter): Likewise.
6255 (*iorsi3_ashift_16_ashift_24): Likewise.
6256 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
6257
d41c4351
KG
62582003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6259
6260 * dwarf2asm.h: Delete obsolete comment.
6261 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
6262 dw2_asm_output_pcrel, dw2_asm_output_addr,
6263 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
6264 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
6265 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
6266 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
6267
6970c06a
ZW
62682003-03-17 Zack Weinberg <zack@codesourcery.com>
6269
6270 * c-tree.h (struct lang_identifier): Remove error_locus field.
6271 (IDENTIFIER_ERROR_LOCUS): Kill.
6272 (record_function_scope_shadow): New prototype.
6273 * c-typeck.c (build_external_ref): Don't complain if
6274 decl is error_mark_node. When not at file scope, bind the
6275 decl's local value to error_mark_node to suppress further
6276 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
6277
6278 * c-decl.c (get_function_binding_level): New static function.
6279 (record_function_scope_shadow): New exported function.
6280 (c_make_fname_decl): Use get_function_binding_level.
6281
405a98aa
SE
62822003-03-17 Steve Ellcey <sje@cup.hp.com>
6283
6284 * stmt.c (tail_recursion_args): Call promote_mode to set
6285 unsignedp flag correctly before calling convert_move.
6286
df86c7e2
ZD
62872003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6288
6289 * loop-unroll.c (decide_peel_completely,
6290 decide_unroll_constant_iterations, decide_unroll_stupid,
6291 decide_unroll_runtime_iterations, decide_peel_simple): Set
6292 loop->has_desc.
6293
62c9aa5f 62942003-03-17 Jan Hubicka <jh@suse.cz>
dbccdc42
JH
6295
6296 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
6297
b36a8cc2
OH
62982003-03-17 Olivier Hainque <hainque@act-europe.fr>
6299
6300 * function.c (assign_parms): For a struct value address passed as
6301 first argument, delay the function's result RTL setup code until
6302 after the emission of parameter conversions.
6970c06a 6303
94833648
DL
63042003-03-17 Dave Love <fx@gnu.org>
6305 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
aeefc21d
DL
6306
6307 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
6308 __arch64__ to match Compaq cc.
6309
783e2989
NB
63102003-03-17 Neil Booth <neil@daikokuya.co.uk>
6311
6312 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
6313 (c_common_init): Set EBCDIC in cpp options.
6314 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
6315 not conditional compilation.
6316 * cpplib.h (struct cpp_options): New entry EBCDIC.
6317
72ecfc60
NB
63182003-03-17 Neil Booth <neil@daikokuya.co.uk>
6319
6320 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
6321
47009d11
MH
63222003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6323
6324 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
6325 argument to 0 for redirect_jump.
47009d11 6326
bafb714b
MM
63272003-03-16 Mark Mitchell <mark@codesourcery.com>
6328
6329 PR c++/8805
6330 * except.c (eh_region_u_cleanup): Add prev_try.
6331 (expand_eh_region_end_cleanup): Set it.
6332 (reachable_handlers): Use it to skip over cleanup blocks.
6333
30492adf
AJ
63342003-03-17 Andreas Jaeger <aj@suse.de>
6335
6336 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
6337
7b3464ee
AM
63382003-03-17 Alan Modra <amodra@bigpond.net.au>
6339
6340 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
6341 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
6342 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
6343 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
6344
4f5c0f7e
RH
63452003-03-16 Richard Henderson <rth@redhat.com>
6346
6970c06a
ZW
6347 * simplify-rtx (simplify_binary_operation): Don't abort for
6348 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
4f5c0f7e 6349
3c298c88
RH
63502003-03-16 Richard Henderson <rth@redhat.com>
6351
6970c06a
ZW
6352 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
6353 optimize_size as well.
3c298c88 6354
fe91bac5
SC
63552003-03-16 Stephane Carrez <stcarrez@nerim.fr>
6356
6357 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
6358 for D register to specify the low part of it, aka B.
6359 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
6360 the register if we are loading 1 or -1 to it; avoid using temp
6361 register when moving X/Y to Y/X.
6362 (m68hc11_gen_movqi): Likewise.
6363 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
6364
ddc67067
MM
63652003-03-14 Mark Mitchell <mark@codesourcery.com>
6366
6367 PR optimization/9016
6368 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
6369 into the constant pool.
6370
0a71919d
FH
63712003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6372
6373 PR target/9164
6374 * tree.c (get_narrower): For extensions with unchanged bit number,
6375 return the unsignedness of the outer mode.
6376
46ea50cb
RS
63772003-03-16 Roger Sayle <roger@eyesopen.com>
6378
6379 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
6380 to avoid "may be used uninitialized" warning on ia64-hpux.
6381 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
6382
012c387f
AJ
63832003-03-16 Andreas Jaeger <aj@suse.de>
6384
6385 * configure.in: Improve check for memcheck.h.
6386 * configure: Regenerated.
6387
7d1c4aae
NB
63882003-03-16 Neil Booth <neil@daikokuya.co.uk>
6389
6390 * doc/cppopts.texi: Remove documentation of -A-.
6391
e20798d1
ZW
63922003-03-15 Zack Weinberg <zack@codesourcery.com>
6393
6394 * doc/libgcc.texi: Remove @tie.
6395
4af16369
JZ
63962003-03-15 Josef Zlomek <zlomekj@suse.cz>
6397
6398 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
6399 (rtx_pair): Added new element update_label_nuses, renamed to
6400 replace_label_data.
6401 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
6402 replace_label_data instead of rtx_pair.
6403 * loop.c (load_mems): Likewise.
6404 * rtlanal.c (replace_label): Replace label in pool constants and in
6405 INSN_LIST (in REG_LABEL note).
6406 (subrtx_p): Renamed to rtx_referenced_p.
6407 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
6408 LABEL_REF with CODE_LABEL, traverse constants from pool.
6409
d2184e79
AH
64102003-03-15 Aldy Hernandez <aldyh@redhat.com>
6411 Zack Weinberg <zack@codesourcery.com>
6412
6413 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
6414 * doc/libgcc.texi: New file.
6415 * doc/interface.texi: Delete paragraph about libgcc interface.
6416 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
6417
8cadae7e
JM
64182003-03-15 Jason Merrill <jason@redhat.com>
6419
ae0e5982
JM
6420 PR debug/9039
6421 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
6422
8cadae7e
JM
6423 PR debug/6387
6424 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
6425 function DIEs at toplevel.
6426 (decls_for_scope): At -g1, don't descend into subblocks.
6427
2436a91b
UW
64282003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6429
6430 * varasm.c (struct rtx_const): Change type of un.addr member
6431 to struct holding an additional 'symbol' member.
6432 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
6433 with equal string addresses as equal.
6434 (simplify_subtraction): Adapt to struct rtx_const change.
6435
151c68c3
NB
64362003-03-15 Neil Booth <neil@daikokuya.co.uk>
6437
6438 * fix-header.c (read_scan_file): Read main file before handling -D.
6439
6a87d634
RS
64402003-03-15 Roger Sayle <roger@eyesopen.com>
6441
6442 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
6443 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
6444 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
6445 (find_sub_basic_blocks): Likewise.
6446 * cgraphunit.c (cgraph_expand_functions): Likewise.
6447 * dwarf2out.c (prune_unused_types): Likewise.
6448 * expr.c (store_field): Likewise.
6449 * genextract.c (print_path): Likewise.
6450 * haifa-sched.c (schedule_insn): Likewise.
6451 * lcm.c (compute_antinout_edge): Likewise.
6452 * loop-unroll.c (decide_peel_once_rolling): Likewise.
6453 * ra-colorize.c (ra_colorize_free_all): Likewise.
6454 * ra-debug.c (dump_igraph): Likewise.
6455 (debug_hard_reg_set): Likewise.
6456 * reg-stack.c (reg_to_stack): Likewise.
6457 * rtlanal.c (refers_to_regno_p): Likewise.
6458 * tracer.c (layout_superblocks): Likewise.
6459
49c46444
NB
64602003-03-15 Neil Booth <neil@daikokuya.co.uk>
6461
6462 * fix-header.c (read_scan_file): Fix thinko.
6463
1fe668e5
GN
64642003-03-15 Glen Nakamura <glen@imodulo.com>
6465
6466 * reload1.c (choose_reload_regs): Use && instead of ||
6467 with REG_CANNOT_CHANGE_MODE_P condition.
6468
c1bad961
NB
64692003-03-15 Neil Booth <neil@daikokuya.co.uk>
6470
6471 * Makefile.in: Update.
6472 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
6473 * c-lex.c (init_c_lex): Register builtins hook is dead.
6474 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
6475 (c_common_decode_option): Don't call cpp_handle_option.
6476 Handle -A, -D and -U.
6477 (handle_deferred_opts): Simplify.
6478 (finish_options): Define builtins and command line macros.
6479 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
6480 * cppinit.c: Don't include intl.h.
6481 (init_builtins): Rename cpp_init_builtins. No hook to call.
6482 (init_library): Don't need to sort options.
6483 (cpp_create_reader): Don't set pending.
6484 (cpp_destroy): Don't free pending.
6485 (struct pending_option, cl_directive_handler, struct cpp_pending,
6486 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
6487 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
6488 cl_options, cpp_handle_option): Remove.
6489 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
6490 cpp_finish_options): Remove.
6491 (cpp_init_builtins): New.
6492 * fix-header.c (read_scan_file): Update to handle -D. Fix
6493 handling of -I. Replace call to cpp_finish_options.
6494
d8eed979
MH
64952003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6496
6497 PR optimization/9387
6498 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
6499 for conditional returns.
6500
af75fb67
JM
65012003-03-14 Jason Merrill <jason@redhat.com>
6502
6503 PR optimization/6871
6504 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
6505
255c10b1
NB
65062003-03-14 Neil Booth <neil@daikokuya.co.uk>
6507
6508 * c-opts.c (finish_options): New.
6509 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
6510 (missing_arg): Handle OPT_include and OPT_imacros.
6511 (c_common_init, c_common_parse_file): Use finish_options.
6512 (handle_deferred_opts): Update.
6513 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
6514 (cpp_finish_options): Don't handle -imacros here.
6515 (no_fil): Remove.
6516 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
6517
027fbf43
JJ
65182003-03-14 Jakub Jelinek <jakub@redhat.com>
6519
6520 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
6521 rs6000_maybe_dead if !fromprolog.
6522
23345bbb
NB
65232003-03-14 Neil Booth <neil@daikokuya.co.uk>
6524
6525 * Makefile.in: Update.
6526 * c-common.h (fe_file_change, pp_file_change): New.
6527 * c-lex.c (init_c_lex): Don't set cb_file_change.
6528 (c_common_parse_file): Move to c-opts.c.
6529 (cb_file_change): Rename fe_file_change.
6530 * c-opts.c: Include debug.h.
6531 (warn_unused_macros, include_cursor): New.
6532 (push_command_line_include, cb_file_change): New.
6533 (COMMAND_LINE_OPTIONS): Handle -include.
6534 (c_common_decode_option): Use local warn_unused_macros.
6535 Handle OPT_include.
6536 (c_common_post_options): Set file change callback.
6537 (handle_deferred_opts): Skip -include. Don't free the array.
6538 (c_common_init): Call cpp_finish_options here, and push an
6539 initial -include file.
6540 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
6541 (preprocess_file): Don't call cpp_finish_options.
6542 (init_pp_output): Don't set the file change callback.
6543 (pp_file_change): Return if no line commands or no output.
6544 * cpphash.h (next_include_file, first_unused_line): Remove.
6545 * cppinit.c (include_head, include_tail): Remove.
6546 (cpp_destroy): Don't free -include chain.
6547 (cpp_finish_options): Don't handle -include, or worry about
6548 -Wunused-macros.
6549 (_cpp_maybe_push_include_file): Remove.
6550 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
6551 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
6552 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
6553 Used flag is set based upon the state of the warn_unused_macros
6554 flag, and so use of first_unused_line is unnecessary.
6555
62c9aa5f 65562003-03-13 Jan Hubicka <jh@suse.cz>
cd648cec
JH
6557
6558 * cselib.c (clear_table): Do not take argument; always clear just
6559 used slots.
6560 (cselib_process_insn): Update call of clear_table
6561 (cselib_init): Do not call clear_table.
6562 (cselib_finish): Clear table.
6563
6564 * cse.c (count_reg_usage): Do not check side_effects_p.
6565 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
6566 like noop.
6567 (find_reg_equal_equiv_note): Do not use find_reg_note.
6568
35d9c403
RH
65692003-03-14 Richard Henderson <rth@redhat.com>
6570
6571 PR target/9700
1fe668e5 6572 * config/alpha/alpha.c (alpha_va_start): Account for
35d9c403
RH
6573 current_function_pretend_args_size in the AP offset.
6574
6575 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
6576 (INITIAL_ELIMINATION_OFFSET): Move out of line.
6577 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
6578 (alpha_initial_elimination_offset) New.
6579 * config/alpha/alpha-protos.h: Update.
6580
f43f4314
JJ
65812003-03-14 Jakub Jelinek <jakub@redhat.com>
6582
6583 * stmt.c (expand_start_case): Call emit_queue ().
6584
35d9c403
RH
65852003-03-14 Chris Demetriou <cgd@broadcom.com>
6586 Alexandre Oliva <aoliva@redhat.com>
a0a89ed0
CD
6587
6588 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
6589 words in new abis.
6590
f650843f
EB
65912003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
6592
6593 PR optimization/8396
6594 * tree-inline.c (initialize_inlined_parameters): Make sure the value
6595 of read-only constant arguments is passed with the right type.
6596
a721a601
SB
65972003-03-14 Steven Bosscher <steven@gcc.gnu.org>
6598
6599 * doc/extend.texi (Function Names): Make the example compilable.
6600
a12f8290
DE
66012003-03-13 David Edelsohn <edelsohn@gnu.org>
6602
6603 * config/rs6000/rs6000.c (processor_target_table): Really allow
6604 GP optional instructions on Power4.
6605
66062003-03-13 Roger Sayle <roger@eyesopen.com>
36dbb93d
RS
6607
6608 * calls.c (flags_from_decl_or_type): Factor and remove redundant
6609 conditional tests.
6610
c4775f82
MS
66112003-03-13 Mike Stump <mrs@apple.com>
6612
6613 * ggc-page.c (struct page_entry): Remove varray.h header.
6614 Add index_by_depth field.
6615 Remove save_in_use_p field.
6616 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
6617 by_depth_max, by_depth, and save_in_use fields.
6618 (INITIAL_PTE_COUNT): Add.
6619 (save_in_use_p_i): Add.
6620 (save_in_use_p): Add.
6621 (adjust_depth): Add.
6622 (move_ptes_to_front): Add.
6623 (push_depth): Add.
6624 (push_by_depth): Add.
6625 (prefetch): Add.
6626 (free_page): Add support for and use faster data structures.
6627 (ggc_alloc): Likewise.
6628 (init_ggc): Likewise.
6629 (ggc_recalculate_in_use_p): Likewise.
6630 (ggc_pop_context): Likewise.
6631 (clear_marks): Likewise.
6632 (ggc_pch_read): Likewise.
6633 * Makefile.in (ggc-page.o): Remove varray.h.
6634
3bed2930
NN
66352003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
6636
7210d5ae
NN
6637 * ChangeLog: Rotated last year's entries to...
6638 * ChangeLog.8: New.
6639
1fe668e5 6640 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
3bed2930
NN
6641 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
6642 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
6643 config/ia64/ia64-protos.h, config/ia64/ia64.c,
6644 config/ia64/ia64.h, config/ia64/ia64.md,
6645 config/ia64/itanium1.md, config/ia64/itanium2.md,
6646 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
6647 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
6648
3bd104d1
AH
66492003-03-13 Aldy Hernandez <aldyh@redhat.com>
6650
d2184e79
AH
6651 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
6652 Differentiate endianness.
6653 (s6000_override_options): Use cpu type instead of TARGET_SPE.
3bd104d1 6654
2ed0b52a
NC
66552003-03-13 Nick Clifton <nickc@redhat.com>
6656
b17fe233 6657 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
d2184e79
AH
6658 LDM instructions with writeback enabled.
6659 (output_return_instruction): Likewise.
b17fe233 6660
2ed0b52a
NC
6661 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
6662 (CALL_USED_REGISTERS): Remove definition.
6663 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
6664
f1384257
AM
66652003-03-13 Alan Modra <amodra@bigpond.net.au>
6666
6667 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
6668 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
6669 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
6670 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
6671 (rs6000_legitimize_address): Formatting.
6672 (rs6000_emit_move): Likewise.
6673 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
6674 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
6675 (rs6000_elf_select_section): Comment reason for shlib being
6676 set for ABI_AIX.
6677 (rs6000_elf_unique_section): Likewise.
6678 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
6679 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
6680 as well as flag_pic.
6681 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6682 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6683 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
6684
599aedd9
RH
66852003-03-13 Richard Henderson <rth@redhat.com>
6686
6687 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
6688
6689 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
6690 (ia64_gp_save_reg): Remove.
6691 (struct ia64_frame_info): Move to the beginning of the file;
6692 add reg_save_gp.
6693 (ia64_expand_call): Rearrange for new call patterns.
6694 (ia64_reload_gp): New.
6695 (ia64_split_call): New.
6696 (ia64_compute_frame_size): Allocate reg_save_gp.
6697 (ia64_expand_prologue): Save reg_save_gp.
6698 (ia64_expand_epilogue): Don't restore gp.
6699 (ia64_hard_regno_rename_ok): Remove R4 hack.
6700 (ia64_function_ok_for_sibcall): New.
1fe668e5 6701 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
599aedd9
RH
6702 call try_split on sibcall pattern.
6703 * config/ia64/ia64-protos.h: Update.
6704 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
6705 Rename from nopic versions. Confiscate 2nd argument to call as
6706 a marker.
6707 (call_pic, call_value_pic, sibcall_pic): Remove.
6708 (call_gp, call_value_gp, sibcall_gp): New.
6709 (builtin_setjmp_setup): Remove.
6710 (builtin_setjmp_receiver): Call ia64_reload_gp.
6711
e7d9d16b
NN
67122003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6713
1fe668e5 6714 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
2ff8f7ac
NN
6715 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
6716 "GNU CC" with "GCC".
6717
4db9c756
NN
6718 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
6719 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6720 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
6721 GCC, not GNU CC.
6722
63b025a5
NN
6723 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
6724 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
6725
54a7b573
NN
6726 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
6727 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
6728 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
6729 "GNU CC" with "GCC".
6730
301ee2f3
NN
6731 * config/v850/lib1funcs.asm, config/v850/rtems.h,
6732 config/v850/v850-c.c, config/v850/v850-protos.h,
6733 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
6734 GCC, not GNU CC.
6735
e7d9d16b
NN
6736 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
6737 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
6738 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
6739 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
6740 GNU CC.
6741
93c98498
BK
67422003-03-12 Benjamin Kosnik <bkoz@redhat.com>
6743
6744 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
6745
e531258e
NN
67462003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6747
706ae11c
NN
6748 * fixinc/fixinc.interix: Remove dead code (most of it).
6749 * fixinc/fixinc.dgux: Remove.
6750
e531258e
NN
6751 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
6752 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
6753
eab9e742
JDA
67542003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6755
6756 * pa.c (pa_init_builtins): Fix warning.
6757
03d0dce1
SE
67582003-03-12 Steve Ellcey <sje@cup.hp.com>
6759
6760 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
6761 (ASM_OUTPUT_XDATA_SHORT): Remove.
6762 (ASM_OUTPUT_XDATA_INT): Remove.
6763 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
6764 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
6765 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
6766 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
6767
847311f4
AL
67682003-03-12 Andrew Lewycky <andrew@mxc.ca>
6769
6770 PR c++/7050
6771 * expr.c (store_expr): Don't attempt to store void-typed trees,
6772 just evaluate them for side effects.
6773
c19b12cb
NB
67742003-03-12 Neil Booth <neil@daikokuya.co.uk>
6775
6776 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
6777 * cppinit.c (push_include): Move with changes to cppfiles.c.
6778 (cpp_read_main_file): Mark named operators here...
6779 (cpp_finish_options): ...not here. Update.
6780 (_cpp_maybe_push_include_file): Update.
6781 * cpplib.h (cpp_push_include, cpp_rename_file): New.
6782
ad9c4d9f
NN
67832003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6784
847311f4
AL
6785 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
6786 _gcc_COMPUTE_GAS_VERSION.
6787 * configure.in: Use them.
6788 * configure: Regenerate.
ad9c4d9f 6789
8d49831d
BW
67902003-03-12 Bob Wilson <bob.wilson@acm.org>
6791
d2184e79 6792 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8d49831d 6793 to detect carry.
d2184e79 6794 (subdi3): Reorder emitted instructions.
8d49831d 6795
bfa2615f
AJ
67962003-03-12 Andreas Jaeger <aj@suse.de>
6797
6798 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
6799 NETBSD_OS_CPP_BUILTINS_LP64.
6800
73458fb7
NN
68012003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6802
6803 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
6804 Rearrange. Reorganize.
6805 * configure.in: Rearrange.
6806 * configure: Regenerate.
6807
00530a21
AJ
68082003-03-12 Andreas Jaeger <aj@suse.de>
6809
d2184e79
AH
6810 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
6811 LP64 targets.
00530a21 6812
d2184e79
AH
6813 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
6814 _LP64.
00530a21 6815
d2184e79
AH
6816 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
6817 _LP64 macros here.
6818 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
00530a21 6819
d2184e79
AH
6820 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
6821 NETBSD_OS_CPP_BUILTINS_LP64.
6822 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
6823 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
00530a21 6824
d2184e79 6825 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
00530a21 6826
62c9aa5f 68272003-03-12 Jan Hubicka <jh@suse.cz>
5474eed5
JH
6828
6829 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
6830
8c35a61a 68312003-03-12 Daniel Jacobowitz <drow@mvista.com>
59a7f9bf
DJ
6832
6833 Fix PR target/9797 and PR c/9853.
6834 * stmt.c (expand_decl_init): Call push_temp_slots () and
6835 pop_temp_slots ().
6836
62c9aa5f 68372003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
1aa03f38
R
6838
6839 * sh.c: Include basic-block.h.
6840 (sh_output_mi_thunk, emit_load_ptr): New functions.
6841 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
6842
6f8c9bd1
NC
68432003-03-12 Nick Clifton <nickc@redhat.com>
6844
6845 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
6846 (CALL_USED_REGISTERS): Likewise.
6847 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
6848 describing how this value is calculated.
6849
b2522d2b
HPN
68502003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
6851
6852 * configure.in (rlim_t): Define to long if no valid definition
6853 found in sys/resource.h.
6854 * config.in, configure: Regenerate.
6855
f7248b51
NB
68562003-03-12 Neil Booth <neil@daikokuya.co.uk>
6857
6858 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
6859 TARGET_OS_CPP_BUILTINS.
6860 * config/mcore/mcore-pe.h: Similarly.
6861 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
6862 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
6863
8a7d6cb3
EB
68642003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6865
6866 PR c/9928
6867 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
6868 only if it is a VAR_DECL.
6869
db1077d3
EB
68702003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6871
6872 PR optimization/9888
6873 * config/i386/i386.md (jcc_1): Fix range.
6874 (jcc_2): Likewise.
6875 (jump): LIkewise.
6876 (doloop_end_internal): Likewise.
6877
6ca23bff 68782003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1fe668e5 6879
6ca23bff
DS
6880 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
6881 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
6882 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
6883 DLL_IMPORT_EXPORT_PREFIX and "i."
6884 (i386_pe_dllexport_name_p): Here.
6885 (i386_pe_dllimport_name_p): Here.
d2184e79 6886 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
6ca23bff
DS
6887 not 9 chars when getting identifier name.
6888 (i386_pe_mark_dllimport): Here.
6889 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
6890 not 9 chars when getting identifier name. Correct comment.
6891 (i386_pe_strip_name_encoding): Here. Add comments for different
6892 cases.
6893 (gen_fastcall_suffix): Break down xmalloc() argument to
6894 components.
6895 (gen_stdcall_suffix): Likewise.
6896 Update copyright year.
6897
9b73c90a
EB
68982003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6899
6900 PR optimization/9888
6901 * config/i386/i386.md (movsi_1): Remove special alternatives
6902 for %eax register.
6903 (movsi_1_nointernunit): Likewise.
6904 (movhi_1): Likewise.
6905 * config/i386/i386.c (memory_address_length): Do not use
6906 short displacement when there is no base.
6907 (ix86_attr_length_address_default): Handle LEA instructions.
6908
21282b1e
NB
69092003-03-12 Neil Booth <neil@daikokuya.co.uk>
6910
6911 * c-cppbuiltin.c (builtin_define_std): Make non-static.
6912
7358f10d
LR
69132003-03-11 Loren James Rittle <ljrittle@acm.org>
6914
6915 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
6916 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
6917 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
6918 * config/freebsd.h (CPP_PREDEFINES): Remove.
6919 (TARGET_OS_CPP_BUILTINS): New.
6920 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
6921 instead of TARGET_OS_CPP_BUILTINS.
6922 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
6923
d00bc0a2
GK
69242003-03-11 Geoffrey Keating <geoffk@apple.com>
6925
6926 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
6927
9b7b447f
AH
69282003-03-11 Aldy Hernandez <aldyh@redhat.com>
6929
d2184e79
AH
6930 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
6931 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
9b7b447f 6932
d2184e79 6933 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
9b7b447f 6934
62c9aa5f 69352003-03-11 Alexandre Oliva <aoliva@redhat.com>
18a47d21
AO
6936
6937 * toplev.c (independent_decode_option): Return success for --help,
6938 --target-help and --version.
6939
62c9aa5f 69402003-03-11 Alexandre Oliva <aoliva@redhat.com>
c0a579df
AO
6941
6942 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
6943 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
6944 specified.
6945 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
6946 DRIVER_SELF_SPECS.
6947 (LINK_SPEC): Let endian options affect the linker emulation name.
6948
62c9aa5f 69492003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
ea45c4b0
R
6950
6951 * sh.md (reload_inqi): Fix mode for source in second set.
6952
62c9aa5f 69532003-03-11 Jan Hubicka <jh@suse.cz>
7101fb18
JH
6954
6955 * cselib.c (cselib_invalidate_mem_1): Move too ...
6956 (cselib_invalidate_mem): ... here; use new list
6957 (dummy_val, first_containing_mem): New static variables.
6958 (clear_table): Initialize first_containing_mem.
6959 (discard_useless_values): Compact the containing_mem list.
6960 (add_mem_for_addr): Add to the list.
6961 * cselib.h (cselib_val): Add next_containing_mem.
6962
b5044283
AH
69632003-03-11 Aldy Hernandez <aldyh@redhat.com>
6964
d2184e79
AH
6965 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
6966 instructions for e500.
b5044283 6967
cd6a5007
NB
69682003-03-11 Neil Booth <neil@daikokuya.co.uk>
6969
6970 * Makefile.in: Update.
6971 * c-cppbuiltin.c: Include tm_p.h.
6972
41f3a930
AH
69732003-03-11 Aldy Hernandez <aldyh@redhat.com>
6974
d2184e79 6975 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
41f3a930 6976
d2184e79
AH
6977 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
6978 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
6979 (_Unwind_SetGR): Same.
6980 (_Unwind_GetGRPtr): New.
6981 (_Unwind_SetGRPtr): New.
6982 (uw_update_context_1): Use accesor functions instead of accessing
6983 context->reg[] directly.
6984 (uw_install_context_1): Same.
6985 (execute_cfa_program): Same.
6986 (__frame_state_for): Same.
41f3a930 6987
d2184e79
AH
6988 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
6989 the synthetic register offset.
41f3a930 6990
d2184e79 6991 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
41f3a930 6992
d2f55c5c
HPN
69932003-03-11 Hans-Peter Nilsson <hp@axis.com>
6994
6995 * config/cris/cris.md: Remove lingering EGCS reference.
6996 ("*extopqihi_side_biap"): For HI operation, match
6997 cris_additive_operand_extend_operator, not
6998 cris_operand_extend_operator. Adjust condition.
6999 ("*extopqihi_side", "*extopqihi"): Ditto.
7000 ("*extopqisi_side_biap"): Correct operand numbers in condition.
7001 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
7002 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
7003 ("*extophisi_swap"): Ditto.
7004 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
7005 PLUS, not cris_operand_extend_operator. Adjust condition and
7006 output template.
7007 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
7008 * config/cris/cris.h (PREDICATE_CODES): Add
7009 cris_additive_operand_extend_operator.
7010 * config/cris/cris.c (cris_additive_operand_extend_operator):
7011 New predicate.
7012
37bd08f8
HP
70132003-03-11 Hartmut Penner <hpenner@de.ibm.com>
7014
7015 * df.c (read_modify_subreg_p): Change from static to global.
7016 * df.h (read_modify_subreg_p): Add prototype.
7017 * sched-deps.c (sched_analyze_1): Generate true dependency for
1fe668e5 7018 strict_low_part, certain subregs and zero/sign_extract.
37bd08f8 7019
cb60f38d
NB
70202003-03-11 Neil Booth <neil@daikokuya.co.uk>
7021
7022 * Makefile.in: Update.
7023 * c-common.c: Don't include real.h or except.h.
7024 (REGISTER_PREFIX): Remove.
7025 (builtin_define_std, builtin_define_with_value,
7026 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
7027 builtin_define_type_max, builtin_define_type_precision,
7028 builtin_define_float_constants): Move to c-cppbuiltin.c.
7029 (c_stddef_cpp_builtins): New.
7030 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
7031 * c-cppbuiltin.c: New, extracted from c-common.c.
7032 (define__GNUC__): New.
7033 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
7034 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
7035 (cpp_unique_options): Don't support no-gcc.
7036 (do_spec_1): Remove support of version specs.
7037 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
7038 * doc/passes.texi: Update.
7039 * doc/tm.texi: Update.
7040
31ca3635
AH
70412003-03-10 Aldy Hernandez <aldyh@redhat.com>
7042
d2184e79 7043 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
31ca3635 7044
ab82a49f
AP
70452003-03-10 Andrew Pinski <apinski@apple.com>
7046
7047 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
7048 is on should not get here.
7049 (machopic_indirect_data_reference): If dynamic-no-pic is on just
7050 generate high/low parts of the address.
7051 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
7052 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
7053 symbol and labels with a new reg. Dynamic-no-pic does not have a
7054 pic_offset_table_rtx.
7055 (machopic_select_section): Change references of flag_pic to
1fe668e5 7056 MACHOPIC_INDIRECT.
ab82a49f
AP
7057 (machopic_asm_out_destructor): Likewise.
7058 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
7059 reference of flag_pic to MACHOPIC_INDIRECT.
7060 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
7061 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
7062 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
7063 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
7064 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
7065 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
7066 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
7067 (TARGET_DYNAMIC_NO_PIC): Define.
7068 (SUBTARGET_SWITCHES): Define, have sub-target switches for
1fe668e5 7069 dynamic-no-pic.
ab82a49f
AP
7070 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
7071 rs6000_override_options to here. Dynamic-no-pic overrides
7072 pic.
7073 (CC1_SPEC): Change from not static then pic to not static and not
7074 dynamic-no-pic then pic.
7075 * config/rs6000/rs6000.c (rs6000_override_options): Move the
7076 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
7077 (rs6000_legitimize_reload_address): Add case for loading floating in
7078 dynamic-no-pic.
7079 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
7080 of flag_pic to MACHOPIC_INDIRECT.
7081 (secondary_reload_class): Conditional change the reference of
7082 flag_pic to MACHOPIC_INDIRECT.
7083 (rs6000_output_mi_thunk): Change reference of flag_pic to
7084 MACHOPIC_INDIRECT.
7085 (output_profile_hook): Likewise.
7086 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
7087 * config/rs6000/rs6000.md (movdf_low): Add the case for
7088 MACHO_DYNAMIC_NO_PIC_P.
7089 (call): Change references for flag_pic in TARGET_MACHO to
7090 MACHOPIC_INDIRECT.
7091 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
7092 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
7093 * doc/invoke.texi (-mdynamic-no-pic): Document.
87d7d780
DP
7094
70952003-03-10 Devang Patel <dpatel@apple.com>
1fe668e5 7096
87d7d780
DP
7097 PR c++/9394
7098 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
7099 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
7100 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
7101 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
7102 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
7103 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1fe668e5 7104
6b856d15
SB
71052003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
7106
7107 PR optimization/7189
7108 * toplev.c (rest_of_compilation): Move
7109 check_function_return_warnings up to just after
7110 delete_unreachable_blocks.
7111
2d8d15b7
SC
71122003-03-10 Stephane Carrez <stcarrez@nerim.fr>
7113
7114 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
7115 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
7116 Declare.
7117 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
7118 for reg rename optimization to avoid using Z and Y registers.
7119
0e01d661
SC
71202003-03-10 Stephane Carrez <stcarrez@nerim.fr>
7121
7122 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
7123 when adding to X and Y since leax/leay are fast.
7124 ("*addhi3"): Accept 'I' constraint when adding to address register.
7125 ("rotlhi3"): Operand 1 must be a register_operand.
7126 (peephole2): New peephole to optimize some adds.
7127 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
7128 to represent -2 .. 2 small integer range.
7129
ae5b570e
SC
71302003-03-10 Stephane Carrez <stcarrez@nerim.fr>
7131
7132 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
7133 each 16-bit rotation.
7134
52999738
ZW
71352003-03-10 Zack Weinberg <zack@codesourcery.com>
7136
7137 * c-opts.c (add_prefixed_path): Don't use concat. When
7138 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
7139 cpp_GCC_INCLUDE_DIR_len characters.
7140
5c242421
SB
71412003-03-10 Segher Boessenkool <segher@koffie.nl>
7142
52999738 7143 * testsuite/gcc.dg/altivec-9.c: New file.
5c242421 7144
52999738
ZW
7145 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
7146 (rs6000_emit_prologue): Use rs6000_frame_related instead.
5c242421 7147
b4053702
AH
71482003-03-10 Aldy Hernandez <aldyh@redhat.com>
7149
52999738
ZW
7150 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
7151 vectors.
7152 (__ev_convert_u64): Remove macro. Define as inline.
7153 (__ev_convert_s64): Same.
b4053702 7154
c19de7aa
AH
71552003-03-10 Aldy Hernandez <aldyh@redhat.com>
7156
52999738
ZW
7157 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
7158 (rs6000_stack_t): Add spe_64bit_regs_used.
c19de7aa 7159
52999738
ZW
7160 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
7161 spe_64bit_regs_used, and use it to determine the size of the
7162 frame.
7163 (spe_func_has_64bit_regs_p): New.
7164 (spe_synthesize_frame_save): New.
7165 (rs6000_frame_related): Handle SPE synthetic registers.
7166 (rs6000_emit_prologue): Only save in 64-bits if the function used
7167 any registers in 64-bit mode.
7168 (rs6000_emit_epilogue): Same, but for restore.
c19de7aa 7169
29ad9694
RE
71702003-03-10 Richard Earnshaw <rearnsha@arm.com>
7171
7172 * arm.h (enum floating_point_type): Delete. Replace with...
7173 (enum fputype): ... new.
7174 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
7175 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
7176 * arm.md (attr fpu): Reworked for new underlying enum values.
7177 * arm.c (arm_fpu_arch): Now enum fputype.
7178 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
7179 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
7180 Update uses of arm_fpu_arch and arm_fpu_tune.
7181
39811184
JZ
71822003-03-10 Josef Zlomek <zlomekj@suse.cz>
7183
52999738 7184 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
39811184
JZ
7185 (try_crossjump_to_edge): Replace refereces to one jump table by
7186 references to identical jump table.
7187 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
7188 (replace_label): Moved to rtlanal.c.
7189 (struct rtx_pair): Moved to rtl.h.
52999738 7190 * rtl.h (struct rtx_pair): Moved from loop.c.
39811184
JZ
7191 (replace_label): New extern function.
7192 (subrtx_p): New extern function.
7193 (tablejump_p): New extern function.
52999738 7194 * rtlanal.c (replace_label): Moved from loop.c.
39811184
JZ
7195 (subrtx_p_1): New static function.
7196 (subrtx_p): New function.
7197 (tablejump_p): New function.
7198
62c9aa5f 71992003-03-10 Jan Hubicka <jh@suse.cz>
ec3ae3da 7200
912b79e7
JH
7201 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
7202
ec3ae3da
JH
7203 * cfgcleanup.c (merge_blocks): Return where to iterate next.
7204 (try_optimize_cfg): Use return value of merge_blocks
7205
e0fd3e7a
MM
72062003-03-10 Michael Matz <matz@suse.de>
7207
7208 * cfg.c (unchecked_make_edge): New.
7209 (cached_make_edge): Use it.
7210 * basic-block.h (unchecked_make_edge): Declare.
7211 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
7212
82955615
RE
72132003-03-10 Richard Earnshaw <rearnsha@arm.com>
7214
7215 * fpa.md: New file. Move all patterns relating to FPA co-processor
7216 to here...
7217 * arm.md: ... from here.
7218 (cirrus.md, fpa.md): Include at end of description.
7219 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
7220 (pic_load_addr_based): Remove register constraint from expander.
7221 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
7222 (sordered, sungt, sunle, sunge, sunlt): Likewise.
7223 (eh_epilogue, tablejump): Likewise.
7224
22672fc4
RK
72252003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7226
7227 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
7228 on operands if it has a PLACEHOLDER_EXPR.
7229
f7b3ab8a
DE
72302003-03-09 David Edelsohn <edelsohn@gnu.org>
7231 Mostafa Hagog
7232
7233 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
7234 condition.
7235
cc956ba2
NB
72362003-03-09 Neil Booth <neil@daikokuya.co.uk>
7237
7238 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
7239 * config/ip2k/ip2k.h: Similarly.
7240 * config/m32r/m32r.h: Similarly.
7241 * config/m68hc11/m68hc11.h: Similarly.
7242 * config/mn10200/mn10200.h: Similarly.
7243 * config/mn10300/mn10300.h: Similarly.
7244 * config/pdp11/pdp11.h: Similarly.
7245 * config/v850/v850.h: Similarly.
7246 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
7247 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
7248 * config/mips/iris3.h: Remove #if 0 block.
7249
72502003-03-09 Roger Sayle <roger@eyesopen.com>
7251 Joern Rennecke <joern.rennecke@superh.com>
7252
7253 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
7254 pending argument upon return from handle_braces here.
7255 (do_spec_2): Instead handle it upon return from do_spec_1 here.
7256
6544fbcb
RS
72572003-03-09 Roger Sayle <roger@eyesopen.com>
7258 Joern Rennecke <joern.rennecke@superh.com>
7259
7260 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
7261 pending argument upon return from handle_braces here.
7262 (do_spec_2): Instead handle it upon return from do_spec_1 here.
7263
e1a04212
FS
72642003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7265
7266 * varasm.c (make_decl_one_only): Use declare_weak().
7267
4677862a
JDA
72682003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7269
7270 PR middle-end/9986
7271 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
7272 after the common builtins.
7273 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
7274 * pa.c (TARGET_INIT_BUILTINS): Define.
7275 (pa_init_builtins): New function.
7276
7277 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
7278 space has been allocated for the outgoing arguments, set the arg
7279 pointer for a call emitted after virtuals have been instantiated
7280 using the stack pointer offset, otherwise abort.
7281
2de12bc4
DD
72822003-03-09 DJ Delorie <dj@redhat.com>
7283
7284 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
7285
17136dde
RE
72862003-03-09 Richard Earnshaw <rearnsha@arm.com>
7287
7288 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
7289 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
7290 conversion to integer.
7291 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
7292
f937d5e6
RS
72932003-03-09 Roger Sayle <roger@eyesopen.com>
7294
7295 * builtins.def: Fix typo and improve grammar.
7296 * loop-unroll.c (decide_peel_completely): Tidy log message.
7297
c5979bc6
KH
72982003-03-09 Kazu Hirata <kazu@cs.umass.edu>
7299
7300 * config/h8300/h8300.md (*tstsi_upper_bit): New.
7301 (*iorsi3_e2f): Likewise.
7302
4f4ebda3
KH
73032003-03-08 Kazu Hirata <kazu@cs.umass.edu>
7304
7305 * config/h8300/h8300.c (h8300_and_costs): Return the number of
7306 assembly instructions needed.
7307 (h8300_shift_costs): Likewise.
7308
c366ade5
HPN
73092003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
7310
02af0d9b
HPN
7311 * config/cris/aout.h (ENDFILE_SPEC): Undef.
7312
a3600c71
HPN
7313 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
7314 moves from here ...
7315 * expr.c (emit_move_insn_1): ... to here.
7316
a6e464ae
HPN
7317 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
7318 (TARGET_OS_CPP_BUILTINS): New macro.
7319 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
7320 (TARGET_OS_CPP_BUILTINS): New macro.
7321 (CPP_PREDEFINES): Don't define. Move old definitions and...
7322 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
7323 (TARGET_CPU_CPP_BUILTINS): New macro.
7324 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
7325 definitions and the optional __PIC__, __pic__ and
7326 __NO_UNDERSCORES__ definitions to...
7327 (TARGET_OS_CPP_BUILTINS): New macro.
7328
d8a25128
HPN
7329 * flags.h (flag_leading_underscore): Declare.
7330
c366ade5
HPN
7331 * c-opts.c (c_common_post_options): On fopen failure, return
7332 false, not NULL.
7333
32b0bbaa
HPN
73342003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
7335
7336 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
7337 config.h.
7338 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
7339 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
7340
ad220576
NB
73412003-03-08 Neil Booth <neil@daikokuya.co.uk>
7342
7343 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
7344 CPP_PREDEFINES.
7345 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
7346 CPP_PREDEFINES.
7347
4bfec483
NB
73482003-03-08 Neil Booth <neil@daikokuya.co.uk>
7349
7350 * c-common.h (c_common_init, c_common_post_options): Update.
7351 * c-objc-common.c (c_objc_common_init): Update for new prototype.
7352 * c-opts.c (saved_lineno): New.
7353 (c_common_post_options, c_common_init): Update prototypes,
7354 move call to cpp_read_main_file from latter to former.
7355 * c-tree.h (c_ojbc_common_init): Update.
7356 * langhooks-def.h (lhd_post_options): New.
7357 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
7358 * langhooks.c (lhd_post_options): New.
7359 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
7360 * toplev.c (no_backend): New.
7361 (process_options): Call post_options hook and set main_input_filename
7362 and input_filename here.
7363 (lang_dependent_init, do_compile): post_options hook moved to
7364 process_options.
7365 * objc/objc-act.c (objc_init): Update prototype.
7366 * objc/objc-act.h (objc_init): Update prototype.
7367
9dd04ab5
RS
73682003-03-08 Roger Sayle <roger@eyesopen.com>
7369
7370 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
7371 a complex or vector type, using a load in the original mode.
7372
62c9aa5f 73732003-03-08 Jan Hubicka <jh@suse.cz>
988d1653
JH
7374
7375 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
7376 * gt-cgraph.h: New GC file.
7377 * cgraph.c (known_fns): New static variable.
7378 (cgraph_node): Add the decl into varray.
7379
73ba39fc
HPN
73802003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
7381
7382 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
7383
3b684012
RE
73842003-03-08 Richard Earnshaw <rearnsha@arm.com>
7385
7386 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
7387 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
7388 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
7389 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
7390 All callers changed.
7391 * arm.md, arm.h, arm-protos.h: Updated.
7392
7393 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
7394 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
7395 * arm.c (arm_regno_class, f_register_operand): Updated.
7396
fa5848c7
HPN
73972003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
7398
7399 * config/cris/cris.h: Remove EGCS references.
1fe668e5 7400 (CPP_SPEC): Remove "-$".
fa5848c7
HPN
7401 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
7402
4555be98
NB
74032003-03-08 Neil Booth <neil@daikokuya.co.uk>
7404
7405 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
7406 preference to CPP_PREDEFINES.
7407
39a91264
NB
74082003-03-08 Neil Booth <neil@daikokuya.co.uk>
7409
7410 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
7411
9571a6b9
KH
74122003-03-08 Kazu Hirata <kazu@cs.umass.edu>
7413
7414 * config/h8300/h8300.md (*extzv_16_8): New.
7415
62c9aa5f 74162003-03-08 Jan Hubicka <jh@suse.cz>
18d13f34
JH
7417
7418 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
7419 * cgraph.h: (cgraph_local_info): Add can_inline_once
7420 (cgraph_global_info): Add inline_once.
7421 (cgraph_node): Add previous.
7422 (cgraph_remove_node): New.
7423 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
7424 function.
7425 (cgraph_optimize): Call it.
7426 (cgraph_finalize_function): Set inlinable flags.
7427 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
7428 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
7429 (cgraph_expand_function): Likewise.
52999738 7430 * cgraph.c
18d13f34
JH
7431 (cgraph_node): Put nodes into doubly linked chain.
7432 (cgraph_remove_node): New function.
7433 * flags.h (flag_inline_functions_called_once): Declare.
7434 * tree-inline.c: Include cgraph.h
7435 (inlinable_functions_p): Add extra argument to bypass limits.
7436 (expand_call_inline): Obey cgraph flag.
7437 * tree-inline.h (tree_inlinable_function_p): Update prototype.
7438
72b8d451
ZD
74392003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7440
7441 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
7442 irreducible loops.
7443
7444 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
7445 loops info correctly.
7446
ed97aa66
EB
74472003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
7448
7449 PR middle-end/7796
7450 * unroll.c (calculate_giv_inc): Handle constants being
7451 loaded with LSHIFTRT.
7452
d7b53ca4
DE
74532003-03-07 David Edelsohn <edelsohn@gnu.org>
7454
7455 * config/rs6000/rs6000.c (processor_target_table): Do not disable
7456 GP optional instructions on Power3, Power4, 620, and 630.
7457
3dc575ff
KH
74582003-03-07 Kazu Hirata <kazu@cs.umass.edu>
7459
7460 * calls.c: Fix comment formatting.
7461 * cfgloopanal.c: Likewise.
7462 * cfgloopmanip.c: Likewise.
7463 * combine.c: Likewise.
7464 * dwarf2out.c: Likewise.
7465 * ggc-common.c: Likewise.
7466 * langhooks.c: Likewise.
7467 * loop-unroll.c: Likewise.
7468 * loop.c: Likewise.
7469 * ra-build.c: Likewise.
7470 * sbitmap.c: Likewise.
7471 * toplev.c: Likewise.
7472
9bcd9715
JW
74732003-03-07 James E Wilson <wilson@tuliptree.org>
7474
ed97aa66 7475 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
9bcd9715 7476
6e5c4eaf
GK
74772003-03-07 Geoffrey Keating <geoffk@apple.com>
7478
7479 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
7480 support -no-integrated-cpp.
7481
7482 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
7483 than langhooks.name.
7484
50aac998
MM
74852003-03-07 Michael Matz <matz@suse.de>
7486
7487 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
7488 (DF_FOR_REGALLOC): New.
7489 * df.c (df_ref_record): Set DF_REF_STRIPPED.
7490 (read_modify_subreg_p): Simplify.
7491 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
7492 Use DF_FOR_REGALLOC.
7493 * ra.h (struct web): New member subreg_stripped.
7494 (invalid_mode_change_regs): Declare.
7495 * ra.c (invalid_mode_change_regs): New.
7496 (init_ra): Initialize it.
7497 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
7498 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
7499 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
7500 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
7501 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
7502
37f74dcf
RE
75032003-03-07 Richard Earnshaw <rearnsha@arm.com>
7504
7505 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
7506 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
7507 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
7508 machine description file from ...
7509 * cirrus.md: ... here.
7510
203b3521
KH
75112003-03-06 Kazu Hirata <kazu@cs.umass.edu>
7512
7513 * config/h8300/h8300.md (a peephole2): Don't use
7514 reg_overlap_mentioned_p.
7515
8643e92d
GK
75162003-03-06 Geoffrey Keating <geoffk@apple.com>
7517
7518 * c-pch.c: Include langhooks.h.
7519 (IDENT_LENGTH): New.
7520 (get_ident): New.
7521 (pch_ident): Delete.
7522 (pch_init): Use get_ident, IDENT_LENGTH.
7523 (c_common_valid_pch): Likewise. Also, use actual language
7524 in warning message.
7525 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
7526
7527 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
7528 c-parse.in.
7529 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
7530 gt-objc-objc-act.h.
7531 (gt-objc-objc-act.h): New rule.
7532 * objc/lang-specs.h: Support PCH.
7533 * objc/objc-act.c: Include gt-objc-objc-act.h.
7534 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
7535 (build_selector_reference_decl): Move idx out, mark for PCH.
7536 (build_class_reference_decl): Likewise.
7537 (build_objc_string_decl): Move *_idx out, mark for PCH.
7538 (build_tmp_function_decl): Move xxx out, mark for PCH.
7539
7f3d8013
DJ
75402003-03-06 Dale Johannesen <dalej@apple.com>
7541
7542 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
7543 global functions for inlining on Darwin.
7544
14484a78
VM
75452003-03-06 Vladimir Makarov <vmakarov@redhat.com>
7546
7547 * haifa-sched.c (schedule_block): Don't call reorder when sorting
7548 is prohibited.
7549
9d10c9a9
NB
75502003-03-06 Neil Booth <neil@daikokuya.co.uk>
7551
7552 * Makefile.in (c-ppoutput.o): Update.
7553 * c-common.h (init_pp_output): New.
7554 (preprocess_file): Update.
7555 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
7556 Register builtins.
7557 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
7558 Make call to cpp_read_main_file common to whether preprocessing
7559 or not. Don't register builtins.
7560 * c-ppoutput.c: Include c-pragma.h.
7561 (setup_callbacks): Rename init_pp_output.
7562 (preprocess_file): No longer setup callbacks or call
7563 cpp_read_main_file.
7564 * cpphash.h (_cpp_init_mbchar): New.
7565 * cppinit.c (init_library): Call _cpp_init_mbchar.
7566 * cpplex.c (_cpp_init_mbchar): New.
7567
37f5242b
RS
75682003-03-06 Roger Sayle <roger@eyesopen.com>
7569
7570 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
7571 MEM, try loading the MEM into a register and taking the low-part
7572 of that, to help CSE see the use of the MEM in its true mode.
7573
c876997f 75742003-03-05 Tom Tromey <tromey@redhat.com>
f3922fd2
DD
7575
7576 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
7577 Define.
7578
c876997f 75792003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
f3922fd2
DD
7580
7581 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
7582 operand 2.
7583 ("*ineqbranchsi"): Likewise.
7584
c876997f 75852003-03-05 Andrew Haley <aph@cambridge.redhat.com>
f3922fd2
DD
7586
7587 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
7588 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
7589 register store followed by a stack increment.
7590
c876997f 75912003-03-05 Chris Moller <cmoller@redhat.com>
f3922fd2
DD
7592
7593 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
7594 to inhibit saving CARRY_REGS.
7595
7596 * config/stormy16/stormy16.c (xs_hi_general_operand):
7597 added predicate to detect and error-out on out-of-range
7598 const_ints for movhi.
52999738 7599 * config/stormy16/stormy16.md (movhi): use
f3922fd2
DD
7600 xs_hi_general_operand.
7601
7602 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
7603 added a check for local vbl size overflow.
7604 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
7605 added predicate to detect and error-out on out-of-range
7606 const_ints for addhi and subhi.
52999738 7607 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
f3922fd2
DD
7608 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
7609
7610 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7611 add a term to accept PRE_MODIFY addresses.
7612 * config/stormy16/stormy16.c (xstormy16_expand_move):
7613 add code to expand PRE_MODIFY addresses to an add followed
7614 by a move.
7615
4c28216d
JM
76162003-03-06 Jason Merrill <jason@redhat.com>
7617
7618 * tree-inline.c (inlinable_function_p): Revert earlier change
7619 pending investigation.
7620
0135f343
KH
76212003-03-06 Kazu Hirata <kazu@cs.umass.edu>
7622
7623 * config/h8300/h8300.md (a new peephole2): New.
7624
62c9aa5f 76252003-03-06 Jan Hubicka <jh@suse.cz>
5c2e00ee
JH
7626
7627 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
7628
323658ea
ZD
76292003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7630
7631 * dwarf2out.c (size_of_die): Compute size of external reference to
7632 die correctly.
7633
2b18b49b
HPN
76342003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
7635
7636 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
7637 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
7638 expanders.
7639
1a71a5b0
RS
76402003-03-05 Roger Sayle <roger@eyesopen.com>
7641
7642 * expr.h (lang_expand_expr): Delete obsolete prototype.
7643
26d249eb
KH
76442003-03-05 Kazu Hirata <kazu@cs.umass.edu>
7645
7646 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
7647
8b41a8da
KH
76482003-03-05 Kazu Hirata <kazu@cs.umass.edu>
7649
7650 * config/h8300/h8300.md (a peephole2): Generalize to
7651 accept a memory operand.
7652
62c9aa5f 76532003-03-05 Olivier Hainque <hainque@act-europe.fr>
39ee7fa9
OH
7654
7655 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
7656 * config/alpha/alpha.c (print_operand, case '+'): New.
7657 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
7658 (call_value_osf_1_noreturn): Likewise.
7659
62c9aa5f 76602003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
cda26058
RK
7661
7662 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
7663 (expand_end_bindings): Likewise.
7664
98857de8
JDA
76652003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7666
7667 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
7668 (epilogue): Don't generate return_external_pic when emitting PA 2.0
7669 code.
7670
96714395
AH
76712003-03-05 Aldy Hernandez <aldyh@redhat.com>
7672
52999738 7673 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
96714395 7674
52999738 7675 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
96714395 7676
52999738 7677 * hooks.c (hook_rtx_rtx_null): New.
96714395 7678
52999738 7679 * hooks.h (hook_rtx_rtx_null): Protoize.
96714395 7680
52999738
ZW
7681 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
7682 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
96714395 7683
52999738 7684 * target.h (struct gcc_target): Add dwarf_register_span.
96714395 7685
52999738
ZW
7686 * dwarf2out.c (multiple_reg_loc_descriptor): New.
7687 (one_reg_loc_descriptor): New.
7688 (reg_loc_descriptor): Add support for values that span more than
7689 one register.
96714395 7690
62c9aa5f 76912003-03-05 Jan Hubicka <jh@suse.cz>
b255a036
JH
7692
7693 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
7694 * alias.c: Include cgraph.h
7695 (mark_constant_function): Use cgraph_rtl_info.
7696 * calls.c: Include cgraph.h
7697 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
7698 calls.
7699 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
7700 * cgraph.c (cgraph_rtl_info): New function.
7701 * cgraph.h (cgraph_rtl_info): Declare
7702 (cgraph_rtl_info): Likewise.
7703 * function.h (struct function): Add recursive_call_emit.
7704 * toplev.c: Include cgraph.h.
7705 (rest_of_compilation): Set preferred_incoming_stack_boundary.
7706
0eb933a0
KH
77072003-03-05 Kazu Hirata <kazu@cs.umass.edu>
7708
7709 * config/h8300/h8300.c (output_simode_bld): Clear the
7710 destination first if possible.
7711 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
7712 alternative.
7713 (extzv_1_r_inv_h8300hs): Likewise.
7714
35b07080
ZD
77152003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7716
7717 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
7718 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
7719 * cfgloop.c (flow_loop_free): Made global.
7720 (establish_preds): New static function.
7721 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
7722 (get_loop_exit_edges): New.
7723 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
7724 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
7725 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
7726 loops.
7727 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
7728 removability of an edge.
7729 (fix_irreducible_loops): New static function.
7730 (find_path, remove_path): Add ability to remove enclosing loops.
7731 (unloop): New.
7732 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
7733 flags.
7734 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
7735 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
7736 not neccessary.
7737 (decide_peel_completely, peel_loops_completely): Allow complete peeling
7738 of non-duplicable once rolling loops.
7739 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
7740
62c9aa5f 77412003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
bb182d23
R
7742
7743 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
7744 for align_jumps is 4.
7745
7746 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
7747 use GENERAL_REGS.
7748
f2d0440f
SC
77492003-03-05 Stephane Carrez <stcarrez@nerim.fr>
7750
7751 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
7752 according to va_arg type.
7753 (EXPAND_BUILTIN_VA_ARG): Remove.
7754 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
7755 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
7756
165b263e
DE
77572003-03-05 David Edelsohn <edelsohn@gnu.org>
7758
7759 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
7760 else clauses.
7761
8c38a24f
MM
77622003-03-05 Michael Matz <matz@suse.de>
7763
7764 * i386/i386.c (ix86_save_reg): Also test
7765 current_function_uses_const_pool.
7766
336d0d96
MM
77672003-03-05 Michael Matz <matz@suse.de>
7768
7769 * unwind.h: Add the GPL exception.
7770 * Makefile.in (USER_H): Add unwind.h.
7771
be2fa211
EB
77722003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
7773
7774 PR c/9799
7775 * c-typeck.c (push_init_level): Add sanity check.
7776
62c9aa5f 77772003-03-05 Jan Hubicka <jh@suse.cz>
dafc5b82
JH
7778
7779 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
7780 RTL inlining is done.
7781
7782 * cgraphunit.c (cgraph_mark_local_functions): New local function.
7783 (cgraph_optimize): Mark local functions.
7784 * i386-protos.h (init_cumulative_args): Update prototype.
7785 * i386.c (init_cumulative_args): Use register passing convention for
7786 local functions.
7787
7788 * cgraph.c (cgraph_global_info_ready): New global variable
7789 (cgraph_local_info, cgraph_global_info): New functions.
7790 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
7791 structures.
7792 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
7793 Declare.
7794 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
7795 (cgraph_mark_functions_to_output): Use inline_many.
7796 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
7797 (cgraph_expand_functions): Expand inline functions last.
7798 (cgraph_optimize): Do not emit uneeded functions.
7799
006c9f4a
SE
78002003-03-04 Steve Ellcey <sje@cup.hp.com>
7801
7802 * expr.c (convert_modes): Check for legal hard register.
7803
65ebbf81
TT
78042003-03-04 Tom Tromey <tromey@redhat.com>
7805
7806 * doc/sourcebuild.texi (Front End Directory): Document tags.
7807 * configure: Rebuilt.
7808 * configure.in (target_list): Added tags.
7809 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
7810 TAGS files by reference.
7811 * objc/Make-lang.in (objc.tags): New target.
7812
ec4a0419
ZD
78132003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7814
7815 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
7816 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
7817 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
7818 gcov_read_string, gcov_write_length): Modified to enable reading/
7819 writing of whole .da file just once.
7820 (da_file_open, da_file_close, da_file_eof, da_file_error,
7821 da_file_position, da_file_seek, da_file_write, da_file_read): New
7822 functions.
7823 (actual_da_file, actual_da_file_position, actual_da_file_length,
7824 actual_da_file_buffer, actual_da_file_buffer_size): New static
7825 functions.
7826 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
7827 just once.
7828
7829
79dbeefc
AS
78302003-03-04 Andreas Schwab <schwab@suse.de>
7831
7832 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
7833 offset without frame pointer.
7834
3ac1a319
SE
78352003-03-04 Steve Ellcey <sje@cup.hp.com>
7836
7837 * expr.c (expand_expr): Call promote_mode to set unsignedp.
7838
db720d9a
DJ
78392003-03-04 Daniel Jacobowitz <drow@mvista.com>
7840
7841 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
7842 * configure: Regenerated.
7843 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
7844
9a79ab7e
AJ
78452003-03-04 Andreas Jaeger <aj@suse.de>
7846
7847 * configure.in: Check for <memcheck.h>.
52999738 7848 * configure: Regenerated.
9a79ab7e
AJ
7849
7850 * config.in: Define HAVE_MEMCHECK_H.
7851
7852 * ggc-common.c: Use <memcheck.h> if available instead of
7853 <valgrind.h>.
7854 * ggc-page.c: Likewise.
7855 * cppfiles.c: Likewise.
7856
a8f0e848
KH
78572003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7858
7859 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
7860
2ad1815d
EB
78612003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7862
7863 PR c/9262
7864 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
7865 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
7866
62c9aa5f 78672003-03-04 Jan Hubicka <jh@suse.cz>
e2483ef7
JH
7868
7869 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
7870 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
7871 for -O3.
7872
34a86c2b
NN
78732003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
7874
7875 * configure.in: Delete three unused variables. Move a variable
7876 definition closer to its use. Simplify use_collect2 logic. Start to
7877 organize. Simplify tests for in-tree gas and ld.
7878 * configure: Regenerate.
7879
63973df3
NB
78802003-03-04 Neil Booth <neil@daikokuya.co.uk>
7881
7882 * Makefile.in: Update.
7883 * c-common.c (flag_no_line_commands, flag_no_output,
7884 flag_dump_macros, flag_dump_includes): New.
7885 * c-common.h (flag_no_line_commands, flag_no_output,
7886 flag_dump_macros, flag_dump_includes, preprocess_file): New.
7887 (init_c_lex): Update prototype.
7888 * c-lex.c (init_c_lex): Update prototype; move some code to
7889 c_common_init.
7890 * c-opts.c (preprocess_file): Subsume into c_common_init.
7891 (c_common_decode_option): Update flags.
7892 (c_common_init): Move code from preprocess_file and init_c_lex.
7893 (sanitize_cpp_opts): Update.
7894 * c-ppoutput.c: New, cppmain.c almost verbatim.
7895 * cpphash.h (struct printer): Remove.
7896 (struct cpp_reader): Remove print.
7897 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
7898 cpp_preprocess_file): Remove.
7899 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
7900 and dump_includes.
7901 * cppmain.c: Remove.
7902 * doc/passes.texi: Update.
7903
95f3f59e
JDA
79042003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7905
7906 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
7907 (assign_stack_local_1): Perform overall stack alignment only when
7908 STACK_ALIGNMENT_NEEDED is non-zero.
7909 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
7910
7911 * pa.c (compute_frame_size): Rename fsize to size. Account for
7912 alignment to a word boundary before general register save block. Only
7913 account for double-word alignment before floating point register save
7914 block if one or more are saved. Don't allocate space for %r3 when
7915 frame pointer is needed.
7916 (hppa_expand_prologue): Include alignment to word boundary in local
7917 frame size.
7918 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
7919 (STACK_ALIGNMENT_NEEDED): Define.
7920
234c071b
KB
79212003-03-04 Kevin Buettner <kevinb@redhat.com>
7922
7923 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
7924 global register variables.
7925
f12448c8
AO
79262003-03-04 Alexandre Oliva <aoliva@redhat.com>
7927
7928 * reload.c (reload_adjust_reg_for_mode): New function.
7929 (subst_reloads): Call it.
7930 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
7931 * reload.h (reload_adjust_reg_for_mode): Declare.
7932 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
7933 Call it.
7934
f9d36a92
JW
79352003-03-03 James E Wilson <wilson@tuliptree.org>
7936
7937 * optabs.c (add_equal_note): Delete SUBREG_REG use.
7938 Fixes PR c/7872.
7939
8dfb356f
KH
79402003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7941
7942 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
7943 (*ixorsi3_lshiftrt_16): New.
7944 (*iorsi3_ashift_16): Remove.
7945
0d9bf032
KH
79462003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7947
7948 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
7949 pattern.
7950
b89a3806
GK
79512003-03-03 Geoffrey Keating <geoffk@apple.com>
7952
7953 * doc/install.texi (Specific): Update entry for powerpc-darwin.
7954
568d661d
RH
79552003-03-03 Richard Henderson <rth@redhat.com>
7956
7957 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
7958
3317bab1
DE
79592003-03-03 David Edelsohn <edelsohn@gnu.org>
7960
7961 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
7962 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
7963 (rs6000_variable_issue): Do not return negative value.
7964 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
7965 scheduling pass.
7966
03275f81
ZD
79672003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7968
7969 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
7970 prune_unused_types calls.
7971
d1a74aa7
JM
79722003-03-03 Jason Merrill <jason@redhat.com>
7973
7974 * tree-inline.c (find_builtin_longjmp_call): Save and restore
7975 lineno and input_filename.
7976 (find_alloca_call): Likewise.
7977 (inlinable_function_p): Run the langhook earlier.
7978
7979 * calls.c (compute_argument_addresses): Give the new MEMs a
7980 minimum alignment of PARM_BOUNDARY.
7981
62c9aa5f 79822003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
d44cc404
R
7983
7984 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
7985 subtarget_asm_isa_spec.
7986 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
7987 (ASM_SPEC): Define as SH_ASM_SPEC.
7988 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
7989 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
7990 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
7991 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
10f4f635
R
7992
7993 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
7994 and align_jumps if not set.
7995 Force align_jumps to be at least 2.
7996 When relaxing, force align_functions to be at least the maximum of
7997 align_loops, align_jumps and 4.
7998 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
7999 (sh_loop_align): Honour align_loops_log.
8000
8001 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
8002 to check for indirect_jump_scratch.
8003 (indirect_jump_scratch): Add second set.
8004 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
8005 when looking for indirect_jump_scratch.
8006 Extract scratch register taking new structure of indirect_jump_scratch
8007 into account.
8008 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
8009
62c9aa5f 80102003-03-03 Jan Hubicka <jh@suse.cz>
f7da1e9a 8011
09e2bf48
JH
8012 * calls.c (rtx_for_function_call): Take the address as an argument
8013 (expand_call): Do not modify the expression.
8014
f7da1e9a
JH
8015 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
8016 optimizing.
8017
426ace7f
KH
80182003-03-03 Kazu Hirata <kazu@cs.umass.edu>
8019
8020 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
8021 TARGET_H8300H and TARGET_H8300S.
8022
6967a126
KH
80232003-03-03 Kazu Hirata <kazu@cs.umass.edu>
8024
8025 * config/h8300/h8300.md (a peephole2): New.
8026
1f7e8790
KH
80272003-03-03 Kazu Hirata <kazu@cs.umass.edu>
8028
8029 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
8030 operands[0] and operands[1] are different.
8031
80322003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2807791e
KH
8033
8034 * reload1.c (reload_cse_move2add): Remove variable success.
8035
a2581175
KG
80362003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8037
8038 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
8039 warnings.
8040
ef1ecf87
RH
80412003-03-02 Richard Henderson <rth@redhat.com>
8042
8043 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
8044 * config.in, configure: Rebuild.
8045 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9a79ab7e 8046 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
ef1ecf87
RH
8047 paired ldtoffx and ldxmov annotations.
8048 (load_symptr_internal1): Remove.
8049 (load_symptr_high, load_symptr_low): New.
8050
82f6e3eb
NB
80512003-03-02 Neil Booth <neil@daikokuya.co.uk>
8052
8053 * c-incpath.c (add_path): Fix sysp assignment.
8054
bc522472
KG
80552003-03-02 Kurt Garloff <garloff@suse.de>
8056
8057 * params.def: Introduce parameter max-inline-insns-rtl for
8058 a separate limit for the RTL inliner.
8059 * params.h: Likewise.
8060 * integrate.c (function_cannot_inline_p): Use it.
9a79ab7e 8061 * toplev.c (decode_f_option): Set multiple parameters
bc522472
KG
8062 controlling inlining with -finline-limit.
8063 * params.def: Fix orthographic and typographic errors.
8064 * doc/invoke.texi: Document parameters controlling inlining
8065 and the way -finline-limit sets multiple of them.
8066
8067 * tree.h (struct tree_decl): Introduce inlined_function_flag,
8068 recording whether the function became eligible for inlining
8069 by a compiler flag rather than the declaration.
8070 Provide DID_INLINE_FUNC macro to access it.
8071 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
8072 * cp/decl.c (grokfndecl): Likewise.
8073 * toplev.c (rest_of_compilation): Likewise.
8074 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
8075 * print-tree.c (print_node): Report it.
8076 * params.def: Introduce new max-inline-insns-auto limit.
8077 * params.h: Likewise.
8078 * tree-inline.c (inlinable_function_p): Apply it to functions
8079 with DID_INLINE_FUNC set.
8080 * toplev.c (decode_f_option): Initialize it from -finline-limit
8081 value.
8082 * doc/invoke.texi: Document new parameter.
8083
b9f4b20a
GK
80842003-03-02 Geoffrey Keating <geoffk@apple.com>
8085
8086 * fix-header.c (read_scan_file): Don't reference simplify_path.
8087
97d322cc
SC
80882003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8089
8090 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
8091 min/max instructions by default as may result in reload errors.
8092
65fb64fe
SC
80932003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8094
8095 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
8096 avoid reload problems; define split for it.
8097
b45e9837
SC
80982003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8099
8100 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
8101 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
8102 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9a79ab7e 8103 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
b45e9837
SC
8104 rotatert and rotate.
8105 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
8106 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
8107 ("*rotrhi3_addr"): New split for shift insns on address register.
8108 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
8109 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
8110 (___rotrhi3): Likewise.
8111 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
8112
b1cbe78c
NB
81132003-03-02 Neil Booth <neil@daikokuya.co.uk>
8114
8115 * toplev.c (aux_base_name): Moved from toplev.h.
8116 (filename): Constify.
8117 (lang_dependent_init): Don't duplicate name.
8118 (process_options): Set aux_base_name here, not...
8119 (do_compile): ...here. Change protoype.
8120 (toplev_main): Move some code from do_compile.
8121 * toplev.h: Remove aux_base_name.
8122
b059c02a
KH
81232003-03-02 Kazu Hirata <kazu@cs.umass.edu>
8124
8125 * config/h8300/h8300-protos.h: Add a prototype for
8126 iorxor_operator.
8127 * config/h8300/h8300.c (print_operand): Handle 'c'.
8128 (iorxor_operator): New.
8129 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
8130 * config/h8300/h8300.md (*iorhi3_zext): Remove.
8131 (*iorsi3_zexthi): Likewise.
8132 (*iorsi3_zextsi): Likewise.
8133 (*xorhi3_zextqi): Likewise.
8134 (*xorsi3_zexthi): Likewise.
8135 (*xorsi3_zextsi): Likewise.
8136 (*ixorhi3_zext): New.
8137 (*ixorsi3_zext_qi): Likewise.
8138 (*ixorsi3_zext_hi): Likewise.
8139
986b1f13
NB
81402003-03-02 Neil Booth <neil@daikokuya.co.uk>
8141
8142 * c-incpath.c (remove_component_p, simplify_path): Move back to
8143 cppfiles.c.
8144 (remove_duplicates): Use cpp_simplify_path.
8145 * c-incpath.h (simplify_path): Remove.
8146 * c-lex.c: Don't include c-incpath.h.
8147 (init_c_lex): Remove simplify_path.
8148 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
8149 (find_or_create_entry, validate_pch): Revert.
8150
8a035a6b
AH
81512003-03-02 Ashif Harji <asharji@uwaterloo.ca>
8152
8153 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
8154 an external cpp during compilation.
8155 (option_map): Likewise.
8156 * objc/lang-specs.h (default_compilers): Similarly.
8157 * doc/invoke.texi: Document -no-integrated-cpp flag.
8158
23cdb465
KH
81592003-03-02 Kazu Hirata <kazu@cs.umass.edu>
8160
8161 * config/h8300/h8300.md (zero_extendqisi2): Change to an
8162 expander.
8163 (*zero_extendqisi2_h8300): New.
8164 (*zero_extendqisi2_h8300hs): New.
8165 (two splitters): New.
8166
29efb633
KG
81672003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8168
8169 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
8170
36bf3f1b
KH
81712003-03-01 Kazu Hirata <kazu@cs.umass.edu>
8172
8173 * config/h8300/h8300.md (a peephole2): Remove dead code.
8174
08291658
RS
81752003-03-01 Roger Sayle <roger@eyesopen.com>
8176
8177 PR c++/9367
8178 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
8179 (BT_FN_INT_CONST_STRING_VALIST_ARG,
8180 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
8181 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
8182 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
8183 BT_FN_INT_STRING_CONST_STRING_VAR,
8184 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
8185 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
8186 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
8187 ATTR_NONNULL_3): Also include the nothrow attribute.
8188 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
8189 vsnprintf, vscanf, vsscanf): Don't define attributes here.
8190 * builtins.def (putchar, puts): Make full C89 built-ins.
8191 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
8192 vsscanf, vsnprintf, vsprintf): New built-ins.
8193 * c-common.c (c_common_nodes_and_builtins): Handle new macro
8194 DEF_FUNCTION_TYPE_VAR_3.
8195
8196 * doc/extend.texi: Document these new built-in functions.
8197
e5258f85
KH
81982003-03-01 Kazu Hirata <kazu@cs.umass.edu>
8199
8200 * config/h8300/h8300.md (a peephole2): New.
8201
85bb9c2a
RE
82022003-03-01 Richard Earnshaw <rearnsha@arm.com>
8203
8204 * predict.c (estimate_bb_frequencies): Correctly set
8205 real_values_initialized after initialization.
8206
5793b276
NB
82072003-03-01 Neil Booth <neil@daikokuya.co.uk>
8208
8209 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
8210 cppinit.o, cppdefault.o, fix-header): Update.
8211 * c-incpath.c: New file.
8212 * c-incpath.h: New file.
8213 * c-lex.c: Include c-incpath.h.
8214 (init_c_lex): Register path simplifier.
8215 * c-opts.c: Include cppdefault.h and c-incpath.h.
8216 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
8217 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
8218 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
8219 (missing_arg, c_common_decode_option): Handle them.
8220 (c_common_post_options): Register include chains.
8221 (print_help): Update.
8222 * cppdefault.h (struct default include): Update.
8223 Move some macros to ...
8224 * cppdefault.c: ... here.
8225 (cpp_include_defaults): Add extra field add_sysroot.
8226 * cppfiles.c (include_file, search_from, find_or_create_entry,
8227 cpp_included, find_include_file, remap_filename): Update for
8228 renaming of search_path to cpp_path, and of the chain headers.
8229 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
8230 * cpphash.h (struct search_path): Move to cpplib.h.
8231 (struct cpp_buffer, struct cpp_reader): Update.
8232 (_cpp_simplify_pathname): Remove.
8233 * cppinit.c: Don't include prefix.h and cppdefault.h.
8234 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
8235 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
8236 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
8237 no_pth, cpp_handle_options): Remove.
8238 (struct pending_option): Remove chain members.
8239 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
8240 cpp_handle_option): Update.
8241 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
8242 (struct cpp_options): Remove quote_include, bracket_include,
8243 include_prefix, include_prefix_len, verbose, ignore_srcdir,
8244 no_standard_includes, no_standard_cplusplus_includes.
8245 (struct cpp_callbacks): Add simplify_path.
8246 (cpp_handle_options): Remove.
8247 * fix-header.c: Include c-incpath.h.
8248 (read_scan_file): Update to use c-incpath functionality.
8249 * doc/passes.texi: Update.
8250
6620997b
KH
82512003-03-01 Kazu Hirata <kazu@cs.umass.edu>
8252
8253 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
8254 satisfies EXTRA_CONSTRAINT 'U'.
8255
82b4dc2e
KH
82562003-03-01 Kazu Hirata <kazu@cs.umass.edu>
8257
8258 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
8259 register.
8260 (*tst_extzv_memqi_1_n): Change to a splitter.
8261 (a peephole2): Update.
8262
c4f6b78e
RE
82632003-03-01 Richard Earnshaw <rearnsha@arm.com>
8264
8265 * predict.c (estimate_bb_frequencies): Initialize the sreal
8266 constants once per compilation.
8267
9552a3e3
RH
82682003-02-28 Richard Henderson <rth@redhat.com>
8269
8270 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
8271
73c68f61
SS
82722003-02-28 scott snyder <snyder@fnal.gov>
8273
8274 * flags.h: Add flag_eliminate_unused_debug_types.
8275 * toplev.c: Add flag_eliminate_unused_debug_types.
8276 (f_options): Add -feliminate-unused-debug-types.
8277 * dwarf2out.c (struct file_table): Add emitted member.
8278 (splice_child_die): Fix the parent pointer for the child being
8279 spliced.
8280 (lookup_filename): Maintain file_table.emitted array. Don't
8281 output .file directive here.
8282 (maybe_emit_file): (new)
8283 (init_file_table): Set up file_table.emitted.
8284 (dwarf2out_source_line): Use maybe_emit_file.
8285 (dwarf2out_start_source_file): Use maybe_emit_file.
8286 (dwarf2out_init): Use maybe_emit_file.
8287 (prune_unused_types_walk_attribs): (new)
8288 (prune_unused_types_mark): (new)
8289 (prune_unused_types_walk): (new)
8290 (prune_unused_types_prune): (new)
8291 (prune_unused_types): (new)
8292 (dwarf2out_finish): Call prune_unused_types if
8293 flag_eliminate_unused_debug_types is set.
8294 * doc/invoke.texi (Option Summary): Add
8295 -feliminate-unused-debug-types.
8296 (Debugging Options): Likewise.
8297
d8fad4ea
GK
82982003-02-28 Geoffrey Keating <geoffk@apple.com>
8299
8300 * doc/invoke.texi: Change .pch to .gch.
8301 * cppfiles.c (open_file_pch): Likewise.
8302 * gcc.c (default_compilers): Likewise.
8303
9855905c
AH
83042003-02-28 Aldy Hernandez <aldyh@redhat.com>
8305
52999738 8306 * floatlib.c: Remove.
9855905c 8307
3695c25f
JM
83082003-02-28 Jason Merrill <jason@redhat.com>
8309
8310 * stor-layout.c (variable_size): Leave a "minus 1" outside the
8311 SAVE_EXPR.
8312
f8f0e566
DE
83132003-02-28 David Edelsohn <edelsohn@gnu.org>
8314
8315 * config/rs6000/power4.md: Add compare bypass.
8316
35501efe
JT
83172003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
8318
8319 * config/netbsd.h: Update copyright years.
8320 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
8321 -pthread is specified on the command line.
8322
8f7ee471
DJ
83232003-02-28 Dale Johannesen <dalej@apple.com>
8324
52999738 8325 * loop.c (struct movable): Add insert_temp, shrink savemode.
8f7ee471 8326 (scan_loop): Accept invariants that require copying; mark as
52999738 8327 insert_temp.
8f7ee471
DJ
8328 (combine_movables): Don't combine insert_temp movables.
8329 (move_movables): Insert copies for insert_temp movables.
8330 Don't record the info based on regno for insert_temp's.
8331
67c2b45f
JS
83322003-02-28 Joel Sherrill <joel@OARcorp.com>
8333
8334 PR 9638/other
9a79ab7e 8335 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
67c2b45f
JS
8336 this constant defaults to 1.
8337
066f1538
BW
83382003-02-28 Bob Wilson <bob.wilson@acm.org>
8339
8340 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
8341
b8c53e96
RE
83422003-02-28 Richard Earnshaw <rearnsha@arm.com>
8343
9a79ab7e 8344 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
b8c53e96
RE
8345 ARMv5e processor, not just for XScale. Instructions are predicable.
8346 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
8347
b93828f3
NC
83482003-02-28 Nick Clifton <nickc@redhat.com>
8349
8350 * config/arm/arm.c (note_invalid_constants): Change parameter type
8351 from bool to int.
8352
3c042316
KH
83532003-02-28 Kazu Hirata <kazu@cs.umass.edu>
8354
8355 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
8356 test of bit 7.
8357 (*tst_extzv_memqi_1_n): Likewise.
8358 (a peephole2): New.
8359
c876997f 83602003-02-28 Richard Sandiford <rsandifo@redhat.com>
28727f1f
RS
8361
8362 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
8363 #ifndef __mips16.
8364
62c9aa5f 83652003-02-28 Jan Hubicka <jh@suse.cz>
10a3fdd9
JH
8366
8367 * combine.c (gen_lowpart_for_combine): Update handling of
8368 subregs_of_mode
8369 * flow.c (life_analysis, mark_used_regs): Likewise.
8370 * regclass.c (subregs_of_mode): Turn into single bitmap.
8371 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
8372 dealing with subregs_of_mode
8373 * regs.h (subregs_of_mode): Update prototype.
8374
9d18e06b
JZ
83752003-02-28 Josef Zlomek <zlomekj@suse.cz>
8376
8377 * emit-rtl.c (set_reg_attrs_for_parm): New function.
8378 * rtl.h (set_reg_attrs_for_parm): New exported function.
8379 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
8380 set_reg_attrs_from_mem.
8381
95456d43
RS
83822003-02-27 Roger Sayle <roger@eyesopen.com>
8383 Zack Weinberg <zack@codesourcery.com>
8384
8385 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
8386
28ae9fed
KH
83872003-02-27 Kazu Hirata <kazu@cs.umass.edu>
8388
8389 * reload1.c (sext_for_mode): Remove.
8390 (reload_cse_move2add): Use trunc_int_for_mode instead of
8391 sext_for_mode.
8392 (move2add_note_store): Likewise.
8393 Reset register information if we see a set in non-integer
8394 mode.
8395
d47719fd
DE
83962003-02-27 David Edelsohn <edelsohn@gnu.org>
8397
30e7f17e
DE
8398 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
8399 option.
8400 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
8401 * config/rs6000/aix51.h: Same.
8402 * config/rs6000/aix52.h: Same.
d47719fd
DE
8403 * config/rs6000/power4.md: Additional VMX bypasses.
8404
7a69a172
GB
84052003-02-27 Geert Bosch <bosch@gnat.com>
8406
8407 * toplev.c (print_version): Add indentation for GGC heuristics and
8408 output after printing version information.
8409
678e68fc
JW
84102003-02-27 James E Wilson <wilson@tuliptree.org>
8411
8412 * combine.c (simplify_comparison): Require integral mode when
8413 permuting SUBREG with AND.
8414
986704f1
SE
84152003-02-27 Steve Ellcey <sje@cup.hp.com>
8416
8417 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
8418
1e3af7f6
NC
84192003-02-27 Nick Clifton <nickc@redhat.com>
8420
8421 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
8422 deleted when cirrus instructions were added.
8423
51b7c247
JT
84242003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
8425
8426 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
8427 POSIX thread support by default.
8428
3eae722d
RS
84292003-02-27 Roger Sayle <roger@eyesopen.com>
8430
8431 * config/i386/cygwin.h: Don't include any other files directly.
8432 * config/i386/mingw32.h: Don't include cygwin.h directly.
8433 * config.gcc (cygwin, mingw32, uwin): Instead make these files
8434 explicit in the tm_files variable.
8435
6fc19dc9
AM
84362003-02-27 Alan Modra <amodra@bigpond.net.au>
8437
8438 * config/rs6000/rs6000.md: Add TI constant splitter.
8439
c41536f5
AO
84402003-02-26 Alexandre Oliva <aoliva@redhat.com>
8441
65c04548
AO
8442 * builtins.c (purge_builtin_constant_p): Handle subreg of
8443 constant_p_rtx too.
8444
c41536f5
AO
8445 * function.c (assign_stack_local_1): Truncate constant added to
8446 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
8447
dccd5213
DE
84482003-02-26 David Edelsohn <edelsohn@gnu.org>
8449
8450 * config.gcc: Add power4 to PowerPC with_cpu list.
8451
62c9aa5f 84522003-02-26 Jan Hubicka <jh@suse.cz>
47a5d8e7
JH
8453
8454 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
8455
cb9e4555
ZD
84562003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8457
8458 * gcov-dump.c (print_prefix): Fix signedness warning.
8459 * gcov-io.h (struct counter_section, struct counter_section_data): New.
8460 (struct function_info): n_arc_counts field removed, n_counter_sections,
8461 counter_sections fields added.
8462 (struct gcov_info): arc_counts, n_arc_counts fields removed,
8463 n_counter_sections, counter_sections fields added.
8464 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
8465 profile sections.
8466 * profile.h (MAX_COUNTER_SECTIONS): New.
8467 (struct section_info): New.
8468 (struct profile_info): count_instrumented_edges,
8469 count_edges_instrumented_now fields removed, n_sections, section_info
8470 fields added.
8471 (find_counters_section): Declare.
8472 * profile.c (struct function_list): count_edges field removed,
8473 n_counter_sections, counter_sections fields added.
8474 (set_purpose, label_for_tag, build_counter_section_fields,
8475 build_counter_section_value, build_counter_section_data_fields,
8476 build_counter_section_data_value, build_function_info_fields,
8477 build_function_info_value, build_gcov_info_fields,
8478 build_gcov_info_value): New static functions.
8479 (find_counters_section): New function.
8480 (instrument_edges, get_exec_counts, compute_branch_probabilities,
8481 branch_prob, create_profiler): Modified to support multiple profile
8482 sections.
8483
b0d7ef9a
JDA
84842003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8485
8486 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
8487 is 8 * STACK_BOUNDARY.
8488 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
8489
f6e91562
MM
84902003-02-26 Michael Matz <matz@suse.de>
8491
8492 * ra-colorize.c (merge_moves): Fix list handling.
8493
f0375c66
NC
84942003-02-26 Nick Clifton <nickc@redhat.com>
8495
8496 * config/arm/arm.c (is_load_address): Rename to...
52999738
ZW
8497 (arm_memory_load_p) ... this and make it check for SUBREGs and
8498 constant loads that will be converted into loads from the
8499 minipool.
8500 (is_cirrus_insn): Rename to ...
8501 (arm_cirrus_insn_p): ... this, for consistency. Replace test
8502 of CIRRUS_NO with CIRRUS_NOT.
8503 (cirrus_reorg): Use renamed functions.
8504 (note_invalid_constants): Change from a void function to bool.
8505 Add an extra parameter, saying whether the fixups should be
8506 pushed. Return true if fixups are needed.
8507 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
8508 of CIRRUS_NO with CIRRUS_NOT.
8509 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
8510 other floating point co-processors can also affect this.
8511 * config/arm/arm.md ("type" attribute): Add mav_farith and
8512 mav_dmult. Replace references to "cirrus_type" attribute with
8513 "type".
8514 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
8515 ("cirrus_type" attribute): Delete - use "type" instead.
8516 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
8517 'normal'.
f0375c66 8518
62c9aa5f 85192003-02-25 Jan Hubicka <jh@suse.cz>
0d446150
JH
8520
8521 * objc-act.c: Include cgraph.h
8522 (mark_referenced_methods): New function.
8523 (objc_init): Call it.
8524 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
8525
8526 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
8527 mode.
8528
8529 * optabs.c (expand_fix): Do not widen the input operand.
8530
8531 * expr.c (emit_group_store): Fix crash when converting single
8532 register into complex register.
8533
8534 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
8535 * alias.c: Include timevar.h
8536 (init_alias_analysis): Set timevar
8537 * jump.c: Include timevar.h
8538 (rebuild_jump_labels): Set timevar
8539 * regcalss.c: Include timevar.h
8540 (reg_scan): Set timevar
8541 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
8542
b17d5d7c
ZD
85432003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8544
8545 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
8546
8547 * Makefile.in (loop-unroll.o): New.
8548 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
8549 (unroll_and_peel_loops): Declare.
8550 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
8551 flag_old_unroll_loops.
8552 * loop.c (loop_invariant_p): Ditto.
8553 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
8554 flag_old_unroll_all_loops.
8555 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
8556 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
8557 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
8558 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
8559 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
8560 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
8561 PARAM_MAX_ONCE_PEELED_INSNS): New.
8562 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
8563 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
8564 instead of old one.
8565 (flag_peel_loops): New.
8566 (lang_independent_options): The new flags added.
8567 (rest_of_compilation): Call new unroller.
8568 (process_options): Setup flags for coexistence of old and new unroller.
8569 * doc/invoke.texi: Document new options.
8570 * doc/passes.texi: Document new unroller pass.
8571
244f7aa9
DB
85722003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
8573
8574 * fixinc/fixincl.x: Regenerate
8575
1d14f992
JZ
85762003-02-26 Josef Zlomek <zlomekj@suse.cz>
8577
8578 * function.c (assign_parms): Set reg_attrs for parameters passed in
8579 registers.
8580
8ace9f18
AM
85812003-02-26 Alan Modra <amodra@bigpond.net.au>
8582
38a84391 8583 PR target/9681
8ace9f18
AM
8584 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
8585
9a29ee42
DE
85862003-02-25 David Edelsohn <edelsohn@gnu.org>
8587
8588 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
8589 pseudo-op.
8590
8beccec8
RS
85912003-02-25 Roger Sayle <roger@eyesopen.com>
8592
8593 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
8594 * cse.c (invalidate_skipped_set): Likewise.
8595 * integrate.c (subst_constants): Likewise.
8596 * jump.c (reversed_comparison_code_parts): Likewise.
8597 * loop.c (canonicalize_condition): Likewise.
8598 * simplify-rtx.c (simplify_relational_operation): Likewise.
8599
b052d8ee
RS
86002003-02-25 Roger Sayle <roger@eyesopen.com>
8601
8602 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
8603 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
8604 the appropriate macro to define built-in function.
8605 (fmod,fmodf,fmodl): New built-in functions.
8606
8607 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
8608
8d454008
RH
86092003-02-25 Richard Henderson <rth@redhat.com>
8610
8611 * config/i386/i386.c (function_arg): Pass variable sized
8612 structures correctly on the stack.
8613
fc943f55
KH
86142003-02-25 Kazu Hirata <kazu@cs.umass.edu>
8615
8616 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
8617 does not reduce the cost of SET.
8618
14f00213
FS
86192003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8620
8621 PR target/9732
8622 * config/rs6000/rs6000.c (first_reg_to_save): Handle
8623 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
8624 (rs6000_emit_prologue): Likewise.
8625 (rs6000_emit_epilogue): Likewise.
8626 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
8627 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
8628
8164b171
RH
86292003-02-25 Richard Henderson <rth@redhat.com>
8630
8631 * real.c (real_to_integer2): Force overflow result only for
8632 unsigned overflow.
8633
9e48c409
KH
86342003-02-25 Kazu Hirata <kazu@cs.umass.edu>
8635
8636 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
8637
3044064c 86382003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
52999738 8639 Richard Henderson <rth@redhat.com>
3044064c
VM
8640
8641 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
4e21585b 8642 there is no similar load.
3044064c 8643
15aab9c0 86442003-02-25 Vladimir Makarov <vmakarov@redhat.com>
52999738 8645 Richard Henderson <rth@redhat.com>
15aab9c0
VM
8646
8647 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
8648 sched-rgn.c.
8649 (add_forward_dependence): New function prototype.
8650
8651 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
8652 sched-init.h.
8653 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
8654 them to haifa-sched.c.
8655
8656 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
8657 haifa_classify_insn): Move them from sched-rgn.c.
8658
8659 * sched-deps.c (add_dependence): Return flag of creating a new
8660 entry.
8661 (add_forward_dependence): New function.
8662 (compute_forward_dependences): Use the function.
9a79ab7e 8663
15aab9c0
VM
8664 * sched-ebb.c (earliest_block_with_similiar_load): New function.
8665 (add_deps_for_risky_insns): New function.
8666 (schedule_ebb): Call the function.
8667
86682003-02-20 Aldy Hernandez <aldyh@redhat.com>
c8e4f0e9 8669
52999738
ZW
8670 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
8671 TARGET_VECTOR_OPAQUE_P. Document accordingly.
c8e4f0e9 8672
52999738
ZW
8673 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
8674 opaque types fail.
c8e4f0e9 8675
52999738
ZW
8676 * c-typeck.c (comptypes): Change call to vector_types_compatible
8677 to vector_opaque_p.
8678 (convert_for_assignment): Call vector_opaque_p instead of
8679 vector_types_compatible.
8680 (really_start_incremental_init): Disallow initialization of opaque
8681 types.
c8e4f0e9 8682
52999738
ZW
8683 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
8684 Define TARGET_VECTOR_OPAQUE_P.
8685 (TARGET_INITIALIZER): Same.
c8e4f0e9 8686
52999738
ZW
8687 * target.h (struct gcc_target): Remove vector_types_compatible.
8688 Add vector_opaque_p.
c8e4f0e9 8689
52999738
ZW
8690 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
8691 Remove.
8692 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
8693 a vector type. Change return type to bool.
8694 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
8695 (TARGET_VECTOR_OPAQUE_P): Define.
c8e4f0e9 8696
52999738
ZW
8697 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
8698 target hook.
8699 Include target.h.
8700 (cp_parser_init_declarator): Fix typo in function comments.
c8e4f0e9 8701
62c9aa5f 87022003-02-25 Jan Hubicka <jh@suse.cz>
fa1a0d02
JH
8703
8704 * Makefile.in (lcm.o): Add dependency on function.h
8705 * lcm.c (function.h): Include.
8706 * i386.c (machine_function, ix86_stack_locals,
8707 * ix86_save_varrargs_registers) : Move to
8708 ...
8709 * i386.h (machine_function, ix86_stack_locals,
8710 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
8711 (ix86_optimize_mode_switching): New.
8712 * i386.md (fix patterns): Set ix86_optimize_mode_switching
8713
b103bfef
NC
87142003-02-25 Nick Clifton <nickc@redhat.com>
8715
8716 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
8717 of fourth arg is 'fndecl' not 'indirect'. Update comment
8718 describing the function's parameters.
8719
62c9aa5f 87202003-02-24 Jan Hubicka <jh@suse.cz>
2d21f7d6
JH
8721
8722 * combine.c (simplify_shift_const): Fix previous patch.
8723
2bac97f7
JL
87242003-02-24 Jeff Law <law@redhat.com>
8725
8726 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
8727 alternative.
8728 (testsi_1, testhi_1, testqi_1): Likewise.
8729
f8dc212b
RO
87302003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8731
8732 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
8733 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
8734 * doc/extend.texi (Tru64 Pragmas): Reflect this.
8735
8736 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
9a79ab7e 8737 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
f8dc212b
RO
8738 * fixinc/fixincl.x: Regenerate.
8739 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
8740 testcase.
8741 Fixes PR c/5059, c/6126, other/9671.
9a79ab7e 8742
44ee6e9e
RS
87432003-02-24 Roger Sayle <roger@eyesopen.com>
8744
8745 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
8746 from handle_braces in "%{...}".
8747
463f02cd
KK
87482003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
8749
8750 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
8751 (prepare_move_operands): Handle TLS operands.
8752 (tls_symbolic_operand): New.
8753 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
8754 (legitimize_pic_address): Do nothing for the TLS symbol.
8755 (sh_encode_section_info): Handle TLS case.
8756 (sh_strip_name_encoding): Drop TLS encoding.
8757 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
8758 * config/sh/sh.h (SH_TLS_ENCODING): Define.
8759 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
8760 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
8761 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
8762 * config/sh/sh.md: Define TLS UNSPEC constants.
8763 (type): Add tls_load.
8764 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
8765 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
8766 ("tls_initial_exec"): New insn.
8767 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
8768 ("load_gbr"): New insn.
8769
8770 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
52999738 8771 * configure: Regenerate.
463f02cd 8772
8403445a
AM
87732003-02-24 Alan Modra <amodra@bigpond.net.au>
8774
6fc19dc9 8775 PR 9297, PR 9722
8403445a
AM
8776 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
8777 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
8778 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
8779 (enum block_op_methods): Reorder for better store_expr optimization.
8780 * expr.c (store_expr): Test bit 1 of "want_value" for call param
8781 stores, test bit 0 for original want_value meaning. Pass
8782 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
8783 recursive calls, and calls to expand_param.
8784 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
8785 expected, set target to 0 rather than to subtarget. Formatting.
8786
ef906381
KH
87872003-02-23 Kazu Hirata <kazu@cs.umass.edu>
8788
8789 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
8790
16226f1e
KG
87912003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8792
8793 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
8794 new default behavior.
8795 * ggc-common.c: Include sys/resource.h.
8796 (ggc_rlimit_bound): New function.
8797 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
8798 defaults to account for rlimits.
8799
9e555526
RH
88002003-02-22 Richard Henderson <rth@redhat.com>
8801
8802 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
8803
88042003-02-22 Kelley Cook <kelley@dwhoops.info>
8805
52999738 8806 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
9e555526
RH
8807 (ix86_tune_string): Rename from ix86_cpu_string.
8808
9d913bbf
KC
88092003-02-22 Kelley Cook <kelleycook@comcast.net>
8810
52999738
ZW
8811 * config/i386/i386.c: Replace "mcpu" with "mtune".
8812 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
8813 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
8814 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
8815 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
9d913bbf 8816
d2c172bf
AS
88172003-02-23 Andreas Schwab <schwab@suse.de>
8818
8819 * config.gcc: Delete references to m68k/t-linux and
8820 m68k/t-linux-aout.
8821 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
8822
62c9aa5f 88232003-02-22 Jan Hubicka <jh@suse.cz>
b3de7382
JH
8824
8825 * toplev.c (rest_of_compilation): Apply fotgotten hunk
8826 of track scheduling patch.
8827
62c9aa5f 88282003-02-22 Jan Hubicka <jh@suse.cz>
90b8be73
JH
8829
8830 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
8831 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
8832
62c9aa5f 88332003-02-22 Jan Hubicka <jh@suse.cz>
764c4414
JH
8834
8835 * c-decl.c (c_expand_body_1): Fix.
8836
62c9aa5f 88372003-02-22 Jan Hubicka <jh@suse.cz>
1c4a429a
JH
8838
8839 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
8840
8841 * cfgcleanup.c (try_forward_edges): Don't check loop structures
8842 when not optimizing.
8843 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
8844 when not expensive.
8845 * toplev.c (rest_of_compilation): Duplicate loop headers only when
8846 optimizing; Delete trivially dead insns early; fix optimize check.
8847
8848 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
8849 dependency on cgraph.h
8850 * c-decl.c: Include cgraph.h
8851 (finish_function): Update call of tree_inlinable_function_p.
8852 * c-objc-common.c: Include cgraph.h
8853 * cgraph.h: New file.
8854 * cgraphunit.c: New file.
8855 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
8856 (cgraph_nodes, cgraph_n_nodes): Globalize.
8857 (cgraph_finalize_function, cgraph_finalize_compilation_unit
8858 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
8859 Move into cgraphunit.c
8860 * tree-inline.c: Include cgraph.h
8861 * tree-inline.c: Include cgraph.h
8862
1e2115dc
JZ
88632003-02-22 Josef Zlomek <zlomekj@suse.cz>
8864
8865 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
8866 for copying a register.
8867
26182e15
SB
88682003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
8869
8870 PR other/3782
8871 * toplev.c (process_options): If flag_detailed_statistics is set,
8872 then set time_report as well.
8873
b6553814
SB
8874 PR c/8828
8875 * jump.c (never_reached_warning): Don't fall through BARRRIER
26182e15
SB
8876 insns. Update comments to reflect what the function really does.
8877
c0a47a61
RS
88782003-02-21 Roger Sayle <roger@eyesopen.com>
8879
8880 * fold-const.c (omit_one_operand): No longer static.
8881 * tree.h (omit_one_operand): Prototype here.
8882 (div_and_round_double): Keep fold-const.c prototypes together.
8883 * builtins.c (builtin_mathfn_code): Handle binary built-in
8884 funtions, such as "pow" and "atan2".
8885 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
8886 Simplify optimizations using "type" the builtin's return type.
8887
51928907
HPN
88882003-02-22 Hans-Peter Nilsson <hp@axis.com>
8889
5b296d93
HPN
8890 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
8891 Fix functionalization typo.
8892
51928907
HPN
8893 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
8894 in an asm.
8895
9ac121af
KG
88962003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8897
8898 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
8899 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
8900 documentation.
8901 * ggc-common.c: Include params.h
8902 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
8903 init_ggc_heuristics): New functions.
8904 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
8905 init_ggc_heuristics): Prototype.
8906 * toplev.c (print_version): Output GGC heuristics.
8907 (parse_options_and_default_flags): Call init_ggc_heuristics.
8908
62c9aa5f 89092003-02-22 Jan Hubicka <jh@suse.cz>
453ee231
JH
8910
8911 * i386.c (def_builtin): Special case 64bit builtins.
8912 (MASK_SSE164, MASK_SSE264): New constants.
8913 (builtin_description): Add 64bit builtins.
8914 (ix86_init_mmx_sse_builtins): Likewise.
8915 * i386.h (enum ix86_builtins): Likewise.
8916 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
8917 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
8918 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
8919 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
8920 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
8921 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
8922 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
8923
62c9aa5f 89242003-02-22 Jan Hubicka <jh@suse.cz>
d50672ef
JH
8925
8926 * i386.c (builtin_description): Add __builtin_ia32_paddq and
8927 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
8928 and __builtin_ia32_psubq128.
8929 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
8930 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
8931 (mmx_adddi3, mmx_subdi3): New.
8932 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
8933 * xmmintrin.h (_mm_movepi64_pi64): New.
8934 (_mm_add_epi64, _mm_sub_epi64): fix.
8935 (_mm_mul_pu16): Rename to...
8936 (_mm_mul_su32): ... this one.
8937
8938 * builtins.c (expand_builtin_expect): Do not predict
8939 flag_guess_branch_prob is not set.
8940 * c-semantics.c (expand_stmt): Likewise.
8941 * predict.c (predict_insn): Likewise.
8942 * stmt.c (expand_continue_loop): Likewise.
8943 * toplev.c (rest_of_compilation): Do not call
8944 note_prediction_to_br_prob and note_prediction_to_br_prob
8945 when not optimizing.
8946
62c9aa5f 89472003-02-21 Jan Hubicka <jh@suse.cz>
9809a362
JH
8948
8949 * cfgrtl.c (commit_edge_insertions): Call
8950 find_many_sub_basic_block only when some code has been emitted.
8951 (commit_edge_insertions_watch_calls): Bring into sync with
8952 commit_edge_insertions
8953
62c9aa5f 89542003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
a93d1ba2
R
8955
8956 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
8957
8958 * sh.md (binary_sf_op): Use extra constant operand instead of
8959 negating constant operand 4.
8960 * sh.c (sh_expand_binop_v2sf): Supply it.
8961
a8d0ddaf
ZW
89622003-02-21 Zack Weinberg <zack@codesourcery.com>
8963
8964 * cpphash.h (struct lexer_state): Add directive_wants_padding.
8965 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
8966 for directives of type INCL.
8967 (glue_header_name, parse_include): Use get_token_no_padding.
8968 * cppmacro.c (replace_args): If directive_wants_padding,
8969 provide padding tokens.
8970
902ac719
KH
89712003-02-21 Kazu Hirata <kazu@cs.umass.edu>
8972
8973 * config/h8300/h8300.md (a peephole2): New.
8974
62c9aa5f 89752003-02-21 Jan Hubicka <jh@suse.cz>
9dca2ad5
JH
8976
8977 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
8978 (commit_edge_insertions): Call find_many_sub_basic_blocks
8979
8980 * reg-stack.c (convert_regs): Cleax aux for blocks.
8981
62c9aa5f 89822003-02-21 Jan Hubicka <jh@suse.cz>
64465d27
JH
8983
8984 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
8985
9e7d0b92
GN
89862003-02-21 Glen Nakamura <glen@imodulo.com>
8987
8988 PR optimization/8613
8989 * builtins.c (expand_builtin): Emit postincrements before expanding
8990 builtin functions.
8991
a7582c8c
BE
89922003-02-21 Ben Elliston <bje@redhat.com>
8993
8994 PR other/5634
8995 * doc/install.texi (Configuration): Explain using $HOME instead of
8996 the ~ metacharacter when referring to home directories.
8997
91710e62
AO
89982003-02-20 Alexandre Oliva <aoliva@redhat.com>
8999
9000 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9001 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9002 '${exec_prefix}' (in addition to the expansion thereof) as
9003 relocatable.
9004 * configure: Rebuilt.
9005
d64f6f86
KH
90062003-02-20 Kazu Hirata <kazu@cs.umass.edu>
9007
9008 * config/h8300/h8300.md (addhi3_incdec): Change the name to
9009 *addhi3_incdec.
9010 (addsi3_incdec): Change the name to *addsi3_incdec.
9011
fd7acc30
RS
90122003-02-20 Roger Sayle <roger@eyesopen.com>
9013
9014 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
9015
1c2de642
TM
90162003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
9017
9018 PR fortran/9038
9019 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
9020 options to be ignored.
9021 (c_common_decode_option): Ignore them when preprocessing.
9022
62c9aa5f 90232003-02-20 Jan Hubicka <jh@suse.cz>
b9422b69 9024
fd7acc30
RS
9025 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
9026 global variables.
9027 (lang_independent_options): Add -fsched2-use-superblocks
9028 -fsced2-use-traces.
b9422b69
JH
9029 (rest_of_compilation): Deal with it.
9030 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
fd7acc30
RS
9031 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
9032 Declare.
b9422b69
JH
9033 * rtl.h (reg_to_stack): Update prototype.
9034 * reg-stack.c (reg_to_stack): Return when something has changed;
9035 update liveness when executing after superblock scheduling.
9036
9037 * combine.c (simplify_shift_const): Simplify few special cases
9038 into constants.
9039
a62bfff2
DE
90402003-02-20 David Edelsohn <edelsohn@gnu.org>
9041
9042 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
9043 (add.,subf.,neg.): Change attribute to fast_compare.
9044 All DFA descriptions updated.
9045
dbbf88d1
NS
90462003-02-20 Nathan Sidwell <nathan@codesourcery.com>
9047
9048 Change base class access representation.
9049 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
9050 TREE_VIA_PRIVATE): Remove.
9051 (BINFO_BASEACCESSES): New binfo elt.
9052 (BINFO_BASEACCESS): New accessor.
9053 (BINFO_ELTS): Increase.
9054 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
9055 (access_public_node, access_protected_node,
9056 access_private_node): New global nodes.
9057 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
9058 * dbxout.c (dbxout_type): Adjust.
9059 * dwarf2out.c (gen_inheritance_die): Add access parameter.
9060 (gen_member_die): Adjust.
9061 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
9062 (output_type): Adjust.
9063 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
9064
9065 Change base class access representation. Share virtual base
9066 binfos.
9067 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
9068 call.
9069 * cp/class.c (build_base_path): Likewise.
9070 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
9071 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
9072 (make_new_vtable): Adjust.
9073 (force_canonical_binfo_r): Delete.
9074 (force_canonical_binfo): Delete.
9075 (mark_primary_virtual_base): Delete.
9076 (dfs_unshared_virtual_bases): Delete.
9077 (mark_primary_bases): Adjust.
9078 (maybe_warn_about_overly_private_class): Adjust.
9079 (dfs_base_derived_from): Delete.
9080 (base_derived_from): Follow the inheritance chain.
9081 (struct find_final_overrider_data): Add vpath member.
9082 (dfs_find_final_overrider): Adjust.
9083 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
9084 (find_final_overrider): Adjust.
9085 (update_vtable_entry_for_fn): Adjust.
9086 (modify_all_vtables): Adjust.
9087 (walk_subobject_offsets): Adjust.
9088 (layout_nonempty_base_or_field): Adjust.
9089 (layout_empty_base): Remove last parameter. Adjust.
9090 (build_base_field): Adjust.
9091 (build_base_fields): Adjust.
9092 (propagate_binfo_offsets): Remove last parameter. Adjust.
9093 (dfs_set_offset_for_unshared_vbases): Delete.
9094 (layout_virtual_bases): Adjust.
9095 (finish_struct_1): Adjust.
9096 (init_class_processing): Don't init access nodes.
9097 (dfs_get_primary_binfo): Delete.
9098 (get_primary_binfo): Adjust.
9099 (dump_class_hierarchy_r): Remove most derived arg, add IGO
9100 parameter. Adjust.
9101 (dump_class_hierarchy): Adjust.
9102 (finish_vtbls): Adjust.
9103 (get_original_base): Delete.
9104 (build_vtt_inits): Adjust.
9105 (dfs_build_secondary_vptr_vtt_inits): Adjust.
9106 (dfs_ctor_vtable_bases_queue_p): Adjust.
9107 (build_ctor_vtbl_group): Adjust.
9108 (dfs_accumulate_vtbl_inits): Adjust.
9109 (build_vtbl_initializer): Adjust.
9110 (build_vbase_offset_vtbl_entries): Adjust.
9111 (add_vcall_offset_vtbl_entries_1): Adjust.
9112 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
9113 (access_*_node): Remove.
9114 (CANONICAL_BINFO): Delete.
9115 (BINFO_UNSHARED_MARKED): Remove.
9116 (BINFO_MARKED): Set LANG_FLAG_0 directly.
9117 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
9118 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
9119 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
9120 Delete.
9121 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
9122 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
9123 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
9124 Delete.
9125 (BINFO_DEPENDENT_BASE_P): New.
9126 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
9127 index.
9128 (markedp, unmarkedp): Adjust.
9129 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
9130 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
9131 find_vbase_instance, binfo_for_vbase): Delete.
9132 (copied_binfo, original_binfo): Declare.
9133 (finish_base_specifier): Add virtual_p arg.
9134 (unshare_base_binfos): Delete.
9135 (copy_base_binfos): Declare.
9136 (reverse_path): Delete.
9137 * cp/decl.c (xref_basetypes): Access and virtuality passed
9138 differently. Don't copy direct base binfos here. Call
9139 copy_base_binfos.
9140 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
9141 (initialize_vtbl_ptrs): Adjust.
9142 (expand_member_init): Adjust.
9143 * cp/parser.c (cp_parser_base_specifier): Adjust.
9144 * cp/pt.c (instantiate_class_template): Adjust.
9145 (get_template_base_recursive): Adjust.
9146 * cp/rtti.c (get_pseudo_ti_init): Adjust.
9147 (get_pseudo_ti_desc): Adjust.
9148 * cp/tree.c (unshare_base_binfos): Rename to ...
9149 (copy_base_binfos): ... here, reimplement.
9150 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
9151 (reverse_path): Remove.
9152 * cp/typeck.c (get_delta_difference): Adjust error messages.
9153 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
9154 * cp/search.c (lookup_base_r): Adjust.
9155 (dynamic_cast_base_recurse): Adjust.
9156 (canonical_binfo): Remove.
9157 (dfs_canonical_queue): Remove.
9158 (dfs_assert_unmarked_p): Remove.
9159 (assert_canonical_unmarked): Remove.
9160 (shared_marked_p, shared_unmarked_p): Remove.
9161 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
9162 (dfs_access_in_type): Adjust.
9163 (access_in_type): Adjust.
9164 (dfs_accessible_queue_p): Adjust.
9165 (dfs_accessible_p): Adjust.
9166 (is_subobject_of_p_1, is_subobject_of_p): Remove.
9167 (struct lookup_field_info): Remove from_dep_base_p field.
9168 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
9169 (lookup_field_r): Remove dependent base code.
9170 (lookup_member): Likewise.
9171 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
9172 (dfs_unmarked_real_bases_queue_p): Remove.
9173 (dfs_marked_real_bases_queue_p): Remove.
9174 (dfs_skip_vbases): Remove.
9175 (dfs_get_pure_virtuals): Adjust.
9176 (markedp, unmarkedp): Adjust.
9177 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
9178 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
9179 (dfs_unmark): Adjust.
9180 (dfs_get_vbase_types):Remove.
9181 (dfs_build_inheritance_graph_order): Remove.
9182 (get_vbase_types): Remove
9183 (dfs_find_vbase_instance): Remove.
9184 (find_vbase_instance): Remove.
9185 (dfs_debug_unmarkedp): Adjust.
9186 (dependent_base_p): Remove.
9187 (dfs_push_type_decls): Adjust.
9188 (dfs_push_decls): Adjust.
9189 (dfs_no_overlap_yet): Adjust.
9190 (copied_binfo): New function.
9191 (original_binfo): New function.
9192 (binfo_for_vbase): Remove.
9193
9194 Change base class access representation.
9195 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
9196 (add_interface_do): Likewise.
9197
6d6ab190
DE
91982003-02-20 David Edelsohn <edelsohn@gnu.org>
9199
a8d0ddaf
ZW
9200 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9201 * config/rs6000/power4.md (power4-store,power4-vecstore): New
6d6ab190
DE
9202 insn reservations.
9203 (power4-fpstore): Compact.
9204
2dd5df7c
KH
92052003-02-20 Kazu Hirata <kazu@cs.umass.edu>
9206
9207 * config/h8300/h8300.md (*iorsi3_w): New.
9208
8fa08316
JZ
92092003-02-20 Josef Zlomek <zlomekj@suse.cz>
9210
9211 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
9212 * rtl.c (reg_note_name): Likewise.
9213 * rtl.h (enum reg_note): Likewise.
9214 * doc/invoke.texi: Likewise.
9215 * doc/rtl.texi: Likewise.
9216
c8717368
JZ
92172003-02-20 Josef Zlomek <zlomekj@suse.cz>
9218
9219 * bb-reorder.c (find_traces_1_round): Fix comment typo.
9220
3bc400cd
RS
92212003-02-19 Roger Sayle <roger@eyesopen.com>
9222
9223 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
9224 addition in the presence of signaling NaNs.
9225
b5a49c0b
KW
92262003-02-19 Krister Walfridsson <cato@df.lth.se>
9227
9228 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
9229
472f2723
KH
92302003-02-19 Kazu Hirata <kazu@cs.umass.edu>
9231
9232 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
9233 ORing with 0xffff??00 with the highest bit of the ?? part set.
9234 (compute_logical_op_length): Update.
9235 (compute_logical_op_cc): Likewise.
9236
6d9cc15b
JZ
92372003-02-19 Josef Zlomek <zlomekj@suse.cz>
9238
9239 * bb-reorder.c (find_traces_1_round): Fixed condition for small
9240 destination block with multiple predecessors.
9241 (connect_traces): Check whether the block is a start of trace.
9242
62c9aa5f 92432003-02-19 Jan Hubicka <jh@suse.cz>
563a317a
JH
9244
9245 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
9246 * function.c (assign_params): Likewise.
9247 * arm-protos.h (arm_init_cumulative_args): Update prototype.
9248 * arm.c (arm_init_cumulative_args): Update function.
9249 * arm.h (INIT_CUMULATIVE_ARGS): Update.
9250 * avr-protos.h (init_cumulative_args): Update prototype.
9251 * avr.c (init_cumulative_args): Update function.
9252 * avr.h (INIT_CUMULATIVE_ARGS): Update.
9253 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
9254 * d30v.c (d30v_init_cumulative_args): Update function.
9255 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
9256 * frv-protos.h (frv_init_cumulative_args): Update prototype.
9257 * frv.c (frv_init_cumulative_args): Update function.
9258 * frv.h (INIT_CUMULATIVE_ARGS): Update.
9259 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
9260 * pa.h (INIT_CUMULATIVE_ARGS): Update.
9261 * sparc-protos.h (init_cumulative_args): Update prototype.
9262 * sparc.c (init_cumulative_args): Update function.
9263 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
9264 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
9265
be9d08c2
KH
92662003-02-19 Kazu Hirata <kazu@cs.umass.edu>
9267
9268 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
9269 (*ashiftsi_sextqi_7): Likewise.
9270
f23147fe
RO
92712003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9272
9273 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
9274 ISO C99 and C++.
9275
9276 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
9277 for C++ on IRIX 6.5.1[89].
9278 * fixinc/tests/base/internal/sgimacros.h: New file.
9279
9280 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
9281 * fixinc/tests/base/internal/wchar_core.h: New file.
a8d0ddaf 9282
f23147fe
RO
9283 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
9284 socklen_t definition.
9285 * fixinc/fixincl.x: Regenerate.
9286 * fixinc/tests/base/sys/socket.h: New file.
9287 Fixes PR libgcj/9652.
9288
62c9aa5f 92892003-02-19 Jan Hubicka <jh@suse.cz>
30e4d9d4
JH
9290
9291 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
9292
2792d578
DE
92932003-02-19 David Edelsohn <edelsohn@gnu.org>
9294
9295 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
9296 align_jumps_max_skip and align_loops_max_skip.
9297
92982003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
9299
9300 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
9301 test size if named section.
9302
48a5f2fa
DJ
93032003-02-19 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * expr.c (expand_expr): Use gen_int_mode for the argument
9306 to gen_rtx_MULT.
9307
62c9aa5f 93082003-02-19 Jan Hubicka <jh@suse.cz>
9e889775
JH
9309
9310 * i386.md (cosxf2): Fix conditional.
9311
f4c07fbf
KH
93122003-02-19 Kazu Hirata <kazu@cs.umass.edu>
9313
9314 * config/h8300/h8300.md (extendqisi2): Change to an expander.
9315 (*extendqisi2_h8300): New.
9316 (*extendqisi2_h8300hs): Likewise.
9317
590734b6
KH
93182003-02-19 Kazu Hirata <kazu@cs.umass.edu>
9319
9320 * config/h8300/h8300-protos.h: Update the prototype for
9321 split_adds_subs. Remove the prototypes for
9322 const_int_le_2_operand and const_int_le_6_operand.
9323 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
9324 (const_int_le_2_operand): Remove.
9325 (const_int_le_6_operand): Likewise.
9326 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
9327 for const_int_le_2_operand and const_int_le_6_operand.
9328 * config/h8300/h8300.md: Update all uses of split_adds_subs.
9329 (a peephole2): New.
9330
62c9aa5f 93312003-02-18 Jan Hubicka <jh@suse.cz>
c001c39b
JH
9332
9333 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
9334 (cgraph_expand_function): Rewrite.
9335
2f51bb1d 93362003-02-18 Matt Austern <austern@apple.com>
3bc400cd 9337
2f51bb1d 9338 * toplev.c, langhooks.c, langhooks-def.h: Move
a8d0ddaf 9339 write_global_declarations from toplev.c to langhooks.c.
3bc400cd 9340
ff6e1a2f
KH
93412003-02-18 Kazu Hirata <kazu@cs.umass.edu>
9342
9343 * config/h8300/h8300.c (general_operand_src): Always check
9344 MODE.
9345 (general_operand_dst): Likewise.
9346
78bd5210
RS
93472003-02-18 Roger Sayle <roger@eyesopen.com>
9348
9349 * convert.c (convert_to_real): Also optimize (float)log(x) into
9350 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
9351
9f3a9a08
KK
93522003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
9353
a8d0ddaf 9354 * config/sh/sh.c (unspec_caller_rtx_p): New.
9f3a9a08 9355 (sh_cannot_copy_insn_p): New.
a8d0ddaf 9356 (TARGET_CANNOT_COPY_INSN_P): New.
9f3a9a08 9357
d7ddbe24
RH
93582003-02-18 Richard Henderson <rth@redhat.com>
9359
9360 * c-common.c (handle_used_attribute): Accept static data too.
9361
93622003-02-18 Nick Clifton <nickc@redhat.com>
a8d0ddaf 9363 Aldy Hernandez <aldyh@redhat.com>
22d324c1 9364
a8d0ddaf 9365 * testsuite/gcc.dg/20030218-1.c: New.
22d324c1 9366
a8d0ddaf 9367 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
22d324c1 9368
a8d0ddaf
ZW
9369 * target-def.h (TARGET_INITIALIZER): Add
9370 TARGET_VECTOR_TYPES_COMPATIBLE.
9371 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
22d324c1 9372
a8d0ddaf 9373 * target.h (struct gcc_target): Add field vector_types_compatible.
22d324c1 9374
a8d0ddaf
ZW
9375 * c-typeck.c (comptypes): Take into account
9376 TARGET_VECTOR_TYPES_COMPATIBLE.
9377 (convert_for_assignment): Same.
22d324c1 9378
a8d0ddaf
ZW
9379 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
9380 (rs6000_spe_vector_types_compatible): New.
9381 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
22d324c1 9382
e5378e8d
AS
93832003-02-19 Andreas Schwab <schwab@suse.de>
9384
9385 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
9386 * toplev.c: Include langhooks-def.h.
9387
fcc11c35
CD
93882003-02-18 Chris Demetriou <cgd@broadcom.com>
9389
9390 * config/mips/mips.h (enum processor_type): Sort entries
9391 alphabetically.
9392 * config/mips/mips.md (define_attr cpu): Sync with processor_type
9393 enum values, including adding entries that were missing.
9394
62c9aa5f 93952003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
29db2a1e 9396
3bc400cd
RS
9397 * sh.c (calc_live_regs): Also check GET_CODE when checking if
9398 initial value for PR_REG is still the PR_REG register.
29db2a1e 9399
582d11e6
JW
94002003-02-18 Jim Wilson <wilson@redhat.com>
9401
9402 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
9403 instruction in output template.
9404 (bsp_value): Change output template from string to C code, add %,
9405 before actual instruction.
9406 (flushrs): Mark as not predicable.
9407
3edc4b23
KW
94082003-02-18 Krister Walfridsson <cato@df.lth.se>
9409
9410 * inclhack.def (netbsd_bogus_semicolon): New fix.
9411 * fixincl.x: Rebuilt.
9412 * tests/base/ctype.h: Update.
9413
080ea642
RS
94142003-02-18 Roger Sayle <roger@eyesopen.com>
9415
9416 * fold-const.c (negate_expr_p): New function to determine whether
9417 an expression can be negated cheaply.
9418 (fold) [MINUS_EXPR]: Use it to determine whether to transform
9419 -A - B into -B - A for floating point types.
9420
e360ab39
RS
94212003-02-18 Roger Sayle <roger@eyesopen.com>
9422
9423 * sbitmap.c (sbitmap_resize): New function.
9424 * sbitmap.h (sbitmap_resize): Prototype here.
9425 * recog.c (split_all_insns): Use sbitmap_resize.
9426
6b00cbc7
KH
94272003-02-18 Kazu Hirata <kazu@cs.umass.edu>
9428
9429 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
9430 insn length.
9431 (extendqisi2): Likewise.
9432 (*extendhisi2_h8300): Likewise.
9433
2b59501b 94342003-02-18 Matt Austern <austern@apple.com>
a8d0ddaf 9435
2b59501b
MA
9436 * langhooks.h, langhooks-def.h: introduce new langhook,
9437 final_write_globals, with write_global_declarations as default.
9438 * toplev.c: Move invocation of wrapup_global_declarations from
9439 compile_file to new function, write_global_declarations. Change
9440 compile_file to use final_write_globals hook. Change
9441 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
a8d0ddaf
ZW
9442 conditional.
9443
131efcd8
JDA
94442003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9445
9446 * pa.md: Correct and enhance comment.
9447
e17aafd1
GK
94482003-02-18 Geoffrey Keating <geoffk@apple.com>
9449
9450 * gcc.c (validate_switches): Don't scan past closing '}'.
9451
f57a2e3a
BE
94522003-02-18 Ben Elliston <bje@redhat.com>
9453
9454 PR c++/1607
9455 * doc/extend.texi (Function Attributes): Document the effect of
9456 the C++ "this" parameter on the counting of arguments for the
9457 "format" and "format_arg" attributes.
9458
9b0c0e9f
AH
94592003-02-17 Aldy Hernandez <aldyh@redhat.com>
9460
a8d0ddaf
ZW
9461 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
9462 (__ev_stdw): Same.
9463 (__ev_stdh): Same.
9b0c0e9f 9464
62c9aa5f 94652003-02-17 Jan Hubicka <jh@suse.cz>
35a3fa09
JH
9466
9467 * recog.c (split_all_insns): Fix memory overflow.
9468
6dc50366
KH
94692003-02-17 Kazu Hirata <kazu@cs.umass.edu>
9470
9471 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
9472 (cmphi): Likewise.
9473 (*cmphi_h8300): Likewise.
9474 (*cmphi_h8300hs): Likewise.
9475 (cmpsi): Likewise.
9476 (7 peephole2): Likewise.
9477
62c9aa5f 94782003-02-16 Jan Hubicka <jh@suse.cz>
096daf41
JH
9479
9480 * c-typeck.c (build_c_cast): Fold constant variables into
9481 initial values.
9482
35113fde
GP
94832003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9484
9485 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
9486 (Binaries): Ditto for Sinix/Reliant Unix.
9487
3a1944a6
RE
94882003-02-16 Richard Earnshaw <rearnsha@arm.com>
9489
9490 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
9491 not overlap the final result register.
9492
cdd4b0d4
AB
94932003-02-16 Arend Bayer <arend.bayer@web.de>
9494 Richard Henderson <rth@redhat.com>
9495
ddb9eedd 9496 PR c/8068
cdd4b0d4
AB
9497 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
9498 rearrange mult arguments for less recursion.
9499 (extract_muldiv): New. Prevent runaway recursion.
9500
616f273a
DS
95012003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
9502
9503 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
9504 MASK_ALIGN_DOUBLE.
9505
881b2a96
RS
95062003-02-15 Roger Sayle <roger@eyesopen.com>
9507
9508 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
9509 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
9510 (ext_80387_constants_table): Global table of 80387 special constants
9511 guarded by ext_80387_constants_init flag when not initialized.
9512 (init_ext_80387_constants): New function to initialize this table.
9513 (standard_80387_constant_p): Extend to recognize extra 80387
9514 constants, in XFmode, on processors where this is a win.
9515 (standard_80387_constant_opcode): New function to return the
9516 opcode associated with standard_80387_constant_p.
9517 (standard_80387_constant_rtx): New function to return the XFmode
9518 CONST_DOUBLE associated with standard_80387_constant_p.
9519 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
9520
9521 * config/i386/i386-protos.h (standard_80387_constant_opcode):
9522 Prototype here.
9523 (standard_80387_constant_rtx): Likewise.
9524
9525 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
9526 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
9527 *movtf_integer): Simplify using new standard_80387_constant_opcode.
9528
d203738b
GK
95292003-02-15 Geoffrey Keating <geoffk@apple.com>
9530
9531 * doc/invoke.texi (Optimize Options): Correct @option syntax.
9532
0b077eac
RH
95332003-02-15 Richard Henderson <rth@redhat.com>
9534
9535 * Makefile.in (cfglayout.o): Depend on TARGET_H.
9536 * cfglayout.c: Include target.h.
9537 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
9538 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
9539 * target.h (struct gcc_target): Add cannot_copy_insn_p.
9540
9541 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
9542 (TARGET_CANNOT_COPY_INSN_P): New.
9543 (override_options): Revert 2003-02-08 hack.
9544
9a71ece1
RH
95452003-02-15 Richard Henderson <rth@redhat.com>
9546
9547 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
9548 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
9549
b54cf83a
DE
95502003-02-15 David Edelsohn <edelsohn@gnu.org>
9551
9552 * config/rs6000/rs6000.h (processor_type): Add PPC440.
9553 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9554 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9555 TARGET_SCHED_VARIABLE_ISSUE): Define.
9556 (rs6000_use_dfa_pipeline_interface): New function.
9557 (rs6000_multipass_dfa_lookahead): New Function.
9558 (rs6000_variable_issue): New function.
9559 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
9560 (rs6000_issue_rate): Add PPC440.
9561 * config/rs6000/rs6000.md (unspec list): Correct typo.
9562 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
9563 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
9564 cmp, delayed_cr, mfcr, mtcr.
9565 (automata_option): Set "ndfa".
9566 (extendMMNN2): Update attributes.
9567 (movcc_internal1): Discourage move to non-cr0. Update
9568 attributes.
9569 (movMM_update): Update attributes.
9570 (cmpMM_internal): Update attributes.
9571 (sCC CR materialization): Update attributes.
9572 (branch patterns): Do not discourage non-cr0.
9573 (cr logical patterns): Prefer destructive register allocation.
9574 Update attributes.
9575 (movesi_from_cr): Update attribute.
9576 (mtcrf_operation): Update attribute.
9577 (mtcrfsi): Update attribute.
9578 * config/rs6000/40x.md: New file.
9579 * config/rs6000/603.md: New file.
9580 * config/rs6000/6xx.md: New file.
9581 * config/rs6000/7450.md: New file.
9582 * config/rs6000/7xx.md: New file.
9583 * config/rs6000/mpc.md: New file.
9584 * config/rs6000/power4.md: New file.
9585 * config/rs6000/rios1.md: New file.
9586 * config/rs6000/rios2.md: New file.
9587 * config/rs6000/rs64.md: New file.
9588 [Some DFA descriptions based on work by Michael Hayes]
9589
99dc7277
RH
95902003-02-15 Richard Henderson <rth@redhat.com>
9591
9592 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
9593 successors with multiple predecessors.
9594 (connect_traces): Try harder to copy traces of length 1.
9595
9596 * function.h (struct function): Add computed_goto_common_label,
9597 computed_goto_common_reg.
9598 * function.c (free_after_compilation): Zap them.
a8d0ddaf 9599 * stmt.c (expand_computed_goto): Use them to produce one
99dc7277
RH
9600 indirect branch per function.
9601
5f24e0dc
RH
96022003-02-15 Richard Henderson <rth@redhat.com>
9603
9604 * cfgcleanup.c: Include params.h.
9605 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
9606 too many outgoing edges from a block.
9607 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
9608 * params.def (max-crossjump-edges): New.
9609 * doc/invoke.texi: Document it.
9610
9381bbc9
RH
96112003-02-15 Richard Henderson <rth@redhat.com>
9612
a8d0ddaf
ZW
9613 * recog.c (split_all_insns): Include new blocks in life update;
9614 do a global life update.
9381bbc9 9615
e898926c
DS
96162003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
9617
9618 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
9619 Update copyright.
9620 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
9621 -mno-cygwin case.
9622
ce65116b
FH
96232003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9624
9625 PR optimization/7702
9626 * reload1.c (reload_cse_simplify_set): Honor
9627 CANNOT_CHANGE_MODE_CLASS.
9628
fe7496dd
AO
96292003-02-14 Alexandre Oliva <aoliva@redhat.com>
9630
9631 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
9632 function.
9633 * config/mn10300/mn10300-protos.h: Declare it.
9634 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
9635 attribute cc of instructions that may use clr.
9636
6017c719
KH
96372003-02-14 Kazu Hirata <kazu@cs.umass.edu>
9638
9639 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
9640 (x - (x & y)) is found.
9641
9fb28a67
RO
96422003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9643
9644 * configure.in: Fix typo.
9645 * configure: Regenerate.
9646
60f469fa
KH
96472003-02-14 Kazu Hirata <kazu@cs.umass.edu>
9648
9649 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
9650
8fd73754 96512003-02-13 Adam Nemet <anemet@lnxw.com>
60f469fa 9652
a8d0ddaf 9653 PR opt/2391
ce65116b
FH
9654 * combine.c: Fix spelling in comment.
9655 (cached_nonzero_bits): New function.
9656 (cached_num_sign_bit_copies): New function.
8fd73754
AN
9657 (nonzero_bits_with_known): New macro.
9658 (num_sign_bit_copies_with_known): New macro.
ce65116b 9659 (nonzero_bits1): Rename from nonzero_bits. Add three new
8fd73754
AN
9660 arguments. Change calls from nonzero_bits to
9661 nonzero_bits_with_known.
ce65116b 9662 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
8fd73754
AN
9663 three new arguments. Change calls from num_sign_bit_copies to
9664 num_sign_bit_copies_with_known.
ce65116b
FH
9665 (nonzero_bits): New macro.
9666 (num_sign_bit_copies): New macro.
9667 (update_table_tick): Don't traverse identical subexpression more
8fd73754 9668 than once.
ce65116b 9669 (get_last_value_validate): Likewise.
8fd73754 9670
ddb0ae00
ZW
96712003-02-13 Zack Weinberg <zack@codesourcery.com>
9672
9673 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
9674 * function.h (struct emit_status): Length of regno_pointer_align
9675 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
9676 not regno_pointer_align_length (i.e. length actually used, not
9677 length as allocated)
9678
9679 * config/i386/i386.c (struct stack_local_entry): New.
9680 (struct machine_function): Replace huge array with alist.
9681 (assign_386_stack_local): Change to match.
9682
c20b55c0
JDA
96832003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
9684
9685 * inclhack.def (hpux_long_double): Tighten select and add bypass
9686 regexp.
9687 * fixincl.x: Rebuilt.
9688
ffc8f11e
JZ
96892003-02-13 Josef Zlomek <zlomekj@suse.cz>
9690
9691 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
9692 edge and block ends with a jump insn it must be simple jump.
9693
047d636f
DJ
96942003-02-13 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * Makefile.in (PREPROCESSOR_DEFINES): Add
9697 @TARGET_SYSTEM_ROOT_DEFINE@.
9698 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
9699 is specified or if building a cross compiler.
9700 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
9701 if the sysroot is under $exec_prefix.
9702 * configure: Regenerated.
9703 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
9704 defined.
9705 (struct default_include): Add add_sysroot field.
9706 (cpp_SYSROOT): Declare.
9707 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
9708 field.
9709 (cpp_SYSROOT): New variable.
9710 * cppinit.c (cpp_create_reader): Initialize
9711 CPP_OPTION (pfile, sysroot).
9712 (init_standard_includes): Handle add_sysroot. Do not
9713 add unrelocated copies of relocated directories.
9714 (COMMAND_LINE_OPTIONS): Add -isysroot.
9715 (cpp_handle_option): Handle -isysroot.
9716 * cpplib.h (struct cpp_options): Add sysroot member.
9717 * gcc.c (The Specs Language): Update description of %I.
9718 (target_system_root_changed): New variable.
9719 (process_command): Conditionalize make_relative_prefix call
9720 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
9721 target_system_root_changed.
9722 (do_spec_1): Add -isysroot to %I.
9723 * doc/invoke.texi (Spec Files): Update description of %I.
9724 * doc/install.texi (--with-sysroot): Update comment about
9725 relocation.
9726
4302db79
KH
97272003-02-13 Kazu Hirata <kazu@cs.umass.edu>
9728
9729 * config/h8300/h8300.md (a peephole2): New.
9730
e0d9cc77 97312003-02-13 Robert Lipe <robertlipe@usa.net>
ddb0ae00 9732 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
e0d9cc77
RL
9733
9734 * doc/install.texi (Specific): Update three SCO-related URLs.
9735
9fb93b00
AS
97362003-02-13 Andreas Schwab <schwab@suse.de>
9737
9738 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
9739 Parenthesize properly.
9740 (NPREDECESORS): Parenthesize properly.
9741
22ffcc6f
GDR
97422003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
9743
9744 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
9745
1fb54135
RS
97462003-02-12 Roger Sayle <roger@eyesopen.com>
9747
9748 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
9749 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
9750
9751 * reg-stack.c (subst_stack_regs_pat): Add support for binary
9752 UNSPEC instructions (e.g. "fpatan").
9753
19a7414e
MS
97542003-02-12 Mike Stump <mrs@apple.com>
9755
9756 * varray.c (element_size): Remove.
9757 (uses_ggc): Remove.
9758 (element): Add.
9759 (varray_init): Use new interface.
9760 (varray_grow): Use new interface.
9761 (varray_clear): Use new interface.
9762
e589cc6e
AH
97632003-02-12 Aldy Hernandez <aldyh@redhat.com>
9764
ddb0ae00
ZW
9765 * config/rs6000/spe.h: Add casts to the arguments of the following
9766 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
9767 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
9768 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
9769 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
9770 __ev_get_u16, __ev_get_s16.
e589cc6e 9771
2bbfc542
KH
97722003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9773
9774 * config/h8300/h8300.md (a peephole2): New.
9775
62c9aa5f 97762003-02-12 Jan Hubicka <jh@suse.cz>
e72fcfe8
JH
9777
9778 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
9779 (OBJS): Add callgraph.o
9780 (callgraph.o): New.
9781 * c-decl.c (expand_body_1): Break out from ...
9782 (expand_body): This one; change calling convention
9783 (finish_function): Move some of expand_body logic here.
9784 (c_expand_deferred_function): Update call of expand_body
9785 (c_expand_stmt): Use c_expand_body_1.
9786 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
9787 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
9788 * c-tree.h (c_expand_body): Declare.
9789 * callgraph.c: New file.
9790 * flags.h (flag_unit_at_a_time): Declare.
9791 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
9792 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
9793 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
9794 * langhooks.h (struct lang_hooks_for_callgraph): New.
9795 (struct lang_hooks): Add callgraph field.
9796 * toplev.c (flag_unit_at_a_time): New.
9797 (lang_independent_options): Add flag_unit_at_a_time.
9798 (process_options): Disable unit-at-a-time mode for frontends not
9799 supporting callgraph.
9800 * tree-inline.c (typedef struct inline_data): Add "decl"
9801 (expand_call_inline): Update callgraph.
9802 (optimize_inline_calls): Set id.decl.
9803 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
9804 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
9805 cgraph_calls_p): Declare.
9806 * invoke.texi (-funit-at-a-time): Document
9807
9037b0c7
AH
98082003-02-12 Aldy Hernandez <aldyh@redhat.com>
9809
ddb0ae00
ZW
9810 * config/rs6000/spe.h: Fix misc formatting.
9811 (__ev_create_ufix32_fs): Cast ev argument.
9812 (__ev_create_sfix32_fs): Same.
9813 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
9814 (__ev_get_ufix32_fs_internal): Same.
9037b0c7 9815
55ae46b1
RM
98162003-02-12 Ranjit Mathew <rmathew@hotmail.com>
9817
9818 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
9819 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
9820
3963c2e0
ZW
98212003-02-12 Zack Weinberg <zack@codesourcery.com>
9822
9823 * cpplib.c (do_include_common): Move warnings for
9824 #include_next and #import out to callers. Use early-return
9825 instead of nested ifs. Don't do check_eol here.
9826 (parse_include): Do check_eol here with the rest of the
9827 parsing stuff.
9828 (do_include_next, do_import): Now handle warnings.
9829
d1a86812
GP
98302003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9831
9832 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
9833
62c9aa5f 98342003-02-12 Jan Hubicka <jh@suse.cz>
6efcd268
JH
9835
9836 * predict.c (estimate_probability): Fix roundoff error.
9837
9083b5da
KH
98382003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9839
9840 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
9841 (two peephole2): New.
9842
86bc9b19
KH
98432003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9844
9845 * config/h8300/h8300.md (several peephole2): Replace
9846 find_regno_note with peep2_reg_dead_p.
9847
ceda50e9
RH
98482003-02-11 Richard Henderson <rth@redhat.com>
9849
9850 * gcse.c (lookup_set): Remove unused argument PAT. Update
9851 both callers.
9852
886e0865
GK
98532003-02-11 Geoffrey Keating <geoffk@apple.com>
9854
9855 * diagnostic.c (real_abort): New.
9856 (diagnostic_report_diagnostic): Call real_abort on error.
9857 * diagnostic.h (diagnostic_abort_on_error): New.
9858 (struct diagnostic_context): Add abort_on_error field.
9859 * toplev.c (setup_core_dumping): New.
9860 (decode_d_option): Handle 'H' case.
9861 * doc/invoke.texi (Debugging Options): Document -dH.
9862
76438597
NN
98632003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
9864
9865 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
9866 which refers to obsolete directories.
9867
09b568fc
RH
98682003-02-11 Richard Henderson <rth@redhat.com>
9869
9870 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
9871
62c9aa5f 98722002-10-21 Jan Hubicka <jh@suse.cz>
8b978a57
JH
9873
9874 * i386.c (contains_128bit_aligned_vector_p): New function.
9875 (ix86_function_arg_boundary): Properly align vector modes.
9876
a3259be8
BW
98772003-02-11 Bob Wilson <bob.wilson@acm.org>
9878
9879 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
9880 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
9881 as a SET pattern.
9882
da52a069
RS
98832003-02-11 Roger Sayle <roger@eyesopen.com>
9884
9885 * builtins.c: Fix failure caused by commiting wrong patch.
9886
d58f6584
DJ
98872003-02-11 Dale Johannesen <dalej@apple.com>
9888 * ra-build.c (compare_and_free_webs): Relax checking.
9889 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
9890 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9891
22fd5743
FH
98922003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9893
9894 PR optimization/9651
9895 * rtlanal.c (may_trap_p): Handle FIX.
9896
3462df62
DJ
98972003-02-11 Dave Jones <davej@codemonkey.org.uk>
9898
9899 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
9900 * doc/invoke.texi: Extra alias.
9901
a693fbb9
GK
99022003-02-11 Geoffrey Keating <geoffk@apple.com>
9903
9904 * config/rs6000/host-darwin.c: Fix comment.
9905
bb157ff4
DE
99062003-02-11 David Edelsohn <edelsohn@gnu.org>
9907
9908 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
9909 predicate for mod result.
9910
16ddb599
JDA
99112003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9912
9913 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
9914 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
9915 * fixincl.x: Rebuilt.
9916 * tests/base/stdlib.h: Update.
9917 * tests/base/ctype.h: New file.
9918
62c9aa5f 99192003-02-11 Jan Hubicka <jh@suse.cz>
6f0d3566
JH
9920
9921 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
9922
d0a5295a
RH
99232003-02-11 Richard Henderson <rth@redhat.com>
9924
9925 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
9926 appropriated as globals.
9927 (ix86_expand_clrstr): Similarly.
9928 * config/i386/i386.md (cmpstrsi): Similarly.
9929
9672132f
KH
99302003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9931
9932 * config/h8300/h8300.md (a peephole2): Add a case of 255.
9933
b5e01d4b
RS
99342003-02-11 Roger Sayle <roger@eyesopen.com>
9935
9936 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
9937 (pow_optab, atan2_optab): Define corresponding macros.
9938 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
9939 * genopinit.c (optabs): Implement pow_optab and atan2_optab
9940 using pow?f3 and atan2?f3 patterns.
9941 * builtins.c (expand_errno_check): New function to update errno
9942 if necessary, split out from expand_builtin_mathfn.
9943 (expand_builtin_mathfn): Use expand_errno_check.
9944 (expand_builtin_mathfn_2): New function to handle expanding binary
9945 math functions, reusing the code in expand_errno_check.
9946 (expand_builtin): Handle the pow and atan2 math built-ins,
9947 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
9948 expand_builtin_mathfn_2.
9949
9950 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
9951
62c9aa5f 99522003-02-11 Jan Hubicka <jh@suse.cz>
cb119f82
JH
9953
9954 * combine.c (combine_simplify_rtx): Fix folding of
9955 nested float_truncates.
9956
a05566a3
KH
99572003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9958
9959 * config/h8300/h8300.md (a peephole2): Fix a typo.
9960
20ae4500
RE
99612003-02-11 Richard Earnshaw <rearnsha@arm.com>
9962
9963 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
9964 register number.
9965
717d8b71
KH
99662003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9967
9968 * config/h8300/h8300-protos.h: Add a prototype for
9969 gtuleu_operator.
9970 * config/h8300/h8300.c (gtuleu_operator): New.
9971 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
9972 * config/h8300/h8300.md (a peephole2): New.
9973
62c9aa5f 99742003-02-11 Jan Hubicka <jh@suse.cz>
e36e8f52
JH
9975
9976 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
9977
62c9aa5f 99782003-02-11 Jan Hubicka <jh@suse.cz>
c728da61
JH
9979
9980 * predict.c (choose_function_section): Choose sections correctly.
9981
4cc0fdd2
JDA
99822003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9983
9984 * reload1.c (first_label_num): New.
9985 (reload): Index offsets_known_at and offsets_at using difference of
9986 label number and first label number. Don't use offset pointers.
9987 (set_label_offsets, set_initial_label_offsets): Likewise.
9988
44b1fa11
RS
99892003-02-10 Roger Sayle <roger@eyesopen.com>
9990
9991 * mips-tfile.c (init_file): Add missing initializers in the
9992 "#ifdef __alpha" case.
9993 (file_offset, max_file_offset): Declare as unsigned long.
9994 (write_varray): Cast to "unsigned long" in comparisons against
9995 either file_offset or max_file_offset.
9996 (write_object): Likewise.
9997 (read_seek): Likewise.
9998 (copy_object): Likewise. Declare "ifd" as int to match its use
9999 in add_ext_symbol, and avoid signed/unsigned conditional warning.
10000
2948ade7 100012003-02-10 Nick Clifton <nickc@redhat.com>
3963c2e0 10002 Aldy Hernandez <aldyh@redhat.com>
2948ade7 10003
3963c2e0
ZW
10004 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
10005 override options which have been specified on the command line.
2948ade7 10006
2a4e6df4
KH
100072003-02-10 Kazu Hirata <kazu@cs.umass.edu>
10008
10009 * config/h8300/h8300.md (abssf2): New.
10010 (*abssf2_h8300): Likewise.
10011 (*abssf2_h8300hs): Likewise.
10012
411e2759
PE
100132003-02-10 Phil Edwards <pme@gcc.gnu.org>
10014
10015 * tree.c (build_tree_list): Fix parameter names in comment.
10016
2b24fc41
JJ
100172003-02-10 Janis Johnson <janis187@us.ibm.com>
10018
10019 * config/rs6000/ppc64-fp.c: New file.
10020 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
10021
aa634f11
JZ
100222003-02-10 Josef Zlomek <zlomekj@suse.cz>
10023
10024 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3963c2e0 10025 * bb-reorder.c (make_reorder_chain): Deleted.
aa634f11
JZ
10026 (make_reorder_chain_1): Deleted.
10027 (find_traces): New function.
10028 (rotate_loop): New function.
10029 (mark_bb_visited): New function.
10030 (find_traces_1_round): New function.
10031 (copy_bb): New function.
10032 (bb_to_key): New function.
10033 (better_edge_p): New function.
10034 (connect_traces): New function.
10035 (copy_bb_p): New function.
10036 (get_uncond_jump_length): New function.
10037 (reorder_basic_blocks): Use new functions (Software Trace Cache).
10038 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
10039 boundaries.
10040
17edbda5
AH
100412003-02-10 Aldy Hernandez <aldyh@redhat.com>
10042
10043 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
10044
57116c34
DN
100452003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10046
10047 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3963c2e0 10048 (DECL_LIVE_RANGE_RTL): Remove.
57116c34 10049
4f448245
NC
100502003-02-10 Nick Clifton <nickc@redhat.com>
10051
10052 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
10053 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10054 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
10055 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
10056 config/arm/freebsd.h, config/arm/linux-elf.h,
10057 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
10058 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
10059 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
10060 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
10061 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
10062 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
10063 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
10064 and reformat as appropriate.
10065
19190d27
KH
100662003-02-10 Kazu Hirata <kazu@cs.umass.edu>
10067
10068 * config/h8300/clzsi2.c: Remove.
10069 * config/h8300/ctzsi2.c: Likewise.
10070 * config/h8300/paritysi2.c: Likewise.
10071 * config/h8300/popcountsi2.c: Likewise.
10072 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
10073 ctzsi2, paritysi2, and popcountsi2.
10074
ecf92f82 100752003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 10076 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
ecf92f82
EB
10077
10078 PR c/7741
10079 * c-decl.c (duplicate_decls): Discard the initializer of the
10080 new decl when the types are conflicting.
10081
ac5e69da
JZ
100822003-02-10 Josef Zlomek <zlomekj@suse.cz>
10083
10084 * Makefile.in (sreal.o): Added.
10085 (predict.o): Depends on sreal.h instead of real.h.
10086 * sreal.c: New file.
10087 * sreal.h: New file.
10088 * predict.c: Use sreal.c instead of real.c.
10089
9b6b54e2
NC
100902003-02-10 Nick Clifton <nickc@redhat.com>
10091
10092 * Contributed support for the Cirrus EP9312 "Maverick"
10093 floating point co-processor. Written by Aldy Hernandez
3963c2e0 10094 <aldyh@redhat.com>.
9b6b54e2
NC
10095 (config/arm/arm.c): Add Cirrus support.
10096 (config/arm/arm.h): Likewise.
10097 (config/arm/aout.h): Likewise.
10098 (config/arm/arm.md): Likewise.
10099 (config/arm/arm-protos.h): Likewise.
10100 (config.gcc): Likewise.
10101 (doc/invoke.texi): Describe new -mcpu value and new
10102 -mcirrus-fix-invalid-insns switch,
10103 (cirrus.md): New file.
10104
62c9aa5f 101052003-02-10 Jan Hubicka <jh@suse.cz>
949824fe
JH
10106
10107 * combine.c (combine_simplify_rtx): Simplify using
10108 (float_truncate (float x)) is (float x)
10109 (float_extend (float_extend x)) is (float_extend x).
10110
546ff777
AM
101112003-02-10 Alan Modra <amodra@bigpond.net.au>
10112
10113 * calls.c (try_to_integrate): Tidy stack_usage_map access.
10114 (emit_library_call_value_1): Likewise. Formatting.
10115 (store_one_arg): Likewise.
10116
626098f9 101172003-02-09 Nick Clifton <nickc@redhat.com>
3963c2e0 10118 Aldy Hernandez <aldyh@redhat.com>
626098f9 10119
3963c2e0
ZW
10120 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
10121 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
10122 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
10123 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
10124 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
10125 docs. Add range test for immediate value.
626098f9
AH
10126
101272003-02-09 Aldy Hernandez <aldyh@redhat.com>
10128
3963c2e0
ZW
10129 Rename spe_evxor to xorv2si3.
10130 (xorv4hi3): New.
10131 (xorv1di3): New.
626098f9 10132
8d23a2c8 101332003-02-10 Glen Nakamura <glen@imodulo.com>
3963c2e0 10134
8d23a2c8
GN
10135 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
10136 tag.
10137
62c9aa5f 101382003-02-10 Jan Hubicka <jh@suse.cz>
fdc4b40b
JH
10139
10140 * i386.c (vector_move_operand): New predicate.
10141 (ix86_expand_vector_move): Be happy about 0.
10142 * i386.h (PREDICATE_CODES): Add sse-move_operand.
10143 * i386.md (mov*_internal): Add 'C' alternative.
10144
62c9aa5f 101452003-02-09 Jan Hubicka <jh@suse.cz>
35c28a13
JH
10146
10147 * i386.md (floathi*): Deal with SSE.
10148
62c9aa5f 101492003-02-09 Jan Hubicka <jh@suse.cz>
852c8ba1
JH
10150
10151 * simplify-rtx.c (simplify_unary_operation,
10152 simplify_binary_operation): Deal with vector modes
10153 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
10154
c876997f 101552003-02-09 Richard Sandiford <rsandifo@redhat.com>
2382b79f
RS
10156
10157 * toplev.c (rest_of_compilation): Recompute register usage after
10158 split_all_insns.
10159
8275b011
RH
101602003-02-09 Richard Henderson <rth@redhat.com>
10161
10162 * libgcc-std.ver (__clztf2): New.
10163 (__ctztf2, __popcounttf2, __paritytf2): New.
10164 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
10165 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
10166 adjust code to match the different type sizes.
10167 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
10168 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
10169
10170 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
10171 TImode; select word_mode and twice that.
10172 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
10173 select the modes from float, double, and long double.
10174 (init_optabs): Remove duplicate initializations.
10175
794aca5d
WB
101762003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
10177
10178 * doc/install.texi: Squeeze and streamline section on
10179 testing and regression checking.
10180
62c9aa5f 101812003-02-09 Jan Hubicka <jh@suse.cz>
d9deed68
JH
10182
10183 * i386.md (ahi?v*3): Set third operand type to TImode.
10184 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
10185
10186 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
10187 integer mode.
10188
10189 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
10190 Change code so they are arithmetic expressions now.
10191 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
10192 simplify_ternary_operation): Deal with VEC_* expressions.
10193
10194 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
10195
62c9aa5f 101962003-02-08 Jan Hubicka <jh@suse.cz>
83fd323c
JH
10197
10198 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
10199 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
10200 possibly got duplicated.
10201
4ee7aa60
RH
102022003-02-08 Richard Henderson <rth@redhat.com>
10203
10204 * config/alpha/alpha.c (override_options): Turn off explicit
10205 relocs until post-peep2 code duplication resolved.
10206
c117dddc
KH
102072003-02-08 Kazu Hirata <kazu@cs.umass.edu>
10208
10209 * optabs.c (expand_unop): Widen clz properly when clz is done
10210 via libcall.
10211
8aa063fb
KH
102122003-02-08 Kazu Hirata <kazu@cs.umass.edu>
10213
10214 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
10215 * config/h8300/crti.asm: Likewise.
10216 * config/h8300/crtn.asm: Likewise.
10217 * config/h8300/ctzsi2.c: Likewise.
10218 * config/h8300/fixunssfsi.c: Likewise.
10219 * config/h8300/h8300-protos.h: Likewise.
10220 * config/h8300/h8300.c: Likewise.
10221 * config/h8300/h8300.h: Likewise.
10222 * config/h8300/h8300.md: Likewise.
10223 * config/h8300/paritysi2.c: Likewise.
10224 * config/h8300/popcountsi2.c: Likewise.
10225 * config/h8300/rtems.h: Likewise.
10226
01a132bb
ZD
102272003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10228
10229 * doc/invoke.texi: Documentation for my previous commit.
10230 * doc/passes.texi: Ditto.
10231
617b465c
ZD
102322003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10233
10234 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
10235 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
10236 Declare.
10237 (DLTHE_FLAG_UPDATE_FREQ): New.
10238 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
10239 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
10240 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
10241 fix_bb_placement, fix_bb_placements, place_new_loop,
10242 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
10243 New static functions.
10244 (fix_loop_placement, can_duplicate_loop_p,
10245 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
10246 New functions.
10247
10248 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
10249 unswitch_loops): Declare.
10250 * loop-init.c: New file.
10251 * loop-unswitch.c: New file.
10252 * Makefile.in (loop-init.o, loop-unswitch.o): New.
10253 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
10254 * toplev.c (DFI_loop2): New dump.
10255 (flag_unswitch_loops): New.
10256 (lang_independent_options): Add it.
10257 (rest_of_compilation): Call new loop optimizer.
10258 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
10259
3bd03194
KH
102602003-02-08 Kazu Hirata <kazu@cs.umass.edu>
10261
10262 * config/h8300/clzsi2.c: New.
10263 * config/h8300/ctzsi2.c: Likewise.
10264 * config/h8300/paritysi2.c: Likewise.
10265 * config/h8300/popcountsi2.c: Likewise.
10266 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
10267
d865b122
DE
102682003-02-07 David Edelsohn <edelsohn@gnu.org>
10269
10270 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10271 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
94993909 10272 (ctzsi2): New pattern.
d865b122
DE
10273 (ffssi2): Use clz instead of unspec.
10274 (clzdi2): Rename from cntlzd2.
94993909 10275 (ctzdi2): New pattern.
d865b122
DE
10276 (ffsdi2): Use clz instead of unspec.
10277
8f37dd98
LR
102782003-02-07 Loren James Rittle <ljrittle@acm.org>
10279
10280 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
10281 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
10282 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10283 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
10284
83205b9b
WB
102852003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
10286
10287 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
10288
710ee3ed
RH
102892003-02-07 Richard Henderson <rth@redhat.com>
10290
10291 PR 9226
3963c2e0
ZW
10292 * gcse.c (local_cprop_find_used_regs): New.
10293 (local_cprop_pass): Use it.
710ee3ed 10294
3ef879d2
FF
102952003-02-07 Fred Fish <fnf@intrinsity.com>
10296
10297 * mips-tfile.c (parse_def): Parenthesize assignments to fix
3963c2e0 10298 precedence bugs.
3ef879d2 10299
a0f0e963 103002003-02-07 Segher Boessenkool <segher@koffie.nl>
3ef879d2 10301
3963c2e0 10302 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
a0f0e963 10303
46847aa6
RS
103042003-02-07 Roger Sayle <roger@eyesopen.com>
10305
10306 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
10307 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
10308 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
10309 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
10310 builtin functions (and their __builtin_* variants).
10311 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
10312 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
10313 when not optimizing.
10314
10315 * doc/extend.texi: Document new pow and atan2 builtins, and
10316 their float and long double variants. Realphabetize builtins.
10317
62c9aa5f 103182003-02-07 Jan Hubicka <jh@suse.cz>
c48d6750
JH
10319
10320 * i386.md (sse2_nandv2di3): Fix.
10321
5e062767
DS
103222003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
10323
10324 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
10325 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
10326 definition.
10327 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
10328 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
10329
62c9aa5f 103302003-02-07 Jan Hubicka <jh@suse.cz>
3f755ed0
JH
10331
10332 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
10333
0816bcd2
DB
103342003-02-07 Daniel Berlin <dberlin@dberlin.org>
10335
10336 * cfg.c (dump_flow_info): Add back accidently deleted line.
10337
7bf0a593
AP
103382003-02-07 Andrey Petrov <petrov@netbsd.org>
10339
10340 * optabs.c (expand_float): Search wider integer modes first.
10341
01e4596e
BW
103422003-02-07 Bob Wilson <bob.wilson@acm.org>
10343
10344 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
10345 based on preprocessor flag.
10346
fbef91d8
RS
103472003-02-07 Roger Sayle <roger@eyesopen.com>
10348 Richard Henderson <rth@redhat.com>
10349
10350 * gcse.c (implicit_sets): New.
10351 (compute_hash_table_work): Include them in hash table.
10352 (find_implicit_sets, fis_get_condition): New.
10353 (one_cprop_pass): Allocate and free implicit_sets; call
10354 find_implicit_sets before building hash table.
10355
6713831e
JT
103562003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
10357
10358 * config/t-netbsd (USER_H): Revert previous change.
10359
10d2dbe2
GG
103602003-02-07 Gabor Greif <ggreif@lucent.com>
10361
10362 * doc/c-tree.texi (Namespaces): Fix typo.
10363
62c9aa5f 103642003-02-07 Jan Hubicka <jh@suse.cz>
d1d3c9a6
JH
10365
10366 * regrename.c (do_replace, find_oldest_value_reg,
10367 copyprop_hardreg_forward_1): Update register attributes.
10368
1b1f249d
VM
103692003-02-06 Vladimir Makarov <vmakarov@redhat.com>
10370
10371 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
10372 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
10373 variables starting with underscore.
10374 (struct unit_usage): New structure.
10375 (unit_usages, cycle_alt_unit_usages): New global variables.
10376 (check_unit_distribution_in_reserv): Remove it.
10377 (store_alt_unit_usage): New function.
10378 (check_regexp_units_distribution): Rewrite it.
10379
90330d31
JDA
103802003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10381
10382 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
10383 target_cpu_default.
10384 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
10385 if not MASK_NO_SPACE_REGS.
10386 (output_call): Adjust return pointer, don't load new space register
10387 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
10388 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
10389 TARGET_NO_SPACE_REGS is true.
10390 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
10391 conditions.
10392 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
10393 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
10394 true. Use bve when TARGET_64BIT is true.
10395
d1164330
RH
103962003-02-06 Richard Henderson <rth@redhat.com>
10397
10398 * combine.c (nonzero_bits): Fix double break.
10399
5fbf0217 104002003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 10401 Richard Henderson <rth@redhat.com>
5fbf0217
EB
10402
10403 PR c/9530
10404 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
10405 from functions that return a float to functions that don't.
10406
62c9aa5f 104072003-02-06 Jan Hubicka <jh@suse.cz>
8f62128d
JH
10408
10409 * i386.c (x86_inter_unit_moves): New variable.
10410 (ix86_secondary_memory_needed): Fix 64bit case, honor
10411 TARGET_INTER_UNIT_MOVES
10412 * i386.h (x86_inter_unit_moves): Declare.
10413 (TARGET_INTER_UNIT_MOVES): New macro.
10414 * i386.md (movsi_1): Cleanup constraints; disable
10415 when not doing inter-unit moves.
10416 (movsi_1_nointernunit): New.
10417 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
10418 (movdi_1_rex64_nointerunit): New.
10419 (mivsf_1): disable when not doing inter-unit moves.
10420 (movsf_1_nointerunit): New.
10421
10422 * basic-block.h (inside_basic_block_p): Declare.
10423 * cfgbuild.c (inside_basic_block_p): Make global.
10424 * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
10425 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
10426 update CFG.
10427 (fix_basic_block_boundaries, add_missing_bbs): New.
10428 (rank): Use profile.
10429 (scheudle_ebbs): Rely on CFG; update coments.
10430
476d9098
GK
104312003-02-05 Geoffrey Keating <geoffk@apple.com>
10432
10433 * Makefile.in (host_hook_obj): New.
10434 (OBJS): Add $(host_hook_obj).
10435 (host_default.o): New rule.
10436 * config.gcc (host_hook_obj): New, default to host-default.o.
10437 (powerpc-*-darwin*): Use host-darwin.o.
10438 (out_host_hook_obj): New.
10439 * configure: Regenerate.
10440 * configure.in: Print information about out_host_hook_obj, substitute
10441 into output files.
10442 * host-default.c: New file.
10443 * hosthooks.h: New file.
10444 * toplev.c (general_init): Call host_hooks.extra_signals.
10445 * config/rs6000/host-darwin.c: New file.
10446 * config/rs6000/x-darwin: New file.
10447 * doc/hostconfig.texi: Add documentation for new host hook.
10448 Rearrange existing documentation.
10449
69bd9368
RS
104502003-02-05 Roger Sayle <roger@eyesopen.com>
10451
10452 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
10453 with *targetm.delegitimize_address.
10454 (rtl_for_decl_location): Likewise.
10455 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
10456 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
10457
10458 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
10459 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
10460 prototype.
10461 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
10462 i386_simplify_dwarf_addr. Made static. Prototyped.
10463 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
10464 i386_simplify_dwarf_addr to ix86_delegitimize_address.
10465 (ix86_find_base_term): Likewise.
10466 (maybe_get_pool_constant): Likewise.
10467
10468 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
10469 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
10470 prototype.
10471 * config/s390/s390.c (s390_delegitimize_address): Renamed from
10472 s390_simplify_dwarf_addr. Made static. Prototyped.
10473 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
10474
7127fd58
RH
104752003-02-05 Richard Henderson <rth@redhat.com>
10476
8dde7a2c 10477 PR c/8602
3963c2e0
ZW
10478 * integrate.c (output_inline_function): Reset input_filename
10479 and lineno from the decl before rest_of_compilation.
7127fd58 10480
7dba8395
RH
104812003-02-05 Richard Henderson <rth@redhat.com>
10482
10483 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
10484 (CTZ_DEFINED_VALUE_AT_ZERO): New.
10485 * doc/rtl.texi, doc/tm.texi: Document them.
10486
10487 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
10488 of the value at zero properly.
10489 * fold-const.c (tree_expr_nonnegative_p): Likewise.
10490 * simplify-rtx.c (simplify_unary_operation): Likewise.
10491
10492 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
10493 (CTZ_DEFINED_VALUE_AT_ZERO): New.
10494
10495 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
10496 (TARGET_EXPAND_BUILTIN): Remove.
10497 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
10498 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
10499 (enum arm_builtins): Remove.
10500 * config/arm/arm.md (UNSPEC_CLZ): Remove.
10501 (clzsi2): Rename from clz; use clz instead of unspec.
10502 (ctzsi2): New.
10503 * config/arm/arm-protos.h: Update.
10504
62c9aa5f 105052003-02-05 Jan Hubicka <jh@suse.cz>
8d705469
JH
10506
10507 * i386-protos.h (x86_emit_floatuns): Declare.
10508 * i386.c (x86_emit_floatuns): New global function.
10509 * i386.md (floatunssisf2, floatunsdisf2,
10510 floatunsdidf2): New patterns.
10511
bc810602
ZD
105122003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10513
10514 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
10515
07938cec
HB
105162003-02-05 Hans Boehm <Hans.Boehm@hp.com>
10517
10518 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
10519 config/ia64/linux.h
10520
c876997f 105212003-02-05 Roger Sayle <roger@eyesopen.com>
ca9398d1
RS
10522
10523 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
10524
4f6ae35d
JJ
105252003-02-05 Jakub Jelinek <jakub@redhat.com>
10526
10527 PR optimization/8555
10528 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
10529 instead of aborting.
10530
8acfdd43
RH
105312003-02-04 Richard Henderson <rth@redhat.com>
10532
10533 * config/i386/i386.md (UNSPEC_BSF): Remove.
10534 (ffssi2): Split into cmove and no_cmove insns and splitters;
10535 lose pentium float trick for now.
10536 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
10537 (ctzsi2, clzsi2, bsr): New.
10538
c407570a
RH
105392003-02-04 Richard Henderson <rth@redhat.com>
10540
10541 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
10542 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
10543 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
10544 (ffsdi2): Use popcount instead of unspec.
10545 (popcountdi2): Rename from *popcnt.
10546 (ctzdi2, clzdi2, getf_exp_tf): New.
10547
4b3cf522
KH
105482003-02-04 Kazu Hirata <kazu@cs.umass.edu>
10549
10550 * genconfig.c (main): Generate CC0_P.
10551 * rtl.h (CC0_P): Remove.
10552
dfff898c
RH
105532003-02-04 Richard Henderson <rth@redhat.com>
10554
10555 * libgcc2.h, libgcc2.c (__ffsSI2): New.
10556 (__ffsDI2): Rename from __ffsdi2.
10557 * mklibgcc.in (lib2funcs): Add _ffssi2.
10558
0c9ed856
RH
105592003-02-04 Richard Henderson <rth@redhat.com>
10560
10561 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
10562 rounds with a "bit table" lookup.
10563
9537511b
UW
105642003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10565
10566 * reload.c (find_reloads): Do not use the mode specified in the insn
3ef879d2 10567 pattern as reload mode for address operands. Do not generate optional
9537511b
UW
10568 reloads for operands where a mandatory reload was already pushed.
10569
1efd0b97
RH
105702003-02-04 Richard Henderson <rth@redhat.com>
10571
10572 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
10573 builtins instead of inline assembly.
10574
087fc75a 105752003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3ef879d2 10576
087fc75a
FH
10577 PR c/9376
10578 * libgcc2.c (__subvdi3): Fix typo.
10579
62c9aa5f 105802003-02-04 Jan Hubicka <jh@suse.cz>
f0f0d98e
JH
10581
10582 * i386.md (movti_rex64): Fix constraint.
10583
62c9aa5f 105842003-02-04 Jan Hubicka <jh@suse.cz>
09f26fb5
JH
10585
10586 * i386.md (vector push splitters): Fix typo in resolving conflict.
10587
ff6e2d3e
RB
105882003-02-04 Rodney Brown <rbrown64@csc.com.au>
10589
10590 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
10591
9e80ada7
PE
105922003-02-04 Phil Edwards <pme@gcc.gnu.org>
10593
10594 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
10595 for recent libstdc++. Remove formatting cruft.
10596
79c758fb
JJ
105972003-02-04 Jakub Jelinek <jakub@redhat.com>
10598
10599 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
10600 attribute even if input file name is absolute, but one of the
10601 includes is relative.
10602
b3a8389d
JM
106032003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10604
10605 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
10606 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
10607 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
10608
dabb3f04
RH
106092003-02-03 Richard Henderson <rth@redhat.com>
10610
10611 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
10612 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
10613 return type to "int". Shuffle declarations and undef int trap.
10614 * libgcc2.h: Remove their declarations.
10615 * optabs.c (expand_unop): Force outmode to int for bitops.
10616
985d0d50
BW
106172003-02-03 Bob Wilson <bob.wilson@acm.org>
10618
10619 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
10620 coprocessor registers before floating-point registers.
10621 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
10622 to account for a previously removed register.
10623 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
10624 Delete unused macros.
10625
62c9aa5f 106262003-02-03 Jan Hubicka <jh@suse.cz>
7f0e57bd
JH
10627
10628 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
10629 (mov*_internal): Fix predicates; require one of operands to not be
10630 memory.
10631 (SSE?MMX move expanders): Fix predicates; force one of operands to
10632 register.
10633 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
10634 (movups/movupd/movdqu patterns): Force one of operands to not be
10635 memory.
10636
c876997f 106372003-02-03 Roger Sayle <roger@eyesopen.com>
7daebb7a
RS
10638
10639 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
10640 takes a single rtx and returns it unmodified.
10641 * hooks.h (hook_rtx_rtx_identity): Prototype here.
ff6e2d3e 10642 * target.h (struct gcc_target): Add "delegitimize_address"
7daebb7a
RS
10643 field to target structure.
10644 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
10645 for delegitimize_address target using hook_rtx_rtx_identity.
10646 (TARGET_INITIALIZER): Initialize delegitimize_address field
10647 using TARGET_DELEGITIMIZE_ADDRESS macro.
10648 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
10649 extensions of constant pool references. Use delegitimize_address
10650 to undo the obfuscation of "-fpic".
10651 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
10652
10653 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
10654 i386_simplify_dwarf_addr.
10655 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
26182e15 10656 (maybe_get_pool_constant): Likewise.
7daebb7a 10657
62c9aa5f 106582003-02-03 Jan Hubicka <jh@suse.cz>
84520a20
JH
10659
10660 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
10661
62c9aa5f 106622003-02-03 Jan Hubicka <jh@suse.cz>
035b2a34
JH
10663
10664 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
10665
1f143d5a
KG
106662003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10667
10668 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
10669 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
10670
4b550d9f
AS
106712003-02-02 Andreas Schwab <schwab@suse.de>
10672
10673 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
10674
0732a089
RE
106752003-02-02 Richard Earnshaw <rearnsha@arm.com>
10676
10677 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
10678 (epilogue_insns): Likewise.
10679
f269f54f
JDA
106802003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10681
10682 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
10683
611ad29e
JDA
106842003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10685
10686 * pa-protos.h (attr_length_millicode_call): Remove second argument.
10687 (attr_length_indirect_call, attr_length_indirect_call,
10688 attr_length_save_restore_dltp): New prototypes.
10689 * pa.c (attr_length_millicode_call): Remove second argument. Check
10690 INSN_ADDRESSES_SET_P in distance calculation.
10691 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
10692 INSN_ADDRESSES.
10693 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
10694 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
10695 Call attr_length_call directly.
10696 (attr_length_indirect_call, output_indirect_call,
10697 attr_length_save_restore_dltp): New functions.
10698 * pa.md (attr_length_millicode_call): Drop second argument from all
10699 patterns.
10700 (return_internal_pic): Delete.
10701 (return_external_pic): Remove use of PIC register and pic operand and
10702 flag checks.
10703 (epilogue): Use return_internal for both normal and pic code.
10704 (call, call_value): Emit new 32-bit pic patterns for symref and
10705 indirect calls. Remove uses for arg pointer and pic register.
10706 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
10707 call_reg_pic_post_reload, call_val_symref_pic,
10708 call_val_symref_pic_post_reload, call_val_reg_pic,
10709 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
10710 Implement define_split and define_peephole2 patterns for pre reload
10711 patterns.
10712 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
10713 call_value_internal_reg_64bit): Shorten names.
10714 (all call patterns): Explicitly indicate registers used and clobbered.
10715 Use attr_length_indirect_call and attr_length_save_restore_dltp for
10716 attribute length calculation. Move code generation for indirect calls
10717 to output_indirect_call.
10718 (sibcall, sibcall_value): Don't restore PIC register.
10719 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
10720 register retore.
10721
8cacda7c
GP
107222003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10723
10724 * doc/install.texi (Testing): Simplify and compress instructions
10725 concerning Dejagnu.
10726
cbc158bb
JDA
107272003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10728
10729 * collect2.c (pexecute_pid): Rename to pid.
10730 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
10731 pid.
10732
dcef1843
GK
107332003-02-01 Geoffrey Keating <geoffk@apple.com>
10734
10735 * doc/extend.texi (Function Attributes): Remove documentation
10736 for PowerPC Windows NT function attributes..
10737
5d7bed9d
DJ
107382003-02-01 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * dwarf2out.c (gen_type_die): Check for typedefs before calling
10741 for TYPE_MAIN_VARIANT.
10742
53585c36
RH
107432003-02-01 Richard Henderson <rth@redhat.com>
10744
10745 * libgcc2.c: Include auto-host.h.
10746 (ATTRIBUTE_HIDDEN): New.
10747 (__clz_tab): Don't declare here for clz and ctz.
10748 (__clzsi2, __clzdi2): Use count_leading_zeros.
10749 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
10750 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
10751 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
10752 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
10753
bc8a6d63
RH
107542003-02-01 Richard Henderson <rth@redhat.com>
10755
10756 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
10757 to the conditional.
10758 (ashlsi3_1_zext splitter): Likewise.
10759
2928cd7a
RH
107602003-02-01 Richard Henderson <rth@redhat.com>
10761
10762 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
10763 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
10764 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
10765 return type to Wtype.
10766
10767 * libgcc-std.ver (GCC_3.4): Fix inheritance.
10768
10769 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
10770 expander input constraint.
10771
107722003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
10773
ff6e2d3e
RB
10774 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
10775 OTI_parity.
10776 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
10777 * optabs.c (widen_clz, expand_parity): New.
10778 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
10779 for libcalls to clz, ctz, popcount, and parity.
10780 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
10781 parity_optab, and set up libfunc handlers.
10782 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
10783 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
10784 __popcount_tab): New.
10785 * libgcc2.h: Declare them.
10786 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
10787 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
10788 and parity_optab.
10789 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
10790 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
10791 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
10792 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
10793 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
10794 BUILT_IN_PARITYLL): New.
10795 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
10796 and add optab argument.
10797 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
10798 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
10799 * expr.c (expand_expr): Handle them.
10800 * fold-const.c (tree_expr_nonnegative_p): Likewise.
10801 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
10802 * reload1.c (eliminate_regs): Handle them.
10803 (elimination_effects): Likewise.
10804 * function.c (instantiate_virtual_regs_1): Likewise
10805 * genattrtab.c (check_attr_value): Likewise.
10806 * simplify-rtx.c (simplify_unary_operation): Likewise.
10807 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
10808 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
10809 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
10810 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
10811 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
10812 __builtin_arm_clz.
10813 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
10814 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
10815 * doc/extend.texi (Other Builtins): Add new builtins.
10816 * doc/md.texi (Standard Names): Add new patterns.
2928cd7a 10817
112f7223
UW
108182003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
10819
10820 * reload.c: Revert 2003-01-31 change.
10821
62c9aa5f 108222003-02-01 Jan Hubicka <jh@suse.cz>
434c87d4
JH
10823
10824 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
10825
271bd540
RS
108262003-02-01 Richard Sandiford <rsandifo@redhat.com>
10827
10828 * flags.h (flag_volatile): Remove declaration.
10829 (flag_volatile_global, flag_volatile_static): Likewise.
10830 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
10831 * toplev.c (flag_volatile): Remove definition.
10832 (flag_volatile_global, flag_volatile_static): Likewise.
10833 (f_options): Remove corresponding entries here.
10834 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
10835 or flag_volatile_static.
10836 * doc/invoke.texi: Remove documentation of -fvolatile,
10837 -fvolatile-global and -fvolatile-static.
10838
17e6098e
JDA
108392003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10840
10841 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
10842 updating of total_code_bytes from prologue to epilogue.
10843
2f278625
UW
108442003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
10845
10846 * reload.c (find_reloads): Do not use the mode specified in the insn
10847 pattern as reload mode for address operands. Do not generate optional
10848 reloads for operands where a mandatory reload was already pushed.
10849 Generate optional reloads only in the final pass though find_reloads.
10850 (have_replacement_p): New function.
10851
05c425a9
GP
108522003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10853
10854 * doc/install.texi (Testing): Remove a reference to our obsolete
10855 /testresults web pages and strip redundant information concerning
10856 test results.
10857 (Binaries): Refer to Microsoft Windows instead of listing all
10858 possible variants.
10859
62c9aa5f 108602003-02-01 Jan Hubicka <jh@suse.cz>
b0c42aed
JH
10861
10862 * loop.c (emit_prefetch_instructions): Do conversion at right place in
10863 RTL chain.
10864
10865 * combine.c (simplify_set): Reverse order of ragumetns to
10866 REG_CANNOT_CHANGE_MODE_P
10867 * df.c (df_def_record_1): Likewise.
10868 * recog.c (register_operand): Likewise.
10869 * simplify-rtx.c (simplify_subreg): Likewise.
10870 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
10871 CANNOT_CHANGE_MODE_CLASS.
10872 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
10873 Likewise.
10874 * reload.c (push_reload): Likewise.
10875 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10876 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10877 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10878 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
10879 * mips.c (mips_cannot_change_mode_class): Update.
10880 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10881 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10882 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10883 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10884 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
10885 * sh.c (sh_cannot_change_mode_class): Update.
10886 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
10887 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
10888
1f61a15d
GK
108892003-01-31 Geoffrey Keating <geoffk@apple.com>
10890
10891 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
10892 change to LINK_COMMAND_SPEC in gcc.c.
10893
7c712dcc
LR
108942003-01-31 Jan Hubicka <jh@suse.cz>
10895
10896 PR c/9506
10897 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
10898
e137391e
JDA
108992003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10900
10901 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
10902 duplicated code.
10903
1824b90d
NS
109042003-01-31 Nathan Sidwell <nathan@codesourcery.com>
10905
10906 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
10907 (BINFO_ELTS): New #define.
10908 * stor-layout.c (finalize_record_size): Don't set them.
10909 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
10910 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
10911 (BINFO_LANG_ELTS): New #define.
10912 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
10913 * java/class.c (make_class): Use BINFO_ELTS.
10914 (set_super_info): Likewse.
10915 (add_interface_do): Likewise.
10916 * objc/objc-act.c (start_class): Use BINFO_ELTS.
10917
8f9a402c
DS
109182003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
10919
10920 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
10921 (times): Don't ever declare if not HAVE_TIMES.
10922 (clock): Don't ever declare if not HAVE_CLOCK.
10923
cdd1f01b
RH
109242003-01-30 Richard Henderson <rth@redhat.com>
10925
10926 * flow.c (update_life_info): Zap life info after cleanup_cfg.
10927 (regno_uninitialized): Use correct live at function entry set.
10928 (regno_clobbered_at_setjmp): Likewise.
10929
10930 * expr.c (store_expr): Promote all MEM intermediates to regs.
10931
6bc82793
KH
109322003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10933
10934 * config/arm/arm.c: Fix comment typos.
10935 * config/arm/arm.h: Likewise.
10936 * config/arm/netbsd-elf.h: Likewise.
10937 * config/arm/netbsd.h: Likewise.
10938
f099d360
GK
109392003-01-30 Geoffrey Keating <geoffk@apple.com>
10940
10941 * gengtype.c (struct walk_type_data): Add needs_cast_p.
10942 (walk_type): Set needs_cast_p in walk_type_data.
10943 (write_types_process_field): Supply casts when required to suppress
10944 warnings.
10945 (write_root): Cast gt_pch_n_S to suppress warning.
10946 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
f099d360
GK
10947 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
10948 when they might exist.
10949 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
10950 insn-conditions.o, and rs6000.o.
10951
52895e1a
RH
109522003-01-30 Richard Henderson <rth@redhat.com>
10953
10954 * ggc-page.c (G.context_depth_allocations): New.
10955 (G.context_depth_collections): New.
10956 (alloc_page): Set G.context_depth_allocations.
10957 (ggc_collect): Set G.context_depth_collections.
10958 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
10959 (ggc_pop_context): Early exit for no allocations or collections.
10960
c35c7e52
RH
109612003-01-30 Richard Henderson <rth@redhat.com>
10962
10963 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
10964
e43dd89d
RE
109652003-01-30 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
10968 size, the link register is always saved if any other register is
10969 saved.
10970
87a902e4
KH
109712003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10972
10973 * config/h8300/h8300-protos.h: Update the prototype for
10974 compute_plussi_cc.
10975 (cpp_reader): Declare before it is used.
10976 * config/h8300/h8300.c (compute_plussi_cc): Change the return
10977 type to int.
10978 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
10979 see an unknown H8 variant.
10980
109812003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
0186a143 10982
ff6e2d3e 10983 PR target/9316
0186a143
RC
10984 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
10985 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
10986 * config/rs6000/t-rtems: New file. multilib variants to match OS.
10987 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
10988 rs6000/t-ppcgas so we get the desired multilibs.
10989
f55d7103
NC
109902003-01-30 Nick Clifton <nickc@redhat.com>
10991
10992 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
10993 when popping saved IP register off the stack.
10994
b6d08ca1
KH
109952003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10996
10997 * config/rs6000/aix43.h: Fix comment typos.
10998 * config/rs6000/aix51.h: Likewise.
10999 * config/rs6000/aix52.h: Likewise.
11000 * config/rs6000/altivec.h: Likewise.
11001 * config/rs6000/rs6000.c: Likewise.
11002 * config/rs6000/rs6000.h: Likewise.
11003 * config/rs6000/rs6000.md: Likewise.
11004 * config/rs6000/spe.md: Likewise.
11005
14d22dd6
MM
110062003-01-29 Mark Mitchell <mark@codesourcery.com>
11007
11008 * c-common.c (builtin_define_float_constants): Define
11009 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
11010
825db093
KH
110112003-01-30 Kazu Hirata <kazu@cs.umass.edu>
11012
11013 * config/sh/lib1funcs.asm: Fix comment typos.
11014 * config/sh/linux.h: Likewise.
11015 * config/sh/sh.c: Likewise.
11016 * config/sh/sh.md: Likewise.
11017
f1d5271a
LR
110182003-01-30 Loren James Rittle <ljrittle@acm.org>
11019
11020 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
11021
266a9ef1
AO
110222003-01-30 Alexandre Oliva <aoliva@redhat.com>
11023
11024 * config/fp-bit.h (__make_dp): Declare if TMODES.
11025
0889116d
KH
110262003-01-29 Kazu Hirata <kazu@cs.umass.edu>
11027
11028 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
11029 general_operand_src and general_operand_dst.
11030
c8c99a68
DE
110312003-01-29 David Edelsohn <edelsohn@gnu.org>
11032
11033 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
11034 Return true for variable sized types.
11035 (rs6000_va_arg): Handle variable sized types passed by reference
11036 on non-SVR4 ABI.
11037
ccf4d512
RE
110382003-01-29 Richard Earnshaw <rearnsha@arm.com>
11039
11040 * arm.c (arm_legtimize_address): New function.
11041 * arm-protos.h (arm_legtimize_address): Add prototype.
11042 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
11043 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
11044 do ... while (0)
11045
0889116d 110462003-01-29 Joel Sherrill <joel@OARcorp.com>
0680c8fb 11047
7429b411 11048 PR bootstrap/9296
0680c8fb 11049 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
7429b411 11050 depended on it being defined until now.
0680c8fb 11051
7429b411 110522003-01-29 Joel Sherrill <joel@OARcorp.com>
c934274a 11053
7429b411 11054 PR target/9295
c934274a
JS
11055 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
11056 RTEMS code knows which C++ initialization style the toolset
7429b411 11057 configuration is using.
c934274a 11058
0889116d 110592003-01-29 Joel Sherrill <joel@OARcorp.com>
2e327e6e 11060
7429b411 11061 PR bootstrap/9293
ff6e2d3e 11062 * config/m68k/t-crtstuff: Replace spaces with tabs, add
2e327e6e 11063 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
2e327e6e 11064
0889116d 110652003-01-29 Joel Sherrill <joel@OARcorp.com>
64abe03e 11066
7429b411 11067 PR bootstrap/9292
64abe03e
JS
11068 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
11069 RTEMS threads.
11070 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
64abe03e 11071
2f12fb2b
NC
110722003-01-29 Nick Clifton <nickc@redhat.com>
11073
11074 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
11075 not $(srcdir).
11076
cf0150b9
AH
110772003-01-29 Andrew Haley <aph@redhat.com>
11078
11079 * tree-inline.c (walk_tree): Add CHAR_TYPE.
11080
62c9aa5f 110812003-01-29 Jan Hubicka <jh@suse.cz>
9b74f3ea
JH
11082
11083 * i386.md (subdi3_carry_rex64): Fix typo.
11084
e150159c
SS
110852003-01-28 Stan Shebs <shebs@apple.com>
11086
11087 * coretypes.h (cpp_reader): Forward declare struct.
11088 * c-pragma.h (cpp_reader): Remove forward declaration.
11089 * hashtable.h (cpp_reader): Likewise.
11090 * scan.h (cpp_reader): Likewise.
11091 * tree.h (cpp_reader): Likewise.
11092 * config/darwin-protos.h (cpp_reader): Likewise.
11093 * config/arm/arm-protos.h (cpp_reader): Likewise.
11094 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
11095 struct cpp_reader in prototypes.
11096
53b50ac1
CC
110972003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
11098
11099 * doc/install.texi: Add documentation for installation into
11100 tooldirs and with DESTDIR.
11101
021aa6ed
RH
111022003-01-28 Richard Henderson <rth@redhat.com>
11103
11104 * config.gcc (ia64*-*-aix*): Remove.
11105 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
11106 * config/ia64/unwind-aix.c: Remove file.
11107
c1c1d123
AS
111082003-01-28 Andreas Schwab <schwab@suse.de>
11109
ff6e2d3e
RB
11110 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
11111 register.
11112 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
11113 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
11114 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
11115 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11116 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
11117 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11118 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
c1c1d123 11119
6d09ef27
RS
111202003-01-28 Richard Sandiford <rsandifo@redhat.com>
11121
11122 * combine.c (nonzero_bits): Fix check for negative divide operands.
11123
1e1bd14e
RH
111242003-01-28 Richard Henderson <rth@redhat.com>
11125
11126 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
11127 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
11128
e37135f7
RH
111292003-01-28 Richard Henderson <rth@redhat.com>
11130
11131 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
11132
75642f32
RH
11133 * config/cris/cris.c (cris_address_cost): Make static.
11134 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
11135 * config/cris/cris.h (ADDRESS_COST): Remove.
11136 * config/cris/cris-protos.h: Update.
11137
e37135f7 111382003-01-23 Mike Stump <mrs@apple.com>
1f80c9ef
MS
11139
11140 * regclass.c (init_reg_autoinc): New function.
11141 (regclass): Move initialization of forbidden_inc_dec_class from
26182e15 11142 here...
1f80c9ef 11143 (init_regs): to here. Avoids reinitialization for each function,
26182e15 11144 saving compilation time.
1f80c9ef 11145
9fbd3e41
JM
111462003-01-28 Jason Merrill <jason@redhat.com>
11147
11148 * cpplib.h (struct cpp_options): Add warn_deprecated field.
11149 * cppinit.c (cpp_create_reader): Turn it on by default.
11150 * c-opts.c (c_common_decode_option): Set it.
11151 * cpplib.c (do_pragma_once): Only complain about #pragma once
11152 if warn_deprecated is set.
11153
fe352c29 111542003-01-28 Dale Johannesen <dalej@apple.com>
9fbd3e41 11155
1e1bd14e
RH
11156 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
11157 * loop.c (scan_loop): Move movables on -Os rich-register targets.
11158 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
fe352c29 11159
dcefdf67
RH
111602003-01-28 Richard Henderson <rth@redhat.com>
11161
11162 * target.h (targetm.address_cost): New.
11163 * target-def.h (TARGET_ADDRESS_COST): New.
11164 (TARGET_RTX_COSTS): Uncomment. Oops.
11165 * cse.c (address_cost): Use new target hook.
11166 (default_address_cost): New.
11167 * output.h (default_address_cost): Declare.
11168 * hooks.c (hook_int_rtx_0): New.
11169 * hooks.h (hook_int_rtx_0): Declare.
11170 * loop.c (combine_givs_p): Remove if 0 code.
11171 * system.h (ADDRESS_COST): Poison.
11172
11173 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
11174 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
11175 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
11176 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
11177 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
11178 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
11179 config/xtensa/xtensa.c, config/xtensa/xtensa.h
11180 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
11181 (ADDRESS_COST): Remove.
11182
11183 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
11184 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11185 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11186 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
11187 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
11188 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
11189 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
11190 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
ff6e2d3e 11191 config/mips/mips.c, config/mips/mips.h,
dcefdf67 11192 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
ff6e2d3e 11193 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
dcefdf67
RH
11194 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
11195 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
11196 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
11197 config/vax/vax.c, config/vax/vax.h
11198 (foo_address_cost): Make static.
11199 (TARGET_ADDRESS_COST): New.
11200 (ADDRESS_COST): Remove.
11201
11202 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
11203 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
11204 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
11205 config/stormy16/stormy16.h
11206 (ADDRESS_COST): Move code ...
11207 (foo_address_cost): ... here.
11208 (TARGET_ADDRESS_COST): New.
11209
11210 * config/m32r/m32r.c (m32r_address_cost): Remove.
11211 * config/m32r/m32r-protos.h: Update.
11212
11213 * config/mmix/mmix.c (mmix_address_cost): Remove.
11214 * config/mmix/mmix-protos.h: Update.
11215
11216 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
11217 mn10300_address_cost; move unsig allocation ...
11218 (mn10300_address_cost): ... here.
11219 (TARGET_ADDRESS_COST): New.
11220 * config/mn10300/mn10300-protos.h: Update.
11221 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
11222
75642f32
RH
11223 * doc/tm.texi: Update.
11224
58fb7809
VM
112252003-01-28 Vladimir Makarov <vmakarov@redhat.com>
11226
11227 * haifa-sched.c (schedule_insn): Return necessary cycle advance
11228 after issuing the insn.
11229 (rank_for_schedule): Make a insn with /S the highest priority
11230 insn.
11231 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
11232 (choose_ready): Check SCHED_GROUP_P.
11233 (schedule_block): Advance cycle after issuing insn if it is
11234 necessary. Don't reorder insns if there is an insn with /S.
11235 (set_priorities): Ignore schedule groups.
11236
11237 * sched-deps.c (remove_dependence, group_leader): Remove the
11238 functions.
11239 (add_dependence): Ignore schedule groups.
11240 (set_sched_group_p): Don't make copy of dependencies from previous
11241 insn of the schedule group. Add anti-dependency to the previous
11242 insn of the schedule group.
11243 (compute_forward_dependences): Ignore schedule groups.
11244
11245 * sched-ebb.c (init_ready_list): Ignore schedule groups.
11246
11247 * sched-rgn.c (init_ready_list): Ditto.
11248 (can_schedule_ready_p): Ditto.
ff6e2d3e 11249
371c988b
VM
112502003-01-28 Vladimir Makarov <vmakarov@redhat.com>
11251
11252 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
11253 register to another one.
11254
40cdfd5a
RH
112552003-01-28 Richard Henderson <rth@redhat.com>
11256
11257 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
11258
a77b7e32
RS
112592003-01-28 Roger Sayle <roger@eyesopen.com>
11260
11261 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
11262
3620944c
RS
112632003-01-28 Richard Sandiford <rsandifo@redhat.com>
11264
11265 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
11266 class contains a floating-point register, return the size of the
11267 mode in half words.
11268
62c9aa5f 112692003-01-28 Jan Hubicka <jh@suse.cz>
e6e81735 11270
26182e15
SB
11271 * i386.c (ix86_carry_flag_operator): New predicate.
11272 (fcmov_operator): Fix whitespace.
11273 (ix86_expand_carry_flag_compare): Deal with floating point.
11274 (ix86_expand_int_movcc): Deal with fp; update insn expansion
11275 (ix86_expand_int_addcc): Likewise.
11276 (ix86_expand_strlensi_unroll_1): likewsie.
11277 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
11278 * i386.md (add?i_carry_rex64): Use new predicate.
11279 (sub?i3_carry_rex64): Likewise.
11280 (x86_mov?icc_0_m1*): Likewise.
e6e81735 11281
43196589
AS
112822003-01-28 Andreas Schwab <schwab@suse.de>
11283
32214c32
AS
11284 * cfgloopmanip.c (create_preheader): Initialize src to avoid
11285 warning.
11286
11287 * expmed.c (emit_store_flag): Fix cast to avoid sign
11288 comparison warning.
11289
43196589
AS
11290 * combine.c (force_to_mode): Add cast to fix warning when
11291 STORE_FLAG_VALUE is negative.
11292
3c50106f
RH
112932003-01-27 Richard Henderson <rth@redhat.com>
11294
11295 * Makefile.in (cse.o): Depend on TARGET_H.
11296 * cse.c (rtx_cost): Use targetm.rtx_costs.
11297 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
11298 * doc/tm.texi: Update.
ff6e2d3e 11299
3c50106f
RH
11300 * target.h (targetm.rtx_costs): New.
11301 * target-def.h (TARGET_RTX_COSTS): New.
11302 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
11303 * hooks.h: Update.
11304
11305 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
11306 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
11307 * config/alpha/alpha.h (PROCESSOR_MAX): New.
11308 (CONST_COSTS, RTX_COSTS): Remove.
11309
11310 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
11311 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
11312 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
11313 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
11314 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
11315 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
11316 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
11317 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
11318 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
11319 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
11320 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
11321 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
11322 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
11323 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
11324 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
11325 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
11326 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
11327 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
11328 config/v850/v850.c, config/v850/v850.h,
11329 config/xtensa/xtensa.c, config/xtensa/xtensa.h
11330 (CONST_COSTS, RTX_COSTS): Move code ...
11331 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
11332
11333 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
11334 (arm_rtx_costs, TARGET_RTX_COSTS): New.
11335 * config/arm/arm-protos.h: Update.
11336 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
11337
11338 * config/avr/avr.h (CONST_COSTS): Move code ...
11339 * config/avr/avr.c (avr_rtx_costs): ... here.
11340 (default_rtx_costs): Make static.
11341 * config/avr/avr-protos.h: Update.
11342
11343 * config/h8300/h8300.c (const_costs): Make static.
11344 (h8300_and_costs, h8300_shift_costs): Likewise.
11345 * config/h8300/h8300-protos.h: Update.
11346
11347 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
11348 (CONST_COSTS): Move code ...
11349 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
11350 default_rtx_costs; update for signature change.
11351 * config/ip2k/ip2k-protos.h: Update.
11352
11353 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
11354 (CONST_COSTS): Move code ...
11355 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
11356 (TARGET_RTX_COSTS): New.
11357 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
11358 * config/m68hc11/m68hc11-protos.h: Update.
11359
11360 * config/m68k/m68k.c (const_int_cost): Make static.
11361 * config/m68k/m68k-protos.h: Update.
11362
11363 * config/mcore/mcore.c (mcore_const_costs): Make static.
11364 (mcore_and_cost, mcore_ior_cost): Likewise.
11365 * config/mcore/mcore-protos.h: Update.
11366
11367 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
11368 (mmix_rtx_cost_recalculated): Remove.
11369 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
11370 * config/mmix/mmix-protos.h: Update.
11371
11372 * config/sh/sh.c (shiftcosts): Make static.
11373 (addsubcosts, andcosts, multcosts): Likewise.
11374 * config/sh/sh-protos.h: Update.
11375
11376 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
11377 (sparc_rtx_costs): Make static; update for change in signature.
11378 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
11379 * config/sparc/sparc-protos.h: Update.
11380
11381 * config/v850/v850.c (const_costs): Make static.
11382 * config/v850/v850-protos.h: Update.
11383
11384 * config/vax/vax.h (RTX_COSTS): Remove.
11385 (CONST_COSTS): Move code ...
11386 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
11387 from vax_rtx_cost.
11388 (vax_rtx_costs, TARGET_RTX_COSTS): New.
11389
b9962e0a
RH
113902003-01-27 Richard Henderson <rth@redhat.com>
11391
11392 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
5ca98980 11393 * config/vax/vax-protos.h: Update. Really.
b9962e0a 11394
8a381273
AO
113952003-01-28 Alexandre Oliva <aoliva@redhat.com>
11396
11397 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
11398 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
11399 zero if no hardware floating point.
11400 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
11401 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
11402 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
11403 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
11404 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
11405 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
11406 even FP registers on N32 and N64.
11407 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
11408 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
11409 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
11410 even-register-like alignment to 128-bit arguments.
11411 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
11412 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
11413 on N32 or N64.
11414 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
11415 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
11416 (TPBIT): Set to tp-bit.c.
11417 (tp-bit.c): Create out of fp-bit.c.
11418
820e01be
GDR
114192003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
11420
11421 * c-parse.in: Remove '%expect 32' directive in objc mode.
11422
23af32e6
NS
114232003-01-27 Nathan Sidwell <nathan@codesourcery.com>
11424
11425 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
11426 (LIBGCOV): New variable.
11427 (libgcc.mk): Add LIBGCOV.
11428 (LIBGCC_DEPS): Add libgcov.c.
11429 (libgcov.a): New target.
11430 (clean): Remove libgcov.a.
11431 (install-libgcc): Do libgcov too.
11432 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
11433 with libgcov.a.
11434 * libgcc2.c (L_gcov): Move into ...
11435 * libgcov.c: ... here. New file.
11436 * mklibgcc.in: Add libgcov rules.
11437 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
11438
11439 * doc/invoke.texi (profile-arcs, test-coverage): Update and
11440 clarify.
ff6e2d3e 11441
23af32e6
NS
11442 * profile.c (index_counts_file): Remove duplicate check for open file.
11443
9fe42917 114442003-01-27 Jerry Quinn <jlquinn@optonline.net>
d4463dfc
JQ
11445
11446 * gcc/doc/invoke.texi (Optimization Options): Group together
11447 optional and experimental flags. Move trapv and bounds-check
95fcd0ab 11448 out of this section. Group floating point flags together.
d4463dfc
JQ
11449 (Code Gen Options): Move trapv and bounds-check to here.
11450
244d05fb
JZ
114512003-01-27 Josef Zlomek <zlomekj@suse.cz>
11452
11453 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
11454
c552c146
RE
114552003-01-27 Richard Earnshaw <rearnsha@arm.com>
11456
11457 PR optimization/9090
11458 * function.c (purge_addressof_1): After pushing an addressed register
11459 onto the stack, simplify the result.
11460
90a21764
VR
114612003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11462
11463 * doc/extend.texi: Fix typo.
11464
9a376494
VR
114652003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11466
11467 * doc/cppopts.texi: Fix typo.
11468 * doc/objc.texi: Likewise.
11469 * doc/passes.texi: Likewise.
11470
f004e5f3
AO
114712003-01-27 Alexandre Oliva <aoliva@redhat.com>
11472
11473 * real.c (ibm_extended_format): Add 53 to minimum exponent.
11474 (encode_ibm_extended): Adjust.
11475
58c60e52
GDR
114762003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
11477
11478 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
11479 timevar_id enumerations.
11480
e869aa39
KH
114812003-01-26 Kazu Hirata <kazu@cs.umass.edu>
11482
11483 * combine.c: Fix formatting.
11484
74fb4811
KH
114852003-01-26 Kazu Hirata <kazu@cs.umass.edu>
11486
11487 * doc/gccint.texi: Update the copyright.
11488
3bcf1b13
KH
114892003-01-26 Kazu Hirata <kazu@cs.umass.edu>
11490
11491 * doc/cpp.texi: Fix typos.
11492 * doc/extend.texi: Likewise.
11493 * doc/gty.texi: Likewise.
11494 * doc/install.texi: Likewise.
11495 * doc/passes.texi: Likewise.
11496 * doc/rtl.texi: Likewise.
11497 * doc/tm.texi: Likewise.
11498
9e4f94de
KH
114992003-01-26 Kazu Hirata <kazu@cs.umass.edu>
11500
11501 * config/ia64/fde-glibc.c: Fix comment typos.
11502 * config/ia64/hpux.h: Likewise.
11503 * config/ia64/ia64.c: Likewise.
11504 * config/ia64/ia64.h: Likewise.
11505 * config/ia64/unwind-ia64.c: Likewise.
11506
4aae8a9a
KH
115072003-01-26 Kazu Hirata <kazu@cs.umass.edu>
11508
11509 * config/i386/i386-modes.def: Fix comment typos.
11510 * config/i386/i386.c: Likewise.
11511 * config/i386/i386.md: Likewise.
11512
35d8c8e2
SB
115132003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
11514
11515 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
11516 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
11517 ASM_FINISH_DECLARE_OBJECT before defining it.
11518 * toplev.c (rest_of_decl_compilation): Don't define
11519 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
11520 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
11521 parameters for DWARF2 targets because they _are_ used.
11522
ea976606
AO
115232003-01-26 Alexandre Oliva <aoliva@redhat.com>
11524
b44cf3d9
AO
11525 * fp-bit.h: Define macros for TFmode floating-point constants
11526 in IBM-extended TFmode types.
11527 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
11528 widths.
11529 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
11530 TFmode type.
11531
ea976606
AO
11532 * config/fp-bit.h: Define macros for TFmode floating-point
11533 constants in IEEE quad TFmode type. Declare functions according
11534 to L_ macros.
11535 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
11536 (TFtype, TItype, UTItype): Define if TMODES is defined.
11537 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
11538 (F_T_BITOFF, D_T_BITOFF): Define.
11539 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
11540 guaranteed to be wide enough.
11541 * config/fp-bit.c: Check for L_ macros for tf functions.
11542 (__thenan_tf): New.
11543 (nan): Adjust.
11544 (pack_d, unpack_d): Support IEEE 854 quad type.
11545 (_fpmul_parts): Support TFmode. Compute exponent adjustment
11546 from FRAC_NBITS, FRAC_BITS and NGARDS.
11547 (usi_to_float): Cast constants to be shifted to fractype
11548 instead of assuming long long is wide enough.
11549 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
11550
fd7fd61e
AJ
115512003-01-26 Andreas Jaeger <aj@suse.de>
11552
11553 * df.c: Remove prototype of unused function df_regno_rtl_debug.
11554
8ae91fc0
AO
115552003-01-26 Alexandre Oliva <aoliva@redhat.com>
11556
88e83acb
AO
11557 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
11558 (DBBIT_FUNCS): Added _df_to_tf.
11559 (TPBIT_FUNCS): New.
11560 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
11561 (LIBGCC_DEPS): Added TPBIT.
11562 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
11563
2cd622c3
AO
11564 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
11565 been able to move the result to target.
11566
8ae91fc0
AO
11567 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
11568 for the appropriate mode.
11569
c3297561
AO
11570 * calls.c (emit_library_call_value_1): Handle return values
11571 in a PARALLEL.
11572
187515f5
AO
11573 * rtl.c (get_mode_alignment): Moved to...
11574 * stor-layout.c: ... here.
11575
6ebd2ef4
AO
11576 * print-rtl.c (print_rtx): Don't print MEM details in
11577 GENERATOR_FILEs.
11578
7890e8f3
MH
115792003-01-26 Michael Hayes <mph@paradise.net.nz>
11580
11581 * df.h: Update comments, tidy formatting.
11582 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
11583 REVERSE, UNION, INTERSECTION. All uses updated.
11584 (OLD_DF_INTERFACE): Remove.
11585 (struct insn_info): Remove commented out insn field.
11586 * df.c: Update comments, tidy formatting.
11587 (df_def_table_realloc): Remove.
11588
11589
b820d2b8
AM
115902003-01-26 Alan Modra <amodra@bigpond.net.au>
11591
11592 * calls.c (save_fixed_argument_area): Tidy.
11593 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
11594 (expand_call): Comment typo fixes. Don't init low_to_save. Start
11595 call chain loop at 1 if !try_tail_call. Formatting.
11596 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
11597 Use save_fixed_argument_area and restore_fixed_argument_area.
11598
42510de4
MH
115992003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11600
11601 * df.c (df_uses_record): Handle CC0.
11602
acf9fa5f
UW
116032003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11604
1e1bd14e
RH
11605 * reload.c (maybe_memory_address_p): New function.
11606 (find_reloads_address): Use it instead of memory_address_p.
acf9fa5f 11607
5a09edba
KK
116082003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
11609
11610 * final.c (shorten_branches): Align the address of code label
1e1bd14e 11611 when computing initial lengths and addresses.
5a09edba 11612
f5818c0c
KH
116132003-01-25 Kazu Hirata <kazu@cs.umass.edu>
11614
11615 * config/m68hc11/m68hc11.md: Fix a comment typo.
11616
21ff35fb
AJ
116172003-01-25 Andreas Jaeger <aj@suse.de>
11618
11619 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
11620 TARGET_MACHO.
11621
7821bfc7
RS
116222003-01-25 Roger Sayle <roger@eyesopen.com>
11623
11624 * gcse.c (bypass_last_basic_block): New global variable.
11625 (bypass_block): Use redirect_edge_and_branch_force to redirect
11626 fall-through edges. Use bypass_last_basic_block to determine
11627 which blocks have valid PRE information.
11628 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
11629
62c9aa5f 116302003-01-25 Jan Hubicka <jh@suse.cz>
5f0bea72
JH
11631
11632 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
11633
62c9aa5f 116342003-01-25 Jan Hubicka <jh@suse.cz>
1649d92f
JH
11635 Eric Botcazou <ebotcazou@libertysurf.fr>
11636 PR opt/8492
11637 * gcse.c (one_cprop_pass): Delete unreachable blocks.
11638
6ca86a1a
RH
116392003-01-25 Richard Henderson <rth@redhat.com>
11640
11641 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
11642 from ia64_aix_select_rtx_section.
11643 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
11644 instead of saving and restoring flag_pic.
11645 (ia64_rwreloc_unique_section): Similarly.
11646 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
11647 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
11648 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
11649 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
11650
aa2fb4dd
KH
116512003-01-25 Kazu Hirata <kazu@cs.umass.edu>
11652
11653 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
11654 comment.
11655
c876997f 116562003-01-25 Richard Henderson <rth@redhat.com>
1125849a
RH
11657
11658 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
11659
c876997f 116602003-01-25 Kelley Cook <kelleycook@comcast.net>
3900a23b
KC
11661
11662 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
11663
72e42e26
SB
116642003-01-25 Segher Boessenkool <segher@koffie.nl>
11665
11666 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
11667 type for bitmaps. Use unsigned long.
11668 (nBITMAP_WORD_BITS): New macro.
11669 (BITMAP_WORD_BITS): New macro.
11670 (rest of file): Use it.
11671 * bitmap.c: Use it.
11672
8324663f
RH
116732003-01-25 Richard Henderson <rth@redhat.com>
11674
11675 2002-02-19 Robert Lipe <robertlipe@usa.net>
11676 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
11677
c876997f 116782003-01-25 Roger Sayle <roger@eyesopen.com>
2adc9b0f
RS
11679
11680 * builtins.c (purge_builtin_constant_p): Scan insn stream
11681 sequentially rather than by basic block.
11682 * function.c (purge_addressof): Simplify test with INSN_P.
11683
ad487c38
KH
116842003-01-25 Kazu Hirata <kazu@cs.umass.edu>
11685
8324663f 11686 * combine.c (simplify_comparison, case AND): Remove a redundant test.
ad487c38 11687
c876997f 116882003-01-25 Roger Sayle <roger@eyesopen.com>
07d9b20d
RS
11689
11690 * function.h (struct function): New field calls_constant_p.
11691 (current_function_calls_constant_p): New macro for above.
11692 * function.c (prepare_function_start): Initialize calls_eh_return
11693 and calls_constant_p.
11694 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
11695 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
11696 when the current_function_calls_constant_p.
11697 * integrate.c (expand_inline_function): Set calls_constant_p if
11698 the function being inlined has calls_constant_p set.
11699
c876997f 117002003-01-25 Roger Sayle <roger@eyesopen.com>
41559112
RS
11701
11702 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
11703 optimizing, even if flag_gcse is true.
11704 * toplev.c (rest_of_compilation): purge_builtin_constant_p
11705 only needs to be called when "optimize > 0 && flag_gcse".
11706
9bb231fd
RS
117072003-01-25 Roger Sayle <roger@eyesopen.com>
11708
11709 * stmt.c (emit_case_bit_tests): New routine to implement suitable
11710 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
11711 (case_bit_test_cmp): New comparison function for "qsort" to order
11712 case_bit_tests by decreasing number of destination nodes.
11713 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
11714 (expand_end_case_type): Use emit_case_bit_tests to implement
11715 suitable switch statments.
11716 (CASE_USE_BIT_TESTS): New target macro to disable the above.
11717 * Makefile.in (stmt.o): Add dependency on optab.h.
11718 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
11719
a073323c
AS
117202003-01-23 Andreas Schwab <schwab@suse.de>
11721
11722 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
11723 __do_global_ctors_aux hidden global and don't put it in
11724 .init_array.
11725 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
11726 instead so that it comes first.
11727
62c9aa5f 117282003-01-25 Jan Hubicka <jh@suse.cz>
36ddc6b0
JH
11729
11730 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
11731 subreg is read/modify.
11732
62c9aa5f 117332003-01-25 Jan Hubicka <jh@suse.cz>
26771da7
JH
11734
11735 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
11736 do libcall for large blocks.
11737 * i386.md (comi patterns): Set type to ssecomi.
11738 (sse2_unpck?pd): Fix mode of vec_select.
11739
11740 * cse.c: Include except.h
11741 (cse_set_around_loop): Do not create new basic blocks.
11742 * Makefile.in (cse.o): Add dependnecy on except.h
11743
62c9aa5f 117442003-01-25 Jan Hubicka <jh@suse.cz>
27a6aa72
JH
11745
11746 * builtins.c (fold_trunc_transparent_mathfn): New function.
11747 (fold_builtin): Use it.
11748 * convert.c (convert_to_real): Re-enable code to convert
11749 math functions; add support for floor familly functions.
11750
cd68f4e4
ZD
117512003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11752
11753 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
11754 dependencies on coretypes.h and $(TM_H).
11755
62c9aa5f 117562003-01-25 Jan Hubicka <jh@suse.cz>
67945f2e
JH
11757
11758 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
11759
c876997f 117602003-01-24 Stuart Hastings <stuart@apple.com>
095fa594 11761
08f0414b 11762 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
095fa594 11763
1e4c04e0
MH
117642003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11765
11766 * config/c4x/c4x.md (UNSPEC_BU): New constants.
11767 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
11768 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
11769 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
11770 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
11771 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
11772 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
11773 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
11774
62c9aa5f 117752003-01-24 Jan Hubicka <jh@suse.cz>
a560d4d4 11776
08f0414b 11777 * emit-rtl.c (reg_attrs_htab): New static variable.
a560d4d4
JH
11778 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
11779 functions.
11780 (reg_rtx): Do not maintain regno_decl.
11781 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
11782 set_mem_attrs_from_reg): New global function.
11783 (init_emit): Do not initialize regno_decl.
11784 (init_emit_once): initialize reg_attrs_htab.
11785 * final.c (alter_subreg): Do not replace REG by SUBREG.
11786 (gen_mem_expr_from_op): Improve output.
11787 (output_asm_operands): Likewise.
11788 * function.c (assign_params): Do not set REGNO_DECL.
11789 * function.h (struct function): Kill regno_decl.
11790 (REGNO_DECL): Kill.
11791 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
11792 * print_rtl.c (print_rtx): Output REG information.
11793 * regclass.c (reg_scan_mark_refs): Update attrs.
11794 * reload1.c (alter_reg): Likewise.
11795 * simplify_rtx.c (simplify_subreg): Likewise.
11796 * stmt.c (expand_decl): Likewise.
11797 * rtl.def (REG): Add new field.
11798 * rtl.h (struct reg_attrs): New.
11799 (rtunion_def): At rtreg.
11800 (X0MEMATTR): Add checking.
11801 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
11802 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
11803 Declare.
11804 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
11805
1d0ea52e
BW
118062003-01-24 Bob Wilson <bob.wilson@acm.org>
11807
11808 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
11809 (xtensa_emit_call, print_operand): Fix printf format strings
11810 to avoid compile warnings.
11811 (xtensa_function_prologue, xtensa_function_epilogue): Change type
11812 of "size" argument to HOST_WIDE_INT to fix compile warnings.
11813 * config/xtensa/xtensa-protos.h
11814 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
11815
62c9aa5f 118162003-01-24 Jan Hubicka <jh@suse.cz>
272f51a3
JH
11817
11818 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
11819 (implicit_built_in_decls): New global array.
11820 (mathfn_built_in): New global function.
11821 (fold_trunc_transparent_mathfn): New static function
11822 (expand_builtin_strstr, expand_bultin_strchr,
11823 expand_builtin_strpbrk, expand_builtin_strcpy,
11824 expand_builtin_strncpy, expand_bultin_strcmp,
11825 expand_bultin_strncat, expand_builtin_fputs): Use
11826 implicint_built_in_decls.
11827 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
11828 * builtins.def: Fix comments.
11829 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
11830 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
11831 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
11832 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
11833 (DEF_C99_C90RES_BULTIN): New.
11834 (*f, *l builtins): Update.
11835 * c-common.c (DEF_BUILTIN): Initialize implicit array.
11836 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
11837 * convert.c (strip_float_extensions): New global function.
11838 * tree.h (DEF_BUILTIN): Accept 10 arguments.
11839 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
11840 Declare.
11841 * java/builtins.c (define_builtin): Handle implicit.
11842 (DEF_BUILTIN): Update.
11843 * tm.texi (TARGET_C99_FUNCTIONS): Document.
11844 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
11845 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
11846 when using glibc2.
11847
1f37a5b2
BW
118482003-01-24 Bob Wilson <bob.wilson@acm.org>
11849
11850 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
11851 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
11852 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
11853 * config/xtensa/crti.asm: New file.
11854 * config/xtensa/crtn.asm: New file.
11855 * config/xtensa/t-elf: New file.
11856 * config/xtensa/t-linux: New file.
11857 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
11858 Move various CFLAGS settings to new t-elf file.
11859
84f5e1b1
RH
118602003-01-24 Richard Henderson <rth@redhat.com>
11861
11862 PR optimization/4382
11863 * tree-inline.c (find_builtin_longjmp_call_1): New.
11864 (find_builtin_longjmp_call): New.
11865 (inlinable_function_p): Use it.
11866
09b2e78d
ZD
118672003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11868
11869 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
11870 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
11871 * config/i386/i386.c (function_arg_pass_by_reference): New.
11872 (ix86_va_arg): Support arguments passed by reference.
11873
3d436d2a
ZD
118742003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11875
11876 * cfgloopanal.c: New file.
11877 * cfgloopmanip.c: New file.
11878 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
11879 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
11880 cfglayout.o): Add dependency on cfgloop.h.
11881 (cfgloop.o): Add flags.h dependency.
11882 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
11883 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
11884 (struct loop, struct loops, flow_loops_find, flow_loops_update,
11885 flow_loops_free, flow_loops_dump, flow_loop_dump,
11886 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
11887 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
11888 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
11889 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
11890 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
11891 find_common_loop, verify_loop_structure): Declarations moved to ...
11892 * cfgloop.h: New file.
11893 * bb-reorder.c (reorder_basic_blocks): Modified.
11894 * cfglayout.c: Include cfgloop.h.
11895 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
11896 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
11897 (break_superblocks): New static function.
11898 (cfg_layout_finalize): Use it.
11899 (cfg_layout_split_block): New function.
11900 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
11901 fields.
11902 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
11903 changed.
11904 (cfg_layout_split_block): Declare.
11905 * cfgloop.c: Include cfgloop.h and flags.h.
11906 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
11907 get_loop_body): Avoid signed versus unsigned comparison warnings.
11908 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
11909 loop_latch_edge): Modified.
11910 (verify_loop_structure): Modified to use flags stored in loop structure;
11911 check irreducible loops.
11912 (cancel_loop, cancel_loop_tree): New functions.
11913 (estimate_probability): Use loop analysis code for predictions.
11914 (estimate_loops_at_level): Avoid signed versus unsigned comparison
11915 warnings.
11916 * doloop.c: Include cfgloop.h.
11917 * loop.c: Include cfgloop.h.
11918 * predict.c: Include cfgloop.h.
11919 * toplev.c: Include cfgloop.h.
11920 * unroll.c: Include cfgloop.h.
11921 * tracer.c (tracer): Modified.
11922
a38b3eea
KH
119232003-01-24 Kazu Hirata <kazu@cs.umass.edu>
11924
11925 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
11926
fd3cd001
UW
119272003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11928
11929 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
11930 * configure: Regenerate.
11931
11932 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
11933 (tls_symbolic_reference_mentioned_p): Add prototype.
11934 (s390_tls_get_offset): Add prototype.
11935 (emit_pic_move): Remove prototype, replace by ...
11936 (emit_symbolic_move): .. this new prototype.
11937
11938 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
11939 (tls_model_chars): New global variable.
11940 (s390_encode_section_info): Encode TLS model.
11941 Use targetm.binds_local_p to check for local symbols.
11942 (s390_strip_name_encoding): New function.
11943 (TARGET_STRIP_NAME_ENCODING): Define.
11944
11945 (get_thread_pointer): New function.
21ff35fb 11946 (legitimize_tls_address): New function.
fd3cd001
UW
11947 (legitimize_address): Call it.
11948 (emit_pic_move): Remove, replace by ...
11949 (emit_symbolic_move): ... this new function.
11950
11951 (larl_operand): Handle TLS operands.
11952 (legitimate_constant_p): Likewise.
11953 (s390_decompose_address): Likewise.
11954 (s390_cannot_force_const_mem): New function.
11955 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11956
11957 (s390_output_symbolic_const): Handle TLS unspecs.
11958 (print_operand): New code 'J'.
11959 (machine_function): Add struct member 'some_ld_name'.
11960 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11961
11962 (enum s390_builtin): New type.
11963 (code_for_builtin_64, code_for_builtin_31): New global variables.
11964 (s390_init_builtins, s390_expand_builtin): New functions.
11965 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
11966
11967 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
11968 (ASM_OUTPUT_LABELREF): Define.
11969 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
11970
11971 * config/s390/s390.md: Define TLS UNSPEC constants.
11972 ("movdi", "movsi"): Handle TLS operands.
11973 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
11974 ("*tls_load_64", "*tls_load_31"): New insns.
11975 ("call_value_tls", "call_value_tls_exp"): New expanders.
21ff35fb 11976 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
fd3cd001
UW
11977 "bas_tls_64", "bas_tls_31"): New insns.
11978
01f4962d
NS
119792003-01-24 Nathan Sidwell <nathan@codesourcery.com>
11980
11981 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
11982 spe ABI is configured, if requested.
11983
70b91854
VR
119842003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11985
11986 * doc/passes.texi: Fix typo.
11987
b8089d8d
AS
119882003-01-24 Andreas Schwab <schwab@suse.de>
11989
11990 * stor-layout.c (excess_unit_span): Only define if used.
11991
38df970e
JQ
119922003-01-24 Jerry Quinn <jlquinn@optonline.net>
11993
11994 * gcc/doc/invoke.texi (Optimization Options): List -O levels
11995 for each optimization flag.
11996
dff23a65
KH
119972003-01-24 Kazu Hirata <kazu@cs.umass.edu>
11998
11999 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
12000
05739753
VR
120012003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12002
12003 * doc/bugreport.texi: Use @command instead of @code for commands.
12004 * doc/collect2.texi: Likewise.
12005 * doc/headerdirs.texi: Likewise.
12006 * doc/invoke.texi: Likewise.
12007 * doc/standards.texi: Likewise.
12008 * doc/tm.texi: Likewise.
12009 * doc/trouble.texi: Likewise.
12010
06bea5aa
NC
120112003-01-24 Nick Clifton <nickc@redhat.com>
12012
12013 * config/arm/arm.c (use_return_insn): Do not use a single return
12014 instruction for interrupt handelrs which have to create a stack
12015 frame.
12016 (arm_expand_prologue): Do not pre-bias the return address of
12017 interrupt handlers which create a stack frame.
12018
120192003-01-24 Nick Clifton <nickc@redhat.com>
12020
12021 * Add sh2e support:
12022
12023 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
12024
12025 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
12026 med_cbranches. Fix logic in short_cbranches.
12027
12028 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
12029
12030 * config/sh/sh.md (delay for cbranch): Don't annul delay
12031 slots on SH2e.
12032 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
12033 cbranch with unfilled delay slot on SH2e.
12034 (output_branch): Fill with a nop the delay slot of a
12035 branch that required a delay slot but didn't get one.
12036
12037 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
12038
12039 * doc/invoke.texi (SH options): Document -m2e.
12040 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
12041 * config/sh/lib1funcs.asm: Likewise.
12042 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
12043 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
12044 not __sh1__.
12045 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
12046 SH2E up.
12047 (SH3E_BIT): Renamed to...
12048 (SH_E_BIT): ... this. Replace all uses.
12049 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
12050 Replace all uses of TARGET_SH3E with TARGET_SH2E.
12051 (TARGET_SWITCHES): Added 2e.
12052 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
12053 (processor_type): Added PROCESSOR_SH2E.
12054 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
12055 TARGET_SH2E, except in sqrtsf2_i.
12056 (attribute cpu): Added sh2e.
12057 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
12058 (MULTILIB_MATCHES): Use m2e multilib for m3e.
12059 * config.gcc: Add sh2e target support.
12060
65ca2d60
PE
120612003-01-24 Phil Edwards <pme@gcc.gnu.org>
12062
12063 Rename -W to -Wextra.
12064 * c-decl.c: Update comments.
12065 * c-typeck.c: Likewise.
12066 * flags.h: Likewise.
12067 * function.c: Likewise.
12068 * stmt.c: Likewise.
12069 * toplev.c: Update comments.
12070 (W_options): Add 'extra'.
12071 (display_help): Remove '-W'.
12072 (decode_W_option): Special warn_uninitialized treatment in the case
12073 of -Wextra.
12074 * doc/invoke.texi: Update with new entries.
12075
3de9c088
RH
120762003-01-23 Richard Henderson <rth@redhat.com>
12077
8324663f
RH
12078 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
12079 in no-else-block case. Add commentary.
3de9c088 12080
49691411
KG
120812003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12082
b4862477
KG
12083 * configure.in: Revert last change.
12084
120852003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12086
12087 * configure.in: Don't include ansidecl.h in tconfig.h.
49691411
KG
12088 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
12089 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
12090 ATTRIBUTE_UNUSED.
12091
12092 * configure: Regenerate.
12093
c4db7ecb
FS
120942003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12095
12096 PR java/6748
12097 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
12098 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
12099 kernels.
12100
fc69c47c
KG
121012003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12102
12103 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
12104
adbe6dfd
UW
121052003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
12106
12107 * genattrtab.c (write_attr_get): Mark 'insn' paramter
12108 as ATTRIBUTE_UNUSED.
12109
76a318e9
RE
121102003-01-23 Richard Earnshaw <rearnsha@arm.com>
12111
12112 * arm.c (thumb_base_register_rtx_p): New function.
12113 (thumb_index_register_rtx_p): New function.
12114 (thumb_legitimate_address_p): New function.
12115 (thumb_legitimate_offset_p): New function.
12116 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
8891b787 12117 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
76a318e9
RE
12118 definitions.
12119 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
12120 (THUMB_LEGITIMATE_OFFSET): Delte.
12121 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
12122 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
12123 (thumb_legitimate_offset_p): Likewise.
12124
9a600d0c
AS
121252003-01-23 Andreas Schwab <schwab@suse.de>
12126
12127 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
12128
2d110c0a
KG
121292003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12130
12131 * fixinc/Makefile.in (FL_LIST): Revert last change.
12132
2d1d9215
VR
121332003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12134
12135 PR other/7341
12136 * invoke.texi (ftest-coverage): Fix broken cross-reference.
12137 Change @code to @command for gcov command.
12138
12139 * gcc.texi: Adjust title of gcov section.
12140 Adjust copyright.
12141 * gcov.texi: Likewise.
12142
34ee7f82
RS
121432003-01-22 Roger Sayle <roger@eyesopen.com>
12144
12145 PR optimization/8423
12146 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
12147 its argument is constant, or 0 if !flag_gcse.
12148 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
12149 if it's argument is constant.
12150 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
12151 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
12152 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
12153 * builtins.c (purge_builtin_constant_p): New function to force
12154 instantiation of any remaining CONSTANT_P_RTX nodes.
12155 * rtl.h (purge_builtin_constant_p): Prototype here.
12156 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
12157 pass after GCSE and before loop.
12158 (flag_gcse): No longer static.
12159 * flags.h (flag_gcse): Prototype here.
12160
bab0b43b
UW
121612003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
12162
12163 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
12164 introduced by last change.
12165
7e657a61
AS
121662003-01-22 Andreas Schwab <schwab@suse.de>
12167
12168 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
12169
75a3503b
KH
121702003-01-22 Kazu Hirata <kazu@cs.umass.edu>
12171
12172 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
12173 request a scratch reg on H8S when the shift count is 8.
12174
4888ec5d
UW
121752003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
12176
12177 * config/s390/s390-protos.h (preferred_la_operand_p):
12178 Remove second parameter.
12179 * config/s390/s390.c (preferred_la_operand_p): Likewise.
12180 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
12181 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
12182 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
12183 Add peepholes to transform ADD to LOAD ADDRESS.
12184
6b990f6b
RE
121852003-01-22 Richard Earnshaw <rearnsha@arm.com>
12186
12187 * arm.c (arm_address_register_rtx_p): New function.
12188 (arm_legitimate_address_p): New function.
12189 (arm_legitimate_index_p): New function.
12190 (legitimize_pic_address): Use arm_legitimate_index_p.
12191 * arm-protos.h (arm_legtimate_address_p): Add prototype.
12192 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
12193 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
12194
f0bf1270
HP
121952003-01-22 Hartmut Penner <hpenner@de.ibm.com>
12196
12197 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
12198 * config/s390/2064.md (define_bypass): Correct 'Load' and
12199 'Load-address' bypass values.
21ff35fb 12200
fcb6a0f5
AS
122012003-01-22 Andreas Schwab <schwab@suse.de>
12202
12203 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
12204
c24b8026
ZW
122052003-01-21 Zack Weinberg <zack@codesourcery.com>
12206
12207 * genautomata.c (output_internal_insn_latency_func,
12208 output_print_reservation_func): Short circuit when there is no
12209 automaton to generate code for.
12210
38afe605
KG
122112003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12212
12213 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
12214 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
12215
d24652ee
GK
122162003-01-21 Geoffrey Keating <geoffk@apple.com>
12217
12218 * config/rs6000/rs6000.md: Remove warning.
12219 (builtin_setjmp_receiver): Likewise.
12220 * config/darwin.c (update_stubs): Slightly improve terrible hack
12221 with identifiers. Add comment pointing out problems with it.
12222 (update_non_lazy_ptrs): Likewise.
12223
1c99d804
RH
122242003-01-21 Richard Henderson <rth@redhat.com>
12225
12226 * dwarf2out.c (lookup_filename): Fix printf format warning.
12227 * system.h (fread_unlocked, fwrite_unlocked): Undef.
12228
12229 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
12230 (fixincl.o-warn, gnu-regex.o-warn): New.
12231 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
12232 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
12233 * fixinc/fixincl.c (process): Fix printf format warning.
12234
f0b886ab
UW
122352003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
12236
12237 * dwarf2out (output_file_names): Don't crash if called
12238 with empty file_table.
12239
490c57bb
ZW
122402003-01-21 Zack Weinberg <zack@codesourcery.com>
12241
12242 * genautomata.c (output_internal_insn_latency_func): Add
12243 missing break statement to generated code.
12244
100e3acb
RS
122452003-01-21 Roger Sayle <roger@eyesopen.com>
12246
12247 * stmt.c (same_case_target_p): New function to determine whether
12248 two case labels branch to the same target. Split out from...
12249 (group_case_nodes): ... here. Use same_case_target_p instead.
12250 (strip_default_case_nodes): Remove explicit case nodes
12251 that branch to the default destination.
12252 (expand_end_case_type): Call strip_default_case_nodes after
12253 group_case_nodes, to simplify the case-list before we count it.
12254 Only generate table_label RTX when actually needed. Try to share
12255 thiscase->exit_label and thiscase->data.case_stmt.default_label
12256 when a switch has no explicit default case. Simplify test for
12257 constant index.
12258
e8e8c1e5
KH
122592003-01-21 Kazu Hirata <kazu@cs.umass.edu>
12260
12261 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
12262 \t.
12263 (*negsf2_h8300hs): Likewise.
12264 (*addsi3_lshiftrt_16_zexthi): Likewise.
12265 (*iorhi3_lshiftrt_8): Likewise.
12266
044b4de3
UW
122672003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
12268
12269 * dwarf2out.c (fde_table_in_use): Mark GTY.
12270 (dwarf2out_cfi_label_num): New variable, marked GTY.
12271 (dwarf2out_cfi_label): Use it instead of static label_num.
12272 * emit-rtl.c (label_num): Mark GTY.
12273
cfedf91b
KH
122742003-01-21 Kazu Hirata <kazu@cs.umass.edu>
12275
12276 * config/h8300/h8300.c (output_plussi): Support H8/300.
12277 (compute_plussi_length): Likewise.
12278 (compute_plussi_cc): Likewise.
12279 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
12280 output assembly instructions.
12281
dd859b8a
KG
122822003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12283
1f5b3282
KG
12284 * calls.c (fix_unsafe_tree): Prototype.
12285
dd859b8a
KG
12286 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
12287 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
12288 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
12289 c-parse.o-warn): Add -Wno-error.
12290 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
12291
12292 * configure.in (--enable-werror): Add new flag.
12293 * doc/install.texi (--enable-werror): Document.
12294 * configure: Regenerate.
12295
12296 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
12297
4f9365e2
AS
122982003-01-21 Andreas Schwab <schwab@suse.de>
12299
12300 * genautomata.c (output_internal_insn_latency_func): Fix missing
12301 close paren in output.
12302
a543eb5e
ZW
123032003-01-21 Zack Weinberg <zack@codesourcery.com>
12304
12305 * genautomata.c: Space savings in generated code:
12306 (output_dfa_insn_code_func): Split out the table-enlargement
12307 path to an out-of-line static function, dfa_insn_code_enlarge.
12308 (output_internal_insn_latency_func): Use a lookup table for the
12309 default latencies.
12310 (output_print_reservation_func): Use a lookup table for the
12311 strings.
12312
292e35a3
CE
123132003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12314
12315 PR opt/7507
12316 * calls.c (fix_unsafe_tree): Split out from ...
12317 (expand_call): ... here. Use it on the function address too.
12318
d8d0f5af
RH
123192003-01-20 Richard Henderson <rth@redhat.com>
12320
12321 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
12322
5b50aa9d
RH
123232003-01-20 Richard Henderson <rth@redhat.com>
12324
515e1c9f 12325 PR opt/7154
5b50aa9d
RH
12326 * stmt.c (expand_asm_operands): Validize memory operands.
12327
7a174a15
RH
123282003-01-20 Richard Henderson <rth@redhat.com>
12329
12330 PR opt/8848
12331 * ifcvt.c (noce_process_if_block): Correct arguments to
12332 modified_between_p for no-else-block case.
12333
9ac7ebba
KH
123342003-01-20 Kazu Hirata <kazu@cs.umass.edu>
12335
12336 * config/h8300/h8300.c (const_costs): Remove a warning.
12337 (output_plussi): Likewise.
12338 (compute_plussi_length): Likewise.
12339 (compute_plussi_cc): Likewise.
12340
309c52b5
KH
123412003-01-20 Kazu Hirata <kazu@cs.umass.edu>
12342
12343 * config/h8300/h8300.md (addsi_h8300): Remove the last
12344 alternative.
12345
b30686ec
KH
123462003-01-20 Kazu Hirata <kazu@cs.umass.edu>
12347
12348 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
12349
87608693
KG
123502003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12351
12352 * system.h (__NO_STRING_INLINES): Define.
12353
475c8250
JDA
123542003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12355
12356 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
12357 is not a scalar int mode.
12358
dbaff908
RS
123592003-01-20 Roger Sayle <roger@eyesopen.com>
12360
12361 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
12362 insn's notes following a substitution inside a libcall.
12363
da8a6064
ZW
123642003-01-20 Zack Weinberg <zack@codesourcery.com>
12365
12366 * configure.in: Check for system-provided 'uchar' type.
a12b5bd9 12367 * configure, config.in: Regenerate.
da8a6064
ZW
12368 * cpphash.h: Only typedef 'uchar' if the system doesn't.
12369
a4b1b92a
RH
123702003-01-20 Richard Henderson <rth@redhat.com>
12371
12372 * expr.h (MUST_PASS_IN_STACK): Move implementation...
12373 * calls.c (default_must_pass_in_stack): ... here.
12374
d530b07f
VM
123752003-01-20 Vladimir Makarov <vmakarov@redhat.com>
12376
da8a6064
ZW
12377 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
12378
d530b07f
VM
12379 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
12380
12381 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
12382 Wrap up definition of `insn_alts'.
12383
12384 * genattrtab.c (main): Wrap up `insn_alts'.
12385
351df804
KG
123862003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12387
12388 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
12389 prototyping.
12390 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
da8a6064 12391
351df804
KG
12392 * config.in, configure: Regenerate.
12393
e3289412
NC
123942003-01-20 Nick Clifton <nickc@redhat.com>
12395
12396 * config/arm/arm.md (sibcall_epilogue): Add an
12397 UNSPEC_PROLOGUE_USE to prevent the link register from being
12398 considered dead.
12399
62c9aa5f 124002003-01-20 Jan Hubicka <jh@suse.cz>
5794139a
JH
12401
12402 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
12403
0a18ddf9
AS
124042003-01-20 Andreas Schwab <schwab@suse.de>
12405
12406 * system.h: Don't declare strsignal if the decl test hasn't been
12407 run yet.
12408
d99c740f
KH
124092003-01-20 Kazu Hirata <kazu@cs.umass.edu>
12410
12411 * config/h8300/h8300.c (notice_update_cc): Don't assume that
12412 recog_data.operands[0] is always associated with cc0.
12413
825c5408
DE
124142003-01-19 David Edelsohn <edelsohn@gnu.org>
12415
12416 * collect2.c (ldgetname): Expand declaration to prototype.
12417 * read-rtl.c (atoll): Add prototype.
da3e0142 12418 * system.h (strsignal): Also declare if no declaration found.
825c5408 12419
3bd6d4c4
AO
124202003-01-19 Alexandre Oliva <aoliva@redhat.com>
12421
12422 * config.gcc (mips64*-*-linux*): Added.
12423 * config/mips/linux64.h, config/mips/t-linux64: New file.
12424 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
12425 * config/mips/mips.c (override_options): Use it.
12426 * config/mips/mips.h (TARGET_SWITCHES): Added...
12427 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
12428 * Makefile.in (SPECS): New.
12429 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
12430 * gcc.c (process_command): Move self-spec processing past spec
12431 file loading.
12432 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
12433 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
12434 CRTSTUFF_T_CFLAGS.
12435 (SPECS): Document.
12436 * doc/invoke.texi (-mabi-fake-default): Document.
12437
e9f13564
SC
124382003-01-19 Stephane Carrez <stcarrez@nerim.fr>
12439
12440 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
12441 z_reg, z_reg_qi): Declare static and GTY().
12442 (da_reg): Remove.
12443 (create_regs_rtx): Don't create da_reg.
12444 ("gt-m68hc11.h"): Include for GTY roots.
12445 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
12446 and GTY() here.
12447 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
12448 (m68hc11_soft_tmp_reg): Likewise.
12449 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
12450
32dd366d
KH
124512003-01-18 Kazu Hirata <kazu@cs.umass.edu>
12452
12453 * basic-block.h: Fix comment formatting.
12454 * calls.c: Likewise.
12455 * combine.c: Likewise.
12456 * convert.c: Likewise.
12457 * gcov.c: Likewise.
12458 * haifa-sched.c: Likewise.
12459 * libgcc2.c: Likewise.
12460 * loop.c: Likewise.
12461 * profile.c: Likewise.
12462 * system.h: Likewise.
12463
bc3cb712
RS
124642003-01-18 Roger Sayle <roger@eyesopen.com>
12465
12466 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
12467
25e42e9d
KG
124682003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12469
12470 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
12471
6f9c81f5
DJ
124722003-01-17 Dale Johannesen <dalej@apple.com>
12473
da8a6064 12474 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
6f9c81f5
DJ
12475 (*floatunssidf2_internal): Ditto.
12476
95bd1dd7
KH
124772003-01-17 Kazu Hirata <kazu@cs.umass.edu>
12478
12479 * alias.c: Fix comment typos.
12480 * basic-block.h: Likewise.
12481 * c-common.c: Likewise.
12482 * c-common.h: Likewise.
12483 * c-decl.c: Likewise.
12484 * c-opts.c: Likewise.
12485 * c-pragma.c: Likewise.
12486 * c-pretty-print.h: Likewise.
12487 * cfg.c: Likewise.
12488 * cfganal.c: Likewise.
12489 * cfgbuild.c: Likewise.
12490 * cfgcleanup.c: Likewise.
12491 * cfglayout.c: Likewise.
12492 * cfgrtl.c: Likewise.
12493 * convert.c: Likewise.
12494 * cpphash.h: Likewise.
12495 * cpplex.c: Likewise.
12496 * cpplib.h: Likewise.
12497 * df.h: Likewise.
12498 * diagnostic.c: Likewise.
12499 * diagnostic.h: Likewise.
12500 * dwarf2.h: Likewise.
12501
d5840e09
SS
125022003-01-17 Stan Shebs <shebs@apple.com>
12503
12504 * config/darwin-protos.h: Forward-declare struct cpp_reader.
12505
e607534b
DR
125062003-01-17 Douglas B Rupp <rupp@gnat.com>
12507
12508 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
12509 mistake in last checkin.
12510
fbe5a4a6
KH
125112003-01-17 Kazu Hirata <kazu@cs.umass.edu>
12512
12513 * et-forest.c: Fix comment typos.
12514 * et-forest.h: Likewise.
12515 * except.c: Likewise.
12516 * expr.c: Likewise.
12517 * flags.h: Likewise.
12518 * flow.c: Likewise.
12519 * gcc.c: Likewise.
12520 * gcse.c: Likewise.
12521 * genattrtab.c: Likewise.
12522 * genautomata.c: Likewise.
12523 * gengtype.c: Likewise.
12524 * genrecog.c: Likewise.
12525 * global.c: Likewise.
12526 * gthr-rtems.h: Likewise.
12527
095f9093
KG
125282003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12529
12530 * i386.c (x86_function_profiler): Fix format specifier.
12531
084087e1
RH
125322003-01-17 Richard Henderson <rth@redhat.com>
12533
12534 * gengtype.c (walk_type): Allow paramN_is.
12535
4a13592e
NC
125362003-01-17 Nick Clifton <nickc@redhat.com>
12537
12538 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
12539
01193617
RH
125402003-01-16 Richard Henderson <rth@redhat.com>
12541
12542 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
12543
f030826a
RH
125442003-01-16 Richard Henderson <rth@redhat.com>
12545
12546 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
12547 (alpha_next_sequence_number): Likewise.
12548 (alpha_this_literal_sequence_number): Likewise.
12549 (alpha_this_gpdisp_sequence_number): Likewise.
12550 (struct alpha_funcs, alpha_funcs_num): Likewise.
12551 (struct alpha_links): Fix branch merge error.
12552 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
12553
e1551d47
AO
125542003-01-17 Alexandre Oliva <aoliva@redhat.com>
12555
12556 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
12557 R. Ghazi.
12558
3d042e77
KH
125592003-01-16 Kazu Hirata <kazu@cs.umass.edu>
12560
12561 * ifcvt.c: Fix comment typos.
12562 * lcm.c: Likewise.
12563 * libgcc2.c: Likewise.
12564 * local-alloc.c: Likewise.
12565 * loop.c: Likewise.
12566 * predict.c: Likewise.
12567 * ra-build.c: Likewise.
12568 * ra.c: Likewise.
12569 * ra-colorize.c: Likewise.
12570 * ra.h: Likewise.
12571 * ra-rewrite.c: Likewise.
12572 * regmove.c: Likewise.
12573 * reload.h: Likewise.
12574 * rtlanal.c: Likewise.
12575 * toplev.c: Likewise.
12576 * tree.h: Likewise.
12577 * unwind-dw2-fde-glibc.c: Likewise.
12578 * vmsdbgout.c: Likewise.
12579
c4274b22
RH
125802003-01-16 Richard Henderson <rth@redhat.com>
12581
12582 * dwarf2out.c (struct file_table): Remove.
12583 (FILE_TABLE_INCREMENT): Remove.
12584 (file_table): Make a varray; mark for GC. Update all users.
12585 (file_table_last_lookup_index): Extract from struct file_table.
12586 (output_file_names): Fix unsigned compare warnings.
12587 (add_name_attribute): Remove inline marker.
12588 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
12589 (lookup_filename): Don't manage size of file_table.
12590 (init_file_table): Allocate file_table with GC.
12591 (dwarf2out_init): Don't record main_input_filename here.
12592 (dwarf2out_finish): Do it here instead.
12593
19162d0e
BK
125942003-01-16 Bruce Korb <bkorb@gnu.org>
12595
12596 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
12597
f1e2239f
KK
125982003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
12599
da8a6064
ZW
12600 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
12601 instead of rotldi3_mextr.
f1e2239f 12602
cda1f765
VM
126032003-01-16 Vladimir Makarov <vmakarov@redhat.com>
12604
12605 * haifa-sched.c (move_insn): Restore moving all schedule group.
12606 (set_priorities): Restore taking SCHED_GROUP_P into account.
12607
12608 * sched-deps.c (add_dependence): Restore processing the last group
12609 insn.
12610 (remove_dependence, group_leader): Restore the functions.
12611 (set_sched_group_p): Restore adding dependencies from previous insn
12612 in the group.
12613 (compute_forward_dependences): Restore usage of group_leader.
12614
12615 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
12616 account.
12617
12618 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
12619 account.
12620 (can_schedule_ready_p): Ditto.
12621 (add_branch_dependences): Restore skipping over the group insns.
da8a6064 12622
200097cc
SC
126232003-01-16 Stephane Carrez <stcarrez@nerim.fr>
12624
12625 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
12626 68HC12 pre/post inc/dec side effects.
12627
f411c739
SC
126282003-01-16 Stephane Carrez <stcarrez@nerim.fr>
12629
12630 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
12631
62c9aa5f 126322003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
08c43ea7
R
12633
12634 * sh.md (mshflo_w_x): Fix description of operation.
12635
07488f32
ZW
126362003-01-16 Zack Weinberg <zack@codesourcery.com>
12637
12638 * config/rs6000/rs6000.h: Mention Altivec registers in
12639 commentary. Fix typo.
12640
27dc0551
DE
126412003-01-16 David Edelsohn <edelsohn@gnu.org>
12642
12643 * config/rs6000/rs6000.md (movti_string): Remove clobber.
12644 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
12645 generate PARALLEL with clobber for TARGET_POWER.
12646
0334ef47
KG
126472003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12648
12649 * ra-colorize.c (colorize_one_web): Initialize variable.
12650 * regmove.c (fixup_match_1): Likewise.
12651 * reload1.c (reload_as_needed): Likewise.
12652 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
12653
16f2b86a
ZD
126542003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12655
12656 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
12657
fc555370
KG
126582003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12659
93d8c755
KG
12660 * dbxout.c (lastfile, cwd): Fix `unused' warning.
12661 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
12662 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
12663 is_main_source, file_table, decl_die_table_in_use,
12664 abbrev_die_table_in_use, line_info_table_in_use,
12665 separate_line_info_table_in_use, pubname_table_in_use,
12666 arange_table_in_use, ranges_table_in_use,
12667 current_function_has_inlines): Likewise.
12668 * flow.c (life_analysis): Likewise.
12669 * genemit.c (gen_insn): Likewise.
12670 * protoize.c (cplus_suffix): Likewise.
12671
0c2ca901
KG
12672 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
12673 * arm.h (ROUND_UP_WORD): Likewise.
12674
fc555370
KG
12675 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
12676 warning.
12677 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
12678 init_emit_once): Likewise.
12679 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
12680 Likewise.
12681 * function.c (assign_stack_temp_for_type): Likewise.
12682 * loop.c (loop_invariant_p): Likewise.
12683 * recog.c (push_operand): Likewise.
12684 * regclass.c (init_reg_sets_1): Likewise.
12685 * reload.c (update_auto_inc_notes): Likewise.
12686 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
12687 * stmt.c (expand_asm_operands): Likewise.
12688 * stor-layout.c (start_record_layout): Likewise.
12689
64510a4f
HB
126902003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
12691
07488f32 12692 * config/c4x/c4x.md (epilogue): Correct last patch.
64510a4f 12693
77480b0b
RH
126942003-01-15 Richard Henderson <rth@redhat.com>
12695
12696 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
12697 also check that GP is being used.
12698 (alpha_find_lo_sum_using_gp): New.
12699 (alpha_does_function_need_gp): Use get_attr_usegp.
12700 * config/alpha/alpha-protos.h: Update.
12701 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
12702 as needed.
12703
a0134312
RS
127042003-01-15 Roger Sayle <roger@eyesopen.com>
12705
12706 * gcse.c (one_cprop_pass): Change function arguments to take both
12707 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
12708 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
12709 (bypass_jumps): New function to perform separate jump bypassing pass.
12710 * rtl.h (bypass_jumps): Add function prototype.
12711 * timevar.def (TV_BYPASS): New timing variable.
12712 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
12713 (dump_file): New entry for the bypass RTL dump file.
12714 (rest_of_compilation): Insert new jump bypassing optimization
12715 pass after loop.
12716 * doc/passes.texi: Document new pass.
12717
4af6a063
JDA
127182003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12719
12720 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
12721 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
12722 * pa.h (TARGET_SOM_SDEF): Define.
12723 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
12724
51e13b71
SC
127252003-01-16 Stephane Carrez <stcarrez@nerim.fr>
12726
07488f32 12727 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
51e13b71
SC
12728 allocate 4-bytes of locals on 68HC11.
12729 (expand_epilogue): Likewise.
12730 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
12731
f077f169
SC
127322003-01-15 Stephane Carrez <stcarrez@nerim.fr>
12733
12734 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
12735 and -mshort-double to the assembler to specify the ABI.
12736 (LINK_SPEC): Likewise.
12737 (CPP_SPEC): Pass HCS12 specific define.
12738 (MASK_M68S12): New define.
12739 (TARGET_M68S12): Likewise.
12740 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
12741 (TARGET_VERSION): Update.
12742 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
12743 (LINK_SPEC): Update.
12744 (ASM_SPEC): Update.
12745 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
12746 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
12747
c0f684dc
SC
127482003-01-15 Stephane Carrez <stcarrez@nerim.fr>
12749
12750 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
12751 the return code.
12752
6982ae15
JZ
127532003-01-15 Josef Zlomek <zlomekj@suse.cz>
12754
12755 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
12756 flag before setting it.
12757
8cadeff1
RS
127582003-01-15 Roger Sayle <roger@eyesopen.com>
12759
12760 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
12761 when loop condition is known true, i.e. "while (1) { ... }".
12762 (genrtl_for_stmt): Similarly for "for" statements.
12763
03cd8aba
RS
127642003-01-15 Roger Sayle <roger@eyesopen.com>
12765
12766 * real.c (real_sqrt): Return a bool result indicating whether
12767 a floating point exception or trap should be raised.
12768 * real.h (real_sqrt): Update function prototype.
12769 * builtins.c (fold_builtin): Only fold non-trapping square
12770 roots unless we're ignoring errno and trapping math.
12771
4da78214
JDA
127722003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
12773
12774 * expr.h (emit_conditional_add): Add PARAMS to declaration.
12775 * gengtype-lex.l (malloc, realloc): Move defines after include of
12776 system.h. Remove duplicate include of system.h.
12777
9ee0a442
RS
127782003-01-15 Roger Sayle <roger@eyesopen.com>
12779
12780 PR middle-end/9009
12781 * optabs.c (expand_unop): When manipulating the FP sign bit
12782 using integer operations, account for targets with different
12783 integer and FP word orders.
12784 (expand_abs): Likewise.
12785
e3981aab
DE
127862003-01-15 David Edelsohn <edelsohn@gnu.org>
12787
12788 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
12789 file extension in section name.
12790
89c4b810
RE
127912003-01-15 Richard Earnshaw <rearnsha@arm.com>
12792
12793 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
12794 constant offset.
12795
3cd45774
RE
127962003-01-15 Richard Earnshaw <rearnsha@arm.com>
12797
12798 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
12799 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
12800 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
12801 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
12802
62c9aa5f 128032003-01-15 Jan Hubicka <jh@suse.cz>
b1a6f8db
JH
12804
12805 PR f/9258
07488f32 12806 * global.c (struct allocno): Add no_stack_reg.
b1a6f8db
JH
12807 (global_conflicts): Set no_stack_reg.
12808 (find_reg): Use it.
12809
12810 * convert.c (convert_to_real): Fold - and abs only when profitable.
12811 * fold-const.c (fold): Fold truncates in - and abs.
12812
d18c7e59
JZ
128132003-01-15 Josef Zlomek <zlomekj@suse.cz>
12814
12815 Segher Boessenkool <segher@koffie.nl>
fbe3b30b
SB
12816
12817 * predict.c (real_inv_br_prob_base): New variable.
12818 (propagate_freq): Use multiply by reciprocal instead of
12819 division. Don't divide by 1.0 at all.
12820 (estimate_bb_frequencies): Similar.
12821
027faee7
AO
128222003-01-15 Alexandre Oliva <aoliva@redhat.com>
12823
12824 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
12825 * configure: Rebuilt.
12826
077dab3b 128272003-01-15 Hartmut Penner <hpenner@de.ibm.com>
3c0121e4 12828
077dab3b
HP
12829 * config/s390/s390.c (s390_safe_attr_type): New function.
12830 (s390_use_dfa_pipeline_interface): New function, return true for z900.
12831 (s390_issue_rate): New function.
12832 (s390_agen_dep_p): New function.
12833 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
12834 (s390_adjust_cost): Return 'cost' if new DFA is used.
12835 (s390_adjust_priority): Delete function.
12836 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
12837 * config/s390/s390.md (atype attribute): Attribute 'atype' default
12838 determined by 'op_type'.
12839 (type attribute): Added more type attributes.
12840 * config/s390/2064.md: New DFA description for z900 pipeline.
07488f32 12841
077dab3b 128422003-01-15 Alexandre Oliva <aoliva@redhat.com>
2b28d405 12843
acfa9d9f
AO
12844 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
12845 forced to memory. Fixes PR bootstrap/9036.
12846
3c0121e4
AO
12847 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
12848 to set $gp before the call.
12849
553eb139
RH
128502003-01-14 Richard Henderson <rth@redhat.com>
12851
12852 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
12853 for force_const_mem.
12854
dd1b7476
KG
128552003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12856
12857 * genattr.c (main): Rearrange output to avoid prototype warning.
12858 * genautomata.c (transform_3): Fix ambiguous-else warning.
12859 * local-alloc.c (requires_inout): Add parentheses around
12860 assignment used as truth-value.
12861 * timevar.c: Move system includes above local includes. Include
12862 toplev.h
12863 * Makefile.in (timevar.o): Depend on toplev.h.
12864
6028880a
DC
128652003-01-14 Denis Chertykov <denisc@overta.ru>
12866
12867 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
12868 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
12869
12870 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
07488f32 12871 attributes.
6028880a
DC
12872 (TARGET_ATTRIBUTE_TABLE): New macro.
12873 (valid_machine_type_attribute): Remove.
12874 (valid_machine_decl_attribute): Remove.
12875 (ip2k_handle_progmem_attribute): New function.
12876 (ip2k_handle_fndecl_attribute): New function.
12877
4a2953e4 128782003-01-10 Andrew Haley <aph@redhat.com>
a686ea5b
AH
12879
12880 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
12881 registers to be in correct order. Add rip.
12882
4d77fda2
KH
128832003-01-14 Kazu Hirata <kazu@cs.umass.edu>
12884
12885 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
12886 (*iorsi3_and_lshiftrt_9_sb): Likewise.
12887
62c9aa5f 128882003-01-14 Jan Hubicka <jh@suse.cz>
77f9af81
JH
12889
12890 * convert.c (strip_float_extensions): Look for narrowest type handling
12891 FP constants.
12892
12893 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
12894 float1 CMP float2.
12895 * convert.c (strip_float_extensions): Make global.
12896 * tree.h (strip_float_extensions): Declare.
12897
fd371a93
GDR
128982003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
12899
12900 * timevar.def: define TV_NAME_LOOKUP.
12901 * timevar.c (timevar_pop): Be verbose when aborting.
12902
dcd1c2b8
AS
129032003-01-13 Andreas Schwab <schwab@suse.de>
12904
12905 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
12906 $(parsedir), just move the temporary file at the end.
12907 ($(parsedir)/gengtype-yacc.c): Likewise.
12908
eb4b5f93
AO
129092003-01-13 Alexandre Oliva <aoliva@redhat.com>
12910
12911 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
12912 ${ac_tool_prefix} to ADAC or CC. Protect them from word
12913 splitting.
12914 * configure: Rebuilt.
12915
f7835768
KG
129162003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12917
12918 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
12919 internal_mcount): Don't use PARAMS.
12920 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
12921 ISO C style.
12922 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
12923
38a3dbbb
AS
129242003-01-13 Andreas Schwab <schwab@suse.de>
12925
12926 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
12927 directive.
12928
98dc53e3
KH
129292003-01-13 Kazu Hirata <kazu@cs.umass.edu>
12930
12931 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
12932 (*iorsi3_and_lshiftrt_n_sb): Likewise.
12933
e8f2b18d
MM
129342003-01-12 Mark Mitchell <mark@codesourcery.com>
12935
12936 PR c++/9264
12937 * c-lex.c (c_lex): Set the token value to error_mark_node for
12938 invalid numeric constants.
12939
70f8b89f
KG
129402003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12941
12942 * c-pch.c (asm_file_startpos): Change to `long'.
12943 (pch_init): Use ftell, not ftello.
12944 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
12945 Use `long' instead of `off_t'.
12946 (c_common_read_pch): Likewise.
12947 * ggc-common.c (gt_pch_save): Use long/ftell instead of
12948 off_t/ftello.
12949
8e37cba8
AM
129502003-01-12 Alan Modra <amodra@bigpond.net.au>
12951
12952 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
12953
04f08c8e
RE
129542003-01-11 Richard Earnshaw (rearnsha@arm.com)
12955
12956 * arm-protos.h (struct cpp_reader): Add declaration.
12957
62c9aa5f 129582003-01-11 Jan Hubicka <jh@suse.cz>
a5cf80f0
JH
12959
12960 PR target/9068
12961 * i386.c (output_fp_compare): Fix typo.
12962
bbfb86aa
DE
129632003-01-10 David Edelsohn <edelsohn@gnu.org>
12964
12965 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
12966
223b87b6
GK
129672003-01-10 Geoffrey Keating <geoffk@apple.com>
12968
3859c32a
GK
12969 * Makefile.in (parsedir): New variable.
12970 (docobjdir): New variable.
07488f32 12971 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
3859c32a
GK
12972 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
12973 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
12974 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
07488f32 12975 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
3859c32a
GK
12976 Use docobjdir.
12977 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
12978 objc.maintainer-clean): Use parsedir.
12979
63af3bd1
GK
12980 * varasm.c (struct constant_descriptor_rtx): Remove unused
12981 `label' field.
12982
223b87b6
GK
12983 * toplev.c (documented_lang_options): Document -Winvalid-pch.
12984
fbadafbc
RH
129852003-01-10 Richard Henderson <rth@redhat.com>
12986
12987 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
12988 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
12989
ab5ecb01
RH
129902003-01-10 Richard Henderson <rth@redhat.com>
12991
12992 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
12993 not INTEGRAL_MODE_P when widening extensions.
12994
7f24e7c5
RH
129952003-01-10 Richard Henderson <rth@redhat.com>
12996
12997 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
12998
6dd05d08
GK
129992003-01-10 Geoffrey Keating <geoffk@apple.com>
13000
19cc0dd4
GK
13001 * ggc-page.c (ggc_collect): Avoid overflow computing
13002 min_expand.
13003
6dd05d08
GK
13004 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
13005 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
13006 Remove calls.
13007 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
13008
62c9aa5f 130092003-01-10 Jan Hubicka <jh@suse.cz>
5f1355ef
JH
13010
13011 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
13012 with weird operands.
13013
0cdca92b 130142003-01-10 Dale Johannesen <dalej@apple.com>
6dd05d08
GK
13015
13016 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
13017 parameters. Call check_sibcall_argument_overlap if indicated.
13018 (check_sibcall_argument_overlap): Add mark_stored_args_map
13019 parameter. Don't mark parameter area as clobbered if not set.
13020 (expand_call): Adjust calls to above.
13021
130222003-01-10 Kelley Cook <kelleycook@comcast.net>
6cd656d0
KC
13023
13024 * configure.in (linker read-only and read-write section mixing):
13025 Squelch some assembler warnings.
13026 * configure: Likewise.
13027
be2c2a4b
HP
130282003-01-10 Hartmut Penner <hpenner@de.ibm.com>
13029
21ff35fb 13030 * doc/invoke.texi: Document -mtune, delete -mcpu
be2c2a4b
HP
13031 option for S/390 and zSeries.
13032 * config/s390/s390.c (s390_tune_string) New variable.
13033 (s390_cpu_string) Delete variable.
13034 (override_options): Use s390_tune_string instead of
13035 s390_cpu_string.
13036 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
13037
1f450138
KH
130382003-01-10 Kazu Hirata <kazu@cs.umass.edu>
13039
13040 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
13041
d330ce15
JZ
130422003-01-10 Josef Zlomek <zlomekj@suse.cz>
13043
13044 * jump.c (next_nonnote_insn_in_loop): New function.
13045 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
13046 next_nonnote_insn.
13047 (duplicate_loop_exit_test). Likewise.
13048
17211ab5
GK
130492003-01-09 Geoffrey Keating <geoffk@apple.com>
13050
13051 Merge from pch-branch:
13052
13053 2003-01-06 Geoffrey Keating <geoffk@apple.com>
13054
13055 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
13056 load.
13057
13058 2002-12-24 Geoffrey Keating <geoffk@apple.com>
13059
13060 * cpplib.c (count_registered_pragmas): New function.
13061 (save_registered_pragmas): New function.
13062 (_cpp_save_pragma_names): New function.
13063 (restore_registered_pragmas): New function.
13064 (_cpp_restore_pragma_names): New function.
13065 * cpphash.h (_cpp_save_pragma_names): Prototype.
13066 (_cpp_restore_pragma_names): Likewise.
13067 * cpppch.c (struct save_macro_item): Split from save_macro_data.
13068 (struct save_macro_data): New field 'saved_pragmas'.
13069 (save_macros): Update for changes to struct save_macro_data.
13070 (cpp_prepare_state): Call _cpp_save_pragma_names, update
13071 for changes to struct save_macro_data.
13072 (cpp_read_state): Call _cpp_restore_pragma_names, update
13073 for changes to struct save_macro_data.
13074
13075 * cpppch.c (cpp_read_state): Restore the hashtable references
13076 in the cpp_reader.
07488f32 13077
17211ab5
GK
13078 * tree.h (built_in_decls): Mark for PCH.
13079
13080 * dbxout.c (lastfile): Don't mark for PCH.
13081
13082 * ggc.h: Document PCH calls into memory managers.
13083
13084 2002-12-18 Geoffrey Keating <geoffk@apple.com>
13085
13086 * doc/invoke.texi (Precompiled Headers): Document the
13087 directory form of PCH.
13088 * cppfiles.c (validate_pch): New function.
13089 (open_file_pch): Search suitably-named directories for PCH files.
13090
13091 2002-12-14 Geoffrey Keating <geoffk@apple.com>
13092
13093 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
13094 reorder options.
13095 (Type Information): Mention that the information is also
13096 used to implement PCH.
13097 * doc/passes.texi (Passes): Improve documentation of
13098 language-specific files.
13099
13100 2002-12-11 Geoffrey Keating <geoffk@apple.com>
13101
13102 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
13103 (struct walk_type_data): Add reorder_fn field.
13104 (walk_type): Process 'reorder' option.
13105 (write_types_process_field): Reorder parameters to gt_pch_note_object,
13106 call reorder_note_routine.
13107 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
13108 (ggc_wtd): Update for change to struct write_types_data.
13109 (pch_wtd): Likewise.
13110 * ggc.h (gt_pch_note_object): Reorder parameters.
13111 (gt_handle_reorder): New definition.
13112 (gt_pch_note_reorder): New prototype.
13113 * ggc-common.c (struct ptr_data): Add reorder_fn.
13114 (gt_pch_note_object): Reorder parameters.
13115 (gt_pch_note_reorder): New.
13116 (gt_pch_save): Call reorder_fn.
13117 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
13118
13119 * dbxout.c (cwd): Don't mark for PCH.
13120
13121 2002-12-09 Geoffrey Keating <geoffk@apple.com>
13122
13123 * gengtype.c (finish_root_table): Fix some warnings.
13124 (write_root): Handle TYPE_STRING.
13125 * ggc.h (gt_ggc_m_S): Add prototype.
13126 * stringpool.c (gt_ggc_m_S): New function.
13127
13128 2002-11-30 Geoffrey Keating <geoffk@apple.com>
13129
13130 * dwarf2out.c (dw2_string_counter): New.
13131 (AT_string_form): Use it.
13132 (same_dw_val_p): Update for removal of hashtable.h hash tables.
13133
13134 2002-11-22 Geoffrey Keating <geoffk@apple.com>
13135
13136 * dbxout.c: Include gt-dbxout.h.
13137 (lastfile): Mark for PCH/GGC.
13138 (cwd): Likewise.
13139 (struct typeinfo): Likewise.
13140 (typevec): Likewise.
13141 (typevec_len): Likewise.
13142 (next_type_number): Likewise.
13143 (struct dbx_file): Likewise.
13144 (current_file): Likewise.
13145 (next_file_number): Likewise.
13146 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
13147 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
13148 (dbxout_end_source_file): Don't free struct dbx_file.
13149 (dbxout_type): Use GGC to allocate typevec.
13150 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
13151 (GTFILES): Add dbxout.c.
13152 (gt-dbxout.h): New rule.
07488f32 13153
17211ab5
GK
13154 * Makefile.in (c-pch.o): Add debug.h as dependency.
13155 * c-pch.c: Include debug.h.
13156 (pch_init): Call start_source_file to keep nesting right.
13157 (c_common_read_pch): Add orig_name parameter. Call
13158 start_source_file debug hook. Call end_source_file debug hook.
13159 * c-common.h (c_common_read_pch): Update prototype.
13160 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
13161 callback.
13162 * cppfiles.c (struct include_file): Add new field `header_name'.
13163 (find_or_create_entry): Default it to `name'.
13164 (open_file_pch): Set it to the original header file searched for.
13165 (stack_include_file): Don't stack an empty buffer, just handle
13166 PCH files immediately. Pass header_name field to read_pch callback.
13167
13168 2002-11-19 Geoffrey Keating <geoffk@apple.com>
13169
13170 * function.c (funcdef_no): Mark to be saved in a PCH.
13171
13172 2002-11-15 Geoffrey Keating <geoffk@apple.com>
13173
13174 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
13175
13176 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
13177
13178 2002-11-14 Geoffrey Keating <geoffk@apple.com>
13179
13180 * optabs.h (code_to_optab): Add GTY marker.
13181
13182 2002-11-13 Geoffrey Keating <geoffk@apple.com>
13183
13184 * Makefile.in (GTFILES): Add cpplib.h.
13185 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
13186 * c-decl.c (build_compound_literal): Don't use var_labelno.
13187 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
13188 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
13189 * varasm.c (const_labelno): Use gengtype to mark.
13190 (var_labelno): Likewise.
13191 (in_section): Likewise.
13192 (in_named_name): Likewise.
13193 (struct in_named_entry): Likewise.
13194 (in_named_htab): Likewise.
13195 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
13196 (init_varasm_once): Use GGC to allocate in_named_htab.
13197 * config/darwin.c (current_pic_label_num): Mark for PCH.
13198
13199 2002-11-11 Geoffrey Keating <geoffk@apple.com>
13200
13201 * ggc-simple.c (init_ggc_pch): New stub procedure.
13202 (ggc_pch_count_object): Likewise.
13203 (ggc_pch_total_size): Likewise.
13204 (ggc_pch_this_base): Likewise.
13205 (ggc_pch_alloc_object): Likewise.
13206 (ggc_pch_prepare_write): Likewise.
13207 (ggc_pch_write_object): Likewise
13208 (ggc_pch_finish): Likewise.
13209 (ggc_pch_read): Likewise.
13210
13211 2002-11-08 Geoffrey Keating <geoffk@apple.com>
13212
13213 * c-pch.c (c_common_write_pch): Write the macro definitions after
13214 the GCed data.
13215 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
13216 definitions after the GCed data.
13217 * cpplib.c (save_macros): New.
13218 (reset_ht): New.
13219 (cpp_write_pch_deps): Split out of cpp_write_pch.
13220 (cpp_write_pch_state): Split out of cpp_write_pch.
13221 (cpp_write_pch): Delete.
13222 (struct save_macro_data): Delete.
13223 (cpp_prepare_state): New.
13224 (cpp_read_state): Erase and restore initial macro definitions.
13225 * cpplib.h (struct save_macro_data): Forward-declare.
13226 (cpp_write_pch_deps): Prototype.
13227 (cpp_write_pch_state): Prototype.
13228 (cpp_write_pch): Delete prototype.
13229 (cpp_prepare_state): Prototype.
13230 (cpp_read_state): Add fourth argument.
13231
13232 2002-11-04 Geoffrey Keating <geoffk@apple.com>
13233
13234 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
13235 (write_array): Remove warning.
13236
13237 * gengtype.c (contains_scalar_p): New.
13238 (finish_root_table): Add the table to all languages, even if it's
13239 empty.
13240 (write_roots): Output gt_pch_scalar_rtab.
13241 * ggc-common.c (gt_pch_save): Write out scalars.
13242 (gt_pch_restore): Read scalars back.
13243
13244 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
13245 (struct page_entry): Delete pch_page field.
13246 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
13247 (clear_marks): Likewise.
13248 (sweep_pages): Likewise.
13249 (poison_pages): Likewise.
13250 (ggc_print_statistics): Likewise.
13251 (ggc_pch_read): Don't free objects read from a PCH.
13252 Properly set up in_use_p and page_tails.
13253
13254 2002-10-25 Geoffrey Keating <geoffk@apple.com>
13255
13256 * gengtype.c (struct write_types_data): New.
13257 (struct walk_type_data): Make `cookie' const; add extra
13258 prev_val item; add `orig_s' field.
13259 (walk_type): Update prev_val[3].
13260 (write_types_process_field): New.
13261 (write_func_for_structure): Take write_types_data structure.
13262 (write_types): New.
13263 (ggc_wtd): New.
13264 (pch_wtd): New.
13265 (write_types_local_process_field): New.
13266 (gc_mark_process_field): Delete.
13267 (write_local_func_for_structure): New.
13268 (gc_mark_func_name): Delete.
13269 (write_gc_types): Delete.
13270 (write_local): New.
13271 (finish_root_table): Don't include 'ggc_' in PFX.
13272 (write_root): Rename from write_root. Fill pchw field of structures.
13273 (write_array): New.
13274 (write_roots): Rename from write_gc_roots. Split out to write_array.
13275 Update to changes to other routines. Write gt_pch_cache_rtab table.
13276 (main): Write PCH walking routines.
13277 * ggc-common.c: Include toplev.h, sys/mman.h.
13278 (ggc_mark_roots): For cache hashtables, also mark the hash table
13279 and the array of entries.
13280 (saving_htab): New.
13281 (struct ptr_data): New.
13282 (POINTER_HASH): New.
13283 (gt_pch_note_object): New.
13284 (saving_htab_hash): New.
13285 (saving_htab_eq): New.
13286 (struct traversal_state): New.
13287 (call_count): New.
13288 (call_alloc): New.
13289 (compare_ptr_data): New.
13290 (relocate_ptrs): New.
13291 (write_pch_globals): New.
13292 (struct mmap_info): New.
13293 (gt_pch_save): New.
13294 (gt_pch_restore): New.
13295 * ggc-page.c (ROUND_UP_VALUE): New.
13296 (ROUND_UP): New.
13297 (struct page_entry): Add field `pch_page'.
13298 (init_ggc): Use ROUND_UP.
13299 (struct ggc_pch_data): Declare.
13300 (init_ggc_pch): New.
13301 (ggc_pch_count_object): New.
13302 (ggc_pch_total_size): New.
13303 (ggc_pch_this_base): New.
13304 (ggc_pch_alloc_object): New.
13305 (ggc_pch_prepare_write): New.
13306 (ggc_pch_write_object): New.
13307 (ggc_pch_finish): New.
13308 (ggc_pch_read): New.
13309 * ggc.h (gt_pointer_operator): New.
13310 (gt_note_pointers): New.
13311 (gt_pch_note_object): New prototype.
13312 (gt_pointer_walker): New.
13313 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
13314 (LAST_GGC_ROOT_TAB): Update.
13315 (gt_pch_cache_rtab): Declare.
13316 (gt_pch_scalar_rtab): Declare.
13317 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
13318 (LAST_GGC_CACHE_TAB): Update.
13319 (gt_pch_save_stringpool): Declare.
13320 (gt_pch_restore_stringpool): Declare.
13321 (gt_pch_p_S): Declare.
13322 (gt_pch_n_S): Declare.
13323 (struct ggc_pch_data): Forward-declare.
13324 (init_ggc_pch): Declare.
13325 (ggc_pch_count_object): Declare.
13326 (ggc_pch_total_size): Declare.
13327 (ggc_pch_this_base): Declare.
13328 (ggc_pch_alloc_object): Declare.
13329 (ggc_pch_prepare_write): Declare.
13330 (ggc_pch_write_object): Declare.
13331 (ggc_pch_finish): Declare.
13332 (ggc_pch_read): Declare.
13333 (gt_pch_save): Declare.
13334 (gt_pch_restore): Declare.
13335 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
13336 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
13337 const_double_htab, mem_attrs_htab using GGC.
13338 * c-pch.c: Include ggc.h.
13339 (pch_init): Allow reading PCH file back.
13340 (c_common_write_pch): Call gt_pch_save.
13341 (c_common_read_pch): Call gt_pch_restore.
13342 * c-parse.in (init_reswords): Delete now-untrue comment.
13343 Allocate ridpointers using GGC.
13344 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
13345 calling expand_deferred_fns.
13346 * c-common.h (ridpointers): Mark for GTY machinery.
13347 * Makefile.in (stringpool.o): Update dependencies.
13348 (c-pch.o): Update dependencies.
13349 (ggc-common.o): Update dependencies.
13350 * stringpool.c: Include gt-stringpool.h.
13351 (gt_pch_p_S): New.
13352 (gt_pch_n_S): New.
13353 (struct string_pool_data): New.
13354 (spd): New.
13355 (gt_pch_save_stringpool): New.
13356 (gt_pch_restore_stringpool): New.
13357 * tree.c (init_ttree): Make type_hash_table allocated using GC.
07488f32 13358
17211ab5
GK
13359 2002-10-04 Geoffrey Keating <geoffk@apple.com>
13360
13361 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
13362 (output_mangled_typename): Don't pass size_t to printf.
13363
13364 * tree.h (union tree_type_symtab): Add tag to `address' field.
13365 (union tree_decl_u2): Add tag to 'i' field.
13366 * varasm.c (union rtx_const_un): Add tags to all fields.
13367 * gengtype.c (struct walk_type_data): New.
13368 (output_escaped_param): Take struct walk_type_data parameter.
13369 (write_gc_structure_fields): Delete.
13370 (walk_type): New.
13371 (write_gc_marker_routine_for_structure): Delete.
13372 (write_func_for_structure): New.
13373 (gc_mark_process_field): New.
13374 (gc_mark_func_name): New.
13375 (gc_counter): Delete.
13376 (write_gc_types): Use write_func_for_structure.
13377 (write_gc_roots): Use walk_type.
13378
13379 2002-10-02 Geoffrey Keating <geoffk@apple.com>
13380
13381 * ggc-common.c (ggc_mark_roots): Delete 'x'.
13382 (ggc_splay_dont_free): Fix warning about unused 'x'.
13383 (ggc_print_common_statistics): Remove warnings.
13384
13385 2002-10-01 Mike Stump <mrs@apple.com>
13386
07488f32
ZW
13387 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
13388 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17211ab5
GK
13389
13390 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
13391 Catherine Moore <clm@redhat.com>
13392
13393 * Makefile (c-pch.o): Update dependencies.
13394 (LIBCPP_OBJS): Add cpppch.o.
13395 (cpppch.o): New.
13396 * c-common.c (c_common_init): Don't call pch_init here.
13397 * c-common.h (c_common_read_pch): Update prototype.
13398 * c-lex.c (c_common_parse_file): Call pch_init here.
13399 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
13400 (c_common_decode_option): Handle them.
13401 * c-pch.c: Include c-pragma.h.
13402 (save_asm_offset): Delete.
13403 (pch_init): Move contents of save_asm_offset into here, call
13404 cpp_save_state.
13405 (c_common_write_pch): Call cpp_write_pch.
13406 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
13407 cpp_valid_state.
13408 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
07488f32 13409 * cppfiles.c (stack_include_file): Update for change to
17211ab5
GK
13410 parameters of cb.read_pch.
13411 * cpphash.h (struct cpp_reader): Add `savedstate' field.
13412 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
13413 `restore_pch_deps' fields.
13414 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
13415 (cpp_save_state): Prototype.
13416 (cpp_write_pch): Prototype.
13417 (cpp_valid_state): Prototype.
13418 (cpp_read_state): Prototype.
13419 * cpppch.c: New file.
13420 * flags.h (version_flag): Remove prototype.
13421 * mkdeps.c (deps_save): New.
13422 (deps_restore): New.
13423 * mkdeps.h (deps_save): Prototype.
13424 (deps_restore): Prototype.
13425 * toplev.c (late_init_hook): Delete.
13426 (version_flag): Make static again.
13427 (compile_file): Don't call late_init_hook.
13428 * toplev.h (late_init_hook): Delete.
13429 * doc/cppopts.texi: Document -fpch-deps.
13430 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
13431
13432 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
13433
13434 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
13435 callers.
13436 (c_common_valid_pch): Rename from c_valid_pch, change callers.
13437 (c_common_read_pch): Rename from c_read_pch, change callers.
13438
13439 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
13440 a space between it and its argument.
13441
13442 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
13443
13444 * c-pch.c: New file.
13445 * toplev.h (late_init_hook): Declare.
13446 * toplev.c (late_init_hook): Define.
13447 (version_flag): Make globally visible.
13448 (compile_file): Call late_init_hook.
13449 (init_asm_output): Make output file seekable.
13450 * gcc.c (default_compilers): Update c-header rule.
13451 * flags.h (version_flag): Declare.
13452 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
13453 fields.
13454 * cppfiles.c (struct include_file): Add 'pch' field.
13455 (INCLUDE_PCH_P): New.
13456 (open_file_pch): New.
13457 (stack_include_file): Handle PCH files specially.
13458 (find_include_file): Call open_file_pch instead of open_file.
13459 (_cpp_read_file): Explain why open_file is used instead of
13460 open_file_pch.
13461 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
13462 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
13463 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
13464 in cpplib callbacks.
13465 * c-common.c (pch_file): Correct comment.
13466 (allow_pch): Define.
13467 (c_common_init): Call pch_init.
13468 * c-common.h (allow_pch): Declare.
13469 (pch_init): Declare.
13470 (c_valid_pch): Declare.
13471 (c_read_pch): Declare.
13472 (c_write_pch): Declare.
13473 * Makefile.in (c-pch.o): New.
13474 (C_AND_OBJC_OBJS): Add c-pch.o.
13475 * doc/invoke.texi (Precompiled Headers): Add index entries,
13476 complete truncated paragraph.
13477
13478 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
13479
13480 * c-common.c: (pch_file): Define.
13481 * c-common.h (pch_file): Declare.
13482 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
13483 (missing_arg): Require --output-pch= to have an argument.
13484 (c_common_decode_option): Handle --output-pch=.
13485 * gcc.c: Document new %V.
13486 (default_compilers): Handle compiling C header files.
13487 (do_spec_1): Implement %V.
13488 (main): Handle "gcc foo.h" without trying to run linker.
13489 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
13490 (Overall Options): Document what the driver does with header files,
13491 document new -x option possibilities.
13492 (Invoking G++): More documentation for PCH.
13493 (Precompiled Headers): New.
13494
13495 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
13496
13497 * ggc.h: Don't include varray.h. Rearrange functions to be more
13498 organized.
13499 (ggc_add_root): Delete.
13500 (ggc_mark_rtx): Delete.
13501 (ggc_mark_tree): Delete.
13502 (struct ggc_statistics): Remove contents.
13503 * ggc-common.c: Remove unneeded includes.
13504 (struct ggc_root): Delete.
13505 (roots): Delete.
13506 (ggc_add_root): Delete.
13507 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
13508 (ggc_print_common_statistics): Remove most of the contents.
13509 * Makefile.in (GGC_H): No longer uses varray.h.
13510 (ggc-common.o): Update dependencies.
13511 (c-parse.o): Add varray.h to dependencies.
13512 (c-common.o): Add varray.h.
13513 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
13514 (mark_ident_hash): Rename to ggc_mark_stringpool.
13515 (init_stringpool): Don't use ggc_add_root.
13516 * c-parse.in: Include varray.h.
13517 * c-common.c: Include varray.h.
13518 * objc/Make-lang.in (objc-act.o): Add varray.h.
13519 * objc/objc-act.c: Include varray.h.
13520
13521 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
13522
13523 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
13524 (dw_cfi_oprnd1_desc): Likewise.
13525
13526 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
13527
13528 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
13529 move out of ifdef.
13530 (alpha_links): Use gengtype to mark; move out of ifdef.
13531 (mark_alpha_links_node): Delete.
13532 (mark_alpha_links): Delete.
13533 (alpha_need_linkage): Use GGC to allocate splay tree, struct
13534 alpha_links, strings. Don't use ggc_add_root.
13535 * ggc-common.c (ggc_splay_alloc): New.
13536 (ggc_splay_dont_free): New.
13537 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
13538 (ggc_mark_tree): Likewise.
13539 (splay_tree_new_ggc): New.
13540 (ggc_splay_alloc): Declare.
13541 (ggc_splay_dont_free): Declare.
13542 * dwarf2asm.c: Include gt-dwarf2asm.h.
13543 (mark_indirect_pool_entry): Delete.
13544 (mark_indirect_pool): Delete.
13545 (indirect_pool): Use gengtype to mark.
13546 (dw2_force_const_mem): Don't use ggc_add_root.
13547 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
13548 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
13549 (gt-dwarf2asm.h): Depend on s-gtype.
13550
13551 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
13552
13553 * tree.h (union tree_type_symtab): Mark `die' field.
13554 * Makefile.in (dwarf2out.o): Update dependencies.
13555 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
13556 hash tables.
13557 (dw_cfi_oprnd1_desc): New function.
13558 (dw_cfi_oprnd2_desc): New function.
13559 (indirect_string_alloc): Delete.
13560 (debug_str_do_hash): New function.
13561 (debug_str_eq): New function.
13562 (mark_limbo_die_list): Delete.
13563 (dwarf2out_init): Don't call ggc_add_root.
13564
30028c85
VM
135652003-01-09 Vladimir Makarov <vmakarov@redhat.com>
13566
13567 The following changes are merged from itanium-sched-branch:
13568
13569 2003-01-08 David Edelsohn <edelsohn@gnu.org>
13570
13571 * doc/md.texi: Clarify assignment of units to automata description.
13572
13573 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
13574
13575 * genautomata.c (unit_decl): Remove members
13576 `the_same_automaton_unit' and
13577 `the_same_automaton_message_reported_p'.
13578 (process_unit_to_form_the_same_automaton_unit_lists,
13579 form_the_same_automaton_unit_lists_from_regexp,
13580 form_the_same_automaton_unit_lists, the_same_automaton_lists):
13581 Remove them.
13582 (annotation_message_reported_p): New global variable.
13583 (check_unit_distribution_in_reserv,
13584 check_regexp_units_distribution): New functions.
13585 (check_unit_distributions_to_automata): Rewrite it.
13586
13587 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
13588
13589 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
13590 Use continue instead of break if cycle is too big.
13591
13592 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
13593
13594 * genautomata.c (check_unit_distributions_to_automata): Output at
13595 most one message for a unit.
13596 (process_unit_to_form_the_same_automaton_unit_lists): Check
13597 automaton of units instead of units themself.
13598
13599 * doc/md.texi: Describe the constraint about assigning unit to
13600 automata.
13601
13602 2002-12-20 Jan Hubicka <jH@suse.cz>
13603 Vladimir Makarov <vmakarov@redhat.com>
13604
13605 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
13606 and `in_set_p'.
13607 (gen_cpu_unit): Initialize the new members.
13608 (process_regexp_cycles): Calculate minimal finish cycle too. Set
13609 up `min_occ_cycle_num'.
13610 (evaluate_max_reserv_cycles): Change the function call.
13611 (CLEAR_BIT): New macro.
13612 (states_union, state_shift): Use the mask.
13613 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
13614 (form_reservs_matter): New function.
13615 (make_automaton): Call the function and use the mask.
13616 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
13617 account.
07488f32 13618
30028c85
VM
13619 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
13620
13621 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
13622
13623 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
13624
13625 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
13626 for Itanium.
13627
13628 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
13629
13630 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
13631 default cpu.
13632
13633 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
13634 2002-10-31 Dale Johannesen <dalej@apple.com>
13635
13636 * haifa-sched.c (find_set_reg_weight): New function.
13637 (find_insn_reg_weight): Use the new function.
13638 (schedule_block): Do sorting ready queue always
13639 after insn issue.
13640
13641 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
13642
13643 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
13644
13645 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
13646
13647 * haifa-sched.c (choice_entry): New structure.
13648 (choice_stack, cycle_issued_insns): New variables.
13649 (max_issue): Rewrite it.
13650 (choose_ready): Set up ready_try for unknown insns too.
13651 (schedule_block): Allocate and free choice_stack. Set up
13652 and modify cycle_issued_insns.
13653
13654 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
13655 with and without filling the bundle.
13656 (bundling): Combine calls of issue_nops_and_insn.
07488f32 13657
30028c85
VM
13658 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
13659
13660 * config/ia64/itanium1.md: New file.
13661
13662 * config/ia64/itanium2.md: New file.
13663
13664 * config/ia64/ia64.md: Move DFA descriptions into the new files.
13665 Remove the old pipeline description.
07488f32 13666
30028c85
VM
13667 * config/ia64/ia64.c (ia64_override_options): Add aliases of
13668 itanium processor names.
07488f32 13669
30028c85
VM
13670 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
13671
13672 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
13673 (ia64_reorg): Set up queried unit codes for Itanium2 too.
13674
13675 * config/ia64/ia64.md: Add descriptions for Itanium2.
13676
13677 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
13678
13679 * config/ia64/ia64.h (processor_type): New enumeration.
13680 (ia64_tune, ia64_tune_string): New external declarations.
13681 (TARGET_OPTIONS): Add option `tune='.
13682
13683 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
13684 variables.
13685 (ia64_override_options): Set up `ia64_tune'.
13686 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
13687 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
13688 (bundling): Add nops for MM-insns only for Itanium.
13689 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
13690 Itanium.
13691
13692 * config/ia64/ia64.md (cpu): New attribute.
13693 (DFA description): Enable it only for Itanium.
07488f32 13694
30028c85
VM
13695 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
13696 Richard Henderson <rth@redhat.com>
13697
13698 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
13699 MASK_EARLY_STOP_BITS.
13700 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
13701 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
13702 `early-stop-bits'.
07488f32 13703
30028c85
VM
13704 * config/ia64/ia64.c (ia64_dfa_new_cycle,
13705 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
13706 instead of TARGET_TUNE_STOP_BITS.
07488f32 13707
30028c85
VM
13708 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
13709 `-mearly-stop-bits'.
13710
13711 * config/ia64/ia64.c (automata_option "v"): Comment it.
07488f32 13712
30028c85
VM
13713 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
13714
07488f32 13715 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
30028c85
VM
13716 New macros.
13717 (TARGET_SWITCHES): Add entries for the new option.
07488f32 13718
30028c85
VM
13719 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
13720 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
13721 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
13722 global variables.
13723 (ia64_sched_reorder2): Set up `clocks'.
13724 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
13725 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
13726 queue when TARGET_TUNE_STOP_BITS.
13727 (bundling): Insert additional nops for MM-insns.
13728 (final_emit_insn_group_barriers): Add insertion of stop bits
13729 according `stops_p'.
13730 (ia64_reorg): Initiate the new varibales.
13731
13732 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
07488f32 13733
30028c85
VM
13734 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
13735
13736 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
13737 insns at the end of block insn scheduling.
13738
13739 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
13740
13741 * sched-deps.c (remove_dependence, group_leader): Remove it.
13742 (add_dependence): Add dependence to group leader to.
13743 (set_sched_group_p): Add dependence to the first insn of the
13744 schedule group too.
13745 (sched_analyze_insn): Make dependence to jump as anti-dependence.
13746 Change true dependence by anti-dependence when
13747 `reg_pending_barrier'.
13748
13749 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
13750 add_branch_dependences): Ignore schedule groups.
13751
13752 * sched-ebb.c (init_ready_list): Ditto.
13753
13754 * (move_insn, set_priorities): Ditto.
13755
13756 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
13757 flag is clear after reload.
13758 (adjust_cost): Change cost only for output dependencies.
07488f32 13759
30028c85 13760 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
07488f32 13761
30028c85
VM
13762 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
13763
13764 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
13765
13766 * target.h (gcc_target): Add member
13767 `dependencies_evaluation_hook'.
13768
13769 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
13770 macro.
13771 (TARGET_SCHED): Add initiatialization of the new member.
13772
13773 * sched-ebb.c: Include `target.h'.
13774 (schedule_ebb): Call `dependencies_evaluation_hook'.
13775
13776 * sched-rgn.c (schedule_region): Call
13777 `dependencies_evaluation_hook'.
13778
13779 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
13780 New macro.
13781 (ia64_dependencies_evaluation_hook): New function.
13782
13783 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
13784 Describe the new hook.
07488f32 13785
30028c85
VM
13786 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
13787
13788 * target.h (gcc_target): Add members
13789 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
13790
13791 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
13792 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
13793 macros.
13794 (TARGET_SCHED): Add initiatialization of the new members.
13795
13796 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
13797 insn scheduling too.
13798 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
13799 initialize `ready_try'.
13800 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
13801 `dfa_new_cycle' says not to do it.
07488f32 13802
30028c85
VM
13803 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
13804 bundling.
13805
13806 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
13807
13808 * config/ia64/ia64.c: Include `hashtab.h'.
13809 (ia64_first_cycle_multipass_dfa_lookahead_guard,
13810 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
13811 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
13812 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
13813 bundle_state_eq_p, insert_bundle_state,
13814 initiate_bundle_state_table, finish_bundle_state_table,
13815 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
13816 get_template, get_next_important_insn, bundling): New functions.
13817 (ia64_internal_sched_reorder): Remove it.
13818 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
13819 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
13820 (ia64_safe_itanium_requires_unit0): Remove it.
13821 (group_barrier_needed_p): Place group barrier right before a real
13822 insn.
13823 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
13824 Remove them.
13825 (bundle_name): New variable.
13826 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
13827 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
13828 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
13829 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
13830 temp_dfa_state, prev_cycle_state): New global variables.
13831 (insn_matches_slot, maybe_rotate, finish_last_head,
13832 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
13833 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
13834 find_best_packet, itanium_reorder, dump_current_packet,
13835 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
13836 (sched_data, sched_ready, sched_types): Remove them.
13837 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
13838 `init_insn_group_barriers'.
13839 (ia64_sched_reorder, ia64_sched_reorder2): Call
13840 ia64_dfa_sched_reorder.
13841 (ia64_variable_issue): Rewrite it.
13842 (bundle_state): New structure.
13843 (index_to_bundle_states, bundle_states_num,
13844 allocated_bundle_states_chain, free_bundle_state_chain): New
13845 global variables.
13846 (ia64_sched_finish): Add stop bits and call `bundling' after the
13847 2nd insn scheduling.
13848 (ia64_use_dfa_pipeline_interface): Return zero always.
13849 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
13850 insn scheduling.
13851 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
13852 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
13853 (ia64_reorg): Add bundling insns.
13854
13855 * doc/tm.texi
13856 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
13857 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
07488f32 13858
30028c85
VM
13859 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
13860
13861 * config/ia64/ia64.md: Add Itanium1 DFA description.
13862 (itanium_class): Add `nop' and `pre_cycle'. Add
13863 define_function_unit for `nop'.
13864 (nop): Change attribute `itanium_class'.
13865 (pre_cycle): New define_insn.
13866
13867 * config/ia64/ia64-protos.h (bundling_p): New external variable.
13868 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
13869 ia64_produce_address_p): New function prototypes.
13870
13871 * config/ia64/ia64.c (bundling_p): New global variable.
13872 (ia64_use_dfa_pipeline_interface,
13873 ia64_first_cycle_multipass_dfa_lookahead,
13874 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
13875 functions.
13876 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13877 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13878 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
13879 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
13880 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
13881 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
13882 (dfa_pre_cycle_insn): New variable.
07488f32 13883
30028c85
VM
13884 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13885
13886 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
13887 constructions.
13888
13889 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
13890 New function prototypes.
13891
13892 * genattrtab.c (main): Process the new constructions.
13893
13894 * genautomata.c (gen_presence_absence_set,
13895 process_presence_absence_names, process_presence_absence_patterns,
13896 add_presence_absence, check_absence_pattern_sets): Add parameter
13897 `final_p'.
13898 (unit_decl): Add new members `final_presence_list' and
13899 `final_absence_list'.
13900 (unit_pattern_rel_decl): Add new member `final_p'.
13901 (gen_final_presence_set, gen_final_absence_set): New functions.
13902 (process_decls): Use member `final_p'.
13903 (temp_reserv): New global variable.
13904 (reserv_sets_are_intersected): Add processing `final_presence_set'
13905 and `final_absence_set'.
13906 (initiate_states): Allocate `temp_reserv'.
13907 (unit_final_presence_set_table, unit_final_absence_set_table): New
13908 gloabal variables.
13909 (initiate_presence_absence_pattern_sets): Initiate them.
13910 (NDFA_to_DFA): Fix typo.
13911 (output_description): Output `final_presence_set' and
13912 `final_absence_set'.
13913
13914 * doc/md.texi (final_presence_set, final_absence_set): Describe
13915 them.
07488f32 13916
30028c85
VM
13917 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13918
13919 * genautomata.c (transform_3): Process a missing case (nothing on
13920 unit place).
13921
13922 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13923
13924 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
13925 comments about queried units and the minimization.
07488f32 13926
30028c85 13927 * doc/md.texi: Ditto.
07488f32 13928
30028c85
VM
13929 * genautomata.c (create_composed_state): Return nonzero if the new
13930 state has been created.
13931 (first_cycle_unit_presence): New function.
13932 (state_is_differed): Add new parameter. Use the new function.
13933 Take queried units into account.
13934 (partition_equiv_class): Pass additional parameter to
13935 `state_is_differed'.
13936 (merge_states): Process composed states too.
13937 (build_automaton, create_automata, output_min_issue_delay_table,
13938 output_tables, output_statistics): Output more information.
13939 (output_reserved_units_table): Use function
13940 `first_cycle_unit_presence'.
13941 (output_tables): Output table of queried units even if the
13942 minimization is switched on.
13943 (write_automata): Output code for querying units even if the
13944 minimization is switched on.
07488f32 13945
30028c85
VM
13946 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
13947
13948 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
13949 syntax of the constructions.
07488f32 13950
30028c85
VM
13951 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
13952 extended syntax of the constructions.
07488f32 13953
30028c85
VM
13954 * genautomata.c (unit_rel_decl): Rename it to
13955 `unit_pattern_rel_decl'.
13956 (pattern_set_el, pattern_reserv): New structures.
13957 (pattern_set_el_t, pattern_reserv_t): New types.
13958 (gen_presence_absence_set): New function.
13959 (process_presence_absence): Remove it.
13960 (process_presence_absence_names,
13961 process_presence_absence_patterns): New functions.
13962 (get_presence_absence_set): Remove it.
13963 (initiate_presence_absence_sets): Rename it on
13964 `initiate_presence_absence_pattern_sets'. Use new function
13965 `form_reserv_sets_list'.
13966 (form_reserv_sets_list, check_presence_pattern_sets,
13967 check_absence_pattern_sets, output_pattern_set_el_list): New
13968 functions.
13969 (unit_decl): Change types of members `presence_list' and
13970 `absence_list'.
13971 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
13972 (decl): Change types of members `excl', `presence', and `absence'.
13973 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
13974 at the end of the vector.
13975 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
13976 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
13977 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
13978 (gen_presence_set, gen_absence_set): Use new function
13979 `gen_presence_absence_set'.
13980 (add_presence_absence): Process `pattern_list' instead of
13981 `source_list'.
13982 (process_decls): USe new functions
13983 `process_presence_absence_names' and
13984 `process_presence_absence_patterns'.
13985 (reserv_sets_are_intersected): Use new function
13986 `check_presence_pattern_sets'.
13987 (presence_set, absence_set): Remove them.
13988 (unit_presence_set_table, unit_absence_set_table): New global
13989 variables.
13990 (output_description): Use new function
13991 `output_pattern_set_el_list'.
13992 (generate): Use `initiate_presence_absence_pattern_sets'.
07488f32 13993
30028c85
VM
13994 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
13995
13996 * genattr.c (main): Add output of prototype of new interface
13997 function `dfa_clean_insn_cache'.
13998
13999 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
14000 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
14001 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
14002 the generated code.
14003 (write_automata): Call the new function.
07488f32 14004
62c9aa5f 140052003-01-09 Jan Hubicka <jh@suse.cz>
cb297538 14006
17211ab5
GK
14007 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
14008 correctly.
cb297538 14009
3a6e2189
PC
140102003-01-09 Paolo Carlini <pcarlini@unitus.it>
14011
14012 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
14013
62c9aa5f 140142003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
97488870
R
14015
14016 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
14017 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
14018 (CONSTRAINT_LEN): Provide default definition.
14019 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
14020 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
14021 (EXTRA_CONSTRAINT_STR): Likewise.
14022 (REG_CLASS_FROM_CONSTRAINT): Define.
14023 * genoutput.c (check_constraint_len, constraint_len): New functions.
14024 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
14025 constraint / modifier.
14026 (gen_insn): Call check_constraint_len.
14027 * local-alloc.c (block_alloc): Update to use new macros / pass
14028 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
14029 * ra-build.c (handle_asm_insn): Likewise.
14030 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14031 (constrain_operands, peep2_find_free_register): Likewise.
14032 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
14033 * regmove.c (find_matches): Likewise.
14034 * reload.c (push_secondary_reload, find_reloads): Likewise.
14035 (alternative_allows_memconst): Likewise.
14036 * reload1.c (maybe_fix_stack_asms): Likewise.
14037 (reload_cse_simplify_operands): Likewise.
14038 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14039 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
14040 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
14041 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
14042 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
14043 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
e2c734c1
R
14044
14045 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
14046
fc182093
KH
140472003-01-09 Kazu Hirata <kazu@cs.umass.edu>
14048
14049 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
14050 length.
14051 (*extzv_1_r_h8300hs): Likewise.
14052 (*extzv_1_r_inv_h8300): Likewise.
14053 (*extzv_1_r_inv_h8300hs): Likewise.
14054
3b1c9927
KH
140552003-01-09 Kazu Hirata <kazu@cs.umass.edu>
14056
14057 * config/h8300/h8300.h (PREDICATE_CODES): New.
14058
867504e6
KH
140592003-01-09 Kazu Hirata <kazu@cs.umass.edu>
14060
14061 * config/h8300/h8300.md (*addsi3_upper): New.
14062 (*iorsi3_shift): Likewise.
14063 (two splitters): Likewise.
14064 (*addsi3_shift): Likewise.
14065 (two splitters): Likewise.
14066
4a69cf79
JZ
140672003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
14068
14069 * Makefile.in (optabs.o): Add dependency on basic-block.h.
14070 * basic-block.h (control_flow_insn_p): Fuction was exported.
14071 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
14072 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
14073 notes only when the region is contained in a single basic block.
14074
4c46ea23
EB
140752003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
14076
14077 PR inline-asm/8832
14078 * tree.h (expand_asm): New prototype.
14079 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
14080 to do so.
14081 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
14082 down to expand_asm.
14083 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
14084 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
14085 (volatile_refs_p) [ASM_INPUT]: Likewise.
14086 (side_effects_p) [ASM_INPUT]: Likewise.
14087
62c9aa5f 140882003-01-09 Jan Hubicka <jh@suse.cz>
f56e86bd
JH
14089
14090 * i386.md (*mul*): FIx constraints; remove confused comment; fix
14091 athlon_decode attributes
14092 (imul/k8 optimization peep2s): New.
14093
14094 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
14095 * i386.md (type attribute): Add ssecomi.
14096 (unit, memory, prefix attributes): Handle ssecomi.
14097 (cvt?2? patterns): Fix athlon_decode attribute
14098 (comi patterns): Set attribute to ssecomi.
14099
14100 PR target/8343
14101 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
14102
98c29f71
RS
141032003-01-09 Richard Sandiford <rsandifo@redhat.com>
14104
14105 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
14106 that match register_operands.
14107 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
14108 register_operand the default case.
14109
bbb818c6
EB
141102003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
14111
14112 PR c/8032
14113 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
14114 an empty element, do not advance the pointer to unfilled
14115 fields if there are pending initializers.
14116
90961eff
AJ
141172003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
14118
14119 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
14120 (install-gcc-tooldir, install-cpp, installdirs,
14121 install-common, install-driver, install-info, install-man,
14122 install-headers, install-include-dir, install-headers-tar,
14123 install-headers-cpio, install-headers-cp, install-mkheaders,
14124 install-collect2, uninstall): Prepend $(DESTDIR) to
14125 destination paths in all (un)installation commands.
14126 (install-driver): Rewrite $(LN) commands to support DESTDIR
14127 with "ln" as well as with "ln -s".
14128 (installdirs): Simply use mkinstalldirs.
14129 (install-libgcc, install-multilib): Also pass DESTDIR.
14130 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
14131 installation destination variable ldir.
14132 * config/alpha/t-osf4, config/arm/t-netbsd,
14133 config/ia64/t-hpux, config/mips/t-iris5-6,
14134 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
14135 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
14136 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
14137 in the definition of SHLIB_INSTALL.
14138 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
14139 $(libsubdir) in the installation commands.
14140
8b26829f
KK
141412003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
14142
14143 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
14144 non-optimizing compile.
14145 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
14146 compile.
14147
fe77449a
DR
141482003-01-08 Douglas B Rupp <rupp@gnat.com>
14149
14150 * config/i386/i386.c (ix86_attribute_table): Add new attributes
14151 ms_struct and gcc_struct.
14152 (ix86_handle_struct_attribute): New function.
14153 (ix86_ms_bitfield_layout_p): Update to take new attributes
14154 into account.
14155 * doc/extend.texi: Document new attributes.
14156 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
14157
98417968
DS
141582003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
14159
07488f32
ZW
14160 PR optimization/8750
14161 * config/i386/i386.c (ix86_expand_prologue): Don't allow
14162 scheduling pass to move insns across __alloca call.
98417968 14163
e46e3130
DJ
141642003-01-08 Dale Johannesen <dalej@apple.com>
14165
07488f32
ZW
14166 * config/rs6000/rs6000.md: Replace *store_multiple_string
14167 with *stmsi[3-8].
e46e3130 14168
c40e5172
JS
141692003-01-08 Jeff Sturm <jsturm@one-point.com>
14170
14171 PR target/9210
14172 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
14173 Set SYMBOL_REF_FLAG on local data sym_ref.
14174
de62b72c 141752003-01-08 Dale Johannesen <dalej@apple.com>
07488f32
ZW
14176
14177 * function.c (assign_parms): Don't set pretend_args_size if
de62b72c 14178 REG_PARM_STACK_SPACE.
07488f32 14179 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
de62b72c
DJ
14180 pretend_args_size.
14181
25839c41
NN
141822003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
14183
14184 * gcc.hlp: Delete.
14185
62c9aa5f 141862003-01-09 Jan Hubicka <jh@suse.cz>
4bdc8610
JH
14187
14188 * i386.c (ix86_expand_int_addcc): Fix thinko.
14189
5b71a4e7
DE
141902003-01-08 David Edelsohn <edelsohn@gnu.org>
14191
14192 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
14193 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
14194 as hook_bool_tree_hwi_hwi_tree_true.
14195 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
14196 (rs6000_emit_epilogue): Same.
14197 (rs6000_output_mi_thunk): Re-implement as RTL.
14198 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
14199 xcoffout_declare_function if any debugging enabled.
14200
2d2a50c3
CD
142012003-01-08 Chris Demetriou <cgd@broadcom.com>
14202
14203 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
14204 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
14205 * config/mips/mips.h (enum processor_type): Rename
14206 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
14207 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
14208 Add PROCESSOR_M4K.
14209 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
14210 (ISA_MIPS32R2): New define.
14211 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
14212 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
14213 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
14214 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
14215 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
14216 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
14217 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
14218 compiling MIPS16 code.
14219 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
14220 comment.
14221 (ISA_HAS_SEB_SEH): New define.
14222 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
14223 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
14224 processor_type value renaming. Add support for MIPS32R2.
14225 Clean up comments, and move "sb1" entry with other MIPS64 CPU
14226 entries.
14227 (override_options): Reimplement -mipsN option handling so that
14228 it will work correctly for -mips32r2. Avoid branch-likely
14229 instructions on MIPS32R2.
14230 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
14231 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
14232 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
14233 (extendhisi2_hw, extendqisi2_hw): New.
14234 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
14235 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
14236 MIPS32R2, and MIPS64.
14237 (LINK_SPEC): Pass -mips32r2 to linker.
14238 * config/mips/t-isa3264: Built -mips32r2 multilibs.
14239 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
14240 for mips32r2 in the -march description. Alphabetically sort
14241 CPU names in the -march description. Add long-missed -mips32
14242 and -mips64 to MIPS option summary.
14243
14244 * config.gcc: Update copyright years to include 2003.
14245 * config/mips/mips.c: Likewise.
14246 * config/mips/mips.h: Likewise.
14247 * config/mips/mips.md: Likewise.
14248 * config/mips/netbsd.h: Likewise.
14249 * doc/invoke.texi: Likewise.
14250
918c4fe4
AS
142512003-01-08 Andreas Schwab <schwab@suse.de>
14252
14253 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
14254 variable.
14255 * configure: Regenerated.
14256
c5e7ce43
KH
142572003-01-08 Kazu Hirata <kazu@cs.umass.edu>
14258
14259 * config/h8300/h8300.c (output_logical_op): Replace byte/word
14260 extraction of det with b0, b1, w0, w2, etc.
14261 (compute_logical_op_length): Likewise.
14262 (compute_logical_op_cc): Likewise.
14263
eb8a8ec4
KH
142642003-01-08 Kazu Hirata <kazu@cs.umass.edu>
14265
14266 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
14267 HIGH on all variants.
14268
62c9aa5f 142692003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
07488f32 14270
56f15830
JZ
14271 * Makefile.in (PARTITION_H): New.
14272 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
14273 * basic-block.h: Include hard-reg-set.h.
14274
ab57893b
RE
142752003-01-08 Richard Earnshaw <rearnsha@arm.com>
14276
14277 * arm.h (ENABLE_XF_PATTERNS): Delete.
14278 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
14279 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
14280 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
14281 (cmpxf_trap): Delete.
14282 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
14283
62c9aa5f 142842003-01-08 Jan Hubicka <jh@suse.cz>
7b52eede
JH
14285
14286 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
14287 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
14288 (add??cc): New expanders.
14289 * i386.c (expand_int_addcc): New function.
14290 * i386-protos.h (expand_int_addcc): Declare.
14291
14292 * alias.c (memory_modified_1): New static function.
14293 (memory_modified): New static varaible.
14294 (memory_modified_in_insn_p): New global function.
14295 * rtl.h (memory_modified_in_insn_p): Declare.
14296 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
14297 references.
14298
14299 * expr.h (emit_conditional_add): Declare.
14300
74049755
JJ
143012003-01-07 Janis Johnson <janis187@us.ibm.com>
14302
14303 PR other/8947
14304 * doc/invoke.texi (-malign-double): Explain that the option breaks
14305 binary compatibility.
14306
e7edc5a0
AS
143072003-01-08 Andreas Schwab <schwab@suse.de>
14308
14309 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
14310 should come from the generic *-*-linux* entry.
14311
62c9aa5f 143122003-01-07 Jan Hubicka <jh@suse.cz>
9635cfad
JH
14313
14314 * cselib.c (cselib_current_insn_in_libcall): New static variable.
14315 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
14316 we are inside libcall.
14317 * cselib.h (elt_loc_list): Add in_libcall.
14318 * gcse.c (do_local_cprop): Do not copy propagate using insns
14319 in libcalls.
14320
3ee04299
DE
143212003-01-07 David Edelsohn <edelsohn@gnu.org>
14322
14323 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
14324 not normally affect to issue rate.
14325
62c9aa5f 143262003-01-07 Jan Hubicka <jh@suse.cz>
068f5dea
JH
14327
14328 * genopinit.c (optabs): Add addc_optab.
14329 * ifcvt.c (noce_try_store_flag): Rename to ...
14330 (noce_try_addcc): ... this one; handle generic conditional increment.
14331 (noce_process_if_block): Update noce_try_addcc call.
14332 * optabs.c (emit_conditional_add): New.
14333 (init_obtabs): Initialize addc_optab.
14334 * optabs.h (optab_index): Add OTI_addcc.
14335 (addcc_optab): New macro.
14336 * md.texi: Document addMcc
14337
14338 PR target/8322
14339 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
14340 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
14341 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
14342
14343 * reload1.c (delete_output_reload): Avoid repeated attempts
14344 to delete insn.
14345
eb70d86d
AS
143462003-01-07 Andreas Schwab <schwab@suse.de>
14347
e7edc5a0
AS
14348 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
14349 Move --enable-initfini-array check ...
14350 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
14351 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
14352 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
14353 * configure: Rebuild.
eb70d86d 14354
1afdf91c
RH
143552003-01-07 Richard Henderson <rth@redhat.com>
14356
e7edc5a0
AS
14357 * alias.c (find_base_value): Only use new_reg_base_value shortcut
14358 if the register is set once.
1afdf91c 14359
36210500 143602003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
07488f32 14361
36210500
SP
14362 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
14363 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
14364 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
14365
cb25b0ce
BK
143662003-01-07 Benjamin Kosnik <bkoz@redhat.com>
14367 Sunil Davasam <sunil.k.davasam@intel.com>
14368
07488f32 14369 PR libstdc++/9076
cb25b0ce
BK
14370 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
14371 DW_CFA_same_value, read next and ignore.
14372
94c040bd
RH
143732003-01-07 Richard Henderson <rth@redhat.com>
14374
14375 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
14376
f6cb56fa
DB
143772003-01-07 Daniel Berlin <dberlin@dberlin.org>
14378
14379 * cfg.c: Include alloc-pool.h
14380 (edge_pool): New pool.
14381 (bb_pool): New pool.
14382 (first_deleted_edge): Remove.
14383 (first_deleted_block): Remove.
14384 (init_flow): Alloc/free the pools.
14385 (free_edge): Use pools.
14386 (alloc_block): Ditto.
14387 (expunge_block): Ditto.
14388 (cached_make_edge): Ditto.
14389
14390 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
14391
143922003-01-07 Daniel Berlin <dberlin@dberlin.org>
14393
14394 * et-forest.c: Include alloc-pool.h.
14395 (struct et_forest): Add node_pool and occur_pool.
14396 (et_forest_create): Create the new pools.
14397 (et_forest_delete): Delete them.
14398 (et_forest_add_node): Allocate and free using pools.
14399 (et_forest_add_edge): Ditto.
14400 (et_forest_remove_node): Ditto.
14401 (et_forest_remove_edge): Ditto.
14402
14403 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
14404
f9ac2f95
KH
144052003-01-07 Kazu Hirata <kazu@cs.umass.edu>
14406
14407 * config/h8300/h8300.c (output_logical_op): Simplify and
14408 optimize the handling of SImode.
14409 * config/h8300/h8300.c (compute_logical_op_length): Update
14410 accordingly.
14411 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
14412
83282119
RS
144132003-01-07 Richard Sandiford <rsandifo@redhat.com>
14414
14415 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
14416 big-endian correction to indirect arguments too.
14417
59a4c851
AH
144182003-01-06 Aldy Hernandez <aldyh@redhat.com>
14419
14420 Segher Boessenkool <segher@koffie.nl>
14421
36210500
SP
14422 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
14423 (alt_reg_names): Ditto, fix formatting.
14424 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
59a4c851 14425
7798db98
KH
144262003-01-06 Kazu Hirata <kazu@cs.umass.edu>
14427
14428 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
14429 (output_logical_op): Constify intval and det.
14430 (compute_logical_length): Likewise.
14431 (compute_logical_cc): Likewise.
14432 (output_a_shift): Constify mask.
14433 (h8300_encode_label): Constify len.
14434
4705d102
KH
144352003-01-06 Kazu Hirata <kazu@cs.umass.edu>
14436
14437 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
14438 (h8300_expand_epilogue): Likewise.
14439
98c9a8e8
AH
144402003-01-06 Aldy Hernandez <aldyh@redhat.com>
14441
14442 Segher Boessenkool <segher@koffie.nl>
14443
36210500
SP
14444 * config/rs6000/altivec.md: Remove spaces from assembler
14445 instruction argument lists.
07488f32 14446
86143814
MH
144472003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14448
14449 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
14450 c4x_assembler_function_p.
14451 (c4x_null_epilogue_p): Complement return value, all uses updated.
14452 (c4x_insert_attributes): Add naked.
14453 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
14454 * doc/extend.texi: Update C4x function attributes.
14455
52fd80fb
RH
144562003-01-06 Richard Henderson <rth@redhat.com>
14457
14458 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
14459 properly when changing "local-ness".
14460 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
14461
a16b43c5
DJ
144622003-01-06 Dale Johannesen <dalej@apple.com>
14463
14464 * config/darwin-protos.h: Add prototypes for new section functions.
14465
ef8dfae6
CD
144662003-01-06 Chris Demetriou <cgd@broadcom.com>
14467
14468 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
14469 to EABI.
14470
44f9a8e4
ZW
144712003-01-06 Zack Weinberg <zack@codesourcery.com>
14472
14473 * hwint.h: If the current compiler has no 64-bit type at all,
14474 make HOST_WIDEST_INT 32 bits.
14475
2610198a
EC
144762003-01-06 Eric Christopher <echristo@redhat.com>
14477
14478 * config/mips/mips.md (movdf_internal2): Fix constraints.
14479
efbd757f
KH
144802003-01-06 Kazu Hirata <kazu@cs.umass.edu>
14481
14482 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
14483
727b9b8c
RS
144842003-01-06 Richard Sandiford <rsandifo@redhat.com>
14485
14486 * config/mips/mips.md (leadi): Use dla rather than la.
14487
4705d102 144882003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
cebdac46
SS
14489
14490 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
14491 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
14492
4705d102 144932003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
fe1e789f 14494
44f9a8e4 14495 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
fe1e789f
HB
14496 redefinition.
14497
dff0ea43
KH
144982003-01-05 Kazu Hirata <kazu@cs.umass.edu>
14499
14500 * config/h8300/h8300.md (*extzv_8_23): New.
14501
94e6fd3e
JDA
145022003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14503
14504 * pa64-hpux.h (JCR_SECTION_NAME): Define.
14505 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
14506 USE_EH_FRAME_REGISTRY when defining.
14507
cd9b5ca8
KH
145082003-01-05 Kazu Hirata <kazu@cs.umass.edu>
14509
14510 * config/h8300/h8300.c (output_a_shift): Do not output a
14511 variable shift.
14512 * config/h8300/h8300.md (two splitters): New.
14513
1ba8a9c4
RS
145142003-01-05 Richard Sandiford <rsandifo@redhat.com>
14515
14516 * config/mips/mips.md: Disable the movstrsi define_split.
14517
c7c50494
KG
145182003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14519
14520 * alloc-pool.c: Don't include "libiberty.h".
14521 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
14522 * convert.c (convert_to_real): Hide unused variable.
14523
83fa8d7a
KG
145242003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14525
14526 * Makefile.in (gtyp-gen.h): Const-ify.
14527 * gcov-dump.c (tag_table): Likewise.
14528
871dab3e
BK
145292003-01-04 Bruce Korb <bkorb@gnu.org>
14530
14531 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
14532 of *both* the file name and the fix name.
14533
90961eff 145342003-01-04 John David Anglin <dave.anglin@nrc.ca>
35d434ed
JDA
14535
14536 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
14537 collect2.
14538 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
14539 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
14540 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
14541 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
14542 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
14543 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
14544 elfos.h.
14545 (EH_FRAME_IN_DATA_SECTION): Delete define.
14546 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
14547 (STARTFILE_SPEC): Use crtbegin.o.
14548 (ENDFILE_SPEC): Use crtend.o.
14549 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
14550 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
14551 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
14552 DTOR_LIST_BEGIN): Define.
14553 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
14554 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
14555 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
14556
b0588013
BK
145572002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
14558
14559 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
14560 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
14561 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
14562 Cleanup handling of replacement text.
14563 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
14564
145652003-01-04 Bruce Korb <bkorb@gnu.org>
14566
14567 * fixinc/tests/base/math.h: removed obsolete results
14568 * fixinc/tests/base/stdlib.h: ditto
14569 * fixinc/tests/base/sys/param.h: ditto
14570 * fixinc/tests/base/sys/stat.h: ditto
14571 * fixinc/tests/base/time.h: ditto
14572 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
14573 * fixinc/tests/base/sys/byteorder.h: ditto
14574 * fixinc/inclhack.def: Remove superfluous backslashes
14575
68ee6df6
KH
145762003-01-04 Kazu Hirata <kazu@cs.umass.edu>
14577
14578 * config/h8300/h8300-protos.h: Add prototypes for
14579 the new functions defined below.
14580 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
14581 define.
14582 (dosize): Emit RTL instead of assembly code.
14583 (push): Likewise.
14584 (pop): Likewise.
14585 (h8300_output_function_prologue): Remove.
14586 (h8300_expand_prologue): New.
14587 (h8300_expand_epilogue): New.
14588 (h8300_output_function_epilogue): Do only the reset of
14589 pragma_saveall.
14590 * config/h8300/h8300.md (push_h8300): New.
14591 (push_h8300hs): Likewise.
14592 (pop_h8300): Likewise.
14593 (pop_h8300hs): Likewise.
14594 (*stm_h8300s_2): Change the name to stm_h8300s_2.
14595 (*stm_h8300s_3): Change the name to stm_h8300s_3.
14596 (*stm_h8300s_4): Change the name to stm_h8300s_4.
14597 (*ldm_h8300s_2): New.
14598 (*ldm_h8300s_3): Likewise.
14599 (*ldm_h8300s_4): Likewise.
14600 (return): Likewise.
14601 (*return_1): Likewise.
14602 (prologue): Likewise.
14603 (epilogue): Likewise.
14604 (monitor_prologue): Likewise.
14605
d3c300d2
DJ
146062003-01-03 Dale Johannesen <dalej@apple.com>
14607
14608 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
14609 machopic_picsymbol_stub1.
14610 (EXTRA_SECTION_FUNCTIONS): Ditto.
14611 * rs6000/rs6000.c: Update copyright.
14612 (machopic_output_stub): Use them. Remove an insn from stub code.
14613
6cce57b0
JM
146142003-01-02 Jason Merrill <jason@redhat.com>
14615
4e8dca1c
JM
14616 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
14617
14618 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
14619 static/external decls.
2610198a 14620
6cce57b0
JM
14621 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
14622 outermost scope.
14623 * c-decl.c (c_make_fname_decl): Push the decls there, too.
14624
e392d367
KH
146252003-01-03 Kazu Hirata <kazu@cs.umass.edu>
14626
14627 * config/h8300/h8300-protos.h: Add a prototype for
14628 h8300_current_function_interrupt_function_p.
14629 * config/h8300/h8300.c (interrupt_handler): Remove.
14630 (os_task): Likewise.
14631 (monitor): Likewise.
14632 (pragma_interrupt): New.
14633 (WORD_REG_USED): Use
14634 h8300_current_function_interrupt_function_p.
14635 (dosize): Likewise.
14636 (h8300_output_function_prologue): Likewise.
14637 Do not set interrupt_handler, os_task, monitor.
14638 (h8300_output_function_prologue): Use
14639 h8300_current_function_interrupt_function_p.
14640 Do not set interrupt_handler, os_task, monitor.
14641 (h8300_current_function_interrupt_function_p): New.
14642 (h8300_pr_interrupt): Set pragma_interrupt.
14643 (h8300_insert_attributes): Reset pragma_interrupt.
14644
b15da5b7
GP
146452003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14646
14647 * doc/install.texi (Configuration): Fix markup for reference to
14648 gcc/config.gcc.
14649
bf16e745
KH
146502003-01-02 Kazu Hirata <kazu@cs.umass.edu>
14651
14652 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
14653 (*iorhi3_two_qi): Likewise.
14654 (*iorsi3_zexthi): Likewise.
14655 (*xorhi3_zextqi): Likewise.
14656 (*xorsi3_zexthi): Likewise.
14657 (*xorsi3_zextqi): Likewise.
14658
8ccf5d5f
KH
146592003-01-02 Kazu Hirata <kazu@cs.umass.edu>
14660
14661 * config/h8300/h8300.c (stack_pointer_operand): New.
14662 (const_int_gt_2_operand): Likewise.
14663 (const_int_ge_8_operand): Likewise.
14664 * config/h8300/h8300.md (a splitter): Likewise.
14665 (a peephole2): Likewise.
14666 * config/h8300/h8300-protos.h: Add prototypes for the new
14667 functions above.
14668
43c6a96a
SB
146692003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
14670
14671 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
14672 objc/objc-act.h: Fix copyright years.
14673
96c4e780
SB
146742003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
14675
14676 * doc/passes.texi: Fix documentation for -fssa-ccp
14677
8ed0a104
NB
146782003-01-02 Neil Booth <neil@daikokuya.co.uk>
14679
14680 * gccbug.in: Update for new categories.
14681
1b9f0361
KH
146822003-01-01 Kazu Hirata <kazu@cs.umass.edu>
14683
14684 * config/h8300/h8300.md: Reorder some patterns.
14685
dc5f17ec
KH
146862003-01-01 Kazu Hirata <kazu@cs.umass.edu>
14687
14688 * config/h8300/h8300.c (output_logical_op): Fix a warning.
14689
cd2801fb
NB
146902003-01-01 Neil Booth <neil@daikokuya.co.uk>
14691
14692 * config/darwin-protos.h, config/c4x/c4x-protos.h,
14693 config/cris/cris-protos.h, config/i370/i370-protos.h,
14694 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
14695 config/v850/v850-protos.h: Use struct, and don't conditionally
14696 compile on GCC_C_PRAGMA_H.
14697
378b1b8e
KH
146982003-01-01 Kazu Hirata <kazu@cs.umass.edu>
14699
14700 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
14701 * config/h8300/h8300-protos.h: Likewise.
14702 * config/sh/sh-protos.h: Likewise.
14703
7106a5bc
KH
147042003-01-01 Kazu Hirata <kazu@cs.umass.edu>
14705
14706 * config/arm/arm-protos.h: Use struct cpp_reader instead of
14707 cpp_reader.
14708 * config/h8300/h8300-protos.h: Likewise.
14709 * config/sh/sh-protos.h: Likewise.
14710
231b51a1
NB
147112003-01-01 Neil Booth <neil@daikokuya.co.uk>
14712
14713 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
14714 arm_pr_long_calls_off): Use struct.
14715 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
14716 : Similarly.
14717 Don't include cpplib.h.
14718 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
14719 sh_pr_nosave_low_regs): Similarly.
14720
0f18b2b0
KH
147212003-01-01 Kazu Hirata <kazu@cs.umass.edu>
14722
14723 * config/h8300/h8300.c: Include cpplib.h.
14724
b9593599
SB
147252003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
14726
14727 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
14728 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
14729 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
14730 "GCC" in the copyright header.
14731
c58b209a
NB
147322003-01-01 Neil Booth <neil@daikokuya.co.uk>
14733
14734 * c-pragma.c (c_register_pragma): New.
14735 (init_pragma): Use it.
14736 * c-pragma.h (cpp_register_pragma): Don't declare.
14737 (c_register_pragma): New.
14738 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
14739 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
14740 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
14741 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
14742 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
14743 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
14744 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
14745 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
14746 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
14747 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
14748 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
14749 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
14750
7210d5ae 14751See ChangeLog.8 for earlier changes.
This page took 2.079192 seconds and 5 git commands to generate.