Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
[gcc.git] / gcc / ChangeLog
1 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
2
3 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4 (mkheaders): New rule.
5 (install-mkheaders): New rule.
6 * configure.in (all_outputs): Add mkheaders.
7 * configure: Regenerate.
8 * mkheaders.in: New file.
9
10 2002-05-26 Jakub Jelinek <jakub@redhat.com>
11
12 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
13
14 2002-05-26 Andreas Jaeger <aj@suse.de>
15
16 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
17
18 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
19
20 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
21 right_shift): Remove.
22 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
23 HIGH_PART): New.
24 (struct op): Use cpp_num.
25 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
26 num_part_mul, num_unary_op, num_binary_op, num_negate,
27 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
28 num_div_op, num_lshift, num_rshift, append_digit): New.
29 (interpret_number, parse_defined, eval_token, reduce): Update
30 for two-integer arithmetic.
31 (binary_handler): New typedef.
32 (optab): Update.
33 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
34 (_cpp_parse_expr, reduce): Update to handle two-integers.
35 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
36
37 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
38
39 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
40 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
41 branch insn into account, do not assume 1.
42 (avr_out_sbxx_branch): New function. Optimize cases of skipping
43 over single word insn. Handle upper half of I/O space too.
44 * config/avr/avr.md (*sbrx_branch): Use it.
45 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
46 (*sbix_branch, *sbix_branch_bit7): Likewise.
47 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
48 Use RTL peepholes to optimize register operand sign tests.
49
50 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
51
52 * config/avr/avr.c (avr_asm_only_p): New variable.
53 (avr_override_options): Set it here if AVR1.
54 (asm_file_start): Test it here, report an error if set.
55
56 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
57
58 * alias.c: Fix formatting.
59 * attribs.c: Likewise.
60 * bb-reorder.c: Likewise.
61 * bitmap.c: Likewise.
62 * bitmap.h: Likewise.
63 * builtins.c: Likewise.
64
65 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
66
67 * reload.c (find_valid_class): Accept new argument DEST,
68 choose class accordingly.
69 (push_reload): Update callers.
70
71 2002-05-26 Andreas Jaeger <aj@suse.de>
72
73 * combine.c (combine_instructions): Do not indent #if for
74 traditional C.
75
76 2002-05-25 Richard Henderson <rth@redhat.com>
77
78 * c-pragma.c (apply_pragma_weak): Convert value identifier to
79 string for decl_attributes.
80 (handle_pragma_weak): Call assemble_alias if we're modifying
81 an existing decl.
82
83 2002-05-25 Richard Henderson <rth@redhat.com>
84
85 PR target/6788
86 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
87 using rtl instead of fprintf.
88 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
89 * config/sparc/sparc-protos.h: Update.
90
91 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
92
93 * Makefile.in (C_COMMON_H): Fix.
94 Update other targets.
95 * c-common.c: Don't include c-lex.h.
96 (builtin_define_with_value): Make static and prototype.
97 (builtin_define_std): Move from c-lex.h.
98 * c-common.h (init_c_lex): Move from c-lex.h.
99 * c-decl.c: Don't include c-lex.h.
100 (make_pointer_declarator): Move from c-parse.in.
101 * c-lex.c: Don't include c-lex.h.
102 * c-lex.h: Remove.
103 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
104 (make_pointer_declarator): Move to c-decl.c.
105 * c-pragma.c: Don't include c-lex.h.
106 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
107 * c-tree.h (make_pointer_declarator): New.
108 doc:
109 * passes.texi, tm.texi: Update.
110 objc:
111 * Make-lang.in: Update and correct.
112 * objc-act.c: Don't include c-lex.h or cpplib.h.
113 treelang:
114 * treetree.c: Don't include c-lex.h.
115 config:
116 * darwin-c.c: Don't include c-lex.h.
117 * c4x/c4x-c.c: Don't include c-lex.h.
118 * c4x/t-c4x: Update.
119 * i370/i370-c.c: Don't include c-lex.h.
120 * i370/t-i370: Update.
121 * i960/i960-c.c: Don't include c-lex.h.
122 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
123 * i960/t-960bare: Update.
124 * i960/t-vxworks: Update.
125 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
126 * rs6000/t-darwin: Update.
127 * rs6000/t-rs6000-c-rule: Update.
128 * v850/v850-c.c: Don't include c-lex.h.
129 * v850/v850.c: Don't include c-lex.h or cpplib.h.
130
131
132 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
133
134 * tree.def: Fix typos.
135 * doc/install.texi: Likewise.
136
137 2002-05-25 Richard Henderson <rth@redhat.com>
138
139 * configure.in (HAVE_AS_TLS): Add ia64 test.
140 * configure: Rebuild.
141 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
142 (override_options): Set it.
143 (TARGET_HAVE_TLS): New.
144 (sdata_symbolic_operand): Look for 's'.
145 (tls_symbolic_operand): New.
146 (ia64_expand_load_address): Abort for tls symbols.
147 (gen_tls_get_addr): New.
148 (gen_thread_pointer): New.
149 (ia64_expand_move): Split out from movdi. Handle tls symbols.
150 (rtx_needs_barrier): Add new unspecs.
151 (ia64_encode_section_info): Handle tls symbols.
152 (ia64_strip_name_encoding): Strip two encoding chars.
153 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
154 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
155 (TARGET_OPTIONS): Add tls-size.
156 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
157 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
158 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
159 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
160 (movsf, movdf): Likewise.
161 (movdi_symbolic): Use match_scratch. Don't split if we won't
162 have a scratch availiable.
163 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
164 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
165 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
166 * config/ia64/ia64-protos.h: Update.
167 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
168 sdata_symbolic_operand.
169 (ASM_OUTPUT_LABELREF): Strip two characters.
170
171 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
172
173 * combine.c (simplify_set): Remove an unnecessary subreg.
174
175 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
176
177 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
178
179 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
180
181 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
182
183 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
184
185 2002-05-25 Roger Sayle <roger@eyesopen.com>
186
187 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
188 (cond (compare x y) 0) into the equivalent (cond x y).
189
190 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
191
192 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
193
194 2002-05-24 Zack Weinberg <zack@codesourcery.com>
195
196 * config.gcc: Remove all stanzas for previously obsoleted
197 systems. Where necessary, add explicit error stanzas to
198 prevent removed systems from being misidentified as something
199 else. Begin a fresh obsoletions list, with the systems that
200 were reprieved last round.
201 * doc/install.texi: Remove all mention of dead targets.
202 * fixinc/mkfixinc.sh: Likewise.
203
204 * config/arm/arm.h: Bit 31 of target_flags is no longer
205 reserved.
206
207 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
208 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
209 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
210 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
211 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
212 config/alpha/osf12.h, config/alpha/osf2or3.h,
213 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
214 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
215 config/clipper/clipper-protos.h, config/clipper/clipper.c,
216 config/clipper/clipper.h, config/clipper/clipper.md,
217 config/clipper/clix.h, config/convex/convex-protos.h,
218 config/convex/convex.c, config/convex/convex.h,
219 config/convex/convex.md, config/convex/fixinc.convex,
220 config/convex/proto.h, config/elxsi/elxsi-protos.h,
221 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
222 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
223 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
224 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
225 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
226 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
227 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
228 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
229 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
230 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
231 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
232 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
233 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
234 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
235 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
236 config/m68k/altos3068.h, config/m68k/apollo68.h,
237 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
238 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
239 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
240 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
241 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
242 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
243 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
244 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
245 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
246 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
247 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
248 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
249 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
250 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
251 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
252 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
253 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
254 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
255 config/mips/dec-osf1.h, config/mips/elflorion.h,
256 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
257 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
258 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
259 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
260 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
261 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
262 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
263 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
264 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
265 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
266 config/ns32k/sequent.h, config/ns32k/tek6000.h,
267 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
268 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
269 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
270 config/sparc/rtems.h, config/we32k/we32k-protos.h,
271 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
272 Delete file.
273
274 2002-05-24 Richard Henderson <rth@redhat.com>
275
276 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
277 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
278 * config/i386/i386.c (tls_model_chars): Add leading space.
279 (tls_symbolic_operand): Don't bias by 1.
280 (legitimize_address): Don't unbias by 1.
281
282 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
283
284 * lcm.c (optimize_mode_switching): Change bb used as indices
285 to bb->index.
286
287 2002-05-24 Richard Henderson <rth@redhat.com>
288
289 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
290 of update_life_info_in_dirty_blocks.
291
292 2002-05-24 Jakub Jelinek <jakub@redhat.com>
293
294 PR other/6782
295 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
296
297 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
298
299 PR preprocessor/6780
300 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
301
302 2002-05-24 Jim Blandy <jimb@redhat.com>
303
304 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
305 entry with a type code of zero, marking the end of the compilation
306 unit's macro info.
307
308 2002-05-24 Richard Henderson <rth@redhat.com>
309
310 * varasm.c (asm_output_bss): Always output one byte.
311 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
312
313 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
314
315 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
316 namespace.
317
318 2002-05-24 Andreas Jaeger <aj@suse.de>
319
320 * ggc-page.c (alloc_page): Cast variables of type size_t to
321 unsigned long, adjust printf format string.
322 (ggc_alloc): Likewise.
323 (ggc_print_statistics): Likewise.
324 (ggc_print_statistics): Correct printf format string for SCALE to
325 use unsigned long.
326
327 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
328
329 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
330
331 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
332 Zack Weinberg <zack@codesourcery.com>
333
334 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
335 quoted strings.
336 * dwarf2out.c (lookup_filename): Properly quote filename in .file
337 directive in assembly file.
338 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
339 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
340 * config/pj/pj.h (ASM_FILE_START): Likewise.
341 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
342 * config/avr/avr.c (asm_file_end): Likewise.
343 * toplev.c (output_quoted_string): Handle possibly signed plain
344 char.
345 * toplev.h (output_clean_symbol_name): Declare
346 * toplev.c (output_clean_symbol_name): Define.
347 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
348 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
349
350 2002-05-24 Alan Modra <amodra@bigpond.net.au>
351
352 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
353
354 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
355
356 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
357 of size of unsigned.
358
359 2002-05-23 Richard Henderson <rth@redhat.com>
360
361 * configure.in (HAVE_AS_TLS): New test.
362 * config.in, configure: Rebuild.
363 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
364 (ix86_tls_dialect_string, ix86_tls_dialect): New.
365 (override_options): Set it.
366 (tls_model_chars, tls_symbolic_operand): New.
367 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
368 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
369 (local_exec_symbolic_operand): New.
370 (get_pic_label_name): Merge into output_set_got.
371 (ix86_asm_file_end): Emit pic_label_name if defined.
372 (legitimate_constant_p, constant_address_p): New.
373 (legitimate_pic_operand_p): New.
374 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
375 (legitimate_address_p): Likewise.
376 (ix86_encode_section_info): Rename from i386_; handle tls decls.
377 (ix86_strip_name_encoding): New.
378 (get_thread_pointer): New.
379 (legitimize_address): Handle tls symbols.
380 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
381 Remove UNSPEC_PLT.
382 (struct machine_function): Add some_ld_name.
383 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
384 (print_operand) [&]: Use it. Handle UNSPEC_TP.
385 (output_addr_const_extra): New.
386 (maybe_get_pool_constant): New.
387 (ix86_split_to_parts): Use it.
388 (ix86_expand_move): Handle tls symbols.
389 (ix86_tls_get_addr): New.
390 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
391 (TARGET_OPTIONS): Add tls-dialect.
392 (CONSTANT_ADDRESS_P): Use new out-of-line function.
393 (LEGITIMATE_CONSTANT_P): Likewise.
394 (LEGITIMATE_PIC_OPERAND_P): Likewise.
395 (TARGET_STRIP_NAME_ENCODING): New.
396 (ASM_OUTPUT_LABELREF): New.
397 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
398 (OUTPUT_ADDR_CONST_EXTRA): New.
399 (PREDICATE_CODES): Update.
400 (ix86_tls_dialect, ix86_tls_dialect_string): New.
401 * config/i386/i386.md: Regroup and renumber unspec constants.
402 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
403 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
404 (tls_global_dynamic, tls_local_dynamic_base): New.
405 (tls_local_dynamic_once): New.
406 * config/i386/i386-protos.h: Update.
407
408 2002-05-23 Richard Henderson <rth@redhat.com>
409
410 * genemit.c (gen_insn): Print file:lineno comment before function.
411 (main): likewise.
412 * gensupport.c (struct queue_elem): Add filename member.
413 (queue_pattern): Initialize it; update all callers.
414 (process_include): Don't free filename.
415 (read_md_rtx): Set read_rtx_filename.
416
417 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
418
419 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
420
421 2002-05-23 Richard Henderson <rth@redhat.com>
422
423 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
424
425 2002-05-23 Richard Henderson <rth@redhat.com>
426
427 * doc/extend.texi (C++98 Thread-Local Edits): Update with
428 commentary from Mark.
429
430 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
431
432 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
433 Use FOR_EACH_BB macros to iterate over basic block chain.
434 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
435 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
436 Likewise.
437 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
438 find_unreachable_blocks, create_edge_list, verify_edge_list,
439 remove_fake_edges, add_noreturn_fake_exit_edges,
440 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
441 Likewise.
442 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
443 find_sub_basic_blocks): Likewise.
444 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
445 Likewise.
446 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
447 Likewise.
448 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
449 Likewise.
450 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
451 commit_edge_insertions, commit_edge_insertions_watch_calls,
452 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
453 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
454 * conflict.c (conflict_graph_compute): Likewise.
455 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
456 df_modified_p, df_refs_unlink, df_dump): Likewise.
457 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
458 * final.c (compute_alignments): Likewise.
459 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
460 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
461 count_or_remove_death_notes): Likewise.
462 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
463 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
464 classic_gcse, compute_transp, cprop, compute_pre_data,
465 compute_transpout, invalidate_nonnull_info,
466 delete_null_pointer_checks_1, delete_null_pointer_checks,
467 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
468 compute_store_table, build_store_vectors, store_motion): Likewise.
469 * global.c (global_conflicts, mark_elimination): Likewise.
470 * graph.c (print_rtl_graph_with_bb): Likewise.
471 * haifa-sched.c (sched_init): Likewise.
472 * ifcvt.c (if_convert): Likewise.
473 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
474 compute_available, compute_nearerout, compute_rev_insert_delete,
475 optimize_mode_switching): Likewise.
476 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
477 * predict.c (estimate_probability, note_prediction_to_br_prob,
478 propagate_freq, counts_to_freqs, expensive_function_p,
479 estimate_bb_frequencies): Likewise.
480 * profile.c (instrument_edges, get_exec_counts,
481 compute_branch_probabilities, compute_checksum, branch_prob,
482 find_spanning_tree): Likewise.
483 * recog.c (split_all_insns, peephole2_optimize): Likewise.
484 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
485 Likewise.
486 * regclass.c (scan_one_insn, regclass): Likewise.
487 * regmove.c (mark_flags_life_zones, regmove_optimize,
488 record_stack_memrefs): Likewise.
489 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
490 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
491 * resource.c (find_basic_block): Likewise.
492 * sched-ebb.c (schedule_ebbs): Likewise.
493 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
494 find_single_block_region, find_rgns, schedule_insns)
495 * sibcall.c (optimize_sibling_and_tail_recursive_call)
496 * ssa-ccp.c (optimize_unexecutable_edges,
497 ssa_ccp_df_delete_unreachable_insns): Likewise.
498 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
499 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
500 rename_block, convert_to_ssa, compute_conservative_reg_partition,
501 compute_coalesced_reg_partition, rename_equivalent_regs,
502 convert_from_ssa): Likewise.
503 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
504 process_for_unwind_directive): Likewise.
505
506 * df.c (FOR_ALL_BBS): Removed.
507 * gcse.c (struct null_pointer_info): Type of current_block field
508 changed.
509 (struct reg_avail_info): Type of last_bb field changed.
510 * config/ia64/ia64.c (block_num): Removed.
511 (need_copy_state): Type changed.
512 (last_block): New.
513
514 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
515
516 * cppinit.c (mark_named_operators): Split out from init_builtins.
517 (cpp_finish_options): Call it from here instead.
518
519 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
520
521 * builtin-attrs.def: Update copyright years.
522 (ATTR_NONNULL): New attribute identifier.
523 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
524 attribute tree lists.
525 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
526 format operand.
527 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
528 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
529 attribute lists. Chain the appropriate nonnull attribute.
530 * c-format.c (check_format_arg): Remove null format string
531 warning.
532 * testsuite/gcc.dg/format/null-1.c: New test.
533
534 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
535
536 * Makefile.in (ADAC): Define.
537 (SYSLIBS): Define.
538 (.SUFFIXES): Move before language makefile fragments.
539 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
540
541 2002-05-23 Mark Mitchell <mark@codesourcery.com>
542
543 * varasm.c (make_decl_rtl): Don't allow weak variables to be
544 placed in common.
545
546 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
547
548 * cfg.c (dump_flow_info): Print results of
549 maybe_hot/probably_never_executed predicates.
550 * toplev.c (open_dump_file): Print function frequency.
551
552 2002-05-23 David S. Miller <davem@redhat.com>
553
554 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
555 regsets.
556
557 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
558
559 * c-common.c (warn_nonnull): Declare.
560 (c_common_attribute_table): Add "nonnull" attribute.
561 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
562 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
563 check_function_arguments_recurse): New functions.
564 * c-common.h (warn_nonnull): Declare extern.
565 (check_function_arguments, check_function_arguments_recurse): New
566 prototypes.
567 * c-decl.c (c_decode_option): Add -Wnonnull option.
568 * c-format.c (set_Wformat): Set warn_nonnull if enabling
569 format checking.
570 (format_check_context): New structure.
571 (check_format_info_recurse): Remove recursion and rename to...
572 (check_format_arg): ...this. Update comment.
573 (check_format_info): Use check_function_arguments_recurse.
574 * c-typeck.c (build_function_call): Call check_function_arguments
575 instead of check_function_format.
576 * doc/extend.texi: Document "nonnull" attribute.
577 * doc/invoke.texi: Docuemnt -Wnonnull option.
578 * testsuite/gcc.dg/nonnull-1.c: New test.
579 * testsuite/gcc.dg/nonnull-2.c: New test.
580
581 2002-05-23 David S. Miller <davem@redhat.com>
582
583 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
584 * cfgcleanup.c (cleanup_cfg): If it is set do not
585 attempt to delete trivially dead insns.
586 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
587 * toplev.c (rest_of_compilation): Document non-trivial aspect
588 the RTL before optimize_save_area_alloca is run.
589
590 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
591
592 * c-lex.c (indent_level): Remove.
593 (cb_file_change, c_lex): Remove indent level handling.
594 * c-lex.h (indent_level): Remove.
595 * input.h (struct file_stack): Remove indent_level.
596 * toplev.c (push_srcloc): Remove indent_level handling.
597
598 2002-05-23 Jakub Jelinek <jakub@redhat.com>
599
600 PR target/6753
601 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
602 of x in constraints for clarity.
603 (sse_mov?fcc split): abort if op2 == op3.
604 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
605 sse_movsfcc_const0_4): Add earlyclobber.
606 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
607 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
608 Use Y instead of x in constraints.
609
610 2002-05-23 Richard Henderson <rth@redhat.com>
611
612 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
613 (C++98 Thread-Local Edits): New subsection.
614
615 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
616 (ix86_arch): Set type to enum processor_type.
617
618 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
619 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
620
621 2002-05-23 Jakub Jelinek <jakub@redhat.com>
622
623 * configure.in: Fix as version test for binutils 2.12.1 releases
624 (without dates).
625 * configure: Rebuilt.
626
627 2002-05-23 Richard Henderson <rth@redhat.com>
628
629 * config/i386/i386.c (get_pic_label_name): New.
630 (load_pic_register): Remove.
631 (output_set_got): New.
632 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
633 * config/i386/i386.md (UNSPEC_SET_GOT): New.
634 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
635 (prologue_set_got, prologue_get_pc): Remove.
636 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
637 (builtin_setjmp_receiver): Use gen_set_got.
638 * config/i386/i386-protos.h: Update.
639
640 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
641
642 * gcse.c (hash_expr): Do not use alias set for hashing.
643
644 2002-05-22 Kevin Buettner <kevinb@redhat.com>
645
646 * dbxout.c (dbxout_class_name_qualifiers): New function.
647 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
648
649 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
650
651 * cpperror.c (_cpp_begin_message): No special casing
652 of CPP_FATAL_LIMIT.
653 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
654 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
655 * cpplib.c (do_include_common): Use DL_ERROR.
656 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
657 (DL_ICE): Renumber.
658 * fix-header.c (read_scan_file): Update.
659
660 2002-05-22 Richard Henderson <rth@redhat.com>
661
662 * config/i386/i386.c (ix86_expand_call): New function, extracted
663 from md call patterns. Add pic_offset_table_rtx to
664 CALL_INSN_FUNCTION_USAGE when needed.
665 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
666 (call_value_pop, call_value, untyped_call): Likewise.
667 (call_exp, call_value_exp): Remove.
668 * config/i386/i386-protos.h: Update.
669
670 2002-05-22 Richard Henderson <rth@redhat.com>
671
672 * varasm.c (default_section_type_flags): Check for VAR_DECL
673 before using DECL_THREAD_LOCAL.
674
675 2002-05-22 David Edelsohn <edelsohn@gnu.org>
676
677 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
678 (STARTFILE_SPEC): Delete PE crt0.o.
679 * config/rs6000/aix51.h: Same.
680 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
681 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
682 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
683 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
684 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
685
686 2002-05-22 Richard Henderson <rth@redhat.com>
687
688 * varasm.c (default_section_type_flags): Handle tls data and
689 default sections.
690 (default_unique_section): Handle tls sections.
691
692 2002-05-23 Alan Modra <amodra@bigpond.net.au>
693
694 * configure.in (CROSS): Define NATIVE_CROSS.
695 * configure: Regenerate.
696 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
697 (startfile_prefix_spec): New var.
698 (static_specs): Add startfile_prefix_spec.
699 (do_spec_2): Split out from..
700 (do_spec): ..here.
701 (main): Process startfile_prefix_spec.
702 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
703 dynamic linker.
704 (STARTFILE_PREFIX_SPEC): Define.
705 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
706 absolute paths.
707
708 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
709
710 * cpperror.c: Fix formatting.
711 * cppexp.c: Likewise.
712 * cppfiles.c: Likewise.
713 * cpphash.c: Likewise.
714 * cpphash.h: Likewise.
715 * cppinit.c: Likewise.
716 * cpplex.c: Likewise.
717 * cpplib.c: Likewise.
718 * cppmacro.c: Likewise.
719 * cppmain.c: Likewise.
720 * cppspec.c: Likewise.
721
722 2002-05-22 Jakub Jelinek <jakub@redhat.com>
723
724 * combine.c (force_to_mode): Use gen_int_mode.
725 Don't clear CONST_INT bits outside of mode.
726
727 2002-05-22 Richard Henderson <rth@redhat.com>
728
729 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
730 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
731
732 2002-05-22 Jakub Jelinek <jakub@redhat.com>
733
734 PR c/6643
735 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
736 if DECL_SIZE_UNIT is INTEGER_CST.
737
738 2002-05-22 Richard Henderson <rth@redhat.com>
739
740 * flow.c (life_analysis): Delete broken reg_label check.
741
742 2002-05-22 Richard Henderson <rth@redhat.com>
743
744 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
745 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
746
747 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
748
749 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
750 (embed-bb.c): New rule.
751 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
752 * config/sh/embed_bb.c: Delete.
753
754 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
755
756 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
757
758 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
759
760 * config/h8300/h8300.md (*andorqi3): New.
761
762 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
763
764 PR preprocessor/6517
765 * Makefile.in: Update.
766 * c-common.c (c_common_post_options): Add preprocessor
767 errors to the error count.
768 * c-lang.c (c_post_options): Kill.
769 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
770 * hooks.h: Add header guards.
771 * langhooks-def.h: Include hooks.h.
772 (LANG_HOOKS_POST_OPTIONS): Update.
773 * langhooks.h (struct lang_hooks): Update post_options.
774 * toplev.c (parse_options_and_default_flags): Update.
775 objc:
776 * objc-lang.c (objc_post_options): Kill.
777 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
778
779 2002-05-21 Bruce Korb <bkorb@gnu.org>
780
781 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
782 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
783 * fixinc/fixincl.x: regen.
784
785 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
786
787 * cfgbuild.c: Fix formatting.
788 * cfg.c: Likewise.
789 * cfgcleanup.c: Likewise.
790 * cfglayout.c: Likewise.
791 * cfgloop.c: Likewise.
792 * cfgrtl.c: Likewise.
793
794 2002-05-21 Richard Henderson <rth@redhat.com>
795
796 * c-common.h (enum rid): Add RID_THREAD.
797 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
798 (grokdeclarator): Grok __thread.
799 * c-parse.in (reswords): Add __thread.
800 (rid_to_yy): Add RID_THREAD.
801
802 * tree.h (DECL_THREAD_LOCAL): New.
803 (struct tree_decl): Add thread_local_flag.
804 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
805 * tree.c (staticp): TLS variables are not static.
806
807 * target-def.h (TARGET_HAVE_TLS): New.
808 * target.h (have_tls): New.
809 * output.h (SECTION_TLS): New.
810 * varasm.c (assemble_variable): TLS variables can't be common for now.
811 (default_section_type_flags): Handle .tdata and .tbss.
812 (default_elf_asm_named_section): Handle SECTION_TLS.
813 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
814
815 * flags.h (flag_tls_default): Declare.
816 * toplev.c (flag_tls_default): Define.
817 (display_help): Display help for it.
818 (decode_f_option): Set it.
819
820 * doc/extend.texi (Thread-Local): New node describing language-level
821 thread-local storage.
822 * doc/invoke.texi (-ftls-model): Document.
823
824 * fixinc/inclhack.def (thread_keyword): New.
825 * fixinc/fixincl.x: Rebuild.
826
827 2002-05-21 Jeffrey A Law <law@redhat.com>
828
829 * optabs.c (expand_binop): For double-word integer multiplies,
830 do not compute intermediate results into something that is
831 not a register (such as a SUBREG or MEM).
832
833 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
834 (ix86_sched_reorder): Make sure to initialize scheduling
835 data even when there's only one insn in the ready queue.
836
837 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
838
839 * genautomata.c (reserv_sets_hash_value): Fix a typo.
840
841 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
842
843 * genautomata.c (reserv_sets_hash_value): Define hash_value as
844 set_el_t. Transform the hash value into unsigned.
845 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
846 (transform_3): Add code to process `(A,B)+(D,E)'.
847
848 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
849
850 * reload1.c (do_output_reload): Run delete_output_reload
851 only if optimizing.
852
853 2002-05-21 Roger Sayle <roger@eyesopen.com>
854
855 PR middle-end/6600
856 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
857 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
858 (can_store_by_pieces): ... and here to limit the largest mode used.
859 Add a comment to document this function.
860
861 2002-05-21 Richard Henderson <rth@redhat.com>
862
863 * flow.c (life_analysis): Fix test for deleted label.
864
865 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
866
867 * doc/tm.texi: Fix typo.
868
869 2002-05-21 Zack Weinberg <zack@codesourcery.com>
870
871 * c-common.c (c_common_init): Set options->unsigned_char from
872 flag_signed_char.
873 (cb_register_builtins): Define __STRICT_ANSI__ and
874 __CHAR_UNSIGNED__ here...
875 * cppinit.c (init_builtins): Not here.
876 (cpp_create_reader): unsigned_char option defaults to 0, not
877 !DEFAULT_SIGNED_CHAR.
878 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
879 and -funsigned-char.
880
881 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
882 * cpphash.c (_cpp_init_hashtable): Don't set it.
883 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
884 directly. Clarify comment.
885
886 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
887
888 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
889 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
890 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
891 BASIC_BLOCK (n_basic_blocks - 1).
892 * cfganal.c (can_fallthru, flow_call_edges_add,
893 flow_preorder_transversal_compute): Too.
894 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
895 find_sub_basic_blocks): Too.
896 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
897 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
898 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
899 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
900 * combine.c (this_basic_block): Type changed to basic_block.
901 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
902 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
903 get_last_value, distribute_notes, distribute_links): Too.
904 * final.c (compute_alignments): Too.
905 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
906 * function.c (thread_prologue_and_epilogue_insns): Too.
907 * gcse.c (compute_code_hoist_vbeinout): Too.
908 * global.c (build_insn_chain): Too.
909 * ifcvt.c (find_if_block, find_cond_trap): Too.
910 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
911 * regmove.c (regmove_optimize): Too.
912 * resource.c (find_basic_block): Too.
913 * sched-ebb.c (schedule_ebbs): Too.
914 * ssa-dce.c (find_control_dependence, find_pdom): Too.
915
916 2002-05-21 Andreas Jaeger <aj@suse.de>
917
918 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
919
920 2002-05-21 Richard Henderson <rth@redhat.com>
921
922 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
923 unspec names, not numbers.
924
925 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
926
927 * doc/sourcebuild.texi: Mention snapshot-README and
928 snapshot-index.html as needing updating for new front ends.
929
930 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
931
932 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
933 disabling checking, and avoid multiple evaluation of RTX.
934
935 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
936
937 * bitmap.c (bitmap_find_bit): Return early if we have the correct
938 element cached.
939
940 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
941
942 * profile.c (gen_edge_profiler): Set alias set before the memory is
943 used.
944
945 2002-05-20 David S. Miller <davem@redhat.com>
946
947 * cselib.c (max_value_regs): New.
948 (cselib_lookup, cselib_invalidate_regno): Initialize it when
949 adding new entries to the REG_VALUES table and we are dealing with
950 a hard register.
951 (clear_table): Initialize it.
952 (cselib_invalidate_regno): Use it to determine which hard
953 registers to scan when mode is not VOIDmode.
954
955 2002-05-20 Duraid Madina <duraid@fl.net.au>
956
957 * tradcpp.c (fixup_newlines): Use old-style function header.
958
959 2002-05-20 Krister Walfridsson <cato@df.lth.se>
960
961 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
962
963 2002-05-20 H.J. Lu (hjl@gnu.org)
964
965 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
966
967 * config/mips/mips.h (DFMODE_NAN): Defined.
968 (SFMODE_NAN): Likewise.
969
970 2002-05-20 Dale Johannesen <dalej@apple.com>
971
972 * combine.c (cant_combine_insn_p): Back out my
973 previous patch.
974
975 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
976
977 * params.c: Fix formatting.
978 * params.h: Likewise.
979 * predict.c: Likewise.
980 * prefix.c: Likewise.
981 * print-rtl.c: Likewise.
982 * print-tree.c: Likewise.
983 * profile.c: Likewise.
984
985 2002-05-20 H.J. Lu (hjl@gnu.org)
986
987 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
988
989 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
990
991 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
992 switches straight on to the assembler, do not abbreviate them.
993 * config/arm/elf.h (ASM_SPEC): As above.
994 * config/arm/semi.h (ASM_SPEC): As above.
995 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
996 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
997 -mcpu=xscale on to the assembler by default.
998 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
999
1000 2002-05-20 Richard Henderson <rth@redhat.com>
1001
1002 * cse.c (canon_hash): Reorder do_not_record test. Always
1003 allow pic_offset_table_rtx.
1004
1005 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1006
1007 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1008 (expand_binop): Ditto (3 times).
1009
1010 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1011
1012 * Makefile.in (distclean): Remove QMTest stuff.
1013 (QMTEST_PATH): New variable.
1014 (QMTESTFLAGS): Likewise.
1015 (QMTESTRUNFLAGS): Likewise.
1016 (QMTEST): Likewise.
1017 (QMTEST_GPP_TESTS): Likewise.
1018 (QMTEST_DIR): Likewise.
1019 (QMTEST_DIR/context): New target.
1020 (qmtest-g++): Likeise.
1021 (qmtest-gui): Likewise.
1022 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1023
1024 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1025
1026 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1027 an altivec register if TARGET_ALTIVEC.
1028
1029 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1030 to ALTIVEC_VECTOR_MODE.
1031 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1032 (rs6000_va_arg): Vectors may go in registers if they are not
1033 altivec vectors.
1034
1035 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1036
1037 * protoize.c: Fix formatting.
1038
1039 2002-05-19 Richard Henderson <rth@redhat.com>
1040
1041 * gensupport.c (init_include_reader): Merge into ...
1042 (process_include): ... here. Simplify composite path creation.
1043 Plug memory leaks. Fix file/line number tracking. Do not
1044 process_define_cond_exec. Return void.
1045 (process_rtx): Don't check process_include return value.
1046
1047 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1048
1049 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1050 fields.
1051 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1052 traversing basic block chain.
1053 (create_basic_block_structure, create_basic_block): Declaration changed.
1054 (link_block, unlink_block): Declare.
1055 * cfg.c (entry_exit_blocks): Initialize new fields.
1056 (link_block, unlink_block): New.
1057 (expunge_block_nocompact): Unlink basic block.
1058 (dump_flow_info): Print prev_bb/next_bb fields.
1059 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1060 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1061 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1062 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1063 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1064 (verify_flow_info): Check that list agrees with numbering.
1065
1066 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1067
1068 * c-common.c (preprocessing_asm): New macro.
1069 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1070 doc:
1071 * tm.texi: Update.
1072 config/alpha:
1073 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1074 (CPP_SPEC): Simplify.
1075 (TARGET_CPU_CPP_BUILTINS): Update.
1076 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1077 (CPP_SPEC): Simplify.
1078 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1079 (TARGET_OS_CPP_BUILTINS): Update.
1080 * osf.h (CPP_XFLOAT_SPEC): Kill.
1081 (TARGET_OS_CPP_BUILTINS): Update.
1082 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1083 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1084 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1085 (TARGET_OS_CPP_BUILTINS): Update.
1086
1087 2002-05-19 Richard Henderson <rth@redhat.com>
1088
1089 * varasm.c (default_binds_local_p): Fix typo.
1090
1091 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1092
1093 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1094 CONST_INT operand to the correct mode after adding 1 to it.
1095
1096 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1097
1098 * config.gcc (powerpc-wrs-windiss*): New target.
1099
1100 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1101
1102 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1103 (ashrdi3): Use it.
1104
1105 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1106
1107 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1108 alphasort.
1109 * config.in: Regenerated.
1110 * configure: Regenerated.
1111
1112 2002-05-19 Richard Henderson <rth@redhat.com>
1113
1114 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1115 * target.h (struct gcc_target): Move boolean fields to the end.
1116 Add binds_local_p.
1117 * varasm.c (default_binds_local_p): New.
1118 * output.h: Declare it.
1119
1120 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1121 * config/cris/cris.c (cris_encode_section_info): Likewise.
1122 * config/i386/i386.c (i386_encode_section_info): Likewise.
1123 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1124 * config/sh/sh.c (sh_encode_section_info): Likewise.
1125
1126 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1127 (TARGET_BINDS_LOCAL_P): New.
1128
1129 2002-05-19 Richard Henderson <rth@redhat.com>
1130
1131 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1132 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1133 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1134
1135 * toplev.c (display_help): Kill -a -ax help.
1136
1137 * config/1750a/1750a.h, config/alpha/alpha.h,
1138 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1139 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1140 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1141 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1142
1143 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1144 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1145
1146 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1147 (ix86_output_function_block_profiler): Kill.
1148 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1149 (m68hc11_function_block_profiler): Kill.
1150 * config/m68hc11/m68hc11-protos.h: Update.
1151 * config/m88k/m88k.c (output_block_profiler): Kill.
1152 (output_function_block_profiler): Kill.
1153 * config/m88k/m88k-protos.h: Update.
1154
1155 2002-05-19 Richard Henderson <rth@redhat.com>
1156
1157 * system.h (STRIP_NAME_ENCODING): Poison it.
1158 * output.h (STRIP_NAME_ENCODING): Remove.
1159 (default_strip_name_encoding): Declare.
1160 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1161 * target.h (strip_name_encoding): New.
1162 * varasm.c (default_strip_name_encoding): New.
1163
1164 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1165 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1166 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1167 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1168 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1169 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1170 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1171 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1172 config/v850/v850.h: Use the hook, not the macro.
1173
1174 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1175 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1176 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1177 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1178 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1179 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1180 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1181 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1182 config/v850/v850.c, config/v850/v850.h:
1183 Move STRIP_NAME_ENCODING to out-of-line function and add
1184 TARGET_STRIP_NAME_ENCODING.
1185
1186 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1187 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1188 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1189 make function static.
1190
1191 * xcoffout.c: Include target.h
1192 * Makefile.in (xcoffout.o): Update.
1193
1194 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1195 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1196 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1197 reloc argument unused.
1198 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1199
1200 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1201 STRIP_NAME_ENCODING docs.
1202
1203 2002-05-19 Andreas Jaeger <aj@suse.de>
1204
1205 * gengenrtl.c: Add prototype for excluded_rtx.
1206
1207 * real.h: Add prototype for exact_real_truncate.
1208
1209 2002-05-18 Richard Henderson <rth@redhat.com>
1210
1211 * system.h (ENCODE_SECTION_INFO): Poison it.
1212 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1213 * target.h (encode_section_info): New.
1214 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1215 * hooks.c (hook_tree_int_void): New.
1216 * hooks.h: Declare it.
1217
1218 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1219 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1220 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1221 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1222 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1223 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1224 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1225 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1226 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1227 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1228 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1229 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1230 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1231 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1232 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1233 referencing existing function. Make function static.
1234
1235 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1236 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1237 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1238 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1239 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1240 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1241 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1242 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1243 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1244 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1245 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1246 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1247 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1248 Move ENCODE_SECTION_INFO to out-of-line function and add
1249 TARGET_ENCODE_SECTION_INFO.
1250
1251 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1252 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1253
1254 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1255 from SUBTARGET_*
1256 (switch_to_section): Replace in_rdata case with in_readonly_data.
1257
1258 * config/h8300/h8300.c (h8300_encode_label): Make static.
1259 * config/h8300/h8300-protos.h: Update.
1260
1261 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1262 from rs6000_encode_section_info; make static.
1263 (rs6000_xcoff_encode_section_info): New.
1264
1265 * config/v850/v850.c (v850_encode_data_area): Make static.
1266 * config/v850/v850-protos.h: Update.
1267
1268 * config/vax/vax.c: Include flags.h.
1269 (vms_select_section): Fix typo.
1270
1271 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1272 ENCODE_SECTION_INFO docs.
1273
1274 2002-05-18 Richard Henderson <rth@redhat.com>
1275
1276 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1277 REGISTER_TARGET_PRAGMAS.
1278 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1279
1280 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1281
1282 2002-05-18 Richard Henderson <rth@redhat.com>
1283
1284 * system.h (SELECT_RTX_SECTION): Poison.
1285 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1286 * target.h (select_rtx_section): New.
1287 * varasm.c (output_constant_pool): Use it.
1288 (default_select_rtx_section, default_elf_select_rtx_section): New.
1289 * output.h: Declare them.
1290
1291 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1292 * config/darwin.c (machopic_select_rtx_section): ... here.
1293 * config/darwin-protos.h: Update.
1294
1295 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1296 * config/nextstep.c (machopic_select_rtx_section): ... here.
1297 (nextstep_select_section): Rename variable to avoid macro clash.
1298 * config/nextstep-protos.h: Update.
1299
1300 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1301 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1302 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1303 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1304 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1305 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1306 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1307 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1308 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1309 (SELECT_RTX_SECTION): Remove.
1310
1311 * config/darwin.h, config/elfos.h, config/nextstep.h,
1312 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1313 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1314 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1315 config/sparc/lynx.h, config/xtensa/xtensa.c
1316 (TARGET_ASM_SELECT_RTX_SECTION): New.
1317
1318 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1319 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1320 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1321 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1322 (ia64_aix_select_rtx_section): New.
1323 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1324 redefining.
1325 * config/mips/mips.c (mips_select_rtx_section): Make static.
1326 Support ELF SHF_MERGE features.
1327 * config/mips/mips-protos.h: Update.
1328 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1329 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1330 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1331 make static, fall back to default_elf_select_rtx_section.
1332 * config/rs6000/rs6000-protos.h: Update.
1333 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1334 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1335 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1336 * config/romp/romp.c (romp_select_rtx_section): New.
1337 * config/s390/s390.c (s390_select_rtx_section): New.
1338 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1339 declarations before target macro definition.
1340 (xtensa_emit_call): Use static buffer.
1341 (xtensa_select_rtx_section): New.
1342 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1343 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1344 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1345
1346 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1347 SELECT_RTX_SECTION docs.
1348
1349 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1350
1351 * i386.md (movsi/movdi): Fix template.
1352 (sse2 patterns): Set attributes consistently.
1353
1354 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1355
1356 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1357
1358 * optabs.c (complex_part_zero_p): New.
1359 * (expand_cmplxdiv_straight): Use it.
1360 * (expand_cmplxdiv_wide): Ditto.
1361 * (expand_binop): Ditto.
1362
1363 2002-05-18 Richard Henderson <rth@redhat.com>
1364
1365 * final.c (HAVE_READONLY_DATA_SECTION): New.
1366 (shorten_branches): Use it instead of ifdefs.
1367 * varasm.c (enum in_section): Add in_readonly_data.
1368 (text_section, data_section): Tidy.
1369 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1370
1371 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1372 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1373 (READONLY_DATA_SECTION): Don't undef.
1374
1375 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1376 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1377 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1378
1379 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1380 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1381 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1382 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1383
1384 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1385 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1386 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1387 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1388 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1389 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1390 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1391 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1392 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1393
1394 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1395 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1396 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1397 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1398 config/pa/pa64-hpux.h, config/sparc/litecoff.h
1399 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1400
1401 * config/elfos.h, config/netware.h, config/svr3.h,
1402 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1403 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1404 config/h8300/h8300.h, config/i386/i386-interix.h,
1405 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1406 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1407
1408 * config/elfos.h, config/netware.h, config/svr3.h,
1409 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1410 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1411 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1412 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1413
1414 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1415 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1416 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1417 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1418 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1419 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1420 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1421 config/rs6000/sysv4.h, config/v850/v850.h
1422 (EXTRA_SECTIONS): Remove in_const/in_rdata.
1423 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1424
1425 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1426 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1427 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1428 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1429 * config/alpha/alpha.c (alpha_start_function): Likewise.
1430 (alpha_write_linkage): Likewise.
1431 * config/m32r/m32r.c (m32r_select_section): Likewise.
1432 * config/m88k/m88k.c (m88k_select_section): Likewise.
1433 * config/mips/mips.c (mips_select_rtx_section): Likewise.
1434 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1435 (rs6000_elf_select_section): Likewise.
1436 * config/v850/v850.c (v850_select_section): Likewise.
1437
1438 * config/1750a/1750a.h, config/i860/sysv3.h
1439 (READONLY_DATA_SECTION_ASM_OP): New.
1440 READONLY_DATA_SECTION_ASM_OP.
1441 * config/i386/interix.c, config/i386/winnt.c
1442 (i386_pe_unique_section): Always use .rdata prefix.
1443 * config/pa/som.h (readonly_data): Always switch to read-only section.
1444 (READONLY_DATA_SECTION): Predicate on flag_pic.
1445 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1446 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1447 (READONLY_DATA_SECTION): Update.
1448
1449 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
1450
1451 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1452 is used without -Wformat.
1453 * c-common.h (warn_format_zero_length): Declare extern.
1454 * c-decl.c (warn_options): Add "format-zero-length".
1455 * c-format.c (warn_format_zero_length): Declare.
1456 (set_Wformat): Set warn_format_zero_length for -Wformat.
1457 (check_format_info): Only warn about zero-length formats if
1458 warn_format_zero_length is true. Include the format type
1459 name in the warning message.
1460 * doc/invoke.texi: Document -Wformat-zero-length.
1461 * testsuite/gcc.dg/format/zero-length-1.c: New test.
1462
1463 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1464
1465 * timevar.c: Fix formatting.
1466 * tlink.c: Likewise.
1467 * toplev.c: Likewise.
1468 * tree-dump.c: Likewise.
1469 * tree-inline.c: Likewise.
1470
1471 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1472
1473 * cppinit.c (cpp_post_options): If preprocessed, turn off
1474 traditional. If traditional, turn off column numbers.
1475 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1476 * cpptrad.c (handle_newline): Update line_base.
1477 (skip_comment): Handle -Wcomment.
1478
1479 2002-05-17 Zack Weinberg <zack@codesourcery.com>
1480
1481 * cppinit.c (struct builtin): Remove unused fields.
1482 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1483 (operator_array): New - was second half of builtin_array.
1484 (init_builtins): Simplify loop over builtin_array/operator_array.
1485
1486 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1487
1488 * defaults.h (UNIQUE_SECTION): Remove.
1489 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1490
1491 2002-05-17 Richard Henderson <rth@redhat.com>
1492
1493 * expr.c (init_expr_once): Don't use start/end_sequence.
1494 Use rtx_alloc instead of emit_insn.
1495 * toplev.c (lang_dependent_init): Run init_expr_once here ...
1496 (lang_independent_init): ... not here.
1497
1498 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1499
1500 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1501
1502 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1503
1504 * config/avr/avr.c (avr_regs_to_save): New function. Also check
1505 for fixed registers, possibly used for global register variables.
1506 (initial_elimination_offset, avr_output_function_prologue,
1507 avr_output_function_epilogue): Move common code to avr_regs_to_save.
1508
1509 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1510
1511 * Makefile.in: Update for cpptrad.c.
1512 * cpphash.h (struct cpp_buffer): New members for buffer
1513 overlays.
1514 (struct cpp_reader): New members for traditional output.
1515 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
1516 * cppinit.c (cpp_create_reader): Set trad_line.
1517 (cpp_destroy): Free trad_out_base if used.
1518 (cpp_read_main_file): Overlay an empty buffer if traditional.
1519 (cpp_finish_options): Don't do builtins.
1520 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
1521 (cpp_handle_option): Handle it.
1522 * cpplex.c (continue_after_nul): New.
1523 (_cpp_lex_direct): Use handle_nul.
1524 * cpplib.h (struct cpp_options): New traditional option.
1525 * cpptrad.c: New file.
1526
1527 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1528
1529 * c-common.c (c_common_init_options): Use C89 for Objective-C,
1530 and set the options flag.
1531 * cppinit.c (lang_flags): Remove objc.
1532 (lang_defaults): Remove OBJC and OBJCXX.
1533 (set_lang): Update.
1534 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
1535 (cpp_handle_option): Remove -+ and -lang-objc++.
1536 For ObjC, just set a flag.
1537 (print_help): Update.
1538 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
1539
1540 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1541
1542 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
1543 bootstrap with -mips3.
1544
1545 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
1546
1547 * final.c: Fix formatting.
1548 * fix-header.c: Likewise.
1549 * flow.c: Likewise.
1550 * fold-const.c: Likewise.
1551 * function.c: Likewise.
1552
1553 2002-05-17 David S. Miller <davem@redhat.com>
1554
1555 PR c/6689, PR optimization/6615
1556 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
1557 and make it a pointer to rtx. Update comments.
1558 (update_equiv_regs): When scanning for equivalences, record
1559 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
1560 it while making the equiv replacements.
1561
1562 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1563
1564 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
1565
1566 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
1567
1568 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
1569 when encoding visibility into SYMBOL_REF_FLAG.
1570
1571 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
1572
1573 * expr.c (force_operand): Fix reversed move.
1574
1575 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
1576
1577 * doc/install.texi (Testing): Mention two common DejaGnu warnings
1578 that can be ignored.
1579
1580 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1581
1582 * doc/install.texi (Final install): Recommend to install into a
1583 "clean" target directory.
1584
1585 2002-05-17 Richard Henderson <rth@redhat.com>
1586
1587 * config/ia64/ia64.md: Use braced strings instead of quoted strings
1588 for code blocks. Tidy whitespace.
1589
1590 2002-05-17 Richard Henderson <rth@redhat.com>
1591
1592 * hooks.c (hook_tree_bool_false): New.
1593 * hooks.h: Declare it.
1594 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
1595 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
1596 * target.h (select_section, unique_section): New.
1597 (in_small_data_p): New.
1598 * varasm.c (resolve_unique_section): Use hooks instead of macros.
1599 (variable_section, output_constant_def_contents): Likewise.
1600 (default_select_section, default_unique_section): New.
1601 (categorize_decl_for_section, default_elf_select_section): New.
1602 * output.h: Declare them.
1603
1604 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
1605 (TARGET_ASM_SELECT_SECTION): New.
1606 (SELECT_SECTION): Move ...
1607 * config/darwin.c (machopic_select_section): ... here.
1608 * config/darwin-protos.h: Update.
1609
1610 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
1611 (SELECT_SECTION): Move ...
1612 * config/nextstep.c (nextstep_select_section): ... here.
1613 * config/nextstep-protos.h: Update.
1614
1615 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
1616 (TARGET_ASM_SELECT_SECTION): New.
1617 * config/svr3.h (SELECT_SECTION): Remove.
1618
1619 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
1620 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
1621 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
1622 (alpha_encode_section_info): Use it.
1623 * config/alpha/alpha-protos.h: Update.
1624 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
1625 (SELECT_SECTION, UNIQUE_SECTION): Remove.
1626 (TARGET_ASM_SELECT_SECTION): New.
1627 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
1628
1629 * config/arm/pe.h (UNIQUE_SECTION): Remove.
1630 (TARGET_ASM_UNIQUE_SECTION): New.
1631
1632 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
1633 (avr_unique_section): Rename from unique_section; make static.
1634 * config/avr/avr-protos.h: Update.
1635 * config/avr/avr.h (UNIQUE_SECTION): Remove.
1636
1637 * config/c4x/c4x.h (SELECT_SECTION): Remove.
1638
1639 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
1640 (TARGET_ASM_UNIQUE_SECTION): New.
1641 * config/i386/i386-interix.h: Likewise.
1642 * config/i386/win32.h: Likewise.
1643 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
1644 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
1645 * config/i386/sco5.h (SELECT_SECTION): Remove.
1646 (TARGET_ASM_SELECT_SECTION): New.
1647 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
1648
1649 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
1650 instead of SELECT_SECTION.
1651 * config/m68k/dpx2.h: Likewise.
1652 * config/rs6000/lynx.h: Likewise.
1653
1654 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1655 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
1656 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
1657 (ia64_in_small_data_p): New.
1658 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
1659 (ia64_aix_select_section, ia64_aix_unique_section): New.
1660 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
1661 (SELECT_SECTION, UNIQUE_SECTION): Remove.
1662
1663 * config/m32r/m32r.h (SELECT_SECTION): Remove.
1664 (TARGET_ASM_SELECT_SECTION): New.
1665 * config/m32r/m32r.c (m32r_select_section): Take align argument.
1666 * config/m32r/m32r-protos.h: Update.
1667
1668 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
1669 (SELECT_SECTION): Move ...
1670 * config/m88k/m88k.c (m88k_select_section): ... here.
1671
1672 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
1673 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
1674 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
1675 (mcore_unique_section): Make static.
1676 * config/mcore/mcore-protos.h: Update.
1677
1678 * config/mips/elf.h (UNIQUE_SECTION): Remove.
1679 (TARGET_ASM_UNIQUE_SECTION): New.
1680 * config/mips/elf64.h: Likewise.
1681 * config/mips/iris6gld.h: Likewise.
1682 * config/mips/linux.h: Likewise.
1683 * config/mips/mips-protos.h: Update.
1684 * config/mips/mips.c (mips_select_section): Add align argument.
1685 * config/mips/mips.h (SELECT_SECTION): Remove.
1686 (TARGET_ASM_SELECT_SECTION): New.
1687
1688 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1689 * config/mmix/mmix.c (mmix_select_section): Remove.
1690 (mmix_unique_section): Remove.
1691 * config/mmix/mmix-protos.h: Update.
1692
1693 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
1694 (SELECT_SECTION): Move ...
1695 * config/pa/pa.c (pa_select_section): ... here.
1696 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
1697
1698 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
1699 from rs6000_select_section and make static.
1700 (rs6000_elf_unique_section): Similarly.
1701 (rs6000_xcoff_select_section): From xcoff.h.
1702 (rs6000_xcoff_unique_section): Likewise.
1703 * config/rs6000/rs6000-protos.h: Update.
1704 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1705 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
1706 * config/rs6000/xcoff.h: Likewise.
1707
1708 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
1709 (SELECT_SECTION): Move ...
1710 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
1711
1712 * config/v850/v850.h (SELECT_SECTION): Move ...
1713 * config/v850/v850.c (v850_select_section): ... here.
1714 (TARGET_ASM_SELECT_SECTION): New.
1715
1716 * config/vax/vms.h (SELECT_SECTION): Move ...
1717 * config/vax/vax.c (vms_select_section): ... here.
1718 (TARGET_ASM_SELECT_SECTION): New.
1719
1720 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
1721 for the target hooks.
1722
1723 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
1724
1725 * config/arm/arm.c (emit_multi_reg_push): Do not set
1726 RTX_FRAME_RELATED_P on the SEQUENCE.
1727
1728 2002-05-16 Richard Henderson <rth@redhat.com>
1729
1730 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
1731 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
1732
1733 2002-05-16 Richard Henderson <rth@redhat.com>
1734
1735 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1736
1737 * config/ia64/ia64.c (saveable_obstack): Do not declare.
1738
1739 2002-05-16 Richard Henderson <rth@redhat.com>
1740
1741 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
1742 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
1743 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
1744 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
1745 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
1746 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
1747 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
1748 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
1749 Revert "Basic block renumbering removal", and two followup patches.
1750
1751 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1752
1753 * lcm.c (optimize_mode_switching): Revert previous change.
1754
1755 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1756
1757 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
1758 with only extant block numbers.
1759
1760 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1761
1762 * lcm.c (optimize_mode_switching): Fix typo.
1763
1764 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1765
1766 * flow.c (calculate_global_regs_live): Queue blocks in program order.
1767
1768 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1769
1770 * doc/install.texi (Configuration): Document PWDCMD.
1771
1772 2002-05-16 Dale Johannesen <dalej@apple.com>
1773
1774 * combine.c (cant_combine_insn_p): Reenable combinations
1775 involving hard regs unless CLASS_LIKELY_SPILLED_P.
1776
1777 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1778
1779 * c-common.c (cb_register_builtins): Handle more built-ins
1780 here rather than in gcc.c specs.
1781 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
1782 (cpp_options): Pass -O flags even when only preprocessing.
1783 * toplev.c (set_fast_math_flags): New prototype.
1784 (fast_math_flags_set_p): New.
1785 (set_no_fast_math_flags): Remove.
1786 (decode_f_option): Update.
1787 * toplev.h (set_fast_math_flags): Update.
1788 (fast_math_flags_set_p): New.
1789 (set_no_fast_math_flags): Remove.
1790 config:
1791 * c4x/c4x.c (c4x_override_options): Update.
1792
1793 2002-05-16 Zack Weinberg <zack@codesourcery.com>
1794
1795 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
1796 Default-define here.
1797 (builtin_define_with_value): Can now wrap the expansion in
1798 quotation marks if such is wanted.
1799 (cb_register_builtins): Update calls to builtin_define_with_value.
1800 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
1801 here.
1802 (c_common_init): Set options->stdc_0_in_system_headers.
1803 * c-lex.h: Update prototype of builtin_define_with_value.
1804 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
1805 and REGISTER_PREFIX.
1806
1807 * cppinit.c (VERS, ULP, C, X): Kill.
1808 (builtin_array): Remove entries for __VERSION__,
1809 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
1810 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
1811 a constant.
1812 (init_builtins): Kill off a bunch of now-dead code.
1813 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
1814 -fno-leading-underscore.
1815 (cpp_handle_option): Remove code to set user_label_prefix.
1816 (cpp_post_options): Likewise.
1817
1818 * cpplib.h (struct cpp_options): Remove user_label_prefix.
1819 (stdc_0_in_system_headers): New.
1820 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
1821 stdc_0_in_system_headers) too to decide the value of __STDC__.
1822
1823 * tradcpp.c (user_label_prefix): Kill.
1824 (main): Remove code handling -f(no-)leading-underscore.
1825 (initialize_builtins): Don't define __REGISTER_PREFIX__
1826 or __USER_LABEL_PREFIX__.
1827 (install_value): Wrap compound statement in dummy loop so the
1828 macro works properly in an if statement.
1829
1830
1831 2002-05-16 Janis Johnson <janis187@us.ibm.com>
1832
1833 * loop.h (struct loop_info): Add member has_prefetch.
1834 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
1835 (prescan_loop): Initialize has_prefetch.
1836 (struct prefetch_info): Change prefetch_in_loop and
1837 prefetch_before_loop from bit fields to ints.
1838 (emit_prefetch_instructions): Several small fixes.
1839 (check_dbra_loop): Don't reverse loop that uses prefetch.
1840
1841 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1842
1843 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1844 * configure.in: Likewise.
1845 * fixinc/check.tpl: Likewise.
1846 * fixinc/fixinc.dgux: Likewise.
1847 * fixinc/fixinc.svr4: Likewise.
1848 * fixinc/fixinc.winnt: Likewise.
1849 * fixinc/fixincl.sh: Likewise.
1850 * fixproto: Likewise.
1851 * configure: Regenerate.
1852
1853 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1854
1855 Basic block renumbering removal:
1856 * basic_block.h (struct basic_block_def): Renamed index to sindex,
1857 added prev_bb and next_bb fields.
1858 (n_basic_blocks): Renamed to num_basic_blocks.
1859 (last_basic_block): New, index of last basic block.
1860 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1861 traversing basic block chain.
1862 (BLOCK_NUM): index -> sindex.
1863 (create_basic_block_structure, create_basic_block): Declaration changed.
1864 (debug_num2bb): Declare.
1865 (expunge_block_nocompact): Declaration removed.
1866 (link_block, unlink_block, compact_blocks): Declare.
1867 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1868 * cfg.c (entry_exit_blocks): Initialize new fields.
1869 (clear_edges, alloc_block, expunge_block, cached_make_edge,
1870 redirect_edge_pred, dump_flow_info, dump_edge_info,
1871 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1872 free_aux_for_edges): Modified.
1873 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1874 (expunge_block_nocompact): Removed.
1875 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1876 find_unreachable_blocks, create_edge_list, print_edge_list,
1877 verify_edge_list, flow_edge_list_print, remove_fake_successors,
1878 remove_fake_edges, flow_reverse_top_sort_order_compute,
1879 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1880 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1881 flow_dfs_compute_reverse_execute): Modified.
1882 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1883 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1884 Modified.
1885 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1886 merge_blocks_move_predecessor_nojumps,
1887 merge_blocks_move_successor_nojumps, merge_blocks,
1888 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1889 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1890 * cfglayout.c (skip_insns_after_block, label_for_bb,
1891 record_effective_endpoints, scope_to_insns_finalize,
1892 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1893 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1894 cfg_layout_duplicate_bb): Modified.
1895 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1896 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1897 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1898 flow_loops_find, flow_loop_outside_edge_p): Modified.
1899 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1900 flow_delete_block, compute_bb_for_insn, split_block,
1901 try_redirect_by_replacing_jump, redirect_edge_and_branch,
1902 force_nonfallthru_and_redirect, tidy_fallthru_edge,
1903 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1904 commit_edge_insertions, commit_edge_insertions_watch_calls,
1905 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1906 purge_all_dead_edges): Modified.
1907 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1908 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1909 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1910 Modified.
1911 * conflict.c (conflict_graph_compute): Modified.
1912 * df.c (FOR_ALL_BBS): Removed.
1913 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1914 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1915 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1916 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1917 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1918 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1919 * final.c (compute_alignments, final_scan_insn): Modified.
1920 * flow.c (verify_local_live_at_start, update_life_info,
1921 update_life_info_in_dirty_blocks, free_basic_block_vars,
1922 delete_noop_moves, calculate_global_regs_live,
1923 initialize_uninitialized_subregs, allocate_bb_life_data,
1924 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1925 mark_used_reg, count_or_remove_death_notes): Modified.
1926 * function.c (thread_prologue_and_epilogue_insns): Modified.
1927 * gcse.c (struct null_pointer_info): Change typo of current_block
1928 to basic_block.
1929 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1930 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1931 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1932 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1933 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1934 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1935 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1936 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1937 pre_delete, one_pre_gcse_pass, compute_transpout,
1938 invalidate_nonnull_info, delete_null_pointer_checks_1,
1939 free_code_hoist_mem, compute_code_hoist_vbeinout,
1940 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1941 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1942 compute_store_table, build_store_vectors, insert_insn_start_bb,
1943 insert_store, replace_store_insn, free_store_memory, store_motion):
1944 Modified.
1945 * global.c (global_alloc, global_conflicts, mark_elimination,
1946 build_insn_chain): Modified.
1947 * graph.c (print_rtl_graph_with_bb): Modified.
1948 * haifa-sched.c (sched_init): Modified.
1949 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1950 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1951 if_convert): Modified.
1952 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1953 compute_insert_delete, pre_edge_lcm, compute_available,
1954 compute_farthest, compute_nearerout, compute_rev_insert_delete,
1955 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1956 Modified.
1957 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1958 * loop.c (loop_dump_aux): Modified.
1959 * predict.c (combine_predictions_for_insn, estimate_probability,
1960 last_basic_block_p, process_note_prediction, process_note_predictions,
1961 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1962 expensive_function_p, estimate_bb_frequencies,
1963 compute_function_frequency): Modified.
1964 * print-rtl.c (print_rtx): Modified.
1965 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1966 get_exec_counts, compute_branch_probabilities, compute_checksum,
1967 branch_prob, find_spanning_tree): Modified.
1968 * recog.c (split_all_insns, peephole2_optimize): Modified.
1969 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1970 convert_regs_1, convert_regs_2, convert_regs): Modified.
1971 * regclass.c (scan_one_insn, regclass): Modified.
1972 * regmove.c (mark_flags_life_zones, regmove_optimize,
1973 combine_stack_adjustments): Modified.
1974 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1975 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1976 * reorg.c (dbr_schedule): Modified.
1977 * resource.c (find_basic_block, init_resource_info): Modified.
1978 * sbitmap.c (sbitmap_intersection_of_succs,
1979 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1980 sbitmap_union_of_preds): Modified.
1981 * sched-deps.c (init_dependency_caches): Modified.
1982 * sched-ebb.c (schedule_ebbs): Modified.
1983 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1984 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1985 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1986 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1987 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1988 ssa_const_prop): Modified.
1989 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1990 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1991 * ssa.c (remove_phi_alternative, find_evaluations,
1992 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1993 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1994 make_regs_equivalent_over_bad_edges,
1995 make_equivalent_phi_alternatives_equival,
1996 compute_conservative_reg_partition,
1997 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1998 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1999 Modified.
2000
2001 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2002
2003 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2004
2005 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2006
2007 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2008 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2009 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2010 calling CONSTANT_POOL_ADDRESS_P.
2011 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2012 to decide whether to define __arm__ or __thumb.
2013 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2014 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2015
2016 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2017
2018 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2019 (CPP_SPEC): Update.
2020 (TARGET_CPU_CPP_BUILTINS): New.
2021
2022 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2023
2024 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2025 * cppmacro.c (cpp_macro): Remove.
2026 (enter_macro_context, replace_args, warn_of_redefinition,
2027 _cpp_create_definition, cpp_macro_definition): Update.
2028
2029 2002-05-16 Jason Merrill <jason@redhat.com>
2030
2031 * config/mips/mips.c (mips_output_external): Don't do sdata
2032 optimization for a variable with DECL_COMDAT set.
2033
2034 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2035
2036 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2037 Cleanups for accepting modifiers on pointers.
2038 Fix predicate typos.
2039 Allow long pointers as well as int pointers.
2040
2041 2002-05-15 Richard Henderson <rth@redhat.com>
2042
2043 * varasm.c (merge_weak): Remove special case for extern and common.
2044
2045 2002-05-15 Matt Hiller <hiller@redhat.com>
2046
2047 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2048 XFAILing.
2049 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2050 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2051 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2052 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2053 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2054 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2055
2056 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2057
2058 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2059
2060 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2061
2062 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2063 ("altivec_mfvscr"): Read from VSCR.
2064
2065 Add vscr sets for the following insns: altivec_vctuxs,
2066 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2067 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2068 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2069 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2070 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2071 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2072 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2073 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2074 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2075 altivec_vsum2sws, altivec_vsumsws.
2076
2077 * config/rs6000/rs6000.h: Add VSCR fixed register.
2078 (CALL_REALLY_USED_REGISTERS): Add vscr.
2079 (CALL_USED_REGISTERS): Same.
2080 (FIXED_REGISTERS): Same.
2081 (REG_ALLOC_ORDER): Same.
2082 (reg_class): Add VSCR_REGS.
2083 (REG_CLASS_NAMES): Same.
2084 (REG_CLASS_CONTENTS): Same.
2085 (VSCR_REGNO): New.
2086 (REGISTER_NAMES): Add vscr.
2087 (DEBUG_REGISTER_NAMES): Same.
2088 (ADDITIONAL_REGISTER_NAMES): Same.
2089 (FIRST_PSEUDO_REGISTER): Increment.
2090 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2091
2092 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2093
2094 * fold-const.c (fold): Fix a typo.
2095
2096 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2097
2098 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2099 comparison against the highest or lowest integer value before
2100 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2101 transformation and that of an unsigned comparison against 0
2102 right after.
2103
2104 2002-05-15 Richard Henderson <rth@redhat.com>
2105
2106 * varasm.c (merge_weak): Error for any weakening after definition.
2107 Adjust weakening after use warning to catch more cases.
2108 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2109 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2110
2111 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2112
2113 * invoke.texi (-malign-double): Re-add lost warning.
2114
2115 * i386-protos.h (x86_output_mi_thunk): Declare.
2116 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2117 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2118
2119 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2120 when flag_asynchronous_unwind_tables is set.
2121
2122 * flags.h (flag_reorder_functions): Declare.
2123 * function.c (prepare_function_start): Initialize frequnecy.
2124 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2125 * Makefile.in (predict.o): Add dependency on target.h and params.h
2126 * defaults.h (HOT_TEXT_SECTION_NAME,
2127 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2128 * predict.c (choose_function_section): New function.
2129 (estimate_bb_frequencies): Use it.
2130 * toplev.c (flag_reorder_functions): New global variable.
2131 (lang_independent_options): New.
2132 (parse_options_and_default_flags): Set.
2133 * varasm.c (assemble_start_function): Bypass functdion alignment
2134 for never executed functions.
2135 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2136 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2137 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2138 Document.
2139
2140 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2141
2142 * predict.c: Inlude profile.h
2143 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2144 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2145 Use the information about maximal counter in the program.
2146
2147 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2148
2149 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2150 probably_never_executed_bb_p): New functions.
2151 * cfgcleanup.c (outgoing_edges_match): Use them.
2152 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2153 (maybe_hot_bb_p, probably_cold_bb_p,
2154 probably_never_executed_bb_p): New functions.
2155
2156 * function.h (function): Add new field function_frequency.
2157 * predict.c (compute_function_frequency): New function.
2158 (estimate_probability): Call it.
2159
2160 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2161
2162 PR optimization/5172, optimization/5200
2163 * gcse.c (gcse_main): Disable store_motion.
2164
2165 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2166
2167 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2168 (c_common_nodes_and_builtins): Use it.
2169 (builtin_define_with_value): New function.
2170 (cb_register_builtins): Define __SIZE_TYPE__,
2171 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2172 using builtin_define_with_value. Use consistent notation when
2173 defining __GXX_WEAK__.
2174 (WCHAR_TYPE_SIZE): Don't redefine.
2175 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2176
2177 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2178 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2179 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2180 * tradcpp.c (initialize_builtins): Likewise.
2181 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2182
2183 * c-lex.h (builtin_define_with_value): Prototype.
2184 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2185 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2186 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2187
2188 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2189 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2190 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2191 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2192 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2193 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2194 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2195 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2196 to __SIZE_TYPE__ etc from all spec strings. When this makes
2197 extra specs empty, delete them.
2198
2199 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2200
2201 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2202 for PA8000 or generating dwarf2 call frame information.
2203 (output_call): Remove DO_FRAME_NOTES check from return pointer
2204 optimization.
2205 (following_call): Return 0 when scheduling for PA8000 or generating
2206 dwarf2 call frame information. Revise comment.
2207
2208 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2209
2210 config/alpha:
2211 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2212 and __IEEE_FP_INEXACT as appropriate.
2213 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2214 (CPP_SPEC): Remove ieee defines.
2215 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2216
2217 2002-05-14 Richard Henderson <rth@redhat.com>
2218
2219 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2220 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2221
2222 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2223
2224 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2225 (CPP_SPEC): Update.
2226 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2227 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2228 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2229 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2230 (EXTRA_SPECS): Update.
2231 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2232 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2233 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2234 define TARGET_OS_CPP_BUILTINS if necessary.
2235
2236 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2237
2238 * gcc.c (cpp_options): Must pass -m* and -f* options
2239 to the front end even when only preprocessing.
2240 (cc1_options): Remove redundant -lang-c.
2241 * tradcpp.c (main): Ignore -m options.
2242 objc:
2243 * lang-specs.h: Similarly.
2244
2245 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2246
2247 * genautomata.c (transform_3): Add code for transformation
2248 `(A,B,...)+C -> A+C,B,...'.
2249
2250 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2251
2252 * final.c (end_final): Do not output profile_arcs constructor, when
2253 no functions are instrumented.
2254
2255 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2256
2257 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2258
2259 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2260
2261 * doc/install.texi: Remove special markup originally required for
2262 HTML generation with texi2html.
2263
2264 2002-05-14 Andreas Schwab <schwab@suse.de>
2265
2266 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2267 SELECT_SECTION.
2268 (UNIQUE_SECTION): Define to get small data correctly.
2269
2270 * varasm.c (resolve_unique_section): Add third parameter
2271 flag_function_or_data_sections and use it instead of
2272 flag_function_sections.
2273 (assemble_start_function): Pass flag_function_sections.
2274 (asm_emit_uninitialised): Pass flag_data_sections.
2275 (assemble_variable): Likewise.
2276
2277 2002-05-14 Richard Henderson <rth@redhat.com>
2278
2279 * config/i386/i386.md: Use define_constants for unspec numbers.
2280 * config/i386/i386.c: Likewise.
2281
2282 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2283
2284 * doc/contrib.texi: Update my entry.
2285
2286 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2287
2288 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2289 * fixinc/fixincl.x: Regenerated.
2290 * fixinc/tests/base/math.h: Update.
2291 * fixinc/tests/base/testing.h: Likewise.
2292
2293 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2294
2295 * genattr.c (gen_attr): Don't emit a comma after the last
2296 enumerator.
2297
2298 2002-05-13 Richard Henderson <rth@redhat.com>
2299
2300 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2301 by non-local gotos.
2302 * recog.c (peephole2_optimize): Likewise.
2303
2304 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2305
2306 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2307 input to O_BINARY.
2308
2309 2002-05-13 Jeffrey A Law (law@redhat.com)
2310
2311 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2312 Update prototype and callers.
2313 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2314 the mem_set_list which reference the stack pointer, as do
2315 calls to constant functions as they may clobber outgoing
2316 argument space.
2317
2318 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2319
2320 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2321 (ia32_multipass_dfa_lookahead): New function.
2322
2323 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2324
2325 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2326 (translate_options): Remove 'V'.
2327 (process_command): Similarly.
2328 doc:
2329 * invoke.texi: Remove documentation of 'V'.
2330
2331 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2332
2333 * config/s390/linux.h: Revert 2002-04-22 changes.
2334
2335 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2336
2337 * config/fr30/fr30.md: Only allow splits of immediate loads
2338 if the destination is a register.
2339
2340 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2341
2342 * Makefile.in (c-common.o, cppinit.o): Update.
2343 * c-common.c: Include except.h.
2344 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2345 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2346 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2347 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2348 CPP_PREDEFINES): Handle here.
2349 config:
2350 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2351 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2352 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2353 TARGET_OS_CPP_BUILTINS.
2354 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2355 (CPP_SPEC, EXTRA_SPECS): Update.
2356 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2357 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2358 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2359 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2360 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2361 doc:
2362 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2363 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2364
2365 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2366
2367 * emit-rtl.c (global_rtl): Update comment.
2368 (const_double_htab, const_double_htab_hash,
2369 const_double_htab_hash, lookup_const_double): New.
2370 (const_int_htab_hash, const_int_htab_eq): Remove const
2371 qualifiers, which cause tons of warnings with RTL checking on.
2372 (gen_rtx_CONST_DOUBLE): Deleted.
2373 (const_double_from_real_value): New function - bears some
2374 resemblance to the former immed_real_const_1.
2375 (immed_double_const): Moved here from varasm.c and
2376 simplified.
2377 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2378 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2379 (gen_rtx): Use immed_double_const.
2380 (init_emit_once): Initialize the const_double_htab. Use
2381 REAL_VALUE_FROM_INT where possible. Can now use
2382 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2383 * varasm.c (struct varasm_status): Remove x_const_double_chain.
2384 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2385 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2386 (init_varasm_status, mark_varasm_status): Don't touch
2387 x_const_double_chain.
2388
2389 * output.h: Delete prototype for clear_const_double_mem.
2390 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
2391 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
2392 const_double_from_real_value, not immed_real_const_1, and use
2393 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
2394 CONST_DOUBLE_ATOF.
2395 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2396 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2397 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2398 (gen_rtx_REG): Second arg is unsigned.
2399
2400 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2401 (excluded_rtx): New, return true for CONST_DOUBLE.
2402 (genmacro): Write nothing for excluded codes.
2403 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2404 * expr.c (expand_expr): Likewise.
2405 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2406 CONST_DOUBLE_CHAIN.
2407 * toplev.c (rest_of_compilation): Don't call
2408 clear_const_double_mem.
2409
2410 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2411 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2412 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2413 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2414 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2415 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2416 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2417 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2418
2419 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2420
2421 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2422
2423 2002-05-12 Tom Tromey <tromey@redhat.com>
2424
2425 * tree.h (copy_node): Don't mention TREE_PERMANENT.
2426
2427 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2428
2429 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2430 (scan_comma_elt): New function. Accepts whitespace in comma lists.
2431 * gensupport.h: Prototype new routines.
2432 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
2433 use of printf.
2434 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2435 (next_comma_elt): Use scan_comma_elt.
2436
2437 * config/i386/i386.md: Use new attribute notation to break up
2438 long lines in define_attr forms.
2439
2440 2002-05-12 Richard Henderson <rth@redhat.com>
2441
2442 * expr.c (compress_float_constant): New.
2443 (emit_move_insn): Use it.
2444 (float_extend_from_mem): New.
2445 (init_expr_once): Initialize it.
2446 * real.c (exact_real_truncate): New.
2447
2448 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2449 dropped into memory; penalize for size.
2450 (RTX_COSTS): FLOAT_EXTEND is free.
2451 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2452 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2453
2454 2002-05-12 Richard Henderson <rth@redhat.com>
2455
2456 * profile.h (profile_info): Add missing extern to declaration.
2457 * profile.c (profile_info): Define it.
2458
2459 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2460
2461 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2462 used for DImode and TImode.
2463
2464 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
2465
2466 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2467 fake a newline.
2468
2469 2002-05-11 Zack Weinberg <zack@codesourcery.com>
2470
2471 * config/rs6000/rs6000.c (rs6000_default_long_calls,
2472 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2473 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2474 (rs6000_override_options): Handle -m(no-)longcall.
2475 (init_cumulative_args, output_mi_thunk): Check for both
2476 longcall and shortcall attributes on the function.
2477 (rs6000_attribute_table): Add "shortcall".
2478 (rs6000_handle_longcall_attribute): Update comment.
2479 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2480 altivec_expand_ternop_builtin): Add default clauses to switches
2481 to silence warnings.
2482
2483 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2484 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
2485 (TARGET_OPTIONS): Add longcall and no-longcall.
2486
2487 * config/rs6000/rs6000.md (call_nonlocal_sysv,
2488 call_value_nonlocal_sysv): Split by alternatives. One pair
2489 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2490 the call cookie. The other pair accepts only LR/CTR and has
2491 no restriction.
2492
2493 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2494 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2495 tmake_file.
2496 * config/rs6000/rs6000-c.c: New file.
2497 * config/rs6000/t-rs6000-c-rule: New file.
2498 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2499 Prototype rs6000_pragma_longcall.
2500
2501 * doc/extend.texi: Document shortcall attribute.
2502 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2503
2504 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2505
2506 * reorg.c (dbr_schedule): Remove unnecessary test.
2507
2508 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2509
2510 * i386.md (testsi to testqi spliters): New.
2511
2512 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
2513
2514 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
2515
2516 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2517
2518 * basic-block.h: New flag EDGE_CAN_FALLTHRU
2519 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
2520 that can be made fallthru.
2521
2522 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
2523
2524 * cfglayout.c (cleanup_unconditional_jumps): New static function.
2525 (cfg_layout_initialize): Use it.
2526
2527 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
2528
2529 * config/avr/avr.c (avr_mcu_types): Update supported devices.
2530 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2531 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2532
2533 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2534
2535 * dbxout.c: Fix formatting.
2536 * dependence.c: Likewise.
2537 * df.c: Likewise.
2538 * diagnostic.c: Likewise.
2539 * doloop.c: Likewise.
2540 * dominance.c: Likewise.
2541 * doschk.c: Likewise.
2542 * dwarf2asm.c: Likewise.
2543 * dwarf2out.c: Likewise.
2544 * dwarfout.c: Likewise.
2545
2546 2002-05-10 Richard Henderson <rth@redhat.com>
2547
2548 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
2549 Convert integers constants as needed. Replace "nwords" field with
2550 "sizeof_bb".
2551 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
2552 * function.h: Fix typo in comment.
2553 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
2554
2555 2002-05-10 Roger Sayle <roger@eyesopen.com>
2556
2557 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
2558 into the equivalent (signed char)c > 0.
2559
2560 2002-05-10 Janis Johnson <janis187@us.ibm.com>
2561
2562 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
2563 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
2564 (struct prefetch_info): Fix spelling of member bytes_accessed.
2565 (emit_prefetch_instructions): Make dump messages more regular;
2566 restructure code to add more dump messages; use new macros for
2567 heuristics. (There are no code generation changes in any of this).
2568
2569 2002-05-10 David S. Miller <davem@redhat.com>
2570
2571 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
2572 (struct rtx_def): Update unchanging flag comment.
2573 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
2574 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
2575 to be handled to INSN too.
2576 (dbr_schedule): Likewise.
2577 * resource.c (next_insn_no_annul): Likewise.
2578
2579 * cse.c (rtx_cost): Remove multiplication by power of 2 special
2580 casing.
2581
2582 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2583
2584 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
2585 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
2586 (possibly) work around broken /bin/sh.
2587
2588 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2589
2590 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
2591 . as N64/N32 libgcc_s.so subdirs.
2592
2593 2002-05-10 David S. Miller <davem@redhat.com>
2594
2595 * config/sparc/sparc.md: Use define_constants for unspec numbers.
2596
2597 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
2598 more accurately.
2599 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
2600 comment.
2601 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
2602 * doc/rtl.texi: Document these macros more accurately.
2603 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
2604 JUMP_INSNs and CALL_INSNs.
2605 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
2606 or INSN_FROM_TARGET_P if the code is appropriate.
2607
2608 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2609
2610 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
2611 before using SYMBOL_REF_FLAG (addr).
2612
2613 * config/avr/avr-protos.h (avr_io_address_p): Declare.
2614 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
2615 Make non-static. Update all callers.
2616 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
2617 New insns to clear/set/test a single bit in I/O address space.
2618
2619 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2620
2621 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
2622
2623 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2624
2625 * Makefile.in: Update.
2626 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
2627 builtin_define_std): New.
2628 (c_common_init): Register CPP builtins callback.
2629 * c-common.h (flag_iso, flag_undef): New.
2630 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
2631 * c-lex.c: Don't include target.h.
2632 (cb_register_builtins): Move to c-common.c.
2633 (init_c_lex): Don't register hook here.
2634 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
2635 (cpp_define, cpp_assert): Remove.
2636 * gcc.c (cc1_options): Pass -undef to front end.
2637 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
2638 (TARGET_INITIALIZER): Update.
2639 * target.h (struct cpp_reader): Don't predeclare.
2640 (struct gcc_target): Remove cpp builtin hook.
2641 * tree.c (default_register_cpp_builtins): Remove.
2642 doc:
2643 * tm.texi: Update.
2644
2645 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2646
2647 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
2648
2649 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2650
2651 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
2652 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
2653
2654 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2655
2656 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
2657 * config/sparc/libgcc-sparc-glibc.ver: New file.
2658 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2659 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
2660
2661 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR target/6429
2664 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
2665 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
2666 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
2667 base multilibs.
2668 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
2669 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
2670 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
2671 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
2672
2673 2002-05-09 Richard Henderson <rth@redhat.com>
2674
2675 * config/ia64/ia64.md: Use define_constants for unspec numbers.
2676 * config/ia64/ia64.c: Likewise.
2677
2678 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
2679
2680 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
2681 (save_restore_insns): Likewise.
2682 (mips_expand_prologue, mips_expand_epilogue): Update callers.
2683 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
2684
2685 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
2686
2687 * athlon.md, k6.md, pentium.md, ppro.md): New files.
2688 * i386.md: Move scheduling information into new files.
2689
2690 * i386.md (type attribute): Add "rotate" for rotate insns.
2691 (rotate insns): Set type to "rotate".
2692 (various attributes and function units): Treat rotate like shift.
2693 (pent_pair attribute): Only rotates by one bit position are
2694 pairable.
2695 (sbb insns): Explicitly set pent_pair attribute on a couple
2696 that were missing it.
2697
2698 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
2699
2700 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
2701 make sure that buffer starts on odd word address.
2702 (sh_va_arg): Skip odd fp registers when reading a double precision
2703 value.
2704
2705 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2706
2707 * tree.h (preserve_data, object_permanent_p, type_precision):
2708 Remove.
2709
2710 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2711
2712 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
2713 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
2714 doc:
2715 * cpp.texi: Update for removal of obsolete features.
2716
2717 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
2718 Jeffrey A Law (law@redhat.com)
2719
2720 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
2721 the DFA interface for Pentium processors.
2722 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
2723 (attr_pent_pair, ix86_pent_find_pair): Remove.
2724 (ix86_sched_reorder_pentium): Remove.
2725 (ix86_sched_reorder): Remove reordering for Pentium.
2726 * i386.md (Pentium scheduling): Rewrite using DFA description.
2727
2728 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
2729
2730 * cfganal.c (can_fallthru): Fix fast path.
2731 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
2732 with edges to the next block.
2733
2734 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
2735 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2736
2737 * final.c (end_final): Use C trees to output data structures for profiling.
2738
2739 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
2740 (profile.o): New dependency profile.h
2741 (final.o): New dependency profile.h
2742 * profile.h: New file. New global structure profile_info.
2743 * final.h (count_edges_instrumented_now): Declare.
2744 (current_function_cfg_checksum): Declare.
2745 (function_list): New structure.
2746 (functions_head, functions_tail): New static variables.
2747 (end_final): Emits more data, removed some -ax stuff.
2748 (final): Stores function names and chcksums.
2749 * gcov-io.h (__write_gcov_string): New function.
2750 (__read_gcov_string): New function.
2751 * gcov.c (read_profile): New function.
2752 (create_program_flow_graph): Uses read_profile instead of reading
2753 da_file.
2754 (read_files): Removed da_file checking, it's done by read_profile now.
2755 * libgcc2.c (bb_function_info): New structure.
2756 (bb): New field in structure, removed some -ax stuff.
2757 (__bb_exit_func): Changed structure of da_file.
2758 * profile.c (count_edges_instrumented_now): New global variable.
2759 (current_function_cfg_checksum): New global variable.
2760 (max_counter_in_program): New global variable.
2761 (get_exec_counts): New function.
2762 (compute_checksum): New function.
2763 (instrument_edges): Sets count_edges_instrumented_now.
2764 (compute_branch_probabilities): Uses get_exec_counts instead of
2765 reading da_file.
2766 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
2767 (init_branch_prob): Removed da_file checking, done in get_exec_counts
2768 now.
2769 (end_branch_prob): Removed da_file checking, done in get_exec_counts
2770 now.
2771 * gcov.texi: Updated information about gcov file format.
2772
2773 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2774
2775 * sbitmap.c: Fix formatting.
2776 * scan.c: Likewise.
2777 * scan-decls.c: Likewise.
2778 * sched-deps.c: Likewise.
2779 * sched-ebb.c: Likewise.
2780 * sched-rgn.c: Likewise.
2781 * sched-vis.c: Likewise.
2782 * sdbout.c: Likewise.
2783 * sibcall.c: Likewise.
2784 * simplify-rtx.c: Likewise.
2785 * ssa.c: Likewise.
2786 * ssa-ccp.c: Likewise.
2787 * ssa-dce.c: Likewise.
2788 * stmt.c: Likewise.
2789 * stor-layout.c: Likewise.
2790 * stringpool.c: Likewise.
2791
2792 2002-05-09 David S. Miller <davem@redhat.com>
2793
2794 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
2795
2796 2002-05-07 David S. Miller <davem@redhat.com>
2797
2798 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
2799 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
2800 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
2801 library implementation clobbers the output before the inputs
2802 are fully consumed, use stack temporary for the output.
2803
2804 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
2805
2806 * config/netbsd.h (CPP_SPEC): Remove.
2807 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
2808 * config/i386/netbsd.h (CPP_SPEC): Define.
2809 * config/ns32k/netbsd.h (CPP_SPEC): Define.
2810 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
2811 * config/sparc/netbsd.h (CPP_SPEC): Define.
2812 * config/vax/netbsd.h (CPP_SPEC): Define.
2813
2814 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2815
2816 * read-rtl.c: Fix formatting.
2817 * real.c: Likewise.
2818 * recog.c: Likewise.
2819 * regclass.c: Likewise.
2820 * regmove.c: Likewise.
2821 * reg-stack.c: Likewise.
2822 * reload1.c: Likewise.
2823 * reload.c: Likewise.
2824 * resource.c: Likewise.
2825 * rtlanal.c: Likewise.
2826 * rtl.c: Likewise.
2827 * rtl-error.c: Likewise.
2828
2829 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2830
2831 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
2832 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2833
2834 2002-05-08 Bernd Schmidt <bernds@redhat.com>
2835
2836 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
2837 use __SSE2__ macro instead.
2838 * config/i386/xmmintrin.h: Likewise.
2839
2840 2002-05-08 Janis Johnson <janis187@us.ibm.com>
2841
2842 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2843 and use it in all invocations of these macros. Clean up comments.
2844 * rtl.c (rtl_check_failed_flag): Add an argument for the name
2845 of the flag access macro whose check failed.
2846 * doc/rtl.texi (Flags): Document additional flag uses.
2847
2848 2002-05-08 Robert Spier <rspier@pobox.com>
2849 Neil Booth <neil@daikokuya.demon.co.uk>
2850
2851 PR preprocessor/6521
2852 * cppfiles.c (handle_missing_header): Don't do anything
2853 different for <> includes.
2854 doc:
2855 * cppopts.texi: Update documentation for -MG.
2856
2857 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
2858
2859 * cpplex.c (cpp_interpret_charconst): Truncate as well as
2860 sign-extend.
2861 doc:
2862 * cpp.texi: Clarify multichar charconst valuation.
2863
2864 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2865
2866 * doc/invoke.texi: Document -mwindiss option.
2867
2868 2002-05-08 Jason Merrill <jason@redhat.com>
2869
2870 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2871
2872 * dwarf2out.c (gen_type_die): Abort on broken recursion.
2873
2874 PR c++/6381
2875 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2876 REAL_CST.
2877
2878 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
2879
2880 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2881 little-endian multilibs to override arm/thumb multilibs.
2882 Do not build hardware floating point multilibs, nor apcs-26
2883 multilibs for the Thumb.
2884
2885 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2886
2887 PR c/6569.
2888 * varasm.c (mark_weak): New function.
2889 (merge_weak): Use it. Do not call declare_weak.
2890 (declare_weak): Use merge_weak.
2891
2892 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2893
2894 * cse.c (dead_libcall_p): Update counts.
2895 (delete_trivially_dead_insns): Update call of dead_libcall_p.
2896
2897 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2898
2899 * cfglayout.c (function_tail_eff_head): Rename to ...
2900 (function_footer): ... this one.
2901 (unlink_insn_chain): New functions.
2902 (label_for_bb): Only call block_label and emit debug message.
2903 (record_effective_endpoints): Actually unlink the headers and footers.
2904 (fixup_reorder_cahin): Re-insert the unlinked sequences.
2905 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2906 * cfglayout.h (struct reorder_block_def): New fields footer/header;
2907 remove eff_head/eff_end.
2908 * rtl.h (set_first_insn): Declare.
2909 * emit-rtl.c (set_first_insn): New function.
2910
2911 * cfglayout.c (fixup_reorder_chain): Dump duplicated
2912 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2913 cfg_layout_duplicate_bb): New global function.
2914 (duplicate_insn_chain): New static function.
2915 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2916 cfg_layout_duplicate_bb): Declare.
2917 (struct reorder_block_def): Add "original" field.
2918 * emit-rtl.c (emit_copy_of_insn_after): New function.
2919 * rtl.h (emit_copy_of_insn_after): Declare.
2920
2921 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2922 (fixup_reorder_chain): properly handle edges to exit block.
2923
2924 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2925 Jan Hubicka <jh@suse.cz>
2926
2927 * basic-block.h (note_prediction_to_br_prob): declare.
2928 * c-semantics.c: Inlucde predit.h
2929 (expand_stmt): predict GOTO_STMT as not taken.
2930 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2931 (cleanup_cfg): Do not free tail_recursion_list.
2932 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2933 (flow_delete_block): Kill predictions past end of basic block.
2934 * output.h (delete_unreachable_blocks): Declare.
2935 * predict.c (predicted_by_p, process_note_predictions,
2936 process_note_prediction, last_block_p): New function.
2937 (estimate_probability): Bypass loop on PRED_CONTINUE;
2938 do not handle noreturn heuristics; kill PRED_RETURN; add
2939 PRED_EARLY_RETURN.
2940 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2941 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2942 * predict.h (IS_TAKEN): New constant.
2943 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2944 * rtl.c (NOTE_INSN_PREDICTION): New.
2945 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2946 New macro.
2947 (insn_note): add NOTE_INSN_PREDICTION.
2948 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2949 CFG; free tail_recursion_label_list.
2950 * stmt.c: Include predict.h;
2951 (return_prediction): New.
2952 (expand_value_return): Use it.
2953 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2954
2955 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
2956
2957 * config/mips/mips.md: Name the unspecs with define_constant.
2958 (*HILO_delay): Rename to 'hilo_delay' (no star).
2959 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2960 (reload_outdi, reload_outsi): Likewise.
2961
2962 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2963
2964 * toplev.c: Fix formatting.
2965
2966 2002-05-07 Janis Johnson <janis187@us.ibm.com>
2967
2968 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2969 * configure.in (ac_rtlflag_checking): New.
2970 * doc/install.texi (--enable-checking): Document RTL flag checking.
2971
2972 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2973
2974 * c-common.c (c_common_init): Set options->unsigned_wchar.
2975 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2976 group target dependencies.
2977 (init_builtins, cpp_handle_option): Update.
2978 * cpplex.c (cpp_interpret_charconst): Update.
2979 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2980 signed_char to unsigned_char, group target dependencies.
2981 * defaults.h (WCHAR_UNSIGNED): Remove.
2982 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2983 config:
2984 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2985 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2986 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2987 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2988 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2989 doc:
2990 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2991
2992 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2993
2994 * fixinc/inclhack.def (windiss_math1): New fix.
2995 (windiss_math2): Likewise.
2996 (windiss_valist): Likewise.
2997 * fixinc/fixincl.x: Regenerated.
2998
2999 2002-05-07 Andreas Jaeger <aj@suse.de>
3000
3001 * genautomata.c (output_internal_min_issue_delay_func): Add
3002 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3003 (output_internal_trans_func): Likewise.
3004
3005 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3006
3007 * pa.c (hppa_profile_hook): Use force_reg to get the address
3008 of the profile hook into an appropriate pseudo register.
3009
3010 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3011
3012 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3013 (LINK_START_SPEC): Handle it.
3014 (LINK_OS_SPEC): Likewise.
3015 (CPP_SPEC): Likewise.
3016 (STARTFILE_SPEC): Likewise.
3017 (LIB_SPEC): Likewise.
3018 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3019 all platforms.
3020 (CRTSAVRES_DEFAULT_SPEC): New macro.
3021 (LIB_WINDISS_SPEC): New macro.
3022 (CPP_OS_WINDISS_SPEC): Likewise.
3023 (STARTFILE_WINDISS_SPEC): Likewise.
3024 (ENDFILE_WINDISS_SPEC): Likewise.
3025 (LINK_START_WINDISS_SPEC): Likewise.
3026 (LINK_OS_WINDISS_SPEC): Likewise.
3027 * config/rs6000/windiss.h: New file.
3028
3029 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3030
3031 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3032
3033 2002-05-06 David S. Miller <davem@redhat.com>
3034
3035 * config/sparc/sparc.md (shift insns): Do not mask off
3036 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3037 take care of it.
3038
3039 2002-05-06 Richard Henderson <rth@redhat.com>
3040
3041 PR c++/6212
3042 * expr.c (highest_pow2_factor_for_type): New.
3043 (expand_assignment): Use it.
3044
3045 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3046
3047 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3048 unspec_volatile.
3049 ("altivec_mfvscr"): Same.
3050
3051 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3052
3053 * rtl.h (struct rtx_def): Update comments.
3054 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3055 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3056 RTL_FLAG_CHECK macros with list of expected RTL codes.
3057 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3058 (rtl_check_failed_flag): New.
3059 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3060 (reload_cse_noop_set_p): Check rtx code before using access macro.
3061 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3062 before using access macro.
3063
3064 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3065
3066 * doc/rtl.texi (Flags): Update to reflect current usage.
3067
3068 2002-05-06 Roger Sayle <roger@eyesopen.com>
3069
3070 PR opt/3995
3071 * fold-const.c (sign_bit_p): New function.
3072 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3073 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3074 Reapply fold when converting (A & C) == C into (A & C) != 0.
3075 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3076
3077 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3078
3079 * c-common.c (warn_multichar): New.
3080 (c_common_init): Set CPP's warn_multichar.
3081 * c-common.h (warn_multichar): New.
3082 * c-decl.c (warn_multichar): Remove.
3083 * c-lex.c (lex_charconst): Update.
3084 * c-tree.h (warn_multichar): Remove.
3085 * cppexp.c (eval_token): Sign-extend charconst value.
3086 * cppinit.c (cpp_create_reader): Set warn_multichar.
3087 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3088 each character. Update prototype. Sign-extend the result.
3089 * cpplib.h: Fix conditions.
3090 (struct cpp_options): Add new warning flag.
3091 (cpp_interpret_charconst): Update prototype.
3092 doc:
3093 * cpp.texi: Update documentation.
3094
3095 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3096
3097 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3098 Fix typo in usage of allof instead of unit.
3099
3100 2002-05-06 Richard Henderson <rth@redhat.com>
3101
3102 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3103 and any jump or call for IN.
3104
3105 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3106
3107 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3108 -msse2.
3109 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3110
3111 2002-05-06 Roger Sayle <roger@eyesopen.com>
3112
3113 * fold-const.c (lshift-double): Cast the high word to an unsigned
3114 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3115 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3116 avoid compiler warning. (fold): Remove redundant code from
3117 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3118
3119 2002-05-06 Jeff Law <law@redhat.com>
3120
3121 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3122 * pa.c (pa_adjust_cost): Remove all true dependency cost
3123 adjustments. Also remove support for non-DFA scheduling.
3124 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3125 to adjust true dependency costs. Update various comments.
3126 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3127 FP ALU & MPY units into a single unit.
3128
3129 2002-05-06 Catherine Moore <clm@redhat.com>
3130
3131 * config/v850/v850.c (compute_register_save_size): Make sure
3132 to count all of the registers that will be saved.
3133
3134 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3135
3136 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3137
3138 2002-05-06 David S. Miller <davem@redhat.com>
3139
3140 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3141 allow result to overlap input operands in memory.
3142
3143 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3144
3145 doc:
3146 * cpp.texi: Update multichar charconst docs.
3147
3148 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3149
3150 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3151 character. Don't ignore excess characters. Treat
3152 multicharacter character constants as signed.
3153 (cpp_parse_escape): Clarify diagnostic.
3154
3155 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3156
3157 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3158 use add instead of shift.
3159 (ashldi3_sp64): Likewise.
3160 (ashlsi3_const1, ashldi3_const1): Remove.
3161 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3162 * config/sparc/sparc.c (const1_operand): New.
3163
3164 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3165
3166 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3167
3168 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR target/6561
3171 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3172
3173 2002-05-05 Richard Henderson <rth@redhat.com>
3174
3175 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3176 memory latency adjustments.
3177 (alpha_variable_issue): Remove.
3178 (alpha_use_dfa_pipeline_interface): New.
3179 (alpha_multipass_dfa_lookahead): New.
3180 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3181 include new dfa scheduling.
3182 (attr type): Add none.
3183 (blockage): Use it.
3184 * config/alpha/ev4.md: New.
3185 * config/alpha/ev5.md: New.
3186 * config/alpha/ev6.md: New.
3187
3188 2002-05-05 David S. Miller <davem@redhat.com>
3189
3190 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3191
3192 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3193
3194 * cse.c: Fix formatting.
3195 * emit-rtl.c: Likewise.
3196
3197 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3198
3199 * genautomata.c (initiate_states): Add additional guard to
3200 initialize `units_array'.
3201
3202 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3203
3204 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3205 process_unit_to_form_the_same_automaton_unit_lists,
3206 form_the_same_automaton_unit_lists
3207 check_unit_distributions_to_automata): New prototypes and
3208 functions.
3209 (check_automata): Rename it into `check_automata_insn_issues'.
3210 (unit_decl): New fields `the_same_automaton_unit' and
3211 `the_same_automaton_message_reported_p'.
3212 (unit_decl_t): New typedef.
3213 (the_same_automaton_lists): New gloval variable.
3214 (unit_regexp, unit_set_el, units_array, units_cmp,
3215 output_get_cpu_unit_code_func): Use the typedef.
3216 (evaluate_max_reserv_cycles): Increment
3217 `description->max_insn_reserv_cycles'.
3218 (initiate_states): Don't increment `max_cycles_num'.
3219 (transform_insn_regexps): Move code around transformation of
3220 regexps from `generate'.
3221 (generate): Remove call of `transform_insn_regexps'.
3222 (expand_automata): Call `transform_insn_regexps' and
3223 `check_unit_distributions_to_automata'. Check errors before
3224 `generate'.
3225
3226 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3227 automaton `ultrasparc3_1'.
3228
3229 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3230
3231 * c-common.c (c_common_init): Set up CPP arithmetic.
3232 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3233 something reasonable for the host.
3234 (sanity_checks): Add checks.
3235 (cpp_read_main_file): Call sanity_checks() from here...
3236 (cpp_post_options): ... not here.
3237 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3238 * cpplib.h (struct cpp_options): New member int_precision.
3239
3240 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3241
3242 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3243
3244 2002-05-04 David S. Miller <davem@redhat.com>
3245
3246 * config/sparc/linux.h, config/sparc/linux64.h
3247 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3248
3249 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3250 more RTX codes.
3251 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3252
3253 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3254 of SETs.
3255
3256 2002-05-05 Tim Josling <tej@melbpc.org.au>
3257
3258 * treelang; New directory for new sample language treelang.
3259
3260 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3261
3262 * Makefile.in (c-lex.o): Update.
3263 * c-lex.c: Include target.h.
3264 (cb_register_builtins): New.
3265 (init_c_lex): Set builtins callback.
3266 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3267 * cppinit.c (init_builtins): Use callback, including for
3268 GXX_WEAK.
3269 * cpplib.h (struct cpp_callbacks): New member.
3270 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3271 (TARGET_INITIALIZER): Update.
3272 * target.h (struct gcc_target): New hook.
3273 * tree.c (default_register_cpp_builtins): New.
3274 * tree.h (default_register_cpp_builtins): New.
3275 doc:
3276 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3277
3278 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3279
3280 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3281 (cpp_post_options): Move sanity checks to...
3282 (sanity_checks): New.
3283 * cpplex.c (maybe_read_ucs): Fix prototype.
3284 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3285 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3286 if necessary.
3287
3288 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3289
3290 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3291 builtins. Use V2DI patterns instead of TI for logical operations.
3292 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3293 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3294 (ix86_expand_builtins): Change the pattern used for movntdq.
3295 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3296 sse2_nandv2di3): New patterns.
3297 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3298 on operands.
3299 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3300 (cvtdq2pd): Correct mode on operand 1.
3301 (sse2_umulsidi3): Describe without unspec.
3302 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3303 machine modes.
3304 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3305 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3306 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3307 ashlv4si3, ashlv2di3): Use SImode for shift count.
3308 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3309 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3310 New patterns.
3311 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3312 New typedefs.
3313 (__m128i, __m128d): New macros.
3314 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3315 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3316 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3317 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3318 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3319 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3320 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3321 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3322 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3323 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3324 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3325 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3326 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3327 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3328 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3329 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3330 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3331 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3332 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3333 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3334 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3335 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3336 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3337 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3338 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3339 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3340 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3341 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3342 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3343 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3344 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3345 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3346 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3347 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3348 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3349 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3350 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3351 functions.
3352 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3353 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3354
3355 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3356
3357 * dwarf2out.c: Fix formatting.
3358 * varasm.c: Likewise.
3359
3360 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3361
3362 PR c/6543
3363 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3364 clobber and use result as temporary value.
3365
3366 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3367
3368 * expr.c (force_operand): Use expand_simple_* to handle more
3369 cases.
3370
3371 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3372
3373 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3374 and sign-extension.
3375 (lex_charconst): Update for change in prototype of
3376 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
3377 appropriately.
3378 * cpphash.h (BITS_PER_CPPCHAR_T): New.
3379 * cppinit.c (cpp_create_reader): Initialize them for no
3380 change in semantics.
3381 (cpp_post_options): Add sanity checks.
3382 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3383 and truncation issues. Calculate in type cppchar_t.
3384 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3385 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
3386 run-time dependent precision correctly. Return whether the
3387 result is signed or not.
3388 * cpplib.c (dequote_string): Use cppchar_t; update.
3389 * cpplib.h (cppchar_signed_t): New.
3390 struct cpp_options): New precision members.
3391 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3392 * cppexp.c (eval_token): Update.
3393
3394 2002-05-03 David S. Miller <davem@redhat.com>
3395
3396 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3397 * config/sparc/sparc.c (sparc_rtx_costs): New function
3398 implementing RTX_COSTS and CONST_COSTS.
3399 * config/sparc/sparc.h (CONST_COSTS): Delete.
3400 (RTX_COSTS_CASES): Define.
3401 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3402 the work.
3403
3404 * config/sparc/sparc.md (DFA schedulers): Split out...
3405 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3406 config/sparc/sparclet.md, config/sparc/supersparc.md,
3407 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3408
3409 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3410 checks on it, always defined for Sparc.
3411
3412 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3413 Tweak, and add more detailed comments.
3414
3415 2002-05-03 Zack Weinberg <zack@codesourcery.com>
3416
3417 * Re-apply patch accidentally reverted with
3418 DFA scheduler merge: remove all rules and variables to slurp
3419 source files out of libiberty and rebuild them with HOST_CC.
3420 ($(HOST_PREFIX_1)varray.o): New rule.
3421 (genattrtab rule): Word wrap.
3422
3423 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3424
3425 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3426 (CPP_SUBTARGET_SPEC): Define.
3427 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3428 cpp_subtarget specs.
3429 (CPP_SPEC): Redefine to include %(cpp_subtarget).
3430
3431 2002-05-03 David S. Miller <davem@redhat.com>
3432
3433 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3434 * target.h (struct gcc_target): Delete cycle_display member.
3435
3436 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3437 (rtx_needs_barrier): Delete reference to cycle_display unspec.
3438 (ia64_sched_reorder2): Mention need for cycle display handling
3439 once such notes exist.
3440
3441 2002-05-03 Richard Henderson <rth@redhat.com>
3442
3443 * real.c (etoasc): Strip most trailing zeros for clarity.
3444 * sched-vis.c: Include real.h.
3445 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3446 * Makefile.in (sched-vis.o): Add real.h.
3447
3448 2002-05-03 David S. Miller <davem@redhat.com>
3449
3450 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3451 no longer needed.
3452
3453 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
3454
3455 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3456 when we get an out of range literal.
3457 (altivec_expand_ternop_builtin): Same.
3458 (altivec_expand_unop_builtin): Same.
3459 (altivec_expand_builtin): Same, for dss.
3460 (altivec_expand_builtin): Use trees instead of rtl when
3461 determining literal argument validity.
3462
3463 2002-05-03 David S. Miller <davem@redhat.com>
3464
3465 Delete cycle display scheduling hook.
3466 * config/ia64/ia64.c (ia64_cycle_display,
3467 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3468 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3469 and use emit_insn_before instead of ia64_emit_insn_before.
3470 * config/ia64/ia64.md (unspec usage): Delete cycle display.
3471 (cycle_display): Delete insn pattern.
3472 * config/sparc/sparc.md (unspec usage): Delete cycle display.
3473 (cycle_display): Delete insn pattern.
3474 * config/sparc/sparc.c (sparc_cycle_display,
3475 TARGET_SCHED_CYCLE_DISPLAY): Delete.
3476 * doc/md.texi (cycle_display): Don't mention.
3477 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3478
3479 2002-05-03 Richard Henderson <rth@redhat.com>
3480
3481 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3482 * recog.h: Declare them.
3483
3484 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3485 * config/sparc/sparc.md: Use store_data_bypass_p instead.
3486 * config/sparc/sparc-protos.h: Update.
3487
3488 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3489
3490 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3491 -D__arch64__. Add -D_LP64.
3492 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3493 from sparc.h.
3494 (CPP_ARCH64_SPEC): Likewise.
3495 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3496 (NO_BUILTIN_SIZE_TYPE): Undef.
3497
3498 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
3499
3500 * genautomata.c (min_issue_delay_pass_states): Change return type
3501 in the prototype.
3502 (min_issue_delay_pass_states): Change the algorithm.
3503 (min_issue_delay): Set up min_insn_issue_delay for the state.
3504 (output_min_issue_delay_table): Interchange the nested loops and
3505 and initiate min_insn_issue_delay for states.
3506
3507 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
3508
3509 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
3510 jump is simplejump.
3511
3512 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3513
3514 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
3515 sequence.
3516
3517 2002-05-03 Richard Henderson <rth@redhat.com>
3518
3519 PR opt/6534
3520 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3521 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3522 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
3523 code before JUMP, not EARLIEST.
3524
3525 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
3526
3527 * c-format.c (check_format_info_main): Don't check for presence of
3528 parameter for * width until after operand number has been read,
3529 and only check for it if format parameters are available.
3530 Fixes PR c/6547.
3531
3532 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3533
3534 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
3535 (LINK_SPEC): Undef before defining.
3536
3537 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3538
3539 PR preprocessor/6489
3540 * tradcpp.c (fixup_newlines): New.
3541 (main, finclude): Use it.
3542
3543 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
3544
3545 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
3546 * config/mips/mips.c (mips_unique_section): Strip encoding from
3547 decl name.
3548
3549 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3550
3551 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
3552 mode.
3553
3554 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3555
3556 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
3557 (Specific): Removed buildstats references.
3558 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
3559 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
3560 Accomodate Solaris versions beyond 8.
3561 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
3562 (Specific, *-*-solaris2.8): Removed, obsolete.
3563
3564 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3565
3566 PR target/6542
3567 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
3568 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
3569 fill leaf_reg_remap with identity.
3570 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
3571
3572 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3573
3574 * config/h8300/crti.asm: Remove trailing spaces.
3575 * config/h8300/h8300.c: Likewise.
3576 * config/h8300/lib1funcs.asm: Likewise.
3577
3578 2002-05-02 Jason Merrill <jason@redhat.com>
3579
3580 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
3581 * c-decl.c (c_init_decl_processing): Use it.
3582 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
3583 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
3584 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
3585
3586 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3587
3588 * regrename.c: Fix formatting.
3589 * tree.c: Likewise.
3590
3591 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3592
3593 * i386.md (attribute memory): Handle compares properly.
3594
3595 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
3596
3597 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
3598 to none.
3599
3600 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3601
3602 * function.c: Fix formatting.
3603
3604 2002-05-02 Jan Hubicka <jh@suse.cz>
3605
3606 * haifa-sched.c (schedule_insn): Print table of instructions and
3607 reservations.
3608 (sched_block): Do not print ready list at verbosity level 1.
3609 * sched-vis.c (print_insn): Make global.
3610 * sched-ebb.c (ebb_print_insn): Rename from...
3611 (print_insn): ... this one.
3612 * sched-int.h (print_insn): Declare
3613
3614 2002-05-02 Richard Henderson <rth@redhat.com>
3615
3616 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
3617 emitted by cycle_display.
3618
3619 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
3620
3621 * doc/install.texi (*-*-freebsd*): Update to latest status.
3622
3623 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR target/6540
3626 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
3627 * config/float-sparc.h: Assume 128-bit long double if
3628 __LONG_DOUBLE_128__ is defined.
3629
3630 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
3631
3632 * genattrtab.c (write_function_unit_info): Add a dummy element
3633 when num_units == 0.
3634
3635 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3636
3637 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
3638 TYPE_MODE (double_type_node) instead of DFmode.
3639
3640 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
3641
3642 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
3643 jumps post reload.
3644 * toplev.c (rest_of_compilation): Revert Richard's patch.
3645
3646 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3647
3648 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
3649
3650 2002-05-02 Catherine Moore <clm@redhat.com>
3651
3652 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
3653
3654 2002-05-02 Kazu Hirata <kazu@hxi.com>
3655
3656 * combine.c: Fix comment typos.
3657 * expr.c: Likewise.
3658 * genautomata.c: Likewise.
3659 * stmt.c: Likewise.
3660 * tree.h: Likewise.
3661
3662 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
3663
3664 * doc/install.texi: State GNAT version requirements.
3665
3666 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3667
3668 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
3669 of the frame pointer or arg pointer register which strict register
3670 checking is not enabled.
3671
3672 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
3673
3674 * gcc.dg/altivec-8.c: New.
3675
3676 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
3677 PRE_INC and PRE_DEC for altivec modes.
3678
3679 2002-05-01 Bruce Korb <bkorb@gnu.org>
3680
3681 * fixinc/check.tpl(set-writable): make sure the function exists first
3682 * fixinc/inclhack.def(alpha_assert): fix test_text
3683 * fixinc/tests/base/assert.h: add in missing result
3684
3685 2002-05-01 Jeff Law <law@redhat.com>
3686
3687 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
3688 'T' constraint.
3689
3690 2002-05-01 Joel Brobecker <brobecker@gnat.com>
3691
3692 * dbxout.c (dbxout_type): Emit size information for range types,
3693 as well, but only when using GDB extensions.
3694
3695 2002-05-01 Richard Henderson <rth@redhat.com>
3696
3697 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
3698 target-independent gnu binutils date test.
3699
3700 2002-05-01 Richard Henderson <rth@redhat.com>
3701
3702 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
3703 info before expunging the block.
3704
3705 2002-05-01 Jakub Jelinek <jakub@redhat.com>
3706
3707 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
3708 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
3709 -M -or -MM is in effect.
3710
3711 2002-05-01 Zack Weinberg <zack@codesourcery.com>
3712
3713 * config.gcc: Correct test of --enable-obsolete. Obsolete all
3714 A29k configurations.
3715 * doc/install.texi: Update to match.
3716
3717 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3718
3719 PR bootstrap/6514
3720 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
3721 for duplicates. Always loop over whole list.
3722
3723 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3724
3725 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
3726
3727 2002-05-01 Joel Sherrill <joel@OARcorp.com>
3728
3729 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
3730 support routines.
3731
3732 2002-05-01 Joel Sherrill <joel@OARcorp.com>
3733
3734 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
3735
3736 2002-05-01 David Edelsohn <edelsohn@gnu.org>
3737
3738 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
3739 (nabs_nopower): Same.
3740 (floatdisf2): New pattern.
3741 (absdi2): Convert to define_insn_and_split.
3742 (nabsdi2): Same.
3743 (trunctfsf2): Same.
3744 (floatditf2): Same.
3745 (floatsitf2): Same.
3746 (fix_trunctfdi2): Same.
3747 (fix_trunctfsi2): Same.
3748
3749 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
3750
3751 * doc/install.texi: Update Texinfo version requirement
3752 documentation.
3753
3754 2002-05-01 Jakub Jelinek <jakub@redhat.com>
3755
3756 PR target/6512, PR target/5628
3757 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
3758 when memory is not aligned.
3759 (movdf_insn_v9only_vis): Likewise.
3760 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
3761 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
3762 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
3763
3764 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
3765
3766 * gcc.dg/altivec-7.c: New.
3767
3768 * config/rs6000/altivec.h: Cleanup.
3769
3770 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
3771
3772 * doc/invoke.texi (Option Summary): Add -mvrsave=.
3773 (RS/6000 and PowerPC Options): Document -mvrsave=.
3774
3775 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
3776 (rs6000_altivec_vrsave_string): Same.
3777 (rs6000_override_options): Call rs6000_parse_vrsave_option.
3778 (rs6000_parse_vrsave_option): New.
3779 (rs6000_stack_info): Only generate vrsave instructions when
3780 TARGET_ALTIVEC_VRSAVE.
3781
3782 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
3783 (rs6000_altivec_vrsave_string): Define extern.
3784 (rs6000_altivec_vrsave): Same.
3785 (TARGET_ALTIVEC_VRSAVE): New.
3786
3787 2002-04-30 Richard Henderson <rth@redhat.com>
3788
3789 PR opt/6516
3790 * toplev.c (rest_of_compilation): Don't run cross-jump before
3791 bb-reorder.
3792
3793 2002-04-30 Tom Rix <trix@redhat.com>
3794
3795 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
3796 check which_alternative.
3797
3798 2002-04-30 Kazu Hirata <kazu@hxi.com>
3799
3800 * cpplex.c: Fix comment formatting.
3801 * function.c: Likewise.
3802 * integrate.c: Likewise.
3803 * regrename.c: Likewise.
3804 * sibcall.c: Likewise.
3805 * simplify-rtx.c: Likewise.
3806 * tree-inline.c: Likewise.
3807
3808 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3809
3810 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
3811 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
3812 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
3813 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
3814 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
3815 * pa/x-ada: New file. Define ADA_CFLAGS.
3816
3817 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
3818
3819 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
3820 from MMIX_LAST_REGISTER_FILE_REGNUM.
3821 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
3822 (struct machine_function): New member highest_saved_stack_register
3823 previously static variable in mmix.c.
3824 (MACHINE_DEPENDENT_REORG): Define.
3825 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
3826 (MMIX_OUTPUT_REGNO): New.
3827 (mmix_target_asm_function_prologue): Move calculation of last used
3828 saved-stack-register into...
3829 (mmix_machine_dependent_reorg): New function. Update to also handle
3830 !TARGET_ABI_GNU.
3831 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
3832 register names, simplify somewhat by new variable regno.
3833 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
3834 register.
3835 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
3836 emitting register names.
3837 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
3838 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3839 Remove fixed FIXME.
3840 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3841 Declare.
3842
3843 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3844
3845 2002-04-30 Richard Henderson <rth@redhat.com>
3846
3847 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3848 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3849 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3850 emit_tfmode_cvt): New.
3851 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3852 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3853 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3854 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3855 * config/sparc/sparc-protos.h: Update.
3856
3857 2002-04-30 Janis Johnson <janis187@us.ibm.com>
3858
3859 * install.texi (Final install): Add to the list of info to include
3860 in a report of a successful bootstrap, and add link to 3.1 list.
3861
3862 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
3863
3864 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3865 (mode): Add vector modes
3866 (i387): Kill attribute.
3867 (unit): New attribute.
3868 (length_immediate): Grok new types.
3869 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3870 (modrm): Use "unit".
3871 (memory): Handle MMX/SSE properly.
3872 (scheduling descriptions): Kill uses of fop1.
3873 (sse, mmx, fp patterns): Set type and mode properly.
3874
3875 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
3876
3877 * pa.c (override_options): Default to PA8000 scheduling.
3878 * doc/invoke.texi (HP-PA options): Mention newly added 7300
3879 scheduling parameter.
3880
3881 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3882 handling of double precision multiplies.
3883
3884 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3885 fpdiv and fpsqrt instructions.
3886 (7200 & 7300 scheduling): Fix typo in handling of
3887 store-load and store-store penalties.
3888
3889 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3890
3891 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3892 mips. Add two missing commas.
3893
3894 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
3895
3896 * doc/contrib.texi (Contributors): Update Paolo Carlini's
3897 and Benjamin Kosnik's entries.
3898
3899 2002-04-29 David S. Miller <davem@redhat.com>
3900
3901 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3902 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3903 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3904 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3905
3906 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3907
3908 * combine.c (find_split_point): Use gen_int_mode.
3909
3910 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
3911
3912 Merging code from dfa-branch:
3913
3914 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
3915
3916 * genautomata.c (output_reserv_sets): Fix typo.
3917
3918 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
3919
3920 * genautomata.c (output_reserv_sets): Remove
3921 next_cycle_output_flag.
3922
3923 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
3924
3925 * sched-rgn.c (init_ready_list): Make the DFA code handle
3926 USE/CLOBBER insns in the same way as the traditional
3927 scheduler.
3928 (new_ready): Similarly..
3929
3930 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
3931
3932 * haifa-sched.c (schedule_block): Change the DFA state only after
3933 issuing insn.
3934
3935 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
3936
3937 * pa.c (hppa_use_dfa_pipeline_interface): New function.
3938 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3939 (override_options): Add PA7300 scheduling support.
3940 (pa_adjust_cost): Update various comments. Properly
3941 handle anti and output dependencies when using the
3942 DFA scheduler.
3943 (pa_issue_rate): Add PA7300 scheduling support.
3944 (pa_can_combine_p): Call extract_insn before calling
3945 constrain_operands (taken from mainline tree).
3946 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3947 * pa.md (cpu attr): Add 7300. Rewrite pipeline
3948 descriptions using DFA descriptions. Add PA7300
3949 scheduling support.
3950
3951 2002-03-30 David S. Miller <davem@redhat.com>
3952
3953 Add UltraSPARC-III DFA scheduling support.
3954 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3955 Update FP conditional move on register insn patterns to use it, as
3956 appropriate.
3957 (define_attr cpu): Add ultrasparc3.
3958 (define_attr us3load_type): New, update integer load patterns to
3959 set it, as appropriate.
3960 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3961 (rest): Add UltraSPARC3 scheduling description.
3962 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3963 (PROCESSOR_ULTRASPARC3): New.
3964 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3965 ({ASM,CPP}_CPU_SPEC): Likewise.
3966 (REGISTER_MOVE_COST): Likewise.
3967 (RTX_COSTS): Likewise.
3968 * config/sparc/sparc.c (sparc_override_options,
3969 sparc_initialize_trampoline, sparc64_initialize_trampoline,
3970 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3971 sparc_issue_rate): Likewise.
3972 * config/sparc/sol2.h: Likewise.
3973 * config/sparc/sol2-sld-64.h: Likewise.
3974 * config/sparc/linux64.h: Likewise.
3975
3976 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
3977
3978 * doc/md.texi: Add comments about usage the latency time for the
3979 different dependencies and about case when two or more conditions
3980 in different define_insn_reservations returns TRUE for an insn.
3981
3982 * doc/md.texi: Add reference for automaton based pipeline
3983 description.
3984
3985 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
3986
3987 * doc/passes.texi: Add missed information about genattrtab.
3988
3989 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
3990
3991 * genautomata.c (output_automata_list_transition_code): Check
3992 automata_list on NULL.
3993
3994 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
3995
3996 * genautomata.c (output_insn_code_cases,
3997 output_automata_list_min_issue_delay_code,
3998 output_automata_list_transition_code,
3999 output_automata_list_state_alts_code): Comment the functions.
4000
4001 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4002
4003 * genautomata.c (automata_list_el_t): New typedef.
4004 (get_free_automata_list_el,free_automata_list_el,
4005 free_automata_list, automata_list_hash, automata_list_eq_p,
4006 initiate_automata_lists, automata_list_start, automata_list_add,
4007 automata_list_finish, finish_automata_lists,
4008 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4009 output_automata_list_transition_code,
4010 output_automata_list_state_alts_code, add_automaton_state,
4011 form_important_insn_automata_lists): New functions and prototypes.
4012 (insn_reserv_decl): Add members important_automata_list and
4013 processed_p.
4014 (ainsn): Add members important_p.
4015 (automata_list_el): New structure.
4016 (first_free_automata_list_el, current_automata_list,
4017 automata_list_table): New global variables.
4018 (create_ainsns): Initiate member important_p.
4019 (output_internal_min_issue_delay_func): Generate the switch and
4020 call output_insn_code_cases.
4021 (output_internal_trans_func, output_internal_state_alts_func):
4022 Ditto.
4023 (generate): Call initiate_automata_lists.
4024 (automaton_states): New global variable.
4025 (expand_automata): Call form_important_insn_automata_lists.
4026 (write_automata): Call finish_automata_lists.
4027
4028 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4029
4030 * genautomata.c (add_excls, add_presence_absence): Check that
4031 cpu units in the sets belong the same automaton.
4032
4033 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4034 about that cpu units in the sets belong the same automaton.
4035
4036 * doc/md.texi: Ditto.
4037
4038 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4039 Nitin Gupta <niting@noida.hcltech.com>
4040
4041 * config/sh/sh.c (sh_use_dfa_interface): New function.
4042
4043 (sh_issue_rate): New Function.
4044 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4045 TARGET_SCHED_ISSUE_RATE: define.
4046
4047 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4048
4049 (define_attr insn_class): New attribute used for DFA
4050 scheduling.
4051 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4052 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4053 cmpeqdi_t): Likewise.
4054
4055 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4056 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4057 ex_group.
4058 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4059
4060 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4061
4062 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4063 break.
4064
4065 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4066
4067 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4068 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4069 necessary.
4070 (output_dfa_start_func): Initiate new variable insn_codes_length,
4071 (write_automata): Output definition of the new variable.
4072
4073 2001-10-02 David S. Miller <davem@redhat.com>
4074
4075 * haifa-sched.c (advance_one_cycle): New function.
4076 (schedule_block): Use it.
4077 (queue_to_ready): Use it, and also make sure to advance the DFA
4078 state on all stall cycles, not just those where insn_queue links
4079 are found.
4080
4081 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4082
4083 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4084 non-zero if the highest-priority instruction could be scheduled.
4085 (choose_ready): Remove last argument from max_issue call.
4086
4087 2001-09-28 David S. Miller <davem@redhat.com>
4088
4089 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4090 ultrasparc and 3 for other multi-issue sparcs.
4091
4092 2001-09-27 David S. Miller <davem@redhat.com>
4093
4094 * config/sparc/sparc.md (cycle_display): New pattern.
4095 * config/sparc/sparc.c (sparc_cycle_display): New.
4096 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4097
4098 2001-09-25 David S. Miller <davem@redhat.com>
4099
4100 Convert all of Sparc scheduling to DFA
4101 * config/sparc/sparc.md: Kill all define_function_unit
4102 directives and replace with DFA equivalent.
4103 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4104 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4105 ultra_fpmode_conflict_exists, ultra_find_type,
4106 ultra_build_types_avail, ultra_flush_pipeline,
4107 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4108 ultrasparc_variable_issue, ultrasparc_sched_init,
4109 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4110 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4111 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4112 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4113 ultrasparc_store_bypass_p): New.
4114 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4115 Declare.
4116
4117 2001-09-24 David S. Miller <davem@redhat.com>
4118
4119 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4120 ready->vec[foo] not ready[foo].
4121
4122 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4123
4124 * doc/md.texi: Correct examples for define_insn_reservations
4125 `mult' and `div'.
4126
4127 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4128
4129 * genautomata.c (create_automata): Print message about creation of
4130 each automaton.
4131 (generate): Remove printing meease about creation of
4132 automata.
4133
4134 2001-09-05 David S. Miller <davem@redhat.com>
4135
4136 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4137 * config/sparc/linux64.h: Likewise.
4138
4139 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4140
4141 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4142 schedule_block, sched_init, sched_finish): Add missed calls of
4143 use_dfa_pipeline_interface.
4144
4145 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4146 Ditto.
4147
4148 * sched-vis.c (get_visual_tbl_length): Ditto.
4149
4150 2001-08-27 Richard Henderson <rth@redhat.com>
4151
4152 * genattr.c (main): Emit state_t even when not doing scheduling.
4153
4154 2001-08-27 Richard Henderson <rth@redhat.com>
4155
4156 * genautomata.c (expand_automata): Always create a description.
4157
4158 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4159
4160 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4161 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4162 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4163 RTL constructions.
4164
4165 * genattr.c (main): New variable num_insn_reservations. Increase
4166 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4167 pipeline hazard recognizer interface.
4168
4169 * genattrtab.h: New file.
4170
4171 * genattrtab.c: Include genattrtab.h.
4172 (attr_printf, check_attr_test, make_internal_attr,
4173 make_numeric_value): Move protypes into genattrtab.h. Define them
4174 as external.
4175 (num_dfa_decls): New global variable.
4176 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4177 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4178 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4179 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4180
4181 * genautomata.c: New file.
4182
4183 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4184
4185 * sched-int.h: (curr_state): Add the external definition for
4186 automaton pipeline interface.
4187 (haifa_insn_data): Add comments for members blockage and units.
4188
4189 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4190 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4191 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4192 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4193 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4194 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4195 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4196 macros.
4197 (TARGET_SCHED): Use the new macros.
4198
4199 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4200 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4201 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4202 dfa_bubble): New members in gcc_target.sched.
4203
4204 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4205 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4206 (insn_queue): Redefine it as pointer to array.
4207 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4208 INSN_QUEUE_SIZE.
4209 (max_insn_queue_index_macro_value): New variable.
4210 (curr_state, dfa_state_size, ready_try): New varaibles for
4211 automaton interface.
4212 (ready_element, ready_remove, max_issue): New function prototypes
4213 for automaton interface.
4214 (choose_ready): New function prototype.
4215 (insn_unit, blockage_range): Add comments.
4216 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4217 FUNCTION_UNITS_SIZE == 0.
4218 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4219 actual_hazard, potential_hazard): Add comments.
4220 (insn_cost): Use cost -1 as undefined value. Remove
4221 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4222 pipeline interface.
4223 (ready_element, ready_remove): New functions for automaton
4224 interface.
4225 (schedule_insn): Add new code for automaton pipeline interface.
4226 (queue_to_ready): Add new code for automaton pipeline interface.
4227 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4228 (debug_ready_list): Print newline when the queue is empty.
4229 (max_issue): New function for automaton pipeline interface.
4230 (choose_ready): New function.
4231 (schedule_block): Add new code for automaton pipeline interface.
4232 Print ready list before scheduling each insn.
4233 (sched_init): Add new code for automaton pipeline interface.
4234 Initiate insn cost by -1.
4235 (sched_finish): Free the current automaton state and finalize
4236 automaton pipeline interface.
4237
4238 * sched-rgn.c: Include target.h.
4239 (init_ready_list, new_ready, debug_dependencies): Add new code for
4240 automaton pipeline interface.
4241
4242 * sched-vis.c: Include target.h.
4243 (get_visual_tbl_length): Add code for automaton interface.
4244 (target_units, print_block_visualization): Add comments.
4245
4246 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4247 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4248 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4249 (getruntime.o, genautomata.o): New entries.
4250 (genattrtab.o): Add new dependency file genattrtab.h.
4251 (genattrtab): Add new dependencies. Link it with `libm.a'.
4252 (getruntime.o, hashtab.o): New entries for canadian cross.
4253
4254 * doc/md.texi: Description of automaton based model.
4255
4256 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4257 Add comments.
4258 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4259 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4260 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4261 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4262 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4263 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4264 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4265 hook descriptions.
4266 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4267 MAX_DFA_ISSUE_RATE): New macro descriptions.
4268
4269 * doc/contrib.texi: Add dfa based scheduler contribution.
4270
4271 * doc/gcc.texi: Add more information about genattrtab.
4272
4273 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4274
4275 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4276 adjust_address_nv call.
4277
4278 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4279
4280 * doc/install.texi (Testing): Provide additional information, and
4281 a stronger encouragement, for running the testsuites.
4282
4283 2002-04-29 DJ Delorie <dj@redhat.com>
4284
4285 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4286 given in upper case.
4287
4288 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4289
4290 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4291 Solaris 2 <widec.h> if missing.
4292 * fixinc/fixincl.x: Regenerate.
4293 * fixinc/tests/base/widec.h: New file.
4294
4295 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4296
4297 * toplev.c (f_options): Add "profile" switch so that
4298 -fno-profile can be used to disable -p.
4299
4300 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4301
4302 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4303 UV2DImode.
4304 * tree.c (build_common_tree_nodes_2): Likewise.
4305 * tree.h (enum tree_index): Likewise.
4306 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4307
4308 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4309 entries.
4310 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4311 (ix86_expand_builtin): Add support for SSE2 builtins.
4312 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4313 (VALID_SSE_REG_MODE): Use it.
4314 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4315 (enum ix86_builtins): Add SSE2 builtins.
4316 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4317 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4318 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4319 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4320 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4321 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4322 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4323 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4324 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4325 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4326 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4327 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4328 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4329 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4330 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4331 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4332 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4333 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4334 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4335 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4336 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4337 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4338 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4339 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4340 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4341 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4342 lfence_insn): New patterns.
4343 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4344 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4345
4346 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4347
4348 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4349
4350 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4351
4352 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4353 Janis Johnson.
4354 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4355 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4356 and CPU instead of cpu.
4357
4358 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4359
4360 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4361 variables.
4362 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4363 (rest_of_compilation): Do if conversion only when asked for.
4364 (parse_options_and_default_flags): Set new variables to 1 for -O1
4365 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4366
4367 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4368
4369 * i386.c (dbx64_register_map): Fix typo.
4370
4371 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
4372
4373 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4374 real_one_half, real_bb_freq_max): New static variables.
4375 (debug_profile_bbauxs): Kill.
4376 (process_note_predictions): Kill unused variable.
4377 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4378 volatile double.
4379 (propagate_freq): Use REAL_ARITHMETICS.
4380 (estimate_bb_frequencies): Likevise; init new static variables.
4381 * Makefile.in (predict.o): Add dependency on real.h
4382
4383 2002-04-28 David S. Miller <davem@redhat.com>
4384
4385 PR target/6500
4386 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4387 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
4388 several {reads,writes} instead.
4389 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4390 Define.
4391
4392 2002-04-27 David S. Miller <davem@redhat.com>
4393
4394 PR target/6494
4395 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4396 of the stack bias.
4397
4398 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4399 including signal.h and sys/ucontext.h, not needed.
4400
4401 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
4402
4403 * varasm.c (output_constant_def): Correct test for not calling
4404 ENCODE_SECTION_INFO for INTEGER_CST.
4405
4406 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
4407
4408 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4409 keep most cases as function eval_token.
4410 (eval_token): New function.
4411 (_cpp_parse_expr): Read token here for improved diagnostics.
4412 Don't use op_as_text. Detect bad ':' here.
4413 (reduce): Don't detect bad ':' here.
4414 (op_as_text): Remove.
4415 * cpphash.h (_cpp_test_assertion): Change prototype.
4416 * cpplib.c (_cpp_test_assertion): Change prototype.
4417
4418 2002-04-28 Richard Henderson <rth@redhat.com>
4419
4420 PR c/5154
4421 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4422 (ggc_mark_rtx_children): New.
4423
4424 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4425
4426 PR target/6496
4427 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4428 after call peepholes for UltraSPARC.
4429 (call + jump 64-bit peepholes): Remove.
4430
4431 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4432
4433 PR c/6497
4434 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4435 result as temporary value.
4436
4437 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4438
4439 PR c++/6396
4440 * toplev.c (rest_of_compilation): Only run regrename and copy
4441 propagation if optimizing.
4442
4443 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4444
4445 PR optimization/6475
4446 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4447 register of REGNO_DECL (i).
4448 * Makefile.in (reload1.o): Add $(TREE_H).
4449
4450 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
4451
4452 * cppexp.c (lex): Update to use state.skip_eval.
4453 (struct op): Remove prio and flags members.
4454 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4455 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4456 (LEFT_ASSOC): New macro.
4457 (optab): New table of operator priorities and flags.
4458 (SHIFT): Update.
4459 (_cpp_parse_expr): Clean up logic. Return bool. Use a
4460 malloc-ed parser stack.
4461 (reduce): New; reduce the operator stack.
4462 (_cpp_expand_op_stack): Expand the operator stack as necessary.
4463 * cpphash.h (struct op): Predeclare.
4464 (struct cpp_reader): New members op_stack, op_limit.
4465 (struct lexer_state): New member skip_eval.
4466 (_cpp_parse_expr): Update.
4467 (_cpp_expand_op_stack): New.
4468 * cpplib.c (do_if): Update.
4469 * cppinit.c (cpp_create_reader): Create op stack.
4470 (cpp_destroy): And destroy it.
4471 * cpplib.h (CPP_LAST_CPP_OP): Correct.
4472 (TTYPE_TABLE): Correct.
4473
4474 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4475
4476 PR c/6343
4477 * c-decl.c (duplicate_decls): Call merge_weak.
4478 * c-pragma.c (apply_pragma_weak): Warn about misuse.
4479 * output.h (merge_weak): Prototype merge_weak.
4480 * varasm.c (merge_weak): New function.
4481 (declare_weak): Make sure we don't give an error on VAR_DECLs.
4482 Mark RTL with SYMBOL_REF_WEAK.
4483
4484 2002-04-27 Kurt Garloff <garloff@suse.de>
4485
4486 * tree-inline.c (inlinable_function_p): Improve heuristics
4487 by using a smoother function to cut down allowable inlinable size.
4488 * param.def: Add parameters max-inline-insns-single,
4489 max-inline-slope, min-inline-insns that determine the exact
4490 shape of the above function.
4491 * param.h: Likewise.
4492
4493 2002-04-26 Richard Henderson <rth@redhat.com>
4494
4495 * c-parse.in (malloced_yyss, malloced_yyvs): New.
4496 (yyoverflow): Re-add. Set them.
4497 (free_parser_stacks): New.
4498 * c-common.h: Declare it.
4499 * c-lex.c (c_common_parse_file): Call it.
4500
4501 2002-04-26 Richard Henderson <rth@redhat.com>
4502
4503 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4504 for fallthru search.
4505
4506 2002-04-26 Eric Christopher <echristo@redhat.com>
4507
4508 PR optimization/3700
4509 * config/mips/mips.c (mips_issue_rate): Define. New function.
4510 (TARGET_SCHED_ISSUE_RATE): Use.
4511
4512 2002-04-25 David S. Miller <davem@redhat.com>
4513
4514 PR target/6422
4515 * reorg.c (optimize_skip): Do not allow exception causing
4516 instructions to be considered for delay slots.
4517 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
4518 (relax_delay_slots): Do not try to consider exception causing
4519 instructions as redundant.
4520
4521 2002-04-26 Richard Henderson <rth@redhat.com>
4522
4523 PR c/5225
4524 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
4525
4526 2002-04-26 Mark Mitchell <mark@codesourcery.com>
4527
4528 PR bootstrap/6445
4529 * config/i386/i386.md (untyped_call): Return the value in a float
4530 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
4531 TARGET_80387.
4532
4533 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
4534
4535 * tree.c (tree_int_cst_lt): Compare constants whose types differ
4536 in unsigned-ness correctly.
4537
4538 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4539
4540 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
4541 portable runtime model.
4542
4543 2002-04-26 Richard Henderson <rth@redhat.com>
4544
4545 * c-parse.in (yyoverflow): Revert.
4546
4547 2002-04-26 David Edelsohn <edelsohn@gnu.org>
4548 Richard Henderson <rth@redhat.com>
4549
4550 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
4551 result as temporary value.
4552
4553 2002-04-26 Richard Henderson <rth@redhat.com>
4554
4555 PR c/3581
4556 * c-common.c (fix_string_type): Split out of ...
4557 (combine_strings): ... here. Take a varray, not a tree list.
4558 (c_expand_builtin_printf): Use fix_string_type.
4559 * c-common.h: Update decls.
4560 * c-parse.in (string): Remove. Update all uses to use STRING
4561 instead, and not call combine_strings.
4562 (yylexstring): New.
4563 (_yylex): Use it.
4564 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
4565 (build_asm_stmt): Likewise.
4566 * objc/objc-act.c (my_build_string): Use fix_string_type.
4567 (build_objc_string_object): Build varray for combine_strings.
4568
4569 2002-04-26 Bo Thorsen <bo@suse.co.uk>
4570
4571 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
4572 x86-64.
4573
4574 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
4575
4576 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
4577 (HAVE_NO_R_OPERAND): Remove.
4578 (HAVE_VALUE): Remove.
4579 (op_to_prio): Update.
4580 (UNARY): Don't alter flags.
4581 (_cpp_parse_expr): want_value used to indicate whether
4582 a number or unary operator is expected next. Distinguish
4583 unary and binary +/-.
4584 (op_as_text): Update for unary operators.
4585
4586 2002-04-25 Richard Henderson <rth@redhat.com>
4587
4588 PR c/2161
4589 * c-parse.in (yyoverflow): New.
4590
4591 2002-04-25 Richard Henderson <rth@redhat.com>
4592
4593 PR c/2098
4594 * c-common.c (shorten_compare): Simplfy conditions leading to
4595 the generation of a warning.
4596
4597 2002-04-25 Richard Henderson <rth@redhat.com>
4598
4599 PR c/2035
4600 * expmed.c (extract_bit_field): Fall through to generic code rather
4601 than aborting on subreg special case.
4602
4603 2002-04-25 David S. Miller <davem@redhat.com>
4604
4605 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
4606 for DECL being NULL.
4607
4608 2002-04-25 Steve Christiansen <smc@us.ibm.com>
4609
4610 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
4611
4612 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
4613
4614 * c-decl.c (grokdeclarator): Remove outdated ??? note
4615 on invalid declaration of flexible array members.
4616
4617 2002-04-25 Richard Henderson <rth@redhat.com>
4618
4619 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
4620
4621 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4622
4623 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
4624 needed by the compiler, even if they are used as global regs.
4625
4626 2002-04-25 Matt Hiller <hiller@redhat.com>
4627
4628 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
4629 functions.
4630 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
4631 of the corresponding functions.
4632 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
4633 New prototypes.
4634
4635 2002-04-25 Matt Hiller <hiller@redhat.com>
4636
4637 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
4638
4639 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
4640 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
4641 registers, adjust comment accordingly.
4642 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
4643 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
4644 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
4645 for coprocessor registers.
4646 (ADDITIONAL_REGISTER_NAMES): Include
4647 ALL_COP_ADDITIONAL_REGISTER_NAMES.
4648
4649 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
4650 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
4651 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
4652 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
4653 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
4654
4655 (mips_char_to_class): Adjust comment to include coprocessor
4656 constraint letters.
4657
4658 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
4659 New functions.
4660 (mips_reg_names, mips_regno_to_class): Include coprocessor
4661 information.
4662 (mips_sw_reg_names): Ditto, make non-static.
4663 (mips_move_1word): Handle moves to and from coprocessor registers.
4664 (mips_move_2words): Handle moves to and from coprocessor
4665 registers.
4666 (mips_class_max_nregs, mips_register_move_cost): Handle
4667 coprocessor register classes.
4668 (override_options): Initialize mips_char_to_class and
4669 mips_hard_regno_mode_ok properly for coprocessor registers.
4670
4671 * config/mips/mips.md (movdi_internal, movdi_internal2,
4672 movsi_internal1, movsi_internal2): Add constraint-sets for
4673 coprocessor registers.
4674 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
4675 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
4676 isn't mips.
4677 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
4678 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
4679 isn't mips.
4680 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
4681 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
4682 isn't mips.
4683 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
4684 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
4685 isn't mips.
4686
4687 * doc/tm.texi: Document feature.
4688
4689 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4690
4691 * integrate.c (function_attribute_inlinable_p): Simplify.
4692 Check the table pointer is not NULL.
4693
4694 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
4695
4696 * doc/c-tree.texi: Fix typo in introduction.
4697
4698 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4699
4700 * c-common.h (c_common_parse_file): Update.
4701 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4702 * c-lex.c (YYDEBUG): Get from c-lex.h.
4703 (c_common_parse_file): Update.
4704 * c-lex.h (YYDEBUG, yydebug): New.
4705 * c-parse.in (YYDEBUG): Get from c-lex.h.
4706 (c_set_yydebug): Remove.
4707 * c-tree.h (c_set_yydebug): Remove.
4708 * langhooks-def.h (lhd_do_nothing_i): New.
4709 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
4710 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
4711 * langhooks.c (lhd_do_nothing_i): New.
4712 (lhd_set_yydebug): Remove.
4713 * langhooks.h (struct lang_hooks): Update.
4714 * toplev.c (set_yydebug): New.
4715 (compile_file): Update call to parse_file hook.
4716 (decode_d_option): Update.
4717 objc:
4718 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4719
4720 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
4721
4722 * loop.c (load_mems): Don't change the interface of called functions.
4723
4724 * calls.c (expand_call): Take current_function_pretend_args_size
4725 into account when setting argblock for sibcalls.
4726
4727 2002-04-24 Matt Hiller <hiller@redhat.com>
4728
4729 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
4730 * c-lex.c: Ditto.
4731
4732 * cpplex.c (skip_line_comment): Process comment one multibyte
4733 character at a time rather than one char at a time, if
4734 appropriate.
4735 (parse_string): Process string one multibyte character at a time
4736 rather than one char at a time, if appropriate.
4737 * c-lex.c (lex_string): Lex and copy multibyte strings
4738 appropriately.
4739 * cpplib.h (cppchar_t): Change to unsigned.
4740
4741 2002-04-24 Richard Henderson <rth@redhat.com>
4742
4743 PR c/3467
4744 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
4745 for c99.
4746
4747 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
4748
4749 * sh.c (sh_va_arg): If argument was passed by reference,
4750 dereference the pointer.
4751
4752 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4753
4754 * sh.md (divsi3_i4_media): Use match_operand for input values
4755 rather than hard registers.
4756 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4757 unnecessarily through hard registers. Keep copies of pseudo
4758 registers outside of the libcall sequence.
4759
4760 * sh.md (casesi_shift_media): Add modes.
4761
4762 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
4763 values in memory.
4764
4765 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
4766
4767 * attribs.c (c_common_attribute_table): Move table and handlers
4768 to c-common.c.
4769 (format_attribute_table, lang_attribute_table,
4770 lang_attribute_common): Remove.
4771 (init_attributes): Replace NULL pointers with pointers to the
4772 empty table.
4773 (handle_packed_attribute, handle_nocommon_attribute,
4774 handle_common_attribute, handle_noreturn_attribute,
4775 handle_noinline_attribute, handle_always_inline_attribute,
4776 handle_used_attribute, handle_unused_attribute,
4777 handle_const_attribute, handle_transparent_union_attribute,
4778 handle_constructor_attribute, handle_destructor_attribute,
4779 handle_mode_attribute, handle_section_attribute,
4780 handle_aligned_attribute, handle_weak_attribute,
4781 handle_alias_attribute, handle_visibility_attribute,
4782 handle_no_instrument_function_attribute, handle_malloc_attribute,
4783 handle_no_limit_stack_attribute, handle_pure_attribute,
4784 handle_deprecated_attribute, handle_vector_size_attribute,
4785 vector_size_helper): Move to c-common.c.
4786 * c-common.c (c_common_attribute_table,
4787 handle_packed_attribute, handle_nocommon_attribute,
4788 handle_common_attribute, handle_noreturn_attribute,
4789 handle_noinline_attribute, handle_always_inline_attribute,
4790 handle_used_attribute, handle_unused_attribute,
4791 handle_const_attribute, handle_transparent_union_attribute,
4792 handle_constructor_attribute, handle_destructor_attribute,
4793 handle_mode_attribute, handle_section_attribute,
4794 handle_aligned_attribute, handle_weak_attribute,
4795 handle_alias_attribute, handle_visibility_attribute,
4796 handle_no_instrument_function_attribute, handle_malloc_attribute,
4797 handle_no_limit_stack_attribute, handle_pure_attribute,
4798 handle_deprecated_attribute, handle_vector_size_attribute,
4799 vector_size_helper): Move from attribs.c.
4800 * c-common.h (c_common_attribute_table,
4801 c_common_format_attribute_table): New.
4802 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4803 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4804 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
4805 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
4806 (LANG_HOOKS_INITIALIZER): Update.
4807 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
4808 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
4809 * target.h: Update comment.
4810 * tree.c (default_target_attribute_table): Remove.
4811 * tree.h (default_target_attribute_table, format_attribute_table,
4812 lang_attribute_table, lang_attribute_common): Remove.
4813 objc:
4814 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4815 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4816
4817 2002-04-24 Jason Merrill <jason@redhat.com>
4818
4819 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
4820 * dwarf2out.c (dwarf_attr_name): Support it.
4821 (gen_array_type_die): Emit it.
4822 (lookup_type_die): No special handling for VECTOR_TYPE.
4823 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
4824
4825 2002-04-24 Richard Henderson <rth@redhat.com>
4826
4827 * config/mips/mips.md (movdi_usd): Renumber.
4828
4829 2002-04-24 David S. Miller <davem@redhat.com>
4830
4831 PR target/6420
4832 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
4833 32-bit Sparc and current_function_returns_struct is true.
4834
4835 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4836
4837 * loop.c (canonicalize_condition): Use gen_int_mode.
4838
4839 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
4840
4841 * config/rs6000/altivec.h: Cleanup file. Add non individual
4842 variants.
4843 (vec_vaddubm): New.
4844 (vec_vadduhm): New.
4845 (vec_vadduwm): New.
4846 (vec_vaddfp): New.
4847 (vec_vaddcuw): New.
4848 (vec_vaddubs): New.
4849 (vec_vaddsbs): New.
4850 (vec_vadduhs): New.
4851 (vec_vadduws): New.
4852 (vec_vaddsws): New.
4853 (vec_vand): New.
4854 (vec_vandc): New.
4855 (vec_vavgub): New.
4856 (vec_vavgsb): New.
4857 (vec_vavguh): New.
4858 (vec_vavgsh): New.
4859 (vec_vavguw): New.
4860 (vec_vavgsw): New.
4861 (vec_vrfip): New.
4862 (vec_vcmpbfp): New.
4863 (vec_vcmpequb): New.
4864 (vec_vcmpequh): New.
4865 (vec_vcmpequw): New.
4866 (vec_vcmpeqfp): New.
4867 (vec_vcmpgefp): New.
4868 (vec_vcmpgtub): New.
4869 (vec_vcmpgtsb): New.
4870 (vec_vcmpgtuh): New.
4871 (vec_vcmpgtsh): New.
4872 (vec_vcmpgtuw): New.
4873 (vec_vcmpgtsw): New.
4874 (vec_vcmpgtfp): New.
4875 (vec_vcmpgefp): New.
4876 (vec_vcfux): New.
4877 (vec_vcfsx): New.
4878 (vec_vctsxs): New.
4879 (vec_vctuxs): New.
4880 (vec_vexptefp): New.
4881 (vec_vrfim): New.
4882 (vec_lvx): New.
4883 (vec_lvebx): New.
4884 (vec_lvehx): New.
4885 (vec_lde): Add vector float variant.
4886 (vec_lvewx): New.
4887 (vec_lvxl): New.
4888 (vec_vlogefp): New.
4889 (vec_vmaddfp): New.
4890 (vec_vmhaddshs): New.
4891 (vec_vmaxub): New.
4892 (vec_vmaxsb): New.
4893 (vec_vmaxuh): New.
4894 (vec_vmaxsh): New.
4895 (vec_vmaxuw): New.
4896 (vec_vmaxsw): New.
4897 (vec_vmaxsw): New.
4898 (vec_vmaxfp): New.
4899 (vec_vmrghb): New.
4900 (vec_vmrghh): New.
4901 (vec_vmrghw): New.
4902 (vec_vmrglb): New.
4903 (vec_vmrglh): New.
4904 (vec_vmrglw): New.
4905 (vec_vminub): New.
4906 (vec_vminsb): New.
4907 (vec_vminuh): New.
4908 (vec_vminsh): New.
4909 (vec_vminuw): New.
4910 (vec_vminsw): New.
4911 (vec_vminfp): New.
4912 (vec_vmladduhm): New.
4913 (vec_vmhraddshs): New.
4914 (vec_msumubm): New.
4915 (vec_vmsummbm): New.
4916 (vec_vmsumuhm): New.
4917 (vec_vmsumshm): New.
4918 (vec_vmsumuhs): New.
4919 (vec_vmsumshs): New.
4920 (vec_vmuleub): New.
4921 (vec_vmulesb): New.
4922 (vec_vmuleuh): New.
4923 (vec_vmulesh): New.
4924 (vec_vmuloub): New.
4925 (vec_mulosb): New.
4926 (vec_vmulouh): New.
4927 (vec_vmulosh): New.
4928 (vec_vnmsubfp): New.
4929 (vec_vnor): New.
4930 (vec_vor): New.
4931 (vec_vpkuhum): New.
4932 (vec_vpkuwum): New.
4933 (vec_vpkpx): New.
4934 (vec_vpkuhus): New.
4935 (vec_vpkshss): New.
4936 (vec_vpkuwus): New.
4937 (vec_vpkswss): New.
4938 (vec_vpkshus): New.
4939 (vec_vpkswus): New.
4940 (vec_vperm): New.
4941 (vec_vrefp): New.
4942 (vec_vrlb): New.
4943 (vec_vrlh): New.
4944 (vec_vrlw): New.
4945 (vec_vrfin): New.
4946 (vec_vrsqrtefp): New.
4947 (vec_vsel): New.
4948 (vec_vslb): New.
4949 (vec_vslh): New.
4950 (vec_vslw): New.
4951 (vec_vsldoi): New.
4952 (vec_vsl): New.
4953 (vec_vslo): New.
4954 (vec_vspltb): New.
4955 (vec_vsplth): New.
4956 (vec_vspltw): New.
4957 (vec_vspltisb): New.
4958 (vec_vspltish): New.
4959 (vec_vspltisw): New.
4960 (vec_vsrb): New.
4961 (vec_vsrh): New.
4962 (vec_vsrw): New.
4963 (vec_vsrab): New.
4964 (vec_vsrah): New.
4965 (vec_vsraw): New.
4966 (vec_vsr): New.
4967 (vec_vsro): New.
4968 (vec_stvx): New.
4969 (vec_stvebx): New.
4970 (vec_stvehx): New.
4971 (vec_stvewx): New.
4972 (vec_stvxl): New.
4973 (vec_vsububm): New.
4974 (vec_vsubuhm): New.
4975 (vec_vsubuwm): New.
4976 (vec_vsubfp): New.
4977 (vec_vsubcuw): New.
4978 (vec_vsububs): New.
4979 (vec_vsubsbs): New.
4980 (vec_vsubuhs): New.
4981 (vec_vsubshs): New.
4982 (vec_vsubuws): New.
4983 (vec_vsubsws): New.
4984 (vec_vsum4ubs): New.
4985 (vec_vsum4sbs): New.
4986 (vec_vsum4shs): New.
4987 (vec_vsum2sws): New.
4988 (vec_vsumsws): New.
4989 (vec_vrfiz): New.
4990 (vec_vupkhsb): New.
4991 (vec_vupkhpx): New.
4992 (vec_vupkhsh): New.
4993 (vec_vupklsb): New.
4994 (vec_vupklpx): New.
4995 (vec_vupklsh): New.
4996 (vec_vxor): New.
4997
4998 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4999
5000 PR c/5430
5001 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5002 added literals from substracted literals.
5003 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5004 (fold) [associate]: Preserve MINUS_EXPR if needed.
5005
5006 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5007
5008 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5009 are obsoleted.
5010
5011 2002-04-23 Tom Tromey <tromey@redhat.com>
5012
5013 * gcc.c: Added --resource. For PR java/6314.
5014
5015 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5016
5017 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5018 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5019 these libraries.
5020
5021 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5022
5023 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5024
5025 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5026
5027 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5028 workaround.
5029 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5030 (ix86_expand_clrstr): Fix typo.
5031 * loop.c (gen_load_of_final_value): New.
5032 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5033 Use it.
5034
5035 2002-04-23 Roger Sayle <roger@eyesopen.com>
5036
5037 * builtins.c (builtin_memset_gen_str): New function.
5038 (expand_builtin_memset): Optimize the case of constant length, but
5039 unknown value.
5040
5041 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5042
5043 * config/rs6000/altivec.h (vec_step): Remove extraneous
5044 parentheses.
5045 (vec_ctu): Cast return.
5046
5047 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5048
5049 PR target/6413
5050 * function.h: (struct function): Add profile_label_no field.
5051 (current_function_profile_label_no): Define.
5052 * function.c: (profile_label_no): New static var.
5053 (expand_function_start): Increment it, and copy to
5054 current_function_profile_label_no.
5055 * output.h (profile_label_no): Delete.
5056 * final.c (profile_label_no): Delete.
5057 (profile_function): Use current_function_profile_label_no.
5058 (final_end_function): Don't increment profile_label_no here.
5059 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5060 profile_label_no with current_function_profile_label_no.
5061 * config/pa/pa.c (current_function_number): Delete.
5062 (pa_output_function_prologue): Don't output profile label here.
5063 (hppa_profile_hook): Use label_no param rather than
5064 current_function_number.
5065 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5066 * config/pa/pa.h: .. here.
5067 (FUNCTION_PROFILER): Output profile label here.
5068
5069 2002-04-22 Eric Christopher <echristo@redhat.com>
5070
5071 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5072 patch of 2002-04-09 due to binutils issues.
5073 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5074
5075 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5076
5077 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5078 constraint to 'o' for m=r and r=m alternatives.
5079 ("*movv8hi_internal1"): Same.
5080 ("*movv16qi_internal1"): Same.
5081 ("*movv4sf_internal1"): Same.
5082
5083 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5084
5085 * rtl.h (RTX_FLAG): New macro.
5086 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5087 * final.c (alter_subreg): Use macro to access rtx flag.
5088 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5089 * print-rtl.c (print_rtx): Use new access macro.
5090
5091 * cse.c (insert): Check rtx code before accessing flag.
5092
5093 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5094 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5095 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5096 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5097 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5098 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5099 find_and_mark_used_attributes, unmark_used_attributes,
5100 add_values_to_cover, simplify_with_current_value,
5101 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5102 copy_rtx_unchanging, main): Use new access macros.
5103
5104 2002-04-22 Tom Rix <trix@redhat.com>
5105
5106 * expmed.c (init_expmed): Generate shifted constant once.
5107
5108 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5109
5110 * c-lex.c (lex_charconst): Call convert to get constant in
5111 proper type; don't just smash the type field.
5112 Fixes PR c/6300.
5113
5114 * config.gcc: Add list of obsolete configurations. Disallow
5115 building these without --enable-obsolete.
5116 * doc/install.texi: Document --enable-obsolete and obsoletion
5117 policy. Mention obsoletion of individual targets in
5118 appropriate places.
5119
5120 2002-04-22 Richard Henderson <rth@redhat.com>
5121
5122 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5123
5124 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5125
5126 PR f/6138.
5127 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5128 (walk_fixup_memory_subreg): Likewise.
5129 (fixup_var_refs_insn): Adjust accordingly.
5130 (fixup_var_refs_1): Likewise.
5131
5132 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5133
5134 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5135 LIBPATH_ARCH64_SPEC): Define.
5136 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5137 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5138 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5139 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5140
5141 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5142
5143 * gthr-rtems.h: Correct prototypes to remove warnings.
5144
5145 2002-04-22 Richard Henderson <rth@redhat.com>
5146
5147 PR c/6344
5148 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5149
5150 * gcse.c (free_insn_expr_list_list): New.
5151 (clear_modify_mem_tables): Use it. Fix bit set usage.
5152 (canon_list_insert): Use EXPR_LISTs for expressions.
5153 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5154
5155 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5156
5157 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5158 file change and include code to _cpp_pop_buffer.
5159 * cpphash.h (struct pending_option): Predeclare.
5160 (struct cpp_reader): New member next_include_file.
5161 (_cpp_pop_file_buffer): Update.
5162 (_cpp_push_next_buffer): Update, rename.
5163 * cppinit.c (cpp_destroy): Free include chain and pending here.
5164 (cpp_finish_options): Simplify.
5165 (_cpp_push_next_buffer): Rename and clean up.
5166 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5167 Clarify.
5168 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5169
5170 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5171
5172 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5173 being vector signed int.
5174 (vec_andc): Same.
5175 (vec_xor): Add variant for both args being vector signed char.
5176 Remove redundant variant.
5177 (vec_andc): Same.
5178
5179 2002-04-21 David S. Miller <davem@redhat.com>
5180
5181 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5182 compare mode in output RTL.
5183
5184 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5185
5186 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5187 style and formatting of previous patch.
5188
5189 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5190
5191 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5192 flag_pic for ABI_AIX.
5193
5194 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5195
5196 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5197 * cppfiles.c (read_include_file): Similarly.
5198 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5199 uxstrdup ustrchr, ufputs): Similarly.
5200 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5201 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5202 cpp_ideq, parse_identifier, parse_number): Similarly.
5203 * cpplib.c (struct directive, dequote_string, D, run_directive,
5204 cpp_push_buffer): Similarly.
5205 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5206 _cpp_create_definition, check_trad_stringification,
5207 cpp_macro_definition): Similarly.
5208
5209 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5210
5211 * cppmacro.c (funlike_invocation_p): Don't step back
5212 over CPP_EOF.
5213
5214 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5215
5216 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5217 labelno.
5218
5219 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5220
5221 * doc/invoke.texi: Remove Chill references.
5222 * doc/gcc.texi: Update last modified date.
5223
5224 2002-04-20 Kazu Hirata <kazu@hxi.com>
5225
5226 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5227 push and pop. Replace add.l with add.w.
5228
5229 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5230
5231 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5232 multiply instructions for H8/300H case.
5233
5234 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5235
5236 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5237 Bum three instructions from each routine.
5238
5239 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5240
5241 * Makefile.in: Update.
5242 * decl.c (push_c_function_context, pop_c_function_context,
5243 mark_c_function_context): Rename for consistency.
5244 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5245 * c-tree.h (push_c_function_context, pop_c_function_context,
5246 mark_c_function_context): Rename for consistency.
5247 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5248 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5249 * function.c (init_lang_status, save_lang_status,
5250 restore_lang_status, mark_lang_status, free_lang_status):
5251 Move to langhooks.h.
5252 (push_function_context_to, pop_function_context_from,
5253 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5254 Update.
5255 * function.h (init_lang_status, save_lang_status,
5256 restore_lang_status, mark_lang_status, free_lang_status):
5257 Move to langhooks.h.
5258 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5259 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5260 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5261 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5262 (LANG_HOOKS_INITIALIZER): Update.
5263 (lhd_do_nothing_f): New.
5264 * langhooks.h (struct lang_hooks_for_functions): New.
5265 (struct lang_hooks): New hooks.
5266 * langhooks.c (lhd_do_nothing_f): New.
5267 objc:
5268 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5269 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5270
5271 2002-04-19 David S. Miller <davem@redhat.com>
5272
5273 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5274 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5275
5276 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5277
5278 PR optimization/3756
5279 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5280 x = ((int) y < 0) ? cst1 : cst2.
5281
5282 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5283
5284 PR c/6358
5285 * function.c: Reapply patch for c/6358.
5286 (expand_function_end): Copy decl_rtl's mode, not
5287 current_function_return_rtx mode.
5288
5289 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5290
5291 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5292 targets.
5293
5294 2002-04-19 Tom Tromey <tromey@redhat.com>
5295
5296 * doc/install.texi (Specific): Update status of Solaris 2.8.
5297 For PR libgcj/6158.
5298
5299 2002-04-19 Andreas Schwab <schwab@suse.de>
5300
5301 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5302 (PUT_REAL): Restore old definition.
5303
5304 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5305 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5306
5307 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5308 binutils 2.11.2 and higher generate smaller binaries than Sun's
5309 native tools.
5310
5311 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5312
5313 PR c++/6352
5314 * toplev.c (rest_of_compilation): Do not defer functions for which
5315 TREE_SYMBOL_REFERENCED has already been set.
5316
5317 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5318
5319 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5320 alternative.
5321
5322 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5323
5324 * builtins.c: Include langhooks.h.
5325 (lang_type_promotes_to): Remove.
5326 (expand_builtin_va_arg): Use new hook.
5327 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5328 (simple_type_promotes_to): Move to c-typeck.c.
5329 * c-common.h (simple_type_promotes_to): Remove.
5330 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5331 * c-format.c: Include langhooks.h.
5332 (check_format_types): Update.
5333 * c-tree.h (c_type_promotes_to): New.
5334 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5335 (type_lists_compatible_p): Update.
5336 * langhooks-def.h (lhd_type_promotes_to): New.
5337 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5338 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5339 * langhooks.c (lhd_type_promotes_to): New.
5340 * langhooks.h (struct lang_hooks_for_types): New hook.
5341 * tree.h (lang_type_promotes_to): Remove.
5342 objc:
5343 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5344
5345 2002-04-18 Richard Henderson <rth@redhat.com>
5346
5347 * function.c: Revert patch for c/6358.
5348
5349 2002-04-18 Richard Henderson <rth@redhat.com>
5350
5351 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5352 blocks. Handle multiple references to the TRAP block. Handle
5353 non-adjacent THEN and OTHER blocks.
5354
5355 2002-04-18 Richard Henderson <rth@redhat.com>
5356
5357 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5358 crash with no type for by-mode libcalls.
5359
5360 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5361
5362 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5363
5364 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5365 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5366 the register windows.
5367
5368 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5369
5370 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5371 appropriate. Document need for extended precision even when
5372 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
5373 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
5374 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
5375 instead of relying on later syntax error when REAL_WIDTH > 5.
5376 * real.c: Define NE based only on whether or not we have a
5377 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5378 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
5379 define GET_REAL and PUT_REAL as simple memcpy operations; no
5380 need to byteswap or round.
5381 Use #error instead of #ifdef-ing out the entire file, for
5382 prompt error detection.
5383
5384 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5385
5386 2002-04-18 David S. Miller <davem@redhat.com>
5387
5388 * config/sparc/sparc.h (BRANCH_COST): Define.
5389
5390 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5391 does it.
5392
5393 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
5394
5395 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5396 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5397 propagate_block calls after relaxation loop using new variable
5398 stabilized_prop_flags.
5399
5400 2002-04-18 Richard Henderson <rth@redhat.com>
5401
5402 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5403 (ia64_va_arg): Expect variable sized types by reference.
5404 * config/ia64/ia64-protos.h: Update.
5405 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5406 ia64_function_arg_pass_by_reference.
5407
5408 2002-04-18 Richard Henderson <rth@redhat.com>
5409
5410 * ifcvt.c: Include except.h.
5411 (block_has_only_trap): Break out from find_cond_trap.
5412 (find_cond_trap): Use it. Always delete the trap block.
5413 (merge_if_block): Allow then block null. Be less simplistic about
5414 what insns can end a block.
5415 * Makefile.in (ifcvt.o): Depend on except.h.
5416
5417 * config/ia64/ia64.md (trap, conditional_trap): New.
5418
5419 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5420
5421 PR c/6358
5422 * function.c (assign_parms): Assign hard current_function_return_rtx
5423 register here...
5424 (expand_function_end): ...not here.
5425
5426 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
5427
5428 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5429 * c-tree.h (c_incomplete_type_error): New.
5430 * c-typeck.c (require_complete_type, build_component_ref): Update.
5431 (incomplete_type_error): Rename.
5432 * langhooks-def.h (lhd_incomplete_type_error): New.
5433 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5434 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5435 * langhooks.c (lhd_incomplete_type_error): New.
5436 * langhooks.h (struct lang_hooks_for_types): New hook.
5437 * tree.c (size_in_bytes): Use new hook.
5438 * tree.h (incomplete_type_error): Remove.
5439 objc:
5440 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5441
5442 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5443
5444 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5445 TARGET_FLOAT_FORMAT blocks.
5446
5447 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5448
5449 * doc/install.texi (Downloading the source): Do not mention Chill
5450 any longer, but mention Ada.
5451 (Configuration): Do not mention Chill any longer.
5452
5453 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
5454
5455 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5456
5457 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
5458
5459 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5460 in last patch.
5461
5462 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5463
5464 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5465 instead of unsigned_type.
5466
5467 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5468
5469 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5470 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5471 later.
5472
5473 2002-04-18 Bernd Schmidt <bernds@redhat.com>
5474
5475 * attribs.c (vector_type_node_list): New static variable.
5476 (handle_vector_size_attribute): Use it to avoid generating a
5477 new type node each time we are called.
5478
5479 * combine.c (subst): Avoid trying to make a vector mode subreg of
5480 an integer constant.
5481 (gen_lowpart_for_combine): Likewise.
5482
5483 2002-04-18 Roger Sayle <roger@eyesopen.com>
5484 Jakub Jelinek <jakub@redhat.com>
5485
5486 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5487 for integer constant c (if x has unsigned type or sign bit is not
5488 set in c). This folds the zero/sign extension into the bit-wise and
5489 operation.
5490
5491 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5492
5493 PR middle-end/6205
5494 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5495 otherwise xorps.
5496
5497 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
5498
5499 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5500
5501 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
5502
5503 * gcc.c (read_specs): Detect and fail if an attempt is made to
5504 rename a spec string to an already existing string.
5505
5506 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5507
5508 * config/s390/s390.c (legitimize_pic_address): Do not generate
5509 illegal address constant without CONST.
5510
5511 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5512
5513 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
5514 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5515
5516 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5517
5518 PR optimization/6305
5519 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
5520 to make sure previous reloads are taken into account. Generate
5521 better code if one operand is an in-range immediate constant.
5522
5523 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
5524
5525 * doc/install.texi (Building): libgcj requires GNU make.
5526
5527 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5528
5529 PR bootstrap/6315
5530 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
5531 even if hard quad and register is not floating.
5532 (movtf reg<-mem split): Disallow splitting if hard quad and
5533 register is floating.
5534 (movtf mem<-reg split): Likewise.
5535 * config/sparc/sparc.c (fp_register_operand): New predicate.
5536 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
5537
5538 2002-04-17 Zack Weinberg <zack@codesourcery.com>
5539
5540 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
5541 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
5542 (unprotoize.o): Ditto. Build from protoize.c. Define
5543 UNPROTOIZE on command line.
5544 * protoize.c: Include cppdefault.h. Delete include_defaults.
5545 (in_system_include_dir): Use cpp_include_defaults (defined in
5546 cppdefault.o).
5547 * unprotoize.c: Delete file.
5548
5549 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
5550
5551 * config/rs6000/altivec.h (vec_ld): Add array variants.
5552 (vec_lde): Same.
5553 (vec_ldl): Same.
5554
5555 2002-04-17 Alan Matsuoka <alanm@redhat.com>
5556 Aldy Hernandez <aldyh@redhat.com>
5557
5558 * config/rs6000/altivec.h: Define __ALTIVEC__.
5559 (bool): New.
5560 (__pixel): New.
5561 (pixel): New.
5562 (vec_cfux): New.
5563 (vec_vmaddfp): New.
5564 (vec_vsldoi): New.
5565 Add parentheses to all macro arguments.
5566
5567 2002-04-16 Richard Henderson <rth@redhat.com>
5568
5569 PR c++/6320
5570 * except.c (remove_eh_handler): Insert inner regions at beginning
5571 of sibling chain. Refactor expressions.
5572
5573 2002-04-16 Richard Henderson <rth@redhat.com>
5574
5575 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
5576 * config/sparc/sol2-gas-bi.h: New file.
5577 * config.gcc (sparc*-solaris): Add it as needed.
5578 * configure.in (AS_SPARC64_FLAG): Remove check.
5579 * config.in, configure: Regenerate.
5580
5581 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
5582
5583 2002-04-16 Richard Henderson <rth@redhat.com>
5584
5585 * config/mips/mips.c (override_options): Don't override N32 for
5586 a 64-bit ISA.
5587
5588 PR 6202
5589 * config/mips/mips.md (can_delay): Split out of existing define_delays.
5590 (HILO_delay): Set can_delay false.
5591
5592 2002-04-16 Dale Johannesen <dalej@apple.com>
5593
5594 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
5595 instruction addresses.
5596 (rs6000_output_function_epilogue): Likewise.
5597
5598 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
5599
5600 * c-parse.in (poplevel, compstmt_start,
5601 compstmt_primary_start): Add ending ';', in accordance
5602 with POSIX.
5603
5604 2002-04-16 Richard Henderson <rth@redhat.com>
5605
5606 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
5607 Adjust tm_file order to get TARGET_DEFAULT set properly.
5608 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
5609 * doc/install.texi (sparc-solaris): Update.
5610
5611 2002-04-16 Dale Johannesen <dalej@apple.com>
5612
5613 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
5614 comparison operands do not match each other or if modes of
5615 conditions do not match result.
5616
5617 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
5618
5619 PR target/6305
5620 * config/s390/s390.md (mulsidi3): Set both subregs of the
5621 multiword register.
5622
5623 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
5624
5625 * config/rs6000/altivec.h (vec_addc): Type check.
5626
5627 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5628
5629 PR middle-end/6279
5630 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
5631
5632 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
5633
5634 2002-04-15 Richard Henderson <rth@redhat.com>
5635
5636 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
5637 call_really_used_regs too.
5638
5639 2002-04-15 Richard Henderson <rth@redhat.com>
5640
5641 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
5642
5643 2002-04-15 David S. Miller <davem@redhat.com>
5644
5645 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
5646 as being CLOBBERed.
5647
5648 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5649
5650 PR c/6290
5651 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
5652 CONST_VECTOR is { 0, ... 0 }.
5653
5654 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
5655
5656 * doc/install.texi (Installing GCC: Configuration): Clarify
5657 the only supported ways to configure gcc.
5658
5659 2002-04-15 Roland McGrath <roland@frob.com>
5660
5661 * config.gcc (alpha*-*-gnu*): New target configuration.
5662 * config/alpha/gnu.h: New file for it.
5663 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
5664
5665 2002-04-16 Mark Mitchell <mark@codesourcery.com>
5666
5667 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
5668 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
5669 * tree.h (expand_start_stmt_expr): Update prototype.
5670 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
5671 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
5672 on the STMT_EXPR created for the inline function.
5673
5674 2002-04-15 Richard Henderson <rth@redhat.com>
5675
5676 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
5677 config/i386/linux-aout.h, config/i386/linux-oldld.h,
5678 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
5679 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
5680 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
5681 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
5682 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
5683 Define __gnu_linux__, not gnu_linux.
5684 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
5685
5686 2002-04-15 Mark Mitchell <mark@codesourcery.com>
5687
5688 Remove Chill front end.
5689 * gcc.c (default_compilers): Remove Chill entries.
5690 * ch: Remove directory.
5691 * doc/frontends.texi: Remove information about Chill.
5692 * doc/sourcebuild.texi: Likewise.
5693 * doc/standards.texi: Likewise.
5694
5695 2002-04-15 Douglas B Rupp <rupp@gnat.com>
5696
5697 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
5698 (LONGLONG_STANDALONE): Define.
5699
5700 2002-04-15 David S. Miller <davem@redhat.com>
5701
5702 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
5703 Call emit_library_call with LCT_NORMAL.
5704 (sparc_initialize_trampoline): Use LCT_foo instead of
5705 magic constant in emit_library_call invocations.
5706 (sparc64_initialize_trampoline): Likewise.
5707 (sparc_profile_hook): Likewise.
5708 * config/sparc/sparc.md: Likewise.
5709
5710 * config/sparc/sparc.c (sparc_extra_constraint_check):
5711 Fix type of argument 'c'.
5712 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
5713 Likewise.
5714
5715 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5716
5717 * diagnostic.h (output_buffer_state): Redefine.
5718 (output_format_decoder): New macro.
5719 (output_prefixing_rule): Likewise.
5720 (output_line_cutoff): Likewise.
5721 (diagnostic_format_decoder): Adjust.
5722 (diagnostic_prefixing_rule): Likewise.
5723 (diagnostic_line_cutoff): Likewise.
5724 (diagnostic_state): Likewise.
5725 (diagnostic_kind_count): Likewise.
5726 (diagnostic_buffer): Now a macro.
5727
5728 * diagnostic.c (diagnostic_buffer): Remove definition.
5729 (output_is_line_wrapping): Adjust.
5730 (set_real_maximum_length): Likewise.
5731 (output_set_maximum_length): Likewise.
5732 (init_output_buffer): Likewise.
5733 (lhd_print_error_function): Likewise.
5734 (output_do_verbatim): Likewise.
5735
5736 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
5737
5738 * cpperror.c (print_location): Don't print include chain
5739 if line == 0.
5740 (cpp_begin_message): Update to use DL_ macros.
5741 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
5742 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5743 cpp_notice, cpp_notice_from_errno): Remove.
5744 (cpp_error, cpp_error_with_line): Update to take a diagnostic
5745 level.
5746 (cpp_errno): New.
5747 * cppexp.c (CPP_ICE): Remove.
5748 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
5749 lex, integer_overflow, _cpp_parse_expr): Update.
5750 * cppfiles.c (read_include_file, find_include_file,
5751 handle_missing_header, _cpp_read_file, remap_filename): Update.
5752 * cpphash.h (enum error_type): Remove.
5753 (_cpp_begin_message): Update.
5754 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
5755 cpp_handle_option, cpp_post_options): Update.
5756 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
5757 skip_whitespace, parse_identifier, parse_slow, parse_string,
5758 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
5759 cpp_interpret_charconst): Update.
5760 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
5761 lex_macro_node, do_undef, glue_header_name, parse_include,
5762 do_include_common, read_flag, do_line, do_linemarker, do_ident,
5763 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
5764 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
5765 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
5766 _cpp_pop_buffer, do_diagnostic): Update.
5767 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
5768 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
5769 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
5770 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5771 cpp_notice, cpp_notice_from_errno): Remove.
5772 (cpp_error, cpp_error_with_line): Update to take a diagnostic
5773 level.
5774 (cpp_errno): New.
5775 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
5776 collect_args, enter_macro_context, save_parameter, parse_params,
5777 _cpp_create_definition, check_trad_stringification,
5778 cpp_macro_definition): Update.
5779 * cppmain.c (cpp_preprocess_file): Update.
5780 * fix-header.c (read_scan_file): Update.
5781
5782 2002-04-14 Andreas Schwab <schwab@suse.de>
5783
5784 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
5785
5786 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5787
5788 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
5789
5790 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5791
5792 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
5793 not gnu_hurd.
5794
5795 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
5796
5797 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
5798
5799 2002-04-13 Joel Sherrill <joel@OARcorp.com>
5800
5801 * config/sparc/t-elf: Enable v8 multilibs. Impacts
5802 sparc-elf and sparc-rtems targets.
5803
5804 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5805
5806 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
5807 defined, and __gnu_hurd__ wherever __GNU__ is defined.
5808 * arm/linux-elf.h: Likewise.
5809 * cris/aout.h: Likewise.
5810 * cris/linux.h: Likewise.
5811 * i370/linux.h: Likewise.
5812 * i386/gnu.h: Likewise.
5813 * i386/linux-aout.h: Likewise.
5814 * i386/linux-oldld.h: Likewise.
5815 * i386/linux.h: Likewise.
5816 * i386/linux64.h: Likewise.
5817 * ia64/linux.h: Likewise.
5818 * m68k/linux-aout.h: Likewise.
5819 * m68k/linux.h: Likewise.
5820 * mips/linux.h: Likewise.
5821 * pa/pa-linux.h: Likewise.
5822 * pj/linux.h: Likewise.
5823 * rs6000/sysv4.h: Likewise.
5824 * s390/linux.h: Likewise.
5825 * sh/linux.h: Likewise.
5826 * sparc/linux-aout.h: Likewise.
5827 * sparc/linux.h: Likewise.
5828 * sparc/linux64.h: Likewise.
5829 * xtensa/linux.h: Likewise.
5830
5831 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
5832
5833 * stmt.c (check_unique_operand_names): Expect operand names to
5834 be strings rather than identifiers. Use simple_cst_equal to
5835 compare them.
5836 (resolve_operand_name_1): Make same identifier to string change here.
5837 * c-parse.in (asm_operand): Convert a named operand into a string.
5838 * cp/parse.y (asm_operand): Likewise.
5839
5840 2002-04-13 Andreas Schwab <schwab@suse.de>
5841
5842 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5843
5844 2002-04-12 Mark Mitchell <mark@codesourcery.com>
5845
5846 Revert these changes:
5847
5848 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5849
5850 PR c++/5571
5851 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5852
5853 2002-04-12 Richard Henderson <rth@redhat.com>
5854
5855 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5856 (sparc*-*-solaris): Clean up header files.
5857 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5858 and plan on generating 64-bit code.
5859 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5860 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5861 * config/sparc/sol2-sld-64.h: Rename ...
5862 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
5863 for AS_SPARC64_FLAG not defined.
5864 * config/sparc/sol2-gld-bi.h: New.
5865 * config/sparc/sol2-sld.h: Remove.
5866 * config/sparc/sol26-sld.h: New.
5867 * config/sparc/sol2.h: Tidy comments.
5868 * doc/install.texi: Document sparc-solaris configury changes.
5869
5870 2002-04-12 Richard Henderson <rth@redhat.com>
5871
5872 * recog.c (offsettable_address_p): Match the logic in adjust_address.
5873
5874 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5875 in 64-bit mode only. Use only for 32-bit or MEDLOW.
5876
5877 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5878
5879 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5880
5881 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
5882
5883 * pa.c (pa_can_combine_p): Call extract_insn before calling
5884 constrain_operands.
5885
5886 2002-04-12 Douglas B Rupp <rupp@gnat.com>
5887
5888 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5889 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5890 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5891 (CPP_PREDEFINES): Handle __declspec.
5892 * config/i386/t-interix (USER_H): Remove.
5893
5894 2002-04-12 DJ Delorie <dj@redhat.com>
5895
5896 * integrate.c (compare_blocks): Make comparisons safe for when
5897 sizeof(int) < sizeof(char *).
5898 (find_block): Likewise.
5899
5900 2002-04-12 Jan Hubicka <jh@suse.cz>
5901 David Edelsohn <edelsohn@gnu.org>
5902
5903 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5904 registers.
5905 (symbol_ref_operand): New.
5906 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5907 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5908
5909 2002-04-12 Andreas Schwab <schwab@suse.de>
5910
5911 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5912 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5913 overrides the definition in config/svr4.h.
5914
5915 2002-04-12 Eric Norum <eric.norum@usask.ca>
5916
5917 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5918 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5919 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5920 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5921 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5922 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5923 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5924 definitions to config/rtems.h and make the targets more similar.
5925
5926 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5927
5928 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5929 POINTERS_EXTEND_UNSIGNED.
5930 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5931 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5932
5933 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5934 not specified.
5935
5936 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
5937
5938 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5939 depends on TARGET_SHMEDIA, not TARGET_SH5.
5940
5941 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
5942
5943 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5944 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5945
5946 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
5947
5948 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5949 no r0 clobber.
5950
5951 2002-04-12 Andreas Schwab <schwab@suse.de>
5952
5953 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5954
5955 2002-04-12 Richard Henderson <rth@redhat.com>
5956
5957 PR bootstrap/4191
5958 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5959
5960 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5961 modes spanning multiple hard regs.
5962
5963 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5964
5965 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5966
5967 * pa.c (pa_output_function_prologue): Don't accumulate the total
5968 number of code bytes when using TARGET_64BIT, or gas, SOM and not
5969 the portable runtime.
5970 (output_deferred_plabels): Handle 64bit plabels.
5971 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5972 generating pic code using the GAS assembler for object formats that
5973 are not SOM (ie., ELF32 and ELF64).
5974 (output_millicode_call): Check attribute type if attribute length is 28.
5975 Likewise use $PIC_pcrel$0. Only call get_attr_length and
5976 dbr_sequence_length once.
5977 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5978 dbr_sequence_length once.
5979 * pa.h (TARGET_SOM): Define if not defined.
5980 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5981 with GAS and not SOM.
5982 (jump, call_internal_reg, call_value_internal_reg): Likewise.
5983 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
5984
5985 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5986
5987 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5988 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5989 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5990 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5991 elfos.h and dbxelf.h values are fine now.
5992 * config/i386/freebsd.h, config/alpha/freebsd.h
5993 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5994
5995 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5996
5997 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5998 or set Acpu or Amachine. Reformat.
5999 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6000 define.
6001 (LINK_SPEC): Do not need to undef.
6002 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6003 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6004 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6005 define.
6006 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6007 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6008 (LINK_SPEC): Do not need to undef.
6009 (DONT_USE_BUILTIN_SETJMP): Do not define.
6010 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6011 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6012 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6013 Remove trailing spaces.
6014 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6015 __ELF__, or set Acpu or Amachine. Reformat.
6016 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6017 define.
6018
6019 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6020
6021 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6022 all other *-*-freebsd* targets.
6023
6024 2002-04-11 Richard Henderson <rth@redhat.com>
6025
6026 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6027
6028 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6029
6030 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6031 Include {cpu}/{cpu}.h thru tm_file.
6032 (alpha*-*-linux*ecoff): Remove target.
6033 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6034 (LINK_SPEC): Remove, is not OS independent.
6035 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6036 (LINK_SPEC): Do not need to #undef any longer.
6037 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6038 any longer.
6039 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6040 __ELF__.
6041 (LINK_SPEC): Moved here from alpha/elf.h.
6042 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6043 SUB_CPP_PREDEFINES.
6044 * config/alpha/linux-ecoff.h: Remove.
6045 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6046 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6047 (CPP_SUBTARGET_SPEC): Do not define.
6048 (LINK_SPEC): Do not need to #undef any longer.
6049 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6050 * config/alpha/vms.h: Likewise.
6051
6052 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6053
6054 * doc/extend.texi: Remove old claim that typedefs cannot have
6055 an alignment attribute.
6056
6057 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6058
6059 PR optimization/6177
6060 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6061 bitpos is 0 and bitsize CONCAT size.
6062
6063 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6064
6065 PR c/6223
6066 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6067
6068 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6069
6070 * config/alpha/freebsd.h: Minor reformatting.
6071 (CPP_SPEC): Define ELF and add cpp_subtarget.
6072 (ASM_SPEC): No longer needed.
6073
6074 2002-04-11 Richard Henderson <rth@redhat.com>
6075
6076 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6077 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6078 (dimode mem/zero splitter): New.
6079
6080 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6081
6082 * config/cris/cris.c (cris_override_options): Tweak error message
6083 for PIC not implemented.
6084
6085 * config/cris/cris.h: Tweak comments related to parameter-passing.
6086
6087 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6088
6089 2002-04-10 Richard Henderson <rth@redhat.com>
6090
6091 * except.c (add_ehl_entry): Allow duplicates after landing pad
6092 creation.
6093
6094 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6095
6096 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6097
6098 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6099
6100 * c-decl.c (c_init_decl_processing): Move generation of
6101 decls for g77_integer_type_node and friends from here ...
6102 * c-common.c (c_common_nodes_and_builtins): ... to here.
6103
6104 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6105
6106 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6107 is only used as frame pointer when frame_pointer_needed is true.
6108
6109 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6110
6111 PR target/817
6112 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6113 for the fact that the pool entry uses two words.
6114 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6115 1k bytes.
6116 (movdf_soft_insn): Similarly.
6117 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6118 for the fact that the pool entry uses three words.
6119
6120 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6121
6122 * config/mips/mips.c (mips_va_arg): When using the struct version
6123 of the EABI va_list, allow arguments in the register save area to
6124 take up less room than a stack argument.
6125
6126 2002-04-10 Richard Henderson <rth@redhat.com>
6127
6128 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6129 if EXPAND_INITIALIZER.
6130
6131 2002-04-09 Richard Henderson <rth@redhat.com>
6132
6133 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6134 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6135
6136 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6137
6138 PR optimization/6233
6139 * rtlanal.c (pure_call_p): New function.
6140 * rtl.h (pure_call_p): Declare.
6141 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6142 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6143
6144 2002-04-09 Eric Christopher <echristo@redhat.com>
6145
6146 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6147 information to .comm directive.
6148
6149 2002-04-09 Richard Henderson <rth@redhat.com>
6150
6151 PR c/5078
6152 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6153
6154 2002-04-09 Richard Henderson <rth@redhat.com>
6155
6156 * basic-block.h (flow_delete_block_noexpunge): Declare.
6157 (expunge_block_nocompact): Declare.
6158 * cfg.c (expunge_block_nocompact): Split out from ...
6159 (expunge_block): ... here.
6160 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6161 (flow_delete_block_noexpunge): Split out from ...
6162 (flow_delete_block): ... here.
6163 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6164 removing dead blocks.
6165 * except.c (exception_handler_labels): Remove.
6166 (exception_handler_label_map): New.
6167 (struct eh_region): Add aka member.
6168 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6169 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6170 (for_each_eh_label, for_each_eh_label_1): New.
6171 (init_eh): Register exception_handler_label_map.
6172 (free_eh_status): Use free_region.
6173 (find_exception_handler_labels): Use the map, not the list.
6174 (remove_exception_handler_label): Likewise.
6175 (maybe_remove_eh_handler): Likewise.
6176 (remove_eh_handler): Use the region aka bitmap.
6177 * except.h (exception_handler_labels): Remove.
6178 (for_each_eh_label): Declare.
6179 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6180 * loop.c (invalidate_loops_containing_label): New.
6181 (find_and_verify_loops): Use it. Use for_each_eh_label.
6182 * sched-rgn.c (is_cfg_nonregular): Use
6183 current_function_has_exception_handlers.
6184
6185 2002-04-09 Richard Henderson <rth@redhat.com>
6186
6187 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6188 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6189 Do not return changed status.
6190 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6191 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6192 New functions that do return changed status.
6193 * sbitmap.h: Update decls.
6194 * gcse.c, lcm.c: Use _cg functions as needed.
6195
6196 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6197
6198 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6199 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6200 * config/sh/embed_bb.c: New file.
6201 * config/sh/embed-elf.h: New file.
6202 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6203 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6204 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6205 __PTRDIFF_TYPE__ .
6206 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6207 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6208 Add subtarget_asm_endian_spec.
6209 (ASM_SPEC): Use subtarget_asm_endian_spec.
6210 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6211 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6212 (WCHAR_UNSIGNED): Define.
6213 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6214 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6215 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6216 Fix value.
6217 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6218 (sh_adjust_cost): Likewise.
6219 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6220 __PTRDIFF_TYPE__ .
6221 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6222 (WCHAR_TYPE_SIZE): Likewise.
6223 (ASM_SPEC): Use subtarget_asm_endian_spec.
6224 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6225 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6226 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6227 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6228 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6229 (USER_LABEL_PREFIX): Don't #undef /#define .
6230 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6231 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6232 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6233 (ASM_SPEC): Likewise.
6234 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6235 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6236 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6237 (LIB2FUNCS_EXTRA): Define.
6238 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6239 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6240 (LIB1ASMFUNCS_CACHE): Define.
6241 (LIB2FUNCS_EXTRA): Redefine empty.
6242
6243 2002-04-08 Richard Henderson <rth@redhat.com>
6244
6245 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6246
6247 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6248
6249 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6250 and optimize for size.
6251 (__do_global_ctors): Fix pointer comparison.
6252 (__do_global_dtors): Likewise.
6253
6254 2002-04-09 David S. Miller <davem@redhat.com>
6255
6256 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6257 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6258 allow reloading pseudos.
6259 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6260 * config/sparc/sparc-protos.h: Declare it.
6261
6262 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6263 unsigned comparison warning.
6264 (output_restore_regs): Mark leaf_function as unused.
6265
6266 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6267
6268 * expr.c (is_aligning_offset): New function.
6269 (expand_expr, case COMPONENT_EXPR): Call it.
6270
6271 2002-04-08 David S. Miller <davem@redhat.com>
6272
6273 PR target/6082
6274 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6275
6276 Make init_priority work on Sparc when using GNU ld.
6277 * config/sparc/linux.h, config/sparc/linux64.h,
6278 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6279 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6280 * config/sparc/sol2-gld.h: New file to do the same.
6281 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6282 sparc/sol2-gld.h to tm_file.
6283
6284 PR optimization/4328
6285 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6286 * doc/md.texi: Document it.
6287 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6288 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6289 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6290 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6291 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6292
6293 2002-04-08 Andreas Jaeger <aj@suse.de>
6294
6295 * stmt.c (expand_asm_operands): Revert last patch from Richard
6296 Henderson.
6297
6298 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6299
6300 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6301 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6302
6303 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6304
6305 * doc/contrib.texi (Contributors): Add David O'Brien.
6306
6307 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6308
6309 * configure.in (auto-build.h): Use target_alias and build_alias
6310 when running configure.
6311 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6312 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6313 * configure: Regenerate.
6314
6315 2002-04-07 David S. Miller <davem@redhat.com>
6316
6317 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6318
6319 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6320
6321 PR 5933
6322 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6323 generating 32-bit pic code.
6324
6325 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6326
6327 * cppinit.c (cpp_create_reader): Initialize
6328 discard_comments_in_macro_exp.
6329 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6330 (cpp_handle_option): Handle "-CC" option.
6331 * cpplex.c (save_comment): If saving a C++ comment in
6332 a directive, convert it to a C comment.
6333 (_cpp_lex_direct): Pass second comment start character to
6334 save_comment to indicate comment type.
6335 * cpplib.c (_cpp_handle_directive): If processing
6336 a "#define" directive and discard_comments_in_macro_exp
6337 is false, re-enable saving of comments.
6338 (lex_macro_node): If discard_comments_in_macro_exp is false,
6339 discard any comments before the macro identifier.
6340 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6341 member.
6342 * cppmacro.c (cpp_get_token): If expanding a macro while
6343 processing a directive, discard any comments we might encounter.
6344 (parse_params): If discard_comments_in_macro_exp is false,
6345 ignore comments in the macro parameter list.
6346 * gcc.c (cpp_unique_options): Add "-CC" option.
6347 (option_map): Map "--comments-in-macros" to "-CC".
6348 * doc/cppopts.texi: Document "-CC" option.
6349 * f/lang-specs.h: Add "-CC" option.
6350 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6351 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6352 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6353 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6354 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6355 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6356
6357 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6358
6359 PR middle-end/6180
6360 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6361
6362 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6363
6364 PR c++/5571
6365 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6366
6367 PR opt/5120
6368 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6369 RTX_UNCHANGING_P for the functions arguments when a tail call
6370 is made.
6371
6372 2002-04-06 Jason Merrill <jason@redhat.com>
6373
6374 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6375 (parse_options_and_default_flags): Set them appropriately.
6376 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6377
6378 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
6379
6380 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6381 here.
6382
6383 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6384 semicolon.
6385
6386 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6387 types come in by-reference. Fix typo in comment.
6388
6389 2002-04-05 David S. Miller <davem@redhat.com>
6390
6391 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6392 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6393 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6394 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6395
6396 2002-04-05 David S. Miller <davem@redhat.com>
6397
6398 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6399 are not going to emit return instructions, emit at least a nop
6400 for the sake of sane backtraces.
6401
6402 2002-04-05 Richard Henderson <rth@redhat.com>
6403
6404 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6405
6406 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
6407
6408 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6409
6410 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
6411
6412 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6413 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6414 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6415
6416 2002-04-05 Andreas Schwab <schwab@suse.de>
6417
6418 * c-convert.c: Include c-common.h.
6419 * Makefile.in (c-convert.o): Updated.
6420
6421 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6422
6423 * mklibgcc.in: Use separate libgcc.map for each multilib.
6424 * Makefile.in (distclean): Don't remove libgcc.map here.
6425
6426 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6427
6428 * Makefile.in (s-mlib): Handle --disable-multilib by separate
6429 genmultilib invocation.
6430
6431 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
6432
6433 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6434 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
6435 to num_gprs for symmetry.
6436 * config/mips/mips.c: Adjust accordingly.
6437
6438 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
6439
6440 * c-common.c (truthvalue_conversion): Rename, update.
6441 * c-common.h (c_common_truthvalue_conversion): New.
6442 * c-convert.c (convert): Update.
6443 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6444 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6445 * c-typeck.c (build_binary_op, build_unary_op,
6446 build_conditional_expr): Update.
6447 * fold-const.c (constant_boolean_node, fold): Use langhook.
6448 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6449 * langhooks.h (struct lang_hooks): New hook.
6450 * stmt.c (expand_decl_cleanup): Use langhook.
6451 * tree.h (truthvalue_conversion): Remove.
6452 objc:
6453 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6454
6455 2002-04-05 Alan Modra <amodra@bigpond.net.au>
6456
6457 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6458 Add rules to make null object file.
6459
6460 2002-04-04 Jim Blandy <jimb@redhat.com>
6461
6462 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6463 macro formal parameter names.
6464
6465 2002-04-04 David S. Miller <davem@redhat.com>
6466
6467 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6468
6469 2002-04-04 Richard Henderson <rth@redhat.com>
6470
6471 PR middle-end/5099
6472 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6473 Support copies into and out of memory. Don't accept allows_reg
6474 and allows_mem as gospel.
6475
6476 2002-04-04 Richard Henderson <rth@redhat.com>
6477
6478 PR opt/6165
6479 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6480 (write_dependence_p): Likewise.
6481
6482 2002-04-04 Richard Henderson <rth@redhat.com>
6483
6484 * predict.c (estimate_bb_frequencies): Do frequency calculation
6485 with a volatile temporary.
6486
6487 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
6488
6489 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6490
6491 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6492
6493 PR c++/6119
6494 * final.c (final_start_function): Don't bump profile_label_no here...
6495 (final_end_function): ...but here.
6496
6497 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6498
6499 * config/sparc/sparc.md (pic): New attribute.
6500 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6501 into stack slots.
6502 (split after do_builtin_setjmp_setup): New.
6503
6504 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6505
6506 PR fortran/6106
6507 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6508 change.
6509
6510 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6511
6512 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
6513 UNITS_PER_WORD for zero sized aggregates.
6514
6515 2002-04-03 David S. Miller <davem@redhat.com>
6516
6517 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
6518 one-character spec for this, just use %(link_gcc_c_sequence).
6519
6520 2002-04-03 David S. Miller <davem@redhat.com>
6521
6522 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
6523 handling.
6524
6525 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6526
6527 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
6528 (DWARF_FRAME_RETURN_COLUMN): Move.
6529 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6530 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
6531 * pa.c (except.h, predict.h): Include.
6532 (FRP): Delete.
6533 (store_reg_modify, set_reg_plus_d): Revise prototypes.
6534 (output_ascii): Add cast.
6535 (store_reg_modify): Revise to add frame notes.
6536 (set_reg_plus_d): Likewise.
6537 (compute_frame_size): Include space for eh data registers in frame if
6538 the current function calls eh_return.
6539 (hppa_expand_prologue): Ensure register %r2 is saved if the current
6540 function calls eh_return. Save eh data registers if the current
6541 function calls eh_return. Fix code to add frame notes. Emit
6542 blockage to prevent insns with frame notes being scheduled in the
6543 delay slot of calls.
6544 (hppa_expand_epilogue): Restore eh data registers and do final stack
6545 adjustment if the current function calls eh_return. Don't add frame
6546 notes.
6547 (output_call): Revise for change in length of call insn. Don't do
6548 return pointer adjustment for an unconditional jump in the delay slot
6549 of a call when using frame notes.
6550 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
6551 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
6552 (ARG_POINTER_CFA_OFFSET): Define.
6553 * pa.md (return_external_pic): New pattern.
6554 (prologue): Correct formatting. Use return_external_pic if current
6555 function calls eh_return.
6556 (call_internal_symref, call_value_internal_symref,
6557 sibcall_internal_symref, sibcall_value_internal_symref): Change default
6558 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
6559 respectively.
6560 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
6561
6562 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
6563 list of targets to check using "nop" insn.
6564 * configure: Rebuilt.
6565
6566 2002-04-04 Alan Modra <amodra@bigpond.net.au>
6567
6568 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
6569
6570 2002-04-03 David S. Miller <davem@redhat.com>
6571
6572 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
6573 library sequence passed to the linker.
6574 (LINK_COMMAND_SPEC): Use it.
6575 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
6576 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
6577 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6578
6579 2002-04-03 Jason Merrill <jason@redhat.com>
6580
6581 * except.c (struct eh_status): Remove protect_list.
6582 (begin_protect_partials, end_protect_partials): Remove.
6583 (add_partial_entry): Remove.
6584 * except.h: Remove prototypes.
6585
6586 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
6587 expand_decl_cleanup_eh.
6588
6589 PR c++/5636
6590 * tree.h (CLEANUP_EH_ONLY): New macro.
6591 * stmt.c (expand_decl_cleanup_eh): New fn.
6592 (expand_cleanups): Check CLEANUP_EH_ONLY.
6593 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
6594 Use expand_decl_cleanup_eh.
6595 (expand_stmt): Adjust.
6596 * c-common.h: Adjust prototype.
6597
6598 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
6599
6600 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
6601 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
6602 (cris_target_asm_function_epilogue): Ditto.
6603 (cris_initial_frame_pointer_offset): Ditto.
6604 (cris_simple_epilogue): Ditto.
6605 (cris_expand_builtin_va_arg): Variable-size types come in
6606 by-reference.
6607
6608 2002-04-03 David S. Miller <davem@redhat.com>
6609
6610 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
6611 little-endian.
6612 (set_fast_math): Correct 'fsr' type.
6613
6614 2002-04-03 Richard Henderson <rth@redhat.com>
6615
6616 PR opt/3569
6617 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
6618 * toplev.c (check_global_declarations): Use it.
6619 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
6620 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6621 (LANG_HOOKS_DECLS): Add it.
6622 * langhooks.c (lhd_warn_unused_global_decl): New.
6623 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6624 * c-objc-common.c (c_warn_unused_global_decl): New.
6625 * c-tree.h (c_warn_unused_global_decl): Declare.
6626 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6627
6628 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
6629
6630 * langhooks-def.h (lhd_set_decl_assembler_name,
6631 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
6632 (LANG_HOOKS_INITIALIZER): Update.
6633 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
6634 * langhooks.h (struct lang_hooks): New hook.
6635 * tree.c (set_decl_assembler_name): Move to langhooks.c.
6636 (lang_set_decl_assembler_name): Remove.
6637 (init_obstacks): Don't set hook.
6638 (decl_assembler_name): New function.
6639 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
6640 (decl_assembler_name): New.
6641 (lang_set_decl_assembler_name): Remove.
6642
6643 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6644
6645 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
6646 works properly with .hidden symbols.
6647 * configure: Rebuilt.
6648 * config.in: Rebuilt.
6649 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
6650 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
6651 properly with .hidden symbols.
6652
6653 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6654
6655 PR middle-end/6102
6656 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
6657 USE argument.
6658
6659 2002-04-03 Richard Henderson <rth@redhat.com>
6660
6661 PR opt/4120
6662 * sched-rgn.c (sets_likely_spilled): New.
6663 (sets_likely_spilled_1): New.
6664 (add_branch_dependences): Use it.
6665
6666 2002-04-02 Richard Henderson <rth@redhat.com>
6667
6668 PR opt/4311
6669 * loop.h (LOOP_FIRST_PASS): New.
6670 * loop.c (strength_reduce): Mind it when deciding to unroll.
6671 * toplev.c (rest_of_compilation): Set it.
6672
6673 2002-04-02 David S. Miller <davem@redhat.com>
6674
6675 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
6676 mems_ok_for_ldd_peep when the order of the loads being examined
6677 is reversed.
6678 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
6679 existing comment to increase comprehension of this situation.
6680
6681 2002-04-02 Zack Weinberg <zack@codesourcery.com>
6682
6683 * config/sh/sh.md: Don't use union real_extract.
6684
6685 2002-04-02 Richard Henderson <rth@redhat.com>
6686
6687 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
6688
6689 2002-04-02 David O'Brien <obrien@FreeBSD.org>
6690
6691 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
6692 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
6693 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
6694 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
6695 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
6696 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
6697 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
6698 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
6699 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
6700 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
6701 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
6702 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
6703 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
6704 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
6705 Include as many configury headers via tm_file as possible. This
6706 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
6707 * config/openbsd-oldgas.h: New file.
6708 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
6709 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
6710 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
6711 config/i386/i386-coff.h, config/i386/i386-interix.h,
6712 config/i386/iscdbx.h, config/i386/linux-aout.h,
6713 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
6714 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
6715 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
6716 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
6717 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
6718 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
6719 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
6720 config/i386/vxi386.h: Do not directly include configury headers.
6721 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
6722 Directly include configury headers that are no longer automatically
6723 included by the above headers.
6724 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
6725 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
6726 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
6727 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
6728 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
6729 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
6730 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
6731 (TARGET_VERSION): Define.
6732 * config/i386/beos-elf.h, config/i386/freebsd.h,
6733 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
6734 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6735 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
6736 config/i386/sco5.h, config/i386/sysv4.h
6737 (TARGET_VERSION): Do not need to protect.
6738 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
6739 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
6740 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
6741 config/i386/i386-interix.h, config/i386/linux-aout.h,
6742 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
6743 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
6744 (YES_UNDERSCORES): Do not define - not needed.
6745 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
6746 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
6747 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
6748 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
6749 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
6750 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
6751 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
6752 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
6753
6754 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
6755 Richard Henderson <rth@redhat.com>
6756
6757 PR c/5484
6758 * function.c (assign_temp): Accept either type or decl argument.
6759 Detect variables whose size is too large to fit into an integer.
6760 * stmt.c (expand_decl): Pass the decl, not the type.
6761
6762 2002-04-02 David O'Brien <obrien@FreeBSD.org>
6763
6764 * protoize.c: Match include directory usage with cppdefault.c.
6765
6766 2002-04-03 Jeffrey A Law (law@redhat.com)
6767 Hans-Peter Nilsson <hp@bitrange.com>
6768
6769 * combine.c (simplify_comparison): Avoid narrowing a comparison
6770 with a paradoxical subreg when doing so would drop signficant bits.
6771
6772 2002-04-02 Steve Ellcey <sje@cup.hp.com>
6773
6774 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
6775 if POINTERS_EXTEND_UNSIGNED is defined.
6776
6777 2002-04-02 Richard Henderson <rth@redhat.com>
6778
6779 PR opt/3967
6780 * local-alloc.c (contains_replace_regs): LO_SUM may contain
6781 replace regs.
6782
6783 2002-04-02 Richard Henderson <rth@redhat.com>
6784
6785 * doc/standards.texi: Document required freestanding libc entry points.
6786
6787 2002-04-02 Alan Modra <amodra@bigpond.net.au>
6788
6789 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
6790 associated splitter. Remove MQ constraint.
6791 (ctrdi_internal4): Correct CCmode clobber.
6792
6793 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6794
6795 * milli64.S ($$dyncall): New function.
6796 * t-linux (LIB1ASMFUNCS): Revise module list.
6797 (LIB1ASMSRC): Use pa/milli64.S.
6798
6799 2002-04-02 Richard Henderson <rth@redhat.com>
6800
6801 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
6802 rename solaris_sys_varargs_h.
6803
6804 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6805
6806 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
6807 the same mode as its component.
6808
6809 2002-04-02 Richard Henderson <rth@redhat.com>
6810
6811 PR opt/190
6812 * final.c (this_is_asm_operands): Export.
6813 * output.h (this_is_asm_operands): Declare.
6814 * config/i386/i386.c (print_operand): Error odd asm operands.
6815
6816 2002-04-02 Richard Henderson <rth@redhat.com>
6817
6818 PR opt/420
6819 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
6820
6821 2002-04-01 Richard Henderson <rth@redhat.com>
6822
6823 PR target/1538
6824 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
6825 * fixinc/fixincl.x: Rebuild.
6826
6827 2002-04-01 Richard Henderson <rth@redhat.com>
6828
6829 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
6830 (atomic_alloc, atomic_free): New.
6831 (SIZE, MASK_FOR, PTR_IN): New.
6832 (emergency_reg_state, emergency_reg_state_free): New.
6833 (emergency_labeled_state, emergency_labeled_state_free): New.
6834 (reg_state_alloced, labeled_state_alloced): New.
6835 (alloc_reg_state, free_reg_state): New.
6836 (alloc_label_state, free_label_state, free_label_states): New.
6837 (push, pop, dup_state_stack, free_state_stack): Use them.
6838 (desc_label_state): Likewise.
6839 (uw_frame_state_for): Free label states and state stack.
6840 (uw_update_reg_address): Eliminate warnings.
6841
6842 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
6843
6844 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
6845 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
6846
6847 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6848
6849 * c-decl.c (grokdeclarator): Update.
6850 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6851 * c-tree.h (c_mark_addressable): New.
6852 * c-typeck.c (default_function_array_conversion, build_unary_op,
6853 build_array_ref, convert_for_assignment): Update.
6854 (mark_addressable): Rename.
6855 * calls.c (try_to_integrate, expand_call): Use langhook.
6856 * expr.c (expand_expr): Use langhook.
6857 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6858 * langhooks.h (struct lang_hooks): New hook.
6859 * stmt.c (expand_asm_operands): Use langhook.
6860 * tree.h (mark_addressable): Remove.
6861 objc:
6862 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6863
6864 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6865
6866 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6867 in previous change.
6868
6869 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6870
6871 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6872 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6873
6874 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6875
6876 * c-common.c (unsigned_conversion_warning, convert_and_check,
6877 unsigned_type, signed_type, shorten_compare,
6878 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6879 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6880 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6881 New.
6882 * c-decl.c (grokdeclarator): Update.
6883 * c-format.c (check_format_types): Update.
6884 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6885 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6886 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6887 * convert.c (convert_to_integer): Use new hooks.
6888 * expmed.c (make_tree): Use new hooks.
6889 * expr.c (store_expr): Use new hooks.
6890 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6891 all_ones_mask_p, unextend, fold): Use new hooks.
6892 * langhooks.h (struct lang_hooks_for_types): New hooks.
6893 * tree.h (signed_or_unsigned_type, signed_type,
6894 unsigned_type): Remove.
6895 objc:
6896 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6897 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6898
6899 2002-03-31 Richard Henderson <rth@redhat.com>
6900
6901 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6902 (desc_frgr_mem): Fix reference to f16-f31.
6903
6904 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6905
6906 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6907 RTVEC_ELT): Const-ify.
6908 * varray.h (VARRAY_CHECK): Const-ify.
6909 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6910 ggc_mark_rtvec, ggc_mark): Const-ify.
6911
6912 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6913
6914 * diagnostic.c: Include langhooks-def.h.
6915 * Makefile.in (diagnostic.o): Update.
6916
6917 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6918
6919 * c-common.c (c_unsafe_for_reeval): Rename.
6920 * c-common.h (c_unsafe_for_reeval): Rename.
6921 * c-decl.c (finish_incomplete_decl): Rename.
6922 (c_init_decl_processing): Don't set langhook.
6923 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6924 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6925 * c-objc-common.c (c_objc_common_init): Don't set langhook.
6926 * c-tree.h (finish_incomplete_decl): Rename.
6927 * langhooks-def.h (lhd_unsafe_for_reeval): New.
6928 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6929 (LANG_HOOKS_INITIALIZER): Update.
6930 * langhooks.c (lhd_unsafe_For_reeval): New.
6931 * langhooks.h (struct langhooks): New hooks.
6932 * toplev.c (incomplete_decl_finalize_hook): Remove.
6933 (wrapup_global_declarations): Update.
6934 * tree.c (lang_unsafe_for_reeval): Remove.
6935 (unsafe_for_reeval): Update.
6936 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6937 Remove.
6938 objc:
6939 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6940 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6941
6942 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6943
6944 * diagnostic.c (print_error_function): Remove.
6945 (default_print_error_function): Rename.
6946 (report_error_function): Update.
6947 * diagnostic.h (print_error_function): Remove.
6948 (default_print_error_function): Remove.
6949 * langhooks-def.h (struct diagnostic_context): Predeclare.
6950 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6951 (LANG_HOOKS_INITIALIZER): Update.
6952 * langhooks.h (struct diagnostic context): Predeclare.
6953 (struct lang_hooks): New hook.
6954
6955 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6956
6957 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6958 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6959 !flag_pic.
6960 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6961 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6962 of PIC_OFFSET_TABLE_REGNUM thruout.
6963 * config/rs6000/rs6000.md: Likewise.
6964 * config/rs6000/darwin.h: Likewise.
6965
6966 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6967
6968 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6969 unsigned HOST_WIDE_INT, not unsigned int.
6970
6971 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6972
6973 PR middle-end/6096, middle-end/6098, middle-end/6099
6974 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6975 CODE_LABELs.
6976 (fill_slots_from_thread): Likewise.
6977
6978 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6979
6980 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6981 floating fields in float regs.
6982 (function_arg_record_value_2): Likewise.
6983
6984 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6985
6986 * config/mmix/mmix.md (define_constants): Remove misleading
6987 FIXME. Add MMIX_fp_rO_OFFSET.
6988 ("nonlocal_goto_receiver"): Don't have stack-frame address of
6989 saved rO as part of the pattern. Remove FIXME.
6990 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
6991 here, at output-time.
6992
6993 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6994
6995 PR middle-end/6100
6996 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6997 REG_BR_PRED.
6998 (output_v9branch): Likewise.
6999
7000 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7001
7002 * gcc.c: Revert previous patch for now.
7003 * config/i386/djgpp.h: Likewise.
7004
7005 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7006
7007 * config/mmix/crti.asm (_init): Register _fini with atexit.
7008 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7009
7010 2002-03-31 Richard Henderson <rth@redhat.com>
7011
7012 PR target/3997
7013 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7014 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7015
7016 2002-03-31 Richard Henderson <rth@redhat.com>
7017
7018 * libgcc2.c (__bb_exit_func): Make static.
7019
7020 * config/alpha/alpha.md (trap): New.
7021
7022 2002-03-31 Richard Henderson <rth@redhat.com>
7023
7024 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7025 promoted argument types; build trap.
7026 (expand_builtin_trap): New.
7027 (expand_builtin): Use it.
7028 * stmt.c (expand_nl_goto_receivers): Likewise.
7029 * expr.h (expand_builtin_trap): Declare.
7030 * libfuncs.h (LTI_abort, abort_libfunc): New.
7031 * optabs.c (init_optabs): Init abort_libfunc.
7032
7033 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7034
7035 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7036 (LINK_COMMAND_SPEC): ... from here.
7037 (init_gcc_specs): Duplicate it here too, omitting
7038 shared_name in the second copy.
7039 (init_spec): Test for duplicate
7040 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7041
7042 2002-03-30 David S. Miller <davem@redhat.com>
7043
7044 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7045 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7046
7047 2002-03-30 Roger Sayle <roger@eyesopen.com>
7048 Richard Henderson <rth@redhat.com>
7049
7050 * regmove.c (combine_stack_adjustments_for_block): Avoid
7051 emitting a stack adjustment of zero bytes. Let delete_insn
7052 update bb->head.
7053
7054 2002-03-30 Richard Henderson <rth@redhat.com>
7055
7056 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7057 (sparc_emitting_epilogue): New.
7058 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7059 * config/sparc/sparc-protos.h: Update.
7060 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7061 (TARGET_SWITCHES): Update.
7062 * config/sparc/sparc.md (return): Remove.
7063 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7064 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7065 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7066 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7067 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7068 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7069 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7070 Remove MASK_EPILOGUE.
7071 * doc/invoke.texi: Update.
7072
7073 2002-03-30 Daniel Berlin <dan@dberlin.org>
7074
7075 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7076 CPP will start the file for us.
7077
7078 2002-03-30 Richard Henderson <rth@redhat.com>
7079
7080 PR target/5446
7081 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7082 prologue_allocate_stack.
7083 (ia64_single_set): Use insn codes for recognition of special
7084 cases, not rtl matching.
7085 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7086
7087 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7088
7089 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7090
7091 2002-03-30 Richard Henderson <rth@redhat.com>
7092
7093 PR target/6032
7094 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7095 or -fomit-frame-pointer with profiling.
7096 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7097 (FUNCTION_PROFILER): Do nothing.
7098 (PROFILE_HOOK): New.
7099 * config/sparc/sparc.c (sparc_override_options): Don't check
7100 code models for profiling.
7101 (sparc_function_profiler): Remove.
7102 (sparc_profile_hook): New.
7103 * config/sparc/sparc-protos.h: Update.
7104
7105 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7106
7107 PR optimization/6086
7108 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7109 of SUBREG of volatile MEM or because the MEM was mode dependent,
7110 return CLOBBER instead of unmodified SUBREG.
7111
7112 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7113
7114 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7115 when not optimizing.
7116
7117 * toplev.c (rest_of_compilation): Cann mark_constant_function
7118 only when optimizing.
7119
7120 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7121 are NULL.
7122
7123 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7124 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7125 (try_optimize_cfg): clear all AUX fields.
7126
7127 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7128 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7129 (ix86_address_cost): Be prepared for SUBREGed registers.
7130 (legitimate_address_p): Accept SUBREGed registers.
7131
7132 2002-03-29 Richard Henderson <rth@redhat.com>
7133
7134 PR target/5672
7135 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7136
7137 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7138
7139 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7140 for aggregate and TFmode types.
7141
7142 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7143
7144 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7145
7146 2002-03-29 Richard Henderson <rth@redhat.com>
7147
7148 PR target/5886
7149 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7150 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7151
7152 2002-03-29 Richard Henderson <rth@redhat.com>
7153
7154 PR target/6041
7155 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7156 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7157 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7158 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7159 conditional.
7160 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7161
7162 2002-03-29 Dale Johannesen <dalej@apple.com>
7163
7164 * loop.c (combine_movables): Do allow combination of pseudos.
7165
7166 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7167
7168 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7169 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7170 No functional change except ...
7171 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7172 * doc/install.texi (*-*-freebsd*): Document port configuration.
7173
7174 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7175
7176 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7177 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7178 Use new hooks.
7179 * builtin-types.def (BT_PTRMODE): Update.
7180 * c-common.c (type_for_size): Rename c_common_type_for_size.
7181 (type_for_mode): Similarly.
7182 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7183 Use new hook.
7184 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7185 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7186 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7187 Redefine.
7188 * c-typeck.c (common_type, comptypes, default_conversion):
7189 Use new hooks.
7190 * calls.c: Include langhooks.h.
7191 (emit_library_call_value_1): Use new hooks. Avoid redundant
7192 calls.
7193 * convert.c: Include langhooks.h
7194 (convert_to_pointer, convert_to_integer): Use new hooks.
7195 * except.c (init_eh): Similarly.
7196 * expmed.c: Include langhooks.h.
7197 (expand_mult_add): Use new hooks.
7198 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7199 try_casesi): Similarly.
7200 * fold-const.c (optimize_bit_field_compare, make_range,
7201 decode_field_reference, fold_truthop, fold): Similarly.
7202 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7203 put_var_into_stack): Similarly.
7204 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7205 LANG_HOOKS_TYPE_FOR_SIZE): New.
7206 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7207 * langhooks.h (lang_hooks_for_types): New hooks.
7208 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7209 * tree.c (get_unwidened, get_narrower): Similarly.
7210 * tree.h (type_for_mode, type_for_size): Remove.
7211 * varasm.c (force_const_mem): Use new hooks.
7212 * utils2.c (nonbinary_modular_operation): Update.
7213 objc:
7214 * objc-act.c (handle_impent): Update.
7215 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7216 Redefine.
7217
7218 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7219
7220 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7221 * config/ia64/ia64.c (basereg_operand): New.
7222 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7223 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7224
7225 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7226
7227 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7228 unwind information when frame_pointer_needed.
7229 (mmix_assemble_integer): Tweak wording in comment.
7230
7231 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7232
7233 * Makefile.in (except.o): Update.
7234 * except.c: Include langhooks.h.
7235 (init_eh): Use langhook.
7236 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7237 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7238 (LANG_HOOKS_INITIALIZER): Update.
7239 * langhooks.h (lang_hooks_for_types): New.
7240 (struct lang_hooks): Add it.
7241 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7242 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7243 config:
7244 * alpha/alpha.c: Include langhooks.h.
7245 (alpha_build_va_list): Use langhook.
7246 * d30v/d30v.c: Include langhooks.h.
7247 (d30v_build_va_list): Use langhook.
7248 * i386/i386.c: Include langhooks.h.
7249 (ix86_build_va_list): Use langhook.
7250 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7251 * s390/s390.c: Include langhooks.h.
7252 (s390_build_va_list): Use langhook.
7253 * stormy16/stormy16.c: Include langhooks.h.
7254 (stormy16_build_va_list): Use langhook.
7255
7256 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7257
7258 PR c++/5964
7259 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7260 attributes.
7261 (length): Compute variable length for branches/calls/jumps here.
7262 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7263 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7264 define branch_type attribute.
7265 (divsi3_sp32): Maximum length is 6 not 7.
7266 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7267 call_address_untyped_struct_value_sp32,
7268 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7269 * config/sparc/sparc.c (empty_delay_slot): New function.
7270 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7271 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7272
7273 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7274
7275 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7276 nonzero_bits if not needed.
7277 (nonzero_bits) [XOR]: Likewise.
7278 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7279 reg_last_set_mode and mode are both MODE_INT, but not equal.
7280 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7281 in nonzero_bits_mode for MODE_INT modes.
7282
7283 2002-03-28 Richard Henderson <rth@redhat.com>
7284
7285 PR target/5715
7286 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7287 to GAS. Correct drift between alternatives.
7288
7289 2002-03-28 Richard Henderson <rth@redhat.com>
7290
7291 PR target/6087
7292 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7293
7294 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7295
7296 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7297 emulation to the linker.
7298
7299 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7300
7301 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7302 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7303
7304 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7305
7306 * combine.c (simplify_and_const_int): Make sure to apply mask
7307 when force_to_mode returns a constant integer. PR3311.
7308
7309 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7310
7311 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7312
7313 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7314
7315 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7316 and Objective-C Dialect Options.
7317
7318 2002-03-28 Richard Henderson <rth@redhat.com>
7319
7320 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7321 comparison should be done vs !=0 not >0 return code. Tidy cases.
7322
7323 2002-03-28 Richard Henderson <rth@redhat.com>
7324
7325 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7326 on to c_expand_body.
7327 * c-tree.h (finish_function): Update decl.
7328 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7329
7330 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7331
7332 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7333
7334 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7335
7336 * rtlanal.c: Include flags.h
7337 (may_trap_p): Do not mark FP operations if trapping
7338 if !flag_trapping_math
7339 * Makefile.in (rtlanal.o): Add dependency on flag.h
7340 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7341
7342 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7343
7344 * mips.md: Use dconst1, not 1.0, as first argument of
7345 REAL_VALUE_LDEXP. Don't use union real_extract.
7346
7347 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7348
7349 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7350 rather than $target. Heed program_prefix and
7351 program_transform_name. Search for gas in cross-compiler case too.
7352 "test -x" rather than "test -f".
7353 (gcc_cv_ld): Likewise.
7354 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7355 (gcc_cv_objdump): Likewise.
7356 * configure: Regenerate.
7357
7358 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7359
7360 * Makefile.in (attribs.o): Update.
7361 * attribs.c: Include langhooks.h.
7362 (decl_attributes): Use langhook.
7363 * c-decl.c (insert_default_attributes): Rename.
7364 * c-tree.h (c_insert_default_attributes): New.
7365 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7366 (LANG_HOOKS_INITIALIZER): Update.
7367 * langhooks.h (struct lang_hooks): New hook.
7368 * tree.h (insert_default_attributes): Remove.
7369 objc:
7370 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7371
7372 2002-03-27 Andreas Schwab <schwab@suse.de>
7373
7374 * config/i386/i386.c (classify_argument): Also check for
7375 QUAL_UNION_TYPE.
7376
7377 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7378
7379 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7380 any more.
7381
7382 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
7383
7384 * i960.md (ret): Set PC.
7385 (nonlocal_goto): Fix expander.
7386 * builtins.c (epxand_builin_longjmp): Check that we've emitted
7387 some jump or call.
7388
7389 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
7390
7391 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7392 of libcall regions.
7393
7394 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7395
7396 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7397 assigning to BLOCK_FOR_INSN directly.
7398
7399 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
7400
7401 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7402
7403 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7404
7405 * c-common.c (c_expand_expr): Fix prototype.
7406 * c-common.h (c_expand_expr): Always declare, update.
7407 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7408 * c-objc-common.c (c_objc_common_init): No global hook.
7409 * expr.c (expand_expr): Use langhook.
7410 * expr.h (enum expand_modifier): Conditionally declare.
7411 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7412 (LANG_HOOKS_INITIALIZER): Update.
7413 * langhooks.c (lhd_expand_expr): New.
7414 * langhooks.h (struct lang_hooks): New hook.
7415 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7416 (lang_independent_init): Don't default hook.
7417 objc:
7418 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7419
7420 2002-03-27 Richard Henderson <rth@redhat.com>
7421
7422 PR target/6054
7423 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7424 TARGET_CONST_GP. Simplify conditions.
7425
7426 2002-03-27 Richard Henderson <rth@redhat.com>
7427
7428 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7429 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7430 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7431
7432 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
7433
7434 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7435 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7436 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7437 Remove unnecessary masks.
7438 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7439 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7440 -mwindows, -mdll switches and their negations.
7441
7442 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7443
7444 * gcc-common.c (lang_mark_false_label_stack): Remove.
7445 * ggc.h (lang_mark_false_label_stack): Similarly.
7446
7447 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
7448
7449 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7450
7451 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7452 or __rtems_ is defined.
7453
7454 2002-03-26 Richard Henderson <rth@redhat.com>
7455
7456 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7457 if a non-trivial load was emitted.
7458 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
7459 in high+extra+low case.
7460
7461 2002-03-26 Richard Henderson <rth@redhat.com>
7462
7463 * config.gcc (sparc*-solaris): Use float_format=sparc.
7464
7465 2002-03-26 Richard Henderson <rth@redhat.com>
7466
7467 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7468 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7469 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7470 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7471 (WINT_TYPE_SIZE): Fix at 32.
7472
7473 2002-03-26 Richard Henderson <rth@redhat.com>
7474
7475 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7476 until after eh landing pad generation.
7477 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7478 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7479
7480 2002-03-26 Richard Henderson <rth@redhat.com>
7481
7482 * expr.h (ADD_PARM_SIZE): One more convert for INC.
7483
7484 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
7485
7486 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
7487 and warning switches.
7488 (cc1_options): Likewise.
7489
7490 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
7491
7492 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7493 Restore more of the signal context. Set no_reg_stack_frame.
7494 * config/ia64/unwind-ia64.c (unw_state_record):
7495 Add no_reg_stack_frame, comments.
7496 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7497 (uw_update_context): Adjust bsp when unwinding from leaf,
7498 but not signal frame.
7499
7500 2002-03-26 David Edelsohn <edelsohn@gnu.org>
7501
7502 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7503
7504 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7505
7506 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7507
7508 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7509
7510 PR target/5621
7511 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
7512 "Add a pool_range attribute", which was lost during the ARM/Thumb
7513 merge.
7514
7515 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7516
7517 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
7518 a register into the MAC16 accumulator.
7519
7520 2002-03-26 Andrew Cagney <ac131313@redhat.com>
7521
7522 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
7523 (Warning Options): Document -Wswitch-enum.
7524 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
7525 -Wswitch.
7526 (warn_switch_enum): Define variables.
7527 * flags.h (warn_switch_enum): Declare variables.
7528 * stmt.c (expand_end_case_type): When warn_switch_enum /
7529 -Wswitch-enum, perform switch checks.
7530 Fix PR c/5044.
7531
7532 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7533
7534 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
7535 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
7536 (reload_muladdsi_compare0_scratch): Delete.
7537
7538 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
7539
7540 * doc/install.texi (*-*-freebsd*): Update.
7541
7542 2002-03-26 Richard Henderson <rth@redhat.com>
7543
7544 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
7545 (SUB_PARM_SIZE): Cast DEC to ssizetype.
7546
7547 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
7548 types from the normal argument frame.
7549
7550 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
7551 variable sized objects by reference.
7552 (sparc_va_arg): Receive them by reference too.
7553
7554 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
7555
7556 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7557 code to not restoring global registers.
7558
7559 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
7560
7561 * Makefile.in (ggc-common.o): Update.
7562 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
7563 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7564 * c-tree.h (c_mark_tree): New.
7565 * ggc-common.c: Include langhooks.h.
7566 (gcc_mark_trees): Use new langhook.
7567 * ggc-callbacks.c: Delete file.
7568 * ggc.h (lang_mark_tree): Remove.
7569 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
7570 (LANG_HOOKS_INITIALIZER): Update.
7571 * langhooks.h (struct lang_hooks): New hook.
7572 objc:
7573 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7574
7575 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7576
7577 * doc/cpp.texi: Exclude entire Top node from printed manual.
7578 Move option index after directive index. Insert page breaks
7579 before GFDL and concept index. Index environment variables
7580 with command line options.
7581 * doc/cppenv.texi: Use @vtable for environment variable list.
7582 Add paragraph explaining semantics of empty elements in path
7583 variables. Exclude a cross-reference to Fishkill from the
7584 manpage. Remove an unnecessary cross-reference of the entry
7585 right above the referer. Don't use @anchor in text that goes
7586 into manpage.
7587 * doc/cppopts.texi: Cross-reference the environment variables
7588 section, not the specific environment variable, for consistency.
7589
7590 2002-03-25 Richard Henderson <rth@redhat.com>
7591
7592 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
7593 anywhere in the block. Don't refer to insns that have been
7594 removed from the chain. Iterate backward through the new insns.
7595 Don't refer to edges that have been removed.
7596
7597 2002-03-26 Alan Modra <amodra@bigpond.net.au>
7598
7599 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
7600 test for overflow of constant.
7601
7602 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
7603
7604 PR target/2623
7605 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
7606 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
7607 these patterns on arm_archv4.
7608
7609 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
7610
7611 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
7612 int".
7613
7614 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7615
7616 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
7617 float_handled, float_handler, float_signal, set_float_handler,
7618 and do_float_handler. Set handler for SIGFPE to crash_signal.
7619 * toplev.h: Don't prototype do_float_handler.
7620
7621 * c-lex.c: Fold parse_float into lex_number. Make warning
7622 about portability of hex float constants more informative, and
7623 don't issue it on top of a syntax error.
7624 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
7625 their callers.
7626 * real.h: Define REAL_VALUE_ABS here...
7627 * simplify-rtx.c: ... not here. Fold check_fold_consts,
7628 simplify_unary_real, simplify_binary_real, and
7629 simplify_binary_is2orm1 into their callers.
7630 * tree.c: Fold build_real_from_int_cst_1 into caller.
7631
7632 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
7633
7634 * tsystem.h: Include float.h here...
7635 * libgcc2.c: ... not here.
7636
7637 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
7638
7639 Fixes for: PR bootstrap/3591, target/5676
7640 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
7641 defined. Do not disable exceptions or rtti.
7642 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
7643 mcore.h. Disable exceptions and rtti, since they are not
7644 supported by EPOC.
7645
7646 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
7647
7648 * c-decl.c (maybe_build_cleanup): Remove.
7649 * expr.c (expand_expr): Use langhook.
7650 * langhooks-def.h (lhd_return_null_tree,
7651 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
7652 (LANGHOOKS_INITIALIZER): Update.
7653 * langhooks.c (lhd_return_null_tree): New.
7654 * langhooks.h (struct lang_hooks): New hook.
7655 * tree-inline.c (initialize_inlined_parameters): Use langhook.
7656 * tree.h (maybe_build_cleanup): Remove.
7657
7658 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7659
7660 * regrename.c (build_def_use): Move recog_memoized
7661 before extract_insn.
7662
7663 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7664
7665 PR target/6043
7666 * expr.c (emit_group_store): Handle storing into CONCAT.
7667
7668 2002-03-25 Jakub Jelinek <jakub@redhat.com>
7669
7670 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
7671 corresponding MATCH_DUP.
7672
7673 2002-03-24 Richard Henderson <rth@redhat.com>
7674
7675 * unroll.c (unroll_loop): Zero label_map.
7676
7677 * gcse.c: Include except.h.
7678 * Makefile.in (gcse.o): Update.
7679
7680 2002-03-24 Richard Henderson <rth@redhat.com>
7681
7682 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
7683 Do resolve_unique_section before shared data clause.
7684
7685 2002-03-24 Richard Henderson <rth@redhat.com>
7686
7687 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
7688
7689 2002-03-24 Richard Henderson <rth@redhat.com>
7690
7691 * recog.c (peephole2_optimize): Split blocks when EH insns are
7692 generated in the middle of a block. Do global life update if
7693 zapped EH edges.
7694
7695 2002-03-24 Richard Henderson <rth@redhat.com>
7696
7697 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
7698
7699 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7700
7701 preprocessor/3951
7702 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
7703 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
7704 (init_dependency_output): Don't make no_output decision here.
7705
7706 2002-03-24 Andrew Cagney <ac131313@redhat.com>
7707
7708 * stmt.c (check_for_full_enumeration_handling): Remove tests of
7709 warn_switch. Update description.
7710 (expand_end_case_type): Call check_for_full_enumeration_handling
7711 when warn_switch.
7712
7713 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7714
7715 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
7716 (m68hc11_split_move): Call it to see if the source and destination
7717 operands use the same direction auto inc/dec mode, otherwise make the
7718 source an offsetable memory operand and generate an add.
7719
7720 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7721
7722 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
7723 register for operand 2.
7724 ("*subsi3_zero_extendqi"): Likewise.
7725 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
7726 bits so that it is compatible with a pop.
7727 ("*andhi3_gen"): Likewise.
7728 ("xorhi3"): Likewise.
7729
7730 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7731
7732 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
7733 -pedantic here...
7734 (cpp_post_options): ... not here.
7735
7736 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
7737 Aldy Hernandez <aldyh@redhat.com>
7738
7739 Removal of separate preprocessor cpp0.
7740
7741 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
7742 cpp0, install-common): Update.
7743 * c-common.c (flag_preprocess_only): New.
7744 (c_common_init): Preprocess for -E.
7745 * c-common.h (flag_preprocess_only): New.
7746 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
7747 * c-objc-common.c (c_init_decl_processing): Exit quickly
7748 for NULL return from c_common_init.
7749 * cpplib.h (cpp_preprocess_file): New.
7750 * cppmain.c (main, general_init, pfile, progname): Remove.
7751 (do_preprocessing): Rename cpp_preprocess_file, don't call
7752 cpp_finish. Don't close stdout here.
7753 (setup_callbacks): Update prototype.
7754 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
7755 Update.
7756 * tradcpp.c (main): Ignore -quiet.
7757 objc:
7758 * lang-specs.h (default_compilers): Preprocess with cc1obj.
7759
7760 2002-03-24 Richard Henderson <rth@redhat.com>
7761
7762 PR optimization/5742
7763 * machmode.def: Add inner mode field to complex modes.
7764 * config/mips/mips.c (mips_function_value): Always define. Add
7765 new argument to handle libcalls.
7766 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
7767 (FUNCTION_VALUE): Likewise.
7768 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
7769 * config/mips/mips-protos.h: Update.
7770
7771 2002-03-23 Richard Henderson <rth@redhat.com>
7772
7773 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
7774 * config/sparc/sparc-protos.h: Update.
7775 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
7776
7777 2002-03-23 Richard Henderson <rth@redhat.com>
7778
7779 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
7780 _start or _init begins the text segment.
7781
7782 2002-03-23 David Edelsohn <edelsohn@gnu.org>
7783
7784 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
7785 not HOST_WIDEST_INT.
7786 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
7787
7788 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
7789
7790 PR java/5489
7791 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
7792 operand argument to output_return_instruction.
7793 * arm.c (arm_print_operand, case 'd'): If the operand is
7794 const_true_rtx then just return.
7795 (arm_print_operand, case 'D'): If the operand is const_true_rtx
7796 then abort.
7797
7798 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7799
7800 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
7801 (Warning Options): Document -Wswitch-default.
7802 * toplev.c (W_options): Add -Wswitch-default. Update comment on
7803 -Wswitch.
7804 (warn_switch_default): Define variable.
7805 (warn_switch): Update comment.
7806 * flags.h (warn_switch_default): Declare variable.
7807 (warn_switch): Update comment.
7808 * stmt.c (expand_end_case): Check for and, when
7809 warn_switch_no_default, warn of a missing default case.
7810
7811 2002-03-23 Alan Modra <amodra@bigpond.net.au>
7812
7813 * real.h (N): Special case 128 bit doubles.
7814
7815 * combine.c (simplify_comparison): When widening modes, ignore
7816 sign extension on CONST_INTs.
7817
7818 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7819
7820 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
7821 passed to adjust_address. Fix comment formatting.
7822
7823
7824 2002-03-22 Zack Weinberg <zack@codesourcery.com>
7825
7826 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
7827 Always make REAL_VALUE_TYPE a struct containing an array of
7828 HOST_WIDE_INT, not a double. Tidy up the code deciding how
7829 big it is. Don't declare or use union real_extract.
7830
7831 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
7832 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
7833 (print_operand), config/arm/arm.c (output_move_double),
7834 config/arm/arm.md (consttable_4, consttable_8),
7835 config/romp/romp.c (output_fpops), config/s390/s390.h
7836 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
7837 (xtensa_output_literal): Don't use union real_extract.
7838
7839 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7840 (sfmode_constant_to_ulong), config/ns32k/merlin.h
7841 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7842 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7843 (PRINT_OPERAND): Don't use local version of union
7844 real_extract.
7845
7846 * config/convex/convex.c (check_float_value), config/vax/vax.c
7847 (vax_float_literal), config/m88k/m88k.md (divdf3),
7848 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7849 config/pdp11/pdp11.c (output_move_quad): Don't do host
7850 arithmetic on target floating point quantities.
7851
7852 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7853 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7854
7855 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7856 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7857
7858 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7859 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7860 INFINITY.
7861 * print-rtl.c (print_rtx): Disable code which needs
7862 floating-point emulator.
7863 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7864 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7865 depending on HOST_FLOAT_FORMAT to be defined properly.
7866
7867 * config/1750a/1750a.c (get_double, float_label): Delete.
7868 (print_operand): Delete huge commented-out chunk. Use
7869 REAL_VALUE_TO_DECIMAL.
7870 * config/1750a/1750a-protos.h: Delete prototypes of deleted
7871 functions.
7872 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7873 IEEE_FLOAT_FORMAT.
7874 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7875 Use REAL_VALUE_TO_DECIMAL as ELF version does.
7876 * config/m88k/m88k.c (real_power_of_2_operand,
7877 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7878 real_extract out of the union; run the input through
7879 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7880 from that into the union.
7881 * config/pdp11/pdp11.c (output_move_double): Rearrange
7882 parentheses to make automatic indenter happy.
7883
7884 * doc/tm.texi (Cross-compilation): Rename node to "Floating
7885 Point" and rewrite to describe current situation. Also adjust
7886 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7887 match code.
7888 * doc/rtl.texi: Adjust cross reference.
7889
7890 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7891
7892 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7893 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7894 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7895 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7896 prevent use of sp as a reload register.
7897 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7898 non_acc_reg_operand.
7899 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7900 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7901 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7902 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7903
7904 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7905
7906 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7907 * cpplex.c (unterminated): Delete.
7908 (parse_string): No string literal may extend over multiple
7909 lines. Suppress the error when preprocessing assembly.
7910 * cppmain.c (scan_translation_unit): Strings are single-line.
7911
7912 * doc/cpp.texi: Update to match.
7913
7914 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7915
7916 PR optimization/5854
7917 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7918 Shut up warnings.
7919 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7920 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7921 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7922 const0 if scratch register was not allocated.
7923 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7924 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7925 with GEN_INT (...).
7926 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7927 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7928 with GEN_INT (...) everywhere. Remove constraints in define_split
7929 patterns.
7930 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7931 require scratch register for setting 0 into regs/non-pushable memory.
7932
7933 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7934
7935 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7936 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7937
7938 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
7939
7940 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
7941 * cppinit.c (cpp_create_reader): On by default.
7942 (cpp_handle_option): Handle -W[no-]endif-labels.
7943 (cpp_post_options): Also enable if -pedantic.
7944 * cpplib.c (do_else): Use it.
7945 (do_endif): Likewise.
7946 * doc/cppopts.texi: Document new option.
7947 * doc/invoke.texi: Document new option.
7948
7949 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
7950
7951 * config/i386/i386.c, config/i386/i386.md: Change all occurences
7952 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7953
7954 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7955
7956 * flow.c (calculate_global_regs_live): Clear aux fields of
7957 ENTRY and EXIT.
7958
7959 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7960
7961 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7962 REG or MEM subregs, pass rtx * instead of rtx to it.
7963 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7964 rtx * instead of rtx to alter_subreg.
7965 * config/m32r/m32r.c (gen_split_move_double): Likewise.
7966 * config/pj/pj.c (pj_output_rval): Likewise.
7967
7968 2002-03-22 Richard Henderson <rth@redhat.com>
7969
7970 PR target/3177
7971 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7972 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7973 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7974 (ia64_expand_prologue): Look at int_regs, not words, for number
7975 of incomming int regs.
7976
7977 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
7978
7979 * expr.c (expand_expr): A RESULT_DECL is part of a call.
7980
7981 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
7982
7983 * toplev.c (flag_loop_optimize, flag_crossjumping):
7984 New static variables.
7985 (rest_of_compilation): Conditionalize crossjumping and
7986 loop optimizer.
7987 (parse_options_and_default_flags): Default loop_optimize and
7988 crossjumping.
7989 (lang_independent_options): Add -fcrossjumping and -floop-optimize
7990 * invoke.texi (crossjumping, loop-optimize): Document.
7991
7992 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7993
7994 * real.c (eiisneg): Move outside #ifdef NANS.
7995
7996 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
7997
7998 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7999 frequencies match; avoid match on different loop depths.
8000 (try_crossjump_to_bb): Kill tests that no longer brings time
8001 savings.
8002 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8003 updating code.
8004 (split_edge): Likewise.
8005
8006 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8007 variable.
8008
8009 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8010 * cfgrtl.c: Include insn-config.h
8011 (split_block) Dirtify block in presence of conditional execution
8012
8013 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8014
8015 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8016 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8017 (function_arg): Constify CUMULATIVE_ARGS.
8018 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8019 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8020 (UNITS_PER_DOUBLE): New macro.
8021 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8022 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8023 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8024 fp_regs and stack_words.
8025 (EABI_FLOAT_VARARGS_P): New macro.
8026 * config/mips/mips.c (struct mips_arg_info): New.
8027 (mips_arg_info): New function.
8028 (function_arg_advance): Use it. Add adjustment instructions here
8029 rather than in function_arg.
8030 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8031 for VOIDmode at the beginning of the function.
8032 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8033 (function_arg_pass_by_reference): Likewise.
8034 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8035 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8036 (mips_va_start): Likewise. Use the new stack_words field of
8037 CUMULATIVE_ARGS to set up overflow area. Reformat.
8038 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8039 doubles and other types, aligning the overflow pointer for non-doubles
8040 too. Remove some code duplication. Replace hard-coded constants.
8041
8042 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8043
8044 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8045 (CLASS_UNITS): Undefine.
8046 (CLASS_MAX_NREGS): Use FP_INC.
8047 * config/mips/mips.c (compute_frame_size): Likewise.
8048 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8049
8050 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8051
8052 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8053 prototype, and handle lexing numbers and identifiers.
8054 (parse_identifier): Update to new form of parse_slow.
8055 (parse_number): Fast path only, use parse_slow otherwise.
8056 (_cpp_lex_direct): Update calls to parse_number.
8057
8058 2002-03-21 DJ Delorie <dj@redhat.com>
8059
8060 * bb-reorder.c (make_reorder_chain_1): Protect against
8061 when redundant edges are omitted.
8062 * predict.c (dump_prediction): Likewise.
8063
8064 2002-03-21 Richard Henderson <rth@redhat.com>
8065
8066 PR target/5996
8067 * fixinc/inclhack.def (solaris_stdio_tag): New.
8068 * fixinc/fixincl.x: Regenerate.
8069
8070 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8071
8072 PR c/5597
8073 * c-typeck.c (process_init_element): Flag non-static
8074 initialization of a flexible array member as illegal.
8075
8076 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8077
8078 * config/rs6000/t-linux64: New.
8079 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8080 t-ppccomm. Use t-rs6000 and t-linux64.
8081 (powerpc64-*-gnu* <tmake_file>): Likewise.
8082 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8083 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8084 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8085
8086 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8087
8088 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8089 flag_really_no_inline instead of optimize == 0.
8090
8091 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8092
8093 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8094
8095 * flags.h (flag_really_no_inline): New.
8096
8097 * c-common.c (c_common_post_options): Initialize
8098 flag_really_no_inline.
8099
8100 * toplev.c (flag_really_no_inline): New.
8101
8102 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8103
8104 * config/avr/avr.md (length): Fix length computation for
8105 conditional branches.
8106
8107 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8108
8109 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8110 sdbout.o, profile.o): Update.
8111 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8112 langhook.
8113 * c-common.h (gettags): Move here from tree.h.
8114 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8115 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8116 * dbxout.c (dbxout_init): Use getdecls langhook.
8117 * expr.c (expand_expr): Use insert_block langhook.
8118 * fold-const.c: Include langhooks.h.
8119 (fold_range_test, fold_binary_op_with_conditional_arg,
8120 fold): Use global_bindings_p langhook.
8121 * integrate.c (expand_inline_function): Use insert_block langhook.
8122 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8123 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8124 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8125 LANG_HOOKS_GETDECLS): New.
8126 (LANG_HOOKS_INITIALIZER): Update.
8127 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8128 langhook.
8129 * langhooks.h (struct lang_hooks_for_decls): New.
8130 (struct lang_hooks): Update.
8131 * profile.c: Include langhooks.h.
8132 (output_func_start_profiler): Use new langhooks.
8133 * sdbout.c: Include langhooks.h.
8134 (sdbout_init, sdbout_finish): Use getdecls langhook.
8135 * stmt.c: Include langhooks.h.
8136 (expand_fixup, fixup_gotos): Use new langhooks.
8137 * stor-layout.c: Include langhooks.h.
8138 (variable_size): Use global_bindings_p langhook.
8139 * toplev.c (compile_file): Use getdecls langhook.
8140 * tree-inline.c (remap_block): Use insert_block langhook.
8141 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8142 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8143
8144 2002-03-21 Richard Henderson <rth@redhat.com>
8145
8146 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8147 constants in .data when -fpic.
8148
8149 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8150
8151 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8152 where appropriate.
8153
8154 2002-03-21 Tom Tromey <tromey@redhat.com>
8155
8156 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8157
8158 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8159
8160 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8161
8162 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8163
8164 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8165 Richard Henderson <rth@redhat.com>
8166
8167 PR c/5354
8168 * c-common.c (c_expand_expr): Preserve result of a statement
8169 expression if needed.
8170
8171 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8172
8173 PR bootstrap/4195
8174 * genrecog.c (maybe_both_true_mode): Remove.
8175 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8176 * machmode.def (Pmode): Likewise.
8177
8178 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8179
8180 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8181 (nonlocal_mentioned_p_1): New function.
8182 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8183 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8184 (mark_constant_function): Recognize pure functions.
8185 * rtl.h (global_reg_mentioned_p): New prototype.
8186 * rtlanal.c (global_reg_mentioned_p,
8187 global_reg_mentioned_p_1): New function.
8188
8189 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8190
8191 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8192 UNIX assert.h.
8193 * fixinc/fixincl.x: Regenerate.
8194
8195 2002-03-20 Jason Merrill <jason@redhat.com>
8196
8197 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8198
8199 2002-03-20 Michael Meissner <meissner@redhat.com>
8200
8201 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8202 -fstrict-aliasing.
8203
8204 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8205
8206 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8207 ".literal_position" directive before the constant pool.
8208
8209 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8210
8211 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8212 Add Craig Rodrigues.
8213 Add Brad Lucier to testers.
8214
8215 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8216
8217 PR target/4792
8218 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8219 to if_then_else.
8220 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8221 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8222 instead of insn_extract.
8223
8224 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8225
8226 PR bootstrap/4192
8227 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8228
8229 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8230 stmt if some case has been output.
8231
8232 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8233
8234 PR c/5972
8235 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8236 movsfcc_1, movdfcc_1): Add %O2.
8237 * config/i386/i386.c (print_operand): Handle %ON.
8238 Print . before float condition codes in Sun as cmov syntax.
8239 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8240 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8241 no longer true.
8242
8243 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8244
8245 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8246 return instruction if PC was popped.
8247
8248 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8249
8250 * config/xtensa/xtensa.md: Remove unused type attributes.
8251 (adddi_carry, subddi_carry): Change type attribute to "multi".
8252
8253 2002-03-19 Dale Johannesen <dalej@apple.com>
8254
8255 PR optimization/5999, middle-end/5731
8256 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8257 multiplications by reciprocals.
8258
8259 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8260
8261 * Makefile.in: Update.
8262 * c-common.c: Include langhooks.h.
8263 (inline_forbidden_p): Use new hook.
8264 * diagnostic.c: Include langhooks.h.
8265 (format_with_decl, announce_function,
8266 default_print_error_function): Use new hook.
8267 * dwarf2out.c (dwarf2_name): Use new hook.
8268 * function.c: Include langhooks.h.
8269 (init_function_start): Use new hook.
8270 * langhooks-def.h (lhd_decl_printable_name): New.
8271 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8272 (LANGHOOKS_INITIALIZER): Update.
8273 * langhooks.c (lhd_decl_printable_name): New.
8274 * langhooks.h (struct lang_hooks): New hook.
8275 * toplev.c (decl_name, decl_printable_name): Remove.
8276 (open_dump_file): Use new hook.
8277 (process_options): Remove old hook.
8278 * tree.h (decl_printable_name): Remove.
8279 objc:
8280 * objc-act.c (objc_init): Remove old hook.
8281 (objc_printable_name): Export.
8282 * objc-act.h (objc_printable_name): New.
8283 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8284
8285 2002-03-19 Jim Blandy <jimb@redhat.com>
8286
8287 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8288 the start_source_file debug hook, not the current line number.
8289
8290 2002-03-19 Richard Henderson <rth@redhat.com>
8291
8292 * flow.c (EH_USES): Provide default.
8293 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8294 * doc/tm.texi (EH_USES): New.
8295
8296 * config/ia64/ia64.c (ia64_eh_uses): New.
8297 * config/ia64/ia64-protos.h: Update.
8298 * config/ia64/ia64.h (EH_USES): New.
8299
8300 2002-03-19 Richard Henderson <rth@redhat.com>
8301
8302 * varasm.c (output_constant_def): Fix stupid typo.
8303
8304 2002-03-19 Richard Henderson <rth@redhat.com>
8305
8306 PR 5879
8307 * except.c (current_function_has_exception_handlers): New.
8308 * except.h: Declare it.
8309 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8310 Combine tests that disable all sibcalls for the function.
8311
8312 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8313
8314 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8315 for INTEGER_CST.
8316
8317 2002-03-19 Richard Henderson <rth@redhat.com>
8318
8319 PR 5977, 5991
8320 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8321 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8322
8323 2002-03-19 Jim Blandy <jimb@redhat.com>
8324
8325 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8326 name, even if the replacement list contains no tokens, as required
8327 by Dwarf.
8328
8329 2002-03-19 Jason Merrill <jason@redhat.com>
8330
8331 * varasm.c (globalize_decl): Get the name from the RTL, not
8332 DECL_ASSEMBLER_NAME.
8333
8334 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8335
8336 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8337
8338 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8339 subdi_carry): Define.
8340
8341 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8342
8343 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8344 about -fpic/-fPIC if extra_warnings set.
8345
8346 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8347
8348 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8349 TREE_STRING_POINTER.
8350 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8351
8352 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8353
8354 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8355 in favor of SP if FRAME_POINTER_REQUIRED is false.
8356
8357 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8358
8359 * emit-rtl.c (gen_int_mode): New function.
8360 * rtl.h: Prototype for it.
8361 * combine.c (make_extraction, simplify_comparison), expmed.c
8362 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8363 (convert_modes, store_field), optabs.c (expand_fix),
8364 simplify-rtx.c (neg_const_int, simplify_unary_real),
8365
8366 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8367 Use it instead of GEN_INT (trunc_int_for_mode (...)).
8368
8369 2002-03-19 Jakub Jelinek <jakub@redhat.com>
8370
8371 PR c/5656
8372 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8373 convert_parm_for_inlining.
8374 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8375 Define.
8376 * langhooks-def.h: Likewise.
8377 * objc/objc-lang.c: Likewise.
8378 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8379 function.
8380 * tree-inline.c (initialize_inlined_parameters):
8381 Call convert_parm_for_inlining lang hook if needed.
8382 * c-typeck.c (c_convert_parm_for_inlining): New function.
8383 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8384
8385 2002-03-18 Mark Mitchell <mark@codesourcery.com>
8386
8387 * calls.c (precompute_arguments): Do not assume that temporaries
8388 can be destroyed after expanding the argument.
8389 (expand_call): Likewise.
8390
8391 2002-03-15 Eric Christopher <echristo@redhat.com>
8392
8393 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8394 Fix register preference on last change.
8395 * config/mips/mips.c (mips_return_in_memory): New function.
8396 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8397 * config/mips/mips-protos.h: Declare.
8398 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8399 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8400
8401 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
8402
8403 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8404 a register too.
8405 (anddi3, iorsi3): Likewise.
8406
8407 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8408 use %gprel for symbols that are going to be placed in linkonce
8409 sections.
8410
8411 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8412 RETURN_ADDRESS_POINTER_REGNUM to $ra.
8413 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8414 not needed. Disregard leaf_function_p().
8415 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8416 mips16 frame pointer.
8417 * config/mips/mips.md (store ra): Only to small SP offsets.
8418 2001-08-22 Graham Stott <grahams@redhat.com>
8419 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8420 return a REG rtx for the return address register.
8421
8422 2002-03-18 Bob Wilson <bob.wilson@acm.org>
8423
8424 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8425 constant-pool addresses as "mode-dependent".
8426 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8427
8428 2002-03-18 Jakub Jelinek <jakub@redhat.com>
8429
8430 PR target/5740
8431 * expr.c (emit_group_load): Use extract_bit_field if
8432 needed for CONCAT arguments.
8433
8434 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
8435
8436 PR target/4863
8437 * arm.md (tablejump): Make this a define_expand. For PIC add the
8438 offset to the base of the table.
8439 (thumb_tablejump): Matcher for Thumb tablejump insn.
8440 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8441 as the difference of two labels.
8442 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8443 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8444 tables in the code.
8445 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8446 * arm.c (get_jump_table_size): If the table is not in the text
8447 section, return zero.
8448
8449 2002-03-18 Bernd Schmidt <bernds@redhat.com>
8450
8451 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8452 of gen_rtx_SUBREG.
8453 (arm_reload_out_hi): Use gen_lowpart instead of
8454 gen_rtx_SUBREG to access QImode components.
8455 * config/arm/arm.md: Disable zero_extend split for QImode
8456 subregs in BIG_ENDIAN mode.
8457 (storehi_bigend): Match use of least significant byte.
8458 (storeinthi): Remove extraneous SUBREG.
8459 Add missing construction of operands[2].
8460 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8461 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8462 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8463
8464 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
8465
8466 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8467 any_operand.
8468
8469 2002-03-17 Richard Henderson <rth@redhat.com>
8470
8471 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8472 explicitly.
8473
8474 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8475
8476 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8477 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8478
8479 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8480
8481 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8482
8483 * predict.c (estimate_bb_frequencies): Delete unused variables.
8484
8485 2002-03-17 Richard Henderson <rth@redhat.com>
8486
8487 * config/ia64/ia64.c (ia64_attribute_table): Move before
8488 targetm definition. Make static.
8489
8490 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8491
8492 * c-common.h (yyparse, c_common_parse_file): New.
8493 * c-lang.c: Include c-common.h.
8494 (LANG_HOOKS_PARSE_FILE): Redefine.
8495 * c-lex.c: Include c-common.h.
8496 (yyparse): Rename c_common_parse_file. Call yyparse.
8497 * c-parse.in (yyparse): Remove macro.
8498 * c-tree.h (yyparse_1): Remove.
8499 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8500 (LANG_HOOKS_INITIALIZER): Update.
8501 * langhooks.h (struct lang_hoooks): New hook parse_file.
8502 * toplev.c (compile_file): Use parse_file hook.
8503 * tree.h (yyparse): Remove.
8504 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8505
8506 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8507
8508 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
8509 float_truncate, not fix.
8510 ("*truncdfsf2_real"): Ditto.
8511 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
8512
8513 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
8514
8515 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
8516
8517 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
8518 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
8519 where appropriate. Make the second reference to
8520 leaf_function_p a function call, as intended. Reindented.
8521
8522 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
8523 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
8524
8525 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
8526 add register to non-constant into sp.
8527
8528 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
8529 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
8530 (mips16_gp_pseudo_rtx): Lose.
8531 (INIT_EXPANDERS): Deleted.
8532 * config/mips/mips.c (mips_init_machine_status): New.
8533 (mips_free_machine_status): New.
8534 (mips_mark_machine_status): New.
8535 (override_options): Set them.
8536 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
8537 (struct machine_function): ... new. Replaced all references.
8538 (mips_add_gc_roots): Don't mark them.
8539 (embedded_pic_fnaddr_reg): New, extracted from...
8540 (embedded_pic_offset): ... here.
8541 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
8542 (movsi): Likewise.
8543
8544 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8545
8546 * cppinit.c: Revert -MD removal.
8547
8548 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8549
8550 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
8551 soft registers by default for 68HC12.
8552 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
8553 when compiling with -fomit-frame-pointer.
8554 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
8555 (expand_epilogue): Likewise.
8556 (m68hc11_gen_rotate): Use exg when rotating by 8.
8557
8558 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8559
8560 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
8561 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
8562 (splits): Remove unused add splits.
8563 ("*addhi3_68hc12"): Tune constraints.
8564 ("addhi_sp"): Try to use X instead of Y in all cases and if the
8565 constant fits in 8-bits and D is dead use abx/aby instructions.
8566 ("*addhi3"): Remove extern declaration of ix_reg.
8567 ("*subsi3"): Optimize and provide new split.
8568 ("subhi3"): Cleanup.
8569 ("*subhi3_sp"): Avoid saving X if we know it is dead.
8570 (arith splits): For 68hc12 save the address register on the stack
8571 and do the arithmetic operation with a pop.
8572
8573 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8574
8575 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
8576 allocating QImode in address registers.
8577 ("*movqi_m68hc11"): Likewise.
8578
8579 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
8580
8581 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
8582
8583 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8584
8585 * cppinit.c (print_help): Display -MD and -MMD.
8586 Don't display usage string. Update assertion syntax and
8587 typo.
8588 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
8589 (cpp_handle_option): Update.
8590
8591 2002-03-15 Chris Demetriou <cgd@broadcom.com>
8592
8593 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
8594 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
8595 and define it so that regardless of target CPU size,
8596 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
8597 of "int" rather than "long."
8598
8599 2002-03-15 Richard Henderson <rth@redhat.com>
8600
8601 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
8602 size as a tree.
8603
8604 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8605
8606 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
8607 ("tstqi" split): Avoid using memory for tstqi on address register.
8608 (splits): Remove constraints.
8609 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
8610 ("cmpdf", "cmpsf"): Remove since not used.
8611 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
8612 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
8613
8614 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8615
8616 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
8617 ("neghi2"): Tighten constraints.
8618 ("one_cmplsi2"): Optimize and simplify split.
8619 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
8620
8621 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8622
8623 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
8624 and split of AND operation to clear the upper bits.
8625 ("*logicalsi3_zextqi"): Likewise.
8626 ("*logicallhi3_zexthi_ashift8"): Likewise.
8627 ("*logicalsi3_silshr16"): Likewise.
8628 ("logicalsi3_silshl16"): Likewise.
8629 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
8630
8631 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8632
8633 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
8634 (m68hc11_indirect_p): New function.
8635 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
8636 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
8637 TARGET_M6812.
8638 (asm_print_register): Likewise.
8639 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
8640 (m68hc11_indirect_p): Declare.
8641 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
8642 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
8643 (TARGET_SWITCHES): New option -mrelax.
8644 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
8645 destination.
8646 ("iorsi3", "xorsi3"): Likewise.
8647 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
8648 ("*andhi3_mem"): New to handle destination in memory with bclr
8649 and a scratch register.
8650 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
8651 ("*andhi3_const"): New when operand2 is constant.
8652 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
8653 ("*andhi3_gen"): Cleanup of the old "andhi3".
8654 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
8655 ("xorqi3"): Update constraints.
8656
8657 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8658
8659 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
8660 for reg_equiv_memory_loc when the operand is a register that does
8661 not get a hard register (stack location).
8662 (tst_operand): After reload, accept all memory operand.
8663 (symbolic_memory_operand): Fix detection of symbolic references.
8664 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
8665 accept symbols and any constant.
8666
8667 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8668
8669 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
8670 note on the insn that sets the soft frame register.
8671 (must_parenthesize): ix and iy are also reserved names.
8672 (print_operand_address): One more place where parenthesis are required
8673 to avoid confusion with register names.
8674 (m68hc11_gen_movhi): Allow push of stack pointer.
8675 (m68hc11_check_z_replacement): Fix handling of parallel with a
8676 clobber.
8677 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
8678 the replacement register is.
8679 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
8680 and D8_REGS classes.
8681 (MODES_TIEABLE_P): All modes are tieable except QImode.
8682
8683 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8684
8685 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
8686 (___subdi3): Likewise.
8687 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
8688 (__map_data_section): Optimize 68hc11 case.
8689
8690 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8691
8692 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
8693 than a shift to avoid adding a register with itself.
8694 (m68hc11_memory_move_cost): Take into account NO_REGS.
8695 (m68hc11_register_move_cost): Update and use memory move cost
8696 for soft registers.
8697 (m68hc11_address_cost): Make cost of valid offset not 0 so that
8698 it gives more opportunities to cse to optimize.
8699 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
8700 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
8701
8702 2002-03-15 Mark Mitchell <mark@codesourcery.com>
8703
8704 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
8705 * c-common.def (CLEANUP_STMT): New tree node.
8706 * c-common.h (CLEANUP_DECL): New macro.
8707 (CLEANUP_EXPR): Likewise.
8708 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
8709 * expr.c (expand_expr): Tidy.
8710 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
8711 * tree-inline.c (initialize_inlined_parameters): Clean up
8712 new local variables.
8713
8714 2002-03-15 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR bootstrap/4128
8717 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
8718 before movrXX only, use reg_overlap_mentioned_p.
8719 Only special case NE if just one insn can be generated.
8720
8721 2002-03-15 Jason Merrill <jason@redhat.com>
8722
8723 * varasm.c (assemble_variable): Call resolve_unique_section before
8724 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
8725 of error_mark_node.
8726
8727 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
8728
8729 PR target/5170
8730 * arm.md (split pattern for thumb shiftable immediates): Add comment
8731 explaining non-obvious test.
8732
8733 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
8734
8735 PR target/5712
8736 * arm.md (movaddr, movaddr_insn): Delete.
8737
8738 2002-03-15 Jason Merrill <jason@redhat.com>
8739
8740 * toplev.c (wrapup_global_declarations): Clarify variable handling.
8741 -fkeep-static-consts doesn't apply to comdats.
8742
8743 2002-03-14 Richard Henderson <rth@redhat.com>
8744
8745 * c-decl.c: Include c-pragma.h.
8746 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
8747 (finish_function): Tidy.
8748 * c-pragma.c: Include c-common.h.
8749 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
8750 (handle_pragma_weak): Use them.
8751 (init_pragma): Register pending_weaks.
8752 * c-pragma.h (maybe_apply_pragma_weak): Declare.
8753 * print-tree.c (print_node): Print DECL_WEAK.
8754 * varasm.c (mark_weak_decls): Remove.
8755 (remove_from_pending_weak_list): Remove.
8756 (add_weak): Remove.
8757 (asm_emit_uninitialised): Call globalize_decl for weak commons.
8758 (weak_decls): Make a tree_list.
8759 (declare_weak): Cons weak_decls directly.
8760 (globalize_decl): Remove weak_decls elements directly.
8761 (weak_finish): Simplify weak_decls walk. Don't weaken unused
8762 symbols. Don't pretend to handle aliases.
8763 (init_varasm_once): Update weak_decls registry.
8764 * Makefile.in: Update dependencies.
8765
8766 2002-03-14 Richard Henderson <rth@redhat.com>
8767
8768 PR target/5312
8769 * config/ia64/ia64.c: Include tm_p.h last.
8770 (gen_nop_type): Remove duplicate definition.
8771 (cycle_end_fill_slots): Set sched_data for second L slot.
8772 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
8773 (nop_cycles_until): Fix typos.
8774
8775 2002-03-15 Jakub Jelinek <jakub@redhat.com>
8776
8777 PR optimization/5891
8778 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
8779
8780 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
8781
8782 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
8783 descriptors correctly.
8784
8785 2002-03-14 Michael Meissner <meissner@redhat.com>
8786
8787 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
8788 100, allowing MAX_UNROLLED_INSNS to be overridden.
8789
8790 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
8791 --param.
8792
8793 * unroll.c (params.h): Include.
8794 (MAX_UNROLLED_INSNS): Delete, now in params.h.
8795
8796 * doc/invoke.texi (--param max-unroll-insns): Document.
8797
8798 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
8799
8800 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8801
8802 * arm.md: Fix warnings about constraints in peepholes and splits.
8803
8804 2002-03-14 Zack Weinberg <zack@codesourcery.com>
8805
8806 * cpphash.h (struct lexer_state): Remove line_extension member.
8807 * cpplib.c (dequote_string, do_linemarker): New functions.
8808 (linemarker_dir): New data object.
8809 (DIRECTIVE_TABLE): No longer need to interpret #line in
8810 preprocessed source. Delete obsolete comment about return
8811 values of handlers.
8812 (end_directive, directive_diagnostics, _cpp_handle_directive):
8813 Don't muck with line_extension.
8814 (directive_diagnostics): No need to issue warnings for
8815 linemarkers here.
8816 (_cpp_handle_directive): Issue warnings for linemarkers here,
8817 when appropriate. Dispatch linemarkers to do_linemarker, not
8818 do_line.
8819 (do_line): Code to handle linemarkers split out to do_linemarker.
8820 Convert escape sequences in filename argument, both places.
8821
8822 * cppmacro.c (quote_string): Rename cpp_quote_string and
8823 export. All callers changed.
8824 * cpplib.h (cpp_quote_string): Prototype.
8825 * cppmain.c (print_line): Call cpp_quote_string on to_file
8826 before printing it.
8827
8828 * doc/cpp.texi: Document that escapes are now interpreted in
8829 #line and in linemarkers, and that non-printing characters are
8830 converted to octal escapes when linemarkers are generated.
8831
8832 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
8833
8834 * emit-rtl.c (try_split): Use delete_insns.
8835 * recog.c (split_all_insns): Fix terminating condition.
8836
8837 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8838 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8839
8840 PR target/5828
8841 * arm.c (arm_output_epilogue): Fix floating-point register save
8842 adjustment when using a frame pointer.
8843
8844 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
8845
8846 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8847 * config/mips/mips.c (compute_frame_size): Retrofit them here.
8848 (save_restore_insns, mips_expand_epilogue): And here.
8849 (build_mips16_call_stub): And here.
8850 (mips_function_value): Use the new macros to decide whether a single
8851 or complex float can be returned in floating-point registers. Return
8852 a parallel rtx in the complex case.
8853
8854 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
8855
8856 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8857 call after liveness analysis.
8858
8859 * recog.c (split_insn): Use delete_insn_and_edges.
8860
8861 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8862 instructions to have branch prediction notes.
8863 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8864
8865 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
8866
8867 * configure.in: Don't pass -Wno-long-long to a ADA compiler
8868 that doesn't support it.
8869 * configure: Regenerate.
8870
8871 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8872
8873 PR target/5626
8874 * config/sparc/sparc.md (normal_branch, inverted_branch,
8875 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8876 inverted_fp_branch): Adjust calls to output_cbranch.
8877 Set length attribute.
8878 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8879 output_v9branch. Set length attribute.
8880 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8881 predicates.
8882 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8883 (output_cbranch): Likewise. Handle far branches.
8884 (output_v9branch): Handle far branches.
8885 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8886 Adjust prototypes.
8887 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8888 noov_compare64_op predicates.
8889
8890 2002-03-13 Jason Merrill <jason@redhat.com>
8891
8892 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8893 into the function and constify it.
8894 * gthr-dce.h, gthr-solaris.h: Likewise.
8895
8896 2002-03-13 David Edelsohn <edelsohn@gnu.org>
8897
8898 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8899 * config/rs6000/rs6000.c (rs6000_va_arg): Use
8900 std_expand_builtin_va_arg if not ABI_V4.
8901
8902 2002-03-13 Jason Merrill <jason@redhat.com>
8903
8904 * varasm.c (globalize_decl): New fn.
8905 (assemble_start_function): Use it.
8906 (asm_emit_uninitialized): Use it.
8907 (assemble_alias): Use it.
8908 (assemble_variable): Use it.
8909
8910 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
8911
8912 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
8913 2002-03-12 internal visibility change.
8914 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8915 visibility into SYMBOL_REF_FLAG.
8916
8917 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
8918
8919 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8920 VOIDmode operand. Add compile-time optimization for constant results.
8921
8922 2002-03-12 Jason Merrill <jason@redhat.com>
8923
8924 * c-typeck.c (convert_for_assignment): Don't allow conversions
8925 between pointers and references. Only allow lvalues to convert to
8926 reference.
8927
8928 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
8929
8930 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8931 before prologue, to avoid scheduling problems.
8932
8933 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8934
8935 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8936 (ELIMINABLE_REGS): Add sfp->sp.
8937 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8938
8939 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8940
8941 PR optimization/5892
8942 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8943
8944 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8945
8946 * loop.c (basic_induction_var): Don't call convert_modes if mode
8947 classes are different.
8948
8949 2002-03-12 Richard Henderson <rth@redhat.com>
8950
8951 PR optimization/5901
8952 * function.c (reposition_prologue_and_epilogue_notes): Position
8953 the markers after/before the last/first insn not deleted.
8954
8955 2002-03-12 Richard Henderson <rth@redhat.com>
8956
8957 PR optimization/5878
8958 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8959 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8960 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8961
8962 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8963 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8964 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8965
8966 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8967 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8968 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8969 also. Don't set it if not flag_pic.
8970 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8971 to be INVALID_REGNUM when not used.
8972
8973 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
8974
8975 * expmed.c (store_bit_field): Reset alias set for memory.
8976 (extract_bit_field): Same.
8977
8978 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8979
8980 * c-common.c (c_tree_code_type, c_tree_code_length,
8981 c_tree_code_name, add_c_tree_codes): Delete.
8982 * c-common.h (add_c_tree_codes): Delete.
8983 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8984 Define.
8985 * c-objc-common.c (c_objc_common_init): Don't call
8986 add_c_tree_codes, instead set lang_unsafe_for_reeval.
8987 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8988 objc_tree_code_name, add_objc_tree_codes): Delete.
8989 (objc_init): Don't call add_objc_tree_codes.
8990 * objc/objc-lang.c (tree_code_type, tree_code_length,
8991 tree_code_name): Define.
8992 * toplev.c (lang_independent_init): Don't set
8993 tree_code_length[IDENTIFIER_NODE].
8994 * tree.c (tree_code_type, tree_code_length, tree_code_name):
8995 Delete definitions, moved to language front-ends.
8996 * tree.def (IDENTIFIER_NODE): Hardwire the length.
8997 * tree.h (tree_code_type, tree_code_length, tree_code_name):
8998 Const-ify.
8999 (tree_code_length): Change type to unsigned char.
9000
9001 2002-03-12 Richard Henderson <rth@redhat.com>
9002
9003 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9004 internal visibility change.
9005
9006 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9007
9008 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9009 validize_mem() instead of change_address to avoid clobbering
9010 memory attributes.
9011
9012 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9013
9014 * c-lex.h (position_after_whitespace): Remove.
9015
9016 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9017
9018 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9019 (lex_string): Use unsigned char pointers.
9020
9021 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9022
9023 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9024 is not a valid memory_operand.
9025
9026 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9027
9028 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9029 * config/xtensa/lib1funcs.asm: Fix copyright to include
9030 special case for libgcc files.
9031 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9032 (__divsi3): Likewise.
9033 (__umodsi3): Likewise.
9034 (__modsi3): Likewise.
9035 * config/xtensa/lib2funcs.S: Fix copyright to include
9036 special case for libgcc files.
9037
9038 2002-03-12 Tom Rix <trix@redhat.com>
9039
9040 * collect2.c (resolve_lib_name): Move outside of
9041 OBJECT_FORMAT_COFF ifdef.
9042 (ignore_library): Same.
9043
9044 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9045
9046 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9047
9048 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9049
9050 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9051 to function_section before writing out the constant pool.
9052
9053 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9054
9055 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9056 zero_constant.
9057 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9058
9059 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9060
9061 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9062 (adddi3): Likewise.
9063 (movdf): Likewise.
9064 (movdi): Likewise.
9065 (cmpsi splitter): Likewise.
9066 (modsi3): Fail if <= 0.
9067 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9068 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9069 (reg_or_sub_cint64_operand): Likewise.
9070 (num_insns_constant_wide): Optimize sign extension.
9071 (rs6000_legitimize_address): Likewise.
9072
9073 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9074
9075 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9076 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9077
9078 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9079
9080 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9081 address calculation.
9082
9083 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9084
9085 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9086 scratch register to DImode / TImode.
9087 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9088 register used does not overlap the target.
9089
9090 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9091
9092 * Makefile.in (debug.o): Depend on debug.h.
9093 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9094 * debug.c (do_nothing_debug_hooks): Likewise.
9095 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9096 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9097 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9098 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9099 * dwarfout.c (dwarf_debug_hooks): Likewise.
9100 * integrate.c (output_inline_function): Likewise.
9101 * objc/objc-act.c (synth_module_prologue): Likewise.
9102 * sdbout.c (sdb_debug_hooks): Likewise.
9103 * toplev.c (debug_hooks): Likewise.
9104 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9105
9106 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9107
9108 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9109 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9110 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9111 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9112 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9113 * defaults.h (POINTER_SIZE): Define.
9114 * doc/tm.texi (POINTER_SIZE): Document default.
9115
9116 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9117
9118 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9119
9120 2002-03-11 Richard Henderson <rth@redhat.com>
9121
9122 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9123 if rebuild_label_notes_after_reload.
9124
9125 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9126
9127 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9128 emit pic register load if "internal" visibility.
9129 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9130 (cris_expand_builtin_va_arg): Do all computations on trees.
9131
9132 2002-03-11 Richard Henderson <rth@redhat.com>
9133
9134 * rtlanal.c: Include recog.h.
9135 (keep_with_call_p): Fix thinko.
9136 * Makefile.in (rtlanal.o): Update dependencies.
9137
9138 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9139
9140 * genflags.c (gen_insn): Use IS_VSPACE.
9141 * genoutput.c (output_insn_data): Likewise.
9142 (process_template): Likewise.
9143
9144 2002-03-11 Richard Henderson <rth@redhat.com>
9145
9146 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9147
9148 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9149
9150 * Makefile.in: Update.
9151 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9152 Update documentation.
9153 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9154 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9155
9156 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9157
9158 * Makefile.in: Give texi2pod its input file as a command line
9159 argument, not on stdin.
9160
9161 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9162 Daniel Berlin <dan@dberlin.org>
9163
9164 C++ alias analysis improvement.
9165 * alias.c (record_component_aliases): Record aliases for base
9166 classes too.
9167
9168 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9169
9170 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9171
9172 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9173
9174 * toplev.c (vms_fopen): Remove, not needed.
9175
9176 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9177
9178 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9179
9180 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9181 for FP, already done later.
9182
9183 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9184 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9185
9186 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9187
9188 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9189 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9190 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9191 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9192 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9193 (ediv, emul, eldexp, esqrt): Likewise.
9194 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9195 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9196 (saturate): New function.
9197 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9198 (make_nan): Use a saturation value instead of a NaN if
9199 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9200 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9201 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9202 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9203 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9204 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9205 !ROUND_TOWARDS_ZERO.
9206 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9207 (ROUND_TOWARDS_ZERO): Document.
9208
9209 2002-03-11 Andreas Jaeger <aj@suse.de>
9210
9211 * cfg.c (dump_flow_info): Remove unused variable.
9212
9213 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9214
9215 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9216 computations on trees.
9217
9218 2002-03-10 Richard Henderson <rth@redhat.com>
9219
9220 PR 5693:
9221 * reload.c (copy_replacements_1): New.
9222 (copy_replacements): Use it to recurse through the rtx.
9223
9224 2002-03-10 Richard Henderson <rth@redhat.com>
9225
9226 * loop.c (strength_reduce): Compute number of iterations as
9227 unsigned HOST_WIDE_INT.
9228
9229 2002-03-10 Richard Henderson <rth@redhat.com>
9230
9231 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9232 to move away from the end of the block.
9233
9234 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9235
9236 PR preprocessor/5899
9237 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9238
9239 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9240
9241 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9242
9243 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9244
9245 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9246
9247 * config/mmix/mmix.c: Improve comments.
9248 (mmix_target_asm_function_prologue): Drop variable
9249 empty_stack_frame. Don't allocate unused slot above fp.
9250 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9251 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9252 brace in first column.
9253 (enum reg_class): Ditto.
9254 (FIRST_PARM_OFFSET): Now 0.
9255 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9256
9257 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9258
9259 * combine.c (make_extraction): Fix error in last change.
9260
9261 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9262
9263 * c4x.c (c4x_fp_reglist): Const-ify.
9264 * cris.c (cris_print_operand): Likewise.
9265 * i386.c (ix86_va_arg): Likewise.
9266 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9267 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9268 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9269 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9270 * mcore.h (regno_reg_class): Likewise.
9271 * mips.c (gen_int_relational): Likewise.
9272 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9273 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9274 * pdp11.c (move_costs): Likewise.
9275 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9276 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9277 Likewise.
9278 * s390.h (regclass_map): Likewise.
9279 * sh.c (shift_amounts): Likewise.
9280 * sh.md (rotlsi3): Likewise.
9281
9282 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9283
9284 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9285 (ne0+5): Use new clobber to generate proper shift pattern.
9286 Patch by Michael Matz <matz@kde.org>.
9287
9288 2002-03-09 Andreas Schwab <schwab@suse.de>
9289
9290 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9291
9292 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9293
9294 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9295
9296 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9297
9298 PR middle-end/5877
9299 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9300 even for non-representable constants.
9301
9302 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9303
9304 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9305 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9306 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9307 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9308 (pop_function_context): Compute MAY_SHARE parameter for
9309 fixup_var_refs.
9310 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9311 (gen_mem_addressof): Call fixup_var_refs with new parm.
9312
9313 * combine.c (make_extraction): Don't make extension of CONST_INT.
9314
9315 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9316
9317 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9318 in o32 and o64 ABIs.
9319 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9320 but getting fixed-size structs passed in registers regardless of
9321 padding in o32 and o64 ABIs.
9322
9323 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9324 offset before loading address of argument passed by transparent
9325 reference.
9326
9327 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9328
9329 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9330
9331 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9332
9333 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9334 marker such that registers after it are saved.
9335
9336 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9337
9338 * sparc.c (arith_4096_operand): Fix error in last change.
9339
9340 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9341
9342 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9343 defaults for MEABI.
9344
9345 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9346
9347 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9348 vectors.
9349
9350 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9351
9352 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9353
9354 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9355
9356 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9357 removed; fix return value.
9358 * combine.c (combine_instructions): Dirtify blocks where we failed to
9359 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9360 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9361
9362 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9363
9364 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9365
9366 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
9367
9368 * recog.c (peephole2_optimize): Re-distribute EH edges.
9369
9370 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
9371
9372 * expr.c (expand_expr): Use unsave lang hook.
9373 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9374 (LANG_HOOKS_INITIALIZER): Update.
9375 * langhooks.h (struct lang_hooks): New hook unsave.
9376 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9377 (unsave_expr_1): Remove unused lang_unsave_expr_now.
9378 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
9379 (unsave_expr_now): Remove.
9380 * tree.h (unsave_expr_now, lang_unsave,
9381 lang_unsave_expr_now): Remove.
9382 (lhd_unsave): New.
9383
9384 2002-03-08 Andreas Jaeger <aj@suse.de>
9385
9386 * flow.c (propagate_block_delete_insn): Remove unused variable.
9387
9388 2002-03-08 Kazu Hirata <kazu@hxi.com>
9389
9390 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9391 insn length for memory load/store.
9392
9393 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
9394
9395 * doc/install.texi (--with-libiconv-prefix): Document.
9396
9397 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
9398
9399 * doc/sourcebuild.texi: Fix typo.
9400
9401 2002-03-08 Jakub Jelinek <jakub@redhat.com>
9402
9403 PR c/3711
9404 * builtins.c (std_expand_builtin_va_arg): Do all computations on
9405 trees.
9406
9407 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9408
9409 * rtl.c (copy_most_rtx): Move from here ...
9410 * emit-rtl.c (copy_most_rtx): ... to here.
9411
9412 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9413
9414 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9415 SUBTARGET_CPP_SIZE_SPEC.
9416 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9417
9418 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9419
9420 2002-03-07 Matt Hiller <hiller@redhat.com>
9421
9422 * gensupport.c (first_dir_md_include): Renamed from include;
9423 change all references.
9424 (last_dir_md_include): Renamed from last_include; change all
9425 references.
9426 (init_md_reader): Unconditionally initialize base_dir whether or
9427 not filename is a relative path.
9428
9429 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
9430
9431 * config/fp-bit.c (_unord_f2): Compile it in even if
9432 US_SOFTWARE_GOFAST is enabled.
9433
9434 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9435 NULL_RTX. Set all HFmode operations as NULL_RTX.
9436 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9437 NULL_RTX, try reversing the comparison and the operands.
9438
9439 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9440
9441 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9442 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9443 and MATCH_OP_DUP.
9444
9445 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
9446
9447 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9448
9449 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9450
9451 * basic-block.h (fixup_abnormal_edges): Declare.
9452 * reload1.c (fixup_abnormal_edges): New function.
9453 * reg-stack.c (convert_regs): Use it.
9454
9455 * gcse.c (insert_insn_end_bb): Handle trapping insns.
9456
9457 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9458
9459 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
9460
9461 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9462 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9463 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9464 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9465 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9466 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9467 unless x and y could be infinite.
9468 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9469 Check that the common type of both arguments is a real, even for
9470 targets without unordered comparisons. Allow an integer argument
9471 to be compared against a real.
9472 (expand_tree_builtin): Use expand_unordered_cmp.
9473 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9474 * cse.c (fold_rtx): Likewise. Fix indentation.
9475 * fold-const.c (fold_real_zero_addition_p): New.
9476 (fold): Use it, and the new HONOR_... macros.
9477 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9478 * jump.c (reversed_comparison_code_parts): After searching for
9479 the true comparison mode, use HONOR_NANS to decide whether it
9480 can be safely reversed.
9481 (reverse_condition_maybe_unordered): Remove IEEE check.
9482 * simplify-rtx.c (simplify_binary_operation): Use the new macros
9483 to decide which simplifications are valid. Allow the following
9484 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9485 and (a - -b) to (a + b).
9486 (simplify_relational_operation): Use HONOR_NANS.
9487 * doc/tm.texi: Document the MODE_HAS_... macros.
9488
9489 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9490
9491 * combine.c (simplify_comparison): If simplifying a logical shift
9492 right and compare with constant, force the comparison to unsigned.
9493
9494 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
9495
9496 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9497
9498 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9499 -mabi=no-altivec
9500 (alt_reg_names): Remove % for vrsave.
9501
9502 2002-03-06 Richard Henderson <rth@redhat.com>
9503
9504 PR optimization/5844
9505 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
9506 if used indicates we've already emitted one copy of an operand.
9507 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9508 (gen_split): Supply a non-null used.
9509
9510 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9511
9512 * reload1.c (reload): Unshare all rtl after reload is done.
9513
9514 * simplify-rtx.c (simplify_plus_minus): Do not abort,
9515 but simply fail if the expression is too complex to simplify.
9516 (simplify_gen_binary): Handle simplify_plus_minus failures.
9517
9518 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
9519
9520 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
9521 consistently call delete_trivially_dead_insns after CSE and GCSE;
9522 fix DFI_life dumping; do jump threading after liveness; do crossjumping
9523 after liveness2; update comment in last crossjumping.
9524 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
9525
9526 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
9527
9528 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
9529 after completing fast dead code elimination.
9530
9531 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
9532 COMPARE operator.
9533
9534 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
9535
9536 * version.c: Fix misplaced leading blanks on first line.
9537
9538 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
9539
9540 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
9541
9542 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
9543
9544 * cfgcleanup.c (mentions_nonequal_regs): New function.
9545 (thread_jump): Use it.
9546 * toplev.c (rest_of_compilation): Run jump threading after
9547 liveness.
9548
9549 2002-03-06 Jakub Jelinek <jakub@redhat.com>
9550
9551 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
9552 patch.
9553
9554 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
9555
9556 * predict.c (estimate_bb_frequencies): Do not reload the
9557 frequencies from notes.
9558
9559 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
9560
9561 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
9562 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
9563
9564 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
9565 delete_noop_moves): Return indeger.
9566 * flow.c (ndead): New variable.
9567 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
9568 BB argument; update callers.
9569 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
9570 (life_analysis): Do not call purge_all_dead_edges.
9571 (update_life_info): Return number of deleted insns; print statistics.
9572 (update_life_info_in_dirty_blocks): likewise.
9573 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
9574 return number of insns deleted.
9575
9576 * cse.c: Include timevar.h
9577 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
9578 iterate until stabilizes; print statistics; return number of killed
9579 insns.
9580 * Makefile.in: (cse.o): Add timevar.h dependency
9581 * rtl.h (delete_trivially_dead_insns): New.
9582 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
9583 * toplev.c (rest_of_compilation): Update callers.
9584
9585 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
9586 (try_optimize_cfg): Do not update liveness.
9587 (cleanup-cfg): Loop until try_optimize_cfg and dead code
9588 removal stabilizes; use delete_trivially_dead_insns.
9589
9590 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
9591
9592 2002-03-05 Zack Weinberg <zack@codesourcery.com>
9593
9594 * cppmain.c (setup_callbacks): Disable #pragma and #ident
9595 callbacks when processing assembly language.
9596
9597 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9598
9599 * pa.h (ASM_FILE_END): Define.
9600 * som.h (ASM_FILE_END): Delete.
9601
9602 * pa.c (function_arg): Don't pass floats in general registers in
9603 indirect calls if TARGET_ELF32.
9604
9605 2002-03-05 Richard Henderson <rth@redhat.com>
9606
9607 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
9608
9609 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
9610
9611 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
9612
9613 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9614
9615 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
9616 -r command line. Don't hide any symbols if not building
9617 shared libgcc.
9618
9619 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
9620
9621 * cfg.c (dump_flow_info): Warn about profile mismatches.
9622 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
9623 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
9624
9625 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9626
9627 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
9628 wide volatile memory by parts.
9629
9630 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9631
9632 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
9633 is NULL.
9634
9635 2002-03-05 Richard Henderson <rth@redhat.com>
9636
9637 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
9638
9639 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
9640
9641 * toplev.c (documented_lang_options): Document more
9642 language-specific options.
9643 * doc/invoke.texi (Warning Options): Correct documentation for
9644 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
9645 * c-decl.c (c_decode_option): Use a table to handle warning options.
9646
9647 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
9648
9649 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
9650 parameter to mmix_encode_section_info.
9651 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
9652 relocatably. Always produce ELF, not mmo if linking relocatably.
9653 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
9654 first is non-zero, don't add symbol prefix.
9655 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
9656 prototype accordingly.
9657
9658 2002-03-04 Krister Walfridsson <cato@df.lth.se>
9659
9660 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
9661
9662 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
9663
9664 * configure.in: Increase required makeinfo version to 4.1.
9665 * configure: Regenerate.
9666
9667 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
9668
9669 * .cvsignore: Remove *.info* and genrtl*; these files are generated
9670 elsewhere now.
9671
9672 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
9673
9674 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
9675 * doc/invoke.texi: Fix @math uses.
9676
9677 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9678
9679 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
9680 removal
9681
9682 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
9683
9684 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
9685 (powerpc-*-eabisimaltivec*): Same.
9686
9687 * config/rs6000/t-ppcendian: New.
9688
9689 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9690
9691 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
9692 nonimmediate_src_operand and nonimmediate_lsrc_operand to
9693 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
9694
9695 2002-03-03 Richard Henderson <rth@redhat.com>
9696
9697 * toplev.c (rest_of_decl_compilation): Revert last two changes.
9698
9699 2002-03-03 Zack Weinberg <zack@codesourcery.com>
9700
9701 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
9702 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
9703 tree.c, config/m68k/m68k.c:
9704 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
9705 REAL_ARITHMETIC blocks unconditional. Delete some further
9706 #ifdef blocks predicated on REAL_ARITHMETIC.
9707 * flags.h, toplev.c: Delete remaining references to
9708 flag_pretend_float.
9709
9710 * doc/invoke.texi: Remove documentation of -fpretend-float.
9711 * doc/tm.texi: Describe the various REAL_* macros as provided by
9712 real.h, not by the target configuration files.
9713
9714 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
9715 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
9716 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9717 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
9718 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
9719 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
9720 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
9721 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
9722 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9723 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
9724 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9725 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
9726 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
9727 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
9728 config/xtensa/xtensa.h:
9729 Do not define, undefine, or mention in comments any of
9730 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
9731 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
9732 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
9733 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
9734 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
9735 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
9736 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
9737 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
9738 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
9739
9740 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9741
9742 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
9743 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
9744 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
9745 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
9746 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
9747 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
9748 Delete.
9749 * defaults.h (BITS_PER_WORD): Define.
9750 * doc/tm.texi (BITS_PER_WORD): Document default value.
9751
9752 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
9753 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
9754 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
9755
9756 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9757
9758 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
9759 lieu of explicit sizeof/sizeof.
9760 * i386.c (override_options, ix86_init_mmx_sse_builtins,
9761 ix86_expand_builtin): Likewise.
9762 * mips.c (mips_add_gc_roots): Likewise.
9763 * mmix.c (mmix_output_condition): Likewise.
9764 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
9765 altivec_init_builtins): Likewise.
9766 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
9767 * cppexp.c (Nsuff, parse_number): Likewise.
9768 * cppinit.c (builtin_array_end): Likewise.
9769 * gcc.c (n_default_compilers, process_command): Likewise.
9770 * genpreds.c (output_predicate_decls): Likewise.
9771 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
9772 * lcm.c (N_ENTITIES): Likewise.
9773 * stor-layout.c (set_sizetype): Likewise.
9774
9775 2002-03-03 Richard Henderson <rth@redhat.com>
9776
9777 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
9778 for types or labels.
9779
9780 2002-03-03 Richard Henderson <rth@redhat.com>
9781
9782 * c-decl.c (start_decl): Initialized variables are not common.
9783
9784 2002-03-02 Per Bothner <per@bothner.com>
9785
9786 * gcc.c (option_map): Suport new --bootclasspath option.
9787 --CLASSPATH is now just an alias for --classpath.
9788
9789 2002-03-02 Richard Henderson <rth@redhat.com>
9790
9791 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
9792 load if "internal" visibility.
9793 * doc/extend.texi: Document visibility meanings.
9794
9795 2002-03-02 Richard Henderson <rth@redhat.com>
9796
9797 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
9798 to functions as well.
9799
9800 2002-03-02 Richard Henderson <rth@redhat.com>
9801
9802 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
9803 (handle_visibility_attribute): Don't call assemble_visibility.
9804 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
9805 without asmspec. Invoke assemble_alias when needed.
9806 * varasm.c (maybe_assemble_visibility): New.
9807 (assemble_start_function, assemble_variable, assemble_alias): Use it.
9808
9809 2002-03-02 Richard Henderson <rth@redhat.com>
9810
9811 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
9812 invoke ENCODE_SECTION_INFO with first call flag.
9813
9814 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9815 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9816 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
9817 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
9818 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
9819 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
9820 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
9821 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
9822 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
9823 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
9824 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9825 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
9826 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
9827 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
9828 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9829 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
9830 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
9831 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9832 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
9833 config/sh/sh.h, config/sparc/sparc.h,
9834 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9835 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
9836 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
9837 FIRST argument. As needed, examine it and do nothing.
9838
9839 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
9840 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9841 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9842
9843 * config/arm/t-pe (pe.o): Add dependencies.
9844
9845 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9846
9847 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9848 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9849 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9850 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9851 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9852 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9853 * defaults.h (BITS_PER_UNIT): Define.
9854 * doc/tm.texi (BITS_PER_UNIT): Document default value.
9855
9856 2002-03-02 Kazu Hirata <kazu@hxi.com>
9857
9858 * config/h8300/h8300-protos.h: Add a prototype for
9859 compute_a_shift_length.
9860 * config/h8300/h8300.c (h8300_asm_insn_count): New.
9861 (compute_a_shift_length): Likewise.
9862 (h8300_adjust_insn_length): Do not adjust insn length of shift
9863 insns.
9864 * config/h8300/h8300.md (anonymous shift patterns): Use
9865 compute_a_shift_length.
9866
9867 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9868
9869 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9870 trunc_int_for_mode.
9871
9872 * emit-rtl.c (offset_address): Call update_temp_slot_address.
9873
9874 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9875
9876 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9877 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9878 * flags.h (flag_zero_initialized_in_bss): Declare.
9879 * toplev.c (flag_zero_initialized_in_bss): New flag.
9880 (lang_independent_options): Add flag_zero_initialized_in_bss.
9881 * tree.c (initializer_zerop): New function.
9882 * tree.h (initializer_zerop): Declare.
9883 * varasm.c (assemble_variable): If we can emit bss, put zero
9884 initializers in the bss section.
9885
9886 2002-03-02 Alan Modra <amodra@bigpond.net.au>
9887
9888 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9889 like more than one symbol per .weak directive.
9890
9891 2002-03-01 Richard Henderson <rth@redhat.com>
9892
9893 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9894 adjust argument_pointer by pretend_args_size.
9895 (ia64_va_start): Adjust va_start address by -pretend_args_size.
9896
9897 2002-03-01 Kazu Hirata <kazu@hxi.com>
9898
9899 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9900
9901 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
9902
9903 * toplev.c (rest_of_compilation): Delete dead jumptables before
9904 loop.
9905 * flow.c (delete_dead_jumptables): Make global.
9906 * rtl.h (delete_dead_jumptables): Declare.
9907
9908 2002-03-01 David Edelsohn <edelsohn@gnu.org>
9909
9910 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9911 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
9912 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9913
9914 2002-03-01 Kazu Hirata <kazu@hxi.com>
9915
9916 * config/h8300/h8300-protos.h: Fix formatting.
9917 * config/h8300/h8300.c: Likewise.
9918 * config/h8300/h8300.h: Likewise.
9919
9920 2002-03-01 Kazu Hirata <kazu@hxi.com>
9921
9922 * config/h8300/h8300.c (print_operand): Support 16-bit
9923 constant addresses.
9924 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9925
9926 2002-02-28 Richard Henderson <rth@redhat.com>
9927
9928 * expmed.c (store_bit_field): Prevent generation of CONCATs;
9929 pun complex values as integers; use gen_lowpart instead of
9930 gen_rtx_SUBREG.
9931 (extract_bit_field): Likewise.
9932
9933 2002-03-01 Alan Modra <amodra@bigpond.net.au>
9934 David Edelsohn <edelsohn@gnu.org>
9935
9936 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9937 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9938 (SUPPORTS_WEAK): Likewise.
9939 * output.h (add_weak): Add tree param.
9940 * varasm.c (add_weak): Likewise. Save decl.
9941 (struct weak_syms): Add decl field.
9942 (mark_weak_decls): New function.
9943 (init_varasm_once): ggc_add_root mark_weak_decls.
9944 (assemble_start_function): Use ASM_WEAKEN_DECL.
9945 (assemble_variable): Likewise.
9946 (assemble_alias): Likewise.
9947 (declare_weak): Pass decl to add_weak.
9948 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9949 (remove_from_pending_weak_list): Declare and define for
9950 ASM_WEAKEN_DECL.
9951 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9952 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9953 * defaults.h (SUPPORTS_WEAK): Likewise.
9954 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9955 .weak for code sym. Do emit .size for descriptor sym.
9956 (ASM_DECLARE_FUNCTION_SIZE): Define.
9957 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9958 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
9959 .lglobl unless TARGET_XCOFF. Formatting fixes.
9960 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9961 .weak for code sym.
9962 (HANDLE_PRAGMA_WEAK): Remove.
9963 (ASM_WEAKEN_LABEL): Remove.
9964 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9965
9966 2002-03-01 Jason Merrill <jason@redhat.com>
9967
9968 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9969 (TARGET_EXPR_CLEANUP): New macro.
9970
9971 2002-02-28 Steve Ellcey <sje@cup.hp.com>
9972
9973 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9974 to take ptr_extend into account as third type of extension.
9975 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9976 fields used by SUBREG_PROMOTED_UNSIGNED_P.
9977 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9978 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9979 * calls.c (precompute_arguments): Use new macro.
9980 (expand_call): Ditto.
9981 * combine.c (nonzero_bits): Ditto.
9982 (record_promoted_value): Ditto.
9983 * expr.c (store_expr): Ditto.
9984 (expand_expr): Ditto.
9985 * function.c (assign_parms): Ditto.
9986
9987 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
9988
9989 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9990 override -shared and -shared-libgcc.
9991
9992 2002-02-28 David O'Brien <obrien@FreeBSD.org>
9993
9994 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9995 of "ultrasparc".
9996 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
9997 to be broken.
9998
9999 2002-02-28 Richard Henderson <rth@redhat.com>
10000
10001 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10002 4 cycle latency from MM producers.
10003 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10004
10005 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10006
10007 * mklibgcc.in: Don't use GNU make extension.
10008
10009 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10010
10011 * c-parse.in (STATIC): New terminal.
10012 (scspec): New non-terminal. Update productions accordingly.
10013 (program): Remove bogus ifc / end ifc.
10014 (array_declarator): Simplify production using STATIC.
10015
10016 2002-02-28 Jim Meyering <meyering@lucent.com>
10017
10018 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10019 \a still means TARGET_BELL.
10020
10021 2002-02-28 Richard Henderson <rth@redhat.com>
10022
10023 * haifa-sched.c (sched_emit_insn): New.
10024 (schedule_block): Use last_scheduled_insn to track last insn.
10025 * sched-int.h (sched_emit_insn): Prototype.
10026 * config/ia64/ia64.c (last_issued): Remove.
10027 (ia64_variable_issue): Don't set it.
10028 (nop_cycles_until): Use sched_emit_insn.
10029
10030 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10031
10032 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10033 extended constants.
10034
10035 2002-02-28 Kazu Hirata <kazu@hxi.com>
10036
10037 * config/h8300/h8300.c: Fix formatting.
10038 * config/h8300/h8300.h: Likewise.
10039
10040 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10041
10042 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10043 which may overwrite the high byte of the frame pointer.
10044
10045 2002-02-28 Bo Thorsen <bo@suse.de>
10046
10047 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10048 (STARTFILE_SPEC): Add 64 bit files.
10049 (ENDFILE_SPEC): Likewise.
10050
10051 2002-02-28 Jason Merrill <jason@redhat.com>
10052
10053 * c-decl.c (finish_function): Only warn about missing return
10054 statement with -Wreturn-type.
10055
10056 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10057
10058 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10059
10060 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10061 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10062
10063 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10064
10065 * basic-block.h (BB_REACHABLE): Renumber.
10066 (BB_DIRTY, BB_NEW): New flags.
10067 (clear_bb_flags): Declare.
10068 (update_life_info_in_dirty_blocks): Declare.
10069 * cfg.c (clear_bb_flags): New function.
10070 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10071 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10072 reorder_insns, emit_insn_after): Mark block as dirty.
10073 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10074 (update_life_info_in_dirty_blocks): New function.
10075 * recog.c (apply_change_group): Dirtify block.
10076
10077 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10078 cfg consistent.
10079 * gcse.c (delete_null_pointer_checks): Likewise.
10080
10081 * toplev.c (dump_file_index): Move cse2 after bp,
10082 add DFI_null
10083 (dump_file_info): Similary.
10084 (rest_of_compilation): Avoid most of CFG rebuilds;
10085 do first if converision after null pointer checks, do cse2
10086 after branch prediction; avoid full liveness rebuild after
10087 initializing subregs.
10088 * invoke.texi (-d options): Document -du, renumber.
10089
10090 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10091 (notice_new_block): Do not set BB_UPDATE_LIFE.
10092 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10093 merge_blocks_move_successor_nojumps, merge_blocks,
10094 try_crossjump_to_edge): Likewise.
10095 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10096 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10097 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10098 (merge_of_block): Do not use life_data_ok.
10099 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10100 (if_convert): Use BB_DIRTY mechanizm to update life.
10101 * lcm.c (optimize_mode_switching): Update
10102 update_life_info_in_dirty_blocks
10103
10104 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10105
10106 * Makefile.in (integrate.o): Update.
10107 * c-decl.c (copy_lang_decl): Rename.
10108 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10109 * integrate.c: Include langhooks.h.
10110 (copy_decl_for_inlining): Update to use langhook.
10111 * langhooks-def.h (lhd_do_nothing_t,
10112 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10113 (LANG_HOOKS_INITIALIZER): Update.
10114 * langhooks.c (lhd_do_nothing_t): New.
10115 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10116 * tree.h (copy_lang_decl): Remove.
10117 objc:
10118 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10119
10120 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10121
10122 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10123 POST_DEC, and POST_MODIFY.
10124
10125 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10126
10127 * c-typeck.c (digest_init): Remove unused parameter; all
10128 callers changed.
10129
10130 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10131
10132 * expmed.c (expand_shift): Correctly test for low part of a
10133 subreg.
10134
10135 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10136
10137 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10138 insn UIDs with insn addresses.
10139
10140 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10141
10142 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10143 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10144 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10145 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10146 gcc.c, toplev.c: Delete code implementing -traditional mode.
10147
10148 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10149 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10150 Document removal of -traditional mode for compilation, and
10151 remove documentation only relevant to that mode.
10152
10153 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10154 config/convex/convex.h, config/d30v/d30v.h,
10155 config/i386/dgux.h, config/i386/osf1elf.h,
10156 config/i386/osfelf.h, config/i386/osfrose.h,
10157 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10158 config/m68k/hp310.h, config/m88k/dgux.h,
10159 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10160 config/m88k/m88k.h, config/m88k/openbsd.h,
10161 config/mips/abi64.h, config/mips/osfrose.h,
10162 config/mips/svr4-5.h, config/mips/svr4-t.h,
10163 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10164 config/stormy16/stormy16.h: Remove all references to
10165 -traditional from target specs. Delete all mention of the
10166 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10167 delete a couple of commented-out definitions of
10168 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10169 to -traditional.
10170
10171 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10172 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10173
10174 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10175
10176 * mklibgcc.in: Don't use \n in a line subject to
10177 interpretation by echo.
10178
10179 2002-02-27 Graham Stott <grahams@redhat.com>
10180
10181 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10182 Constify NAME.
10183
10184 * loop.c (prescan_loop): Handle PARALLEL.
10185
10186 * unroll.c (loop_iterations): Return 0 if the add_val for
10187 a BIV is REG.
10188
10189 * final.c (output_operand_lossage): Constify PFX_STR.
10190
10191 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10192
10193 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10194
10195 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10196 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10197
10198 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10199
10200 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10201
10202 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10203
10204 * cpplex.c (_cpp_lex_token): Handle directives in macro
10205 arguments.
10206 * cpplib.c (_cpp_handle_directive): Save and restore state
10207 if parsing macro args when entering a directive.
10208 * cppmacro.c (collect_args): No need to handle directives
10209 in macro arguments.
10210 (enter_macro_context, replace_args): Use the original macro
10211 definition in case it was redefined whilst collecting arguments.
10212 doc:
10213 * cpp.texi: Update.
10214
10215 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10216
10217 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10218 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10219 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10220 method on AIX.
10221 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10222 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10223 (load_toc_v4_PIC_2): Same.
10224
10225 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10226
10227 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10228
10229 2002-02-26 Richard Henderson <rth@redhat.com>
10230
10231 * config/alpha/alpha.md (ashldi_se): Re-enable.
10232
10233 2002-02-26 Richard Henderson <rth@redhat.com>
10234
10235 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10236 MODULE_LOCAL_P; improve commentary.
10237
10238 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10239
10240 * doc/cpp.texi: Clarify documentation of relationship between
10241 #line and #include.
10242
10243 2002-02-26 Kazu Hirata <kazu@hxi.com>
10244
10245 * config/h8300/h8300-protos.h: Update the prototype for
10246 compute_logical_op_length. Add the prototype for
10247 compute_logical_op_cc.
10248 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10249 code from operands.
10250 (compute_logical_op_cc): New.
10251 * config/h8300/h8300.md: Combine all the logical op patterns
10252 in HImode and SImode. Use compute_logical_op_cc.
10253
10254 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10255
10256 * config/i386/i386.c (print_operand): Don't append ATT-style
10257 length suffixs to x87 opcodes when in Intel mode.
10258
10259 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10260
10261 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10262 (init_emit_once): Update calls.
10263 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10264 (init_syntax_once): Prototype.
10265
10266 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10267
10268 * pa-linux.h (LIB_SPEC): Update definition.
10269 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10270
10271 2002-02-26 Richard Henderson <rth@redhat.com>
10272
10273 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10274 if we emitted a stop bit.
10275
10276 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10277
10278 * configure.in (libgcc_visibility): Substitute.
10279 * configure: Rebuilt.
10280 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10281 defined symbols .hidden.
10282
10283 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10284
10285 * attribs.c (c_common_attribute_table): Add visibility.
10286 (handle_visibility_attribute): New function.
10287 * varasm.c (assemble_visibility): New function.
10288 * output.h (assemble_visibility): Add prototype.
10289 * tree.h (MODULE_LOCAL_P): Define.
10290 * crtstuff.c (__dso_handle): Use visibility attribute.
10291 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10292 for MODULE_LOCAL_P symbols too.
10293 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10294 MODULE_LOCAL_P symbols the same way as local symbols.
10295 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10296 into .sdata/.sbss by the user.
10297 * doc/extend.texi (Function Attributes): Document visibility
10298 attribute.
10299
10300 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10301
10302 PR debug/5770
10303 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10304 STRING_CST initializer spanning the whole variable without
10305 embedded zeros.
10306 If expand_expr returned MEM, don't use it.
10307
10308 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10309
10310 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10311 generate a die for the lexical block.
10312
10313 2002-02-26 Kazu Hirata <kazu@hxi.com>
10314
10315 * config/h8300/h8300-protos.h: Add a prototype for
10316 compute_logical_op_length.
10317 * config/h8300/h8300.c (compute_logical_op_length): New.
10318 * config/h8300/h8300.md (anonymous logical patterns): Use
10319 compute_logical_op_length for length.
10320
10321 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10322
10323 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10324 for vectors.
10325 (gen_type_die): Same.
10326
10327 * attribs.c (handle_vector_size_attribute): Set debug information.
10328
10329 2002-02-26 Daniel Egger <degger@fhm.edu>
10330
10331 * config/rs6000/rs6000.md: Swap define_insn attributes to
10332 fix incorrect generation of merge high instructions instead
10333 of merge low.
10334
10335 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10336
10337 * c-typeck.c (really_start_incremental_init): Use
10338 bitsize_zero_node for vectors.
10339
10340 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10341
10342 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10343 ("*set_vrsave_internal"): Same.
10344
10345 2002-02-25 Richard Henderson <rth@redhat.com>
10346
10347 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10348 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10349
10350 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10351
10352 PR target/5755
10353 * config/i386/i386.c (ix86_return_pops_args): Only pop
10354 fake structure return argument if it was passed on the stack.
10355
10356 2002-02-25 Jason Merrill <jason@redhat.com>
10357
10358 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10359 RESULT_DECL.
10360
10361 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10362
10363 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10364 link with shared_name only.
10365 * doc/invoke.texi (Link Options): Document new behavior.
10366
10367 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10368
10369 * c-typeck.c (push_init_level): Handle vectors.
10370
10371 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10372
10373 * config/sparc/sparc.c (const64_high_operand): Zero-extend
10374 operands of SPARC_SETHI_P.
10375 (input_operand): Likewise.
10376 (sparc_emit_set_const32): Likewise.
10377 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10378 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10379 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10380 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10381 (movdi_insn_sp64_vis): Likewise.
10382 (movdi split, movdf split): Use SETHI32.
10383 * doc/md.texi: Document SPARC constraints L, M and N.
10384
10385 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10386
10387 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10388 ("*set_vrsave_internal"): use mfspr for Darwin.
10389
10390 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10391 gen_get_vrsave_internal.
10392
10393 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10394
10395 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10396
10397 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
10398
10399 * cpplex.c (cpp_interpret_charconst): Get signedness or
10400 otherwise of wide character constants correct.
10401 * cppexp.c (lex): Get signedness of wide charconsts correct.
10402
10403 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10404
10405 * optabs.c (widen_operand): Only call convert_modes for
10406 promoted SUBREG if signedness matches.
10407 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10408
10409 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10410
10411 * cpplib.c (glue_header_name): Use local buffer to build up
10412 header name.
10413
10414 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10415
10416 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10417
10418 2002-02-23 Kazu Hirata <kazu@hxi.com>
10419
10420 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10421 H8/300[HS] separately.
10422 * config/h8300/h8300.md: Remove the early clobber constraint
10423 from bit field patterns.
10424
10425 2002-02-23 Kazu Hirata <kazu@hxi.com>
10426
10427 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10428 register_operand.
10429 (mulhisi3): Likewise.
10430 (umulqisi3): Likewise.
10431 (umulhisi3): Likewise.
10432
10433 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10434
10435 * cppinit.c (output_deps): Correct test for stdout output.
10436 (init_dependency_output): Cure warning.
10437
10438 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10439
10440 * expr.c (store_expr): When converting expression to promoted
10441 equivalent type, allow using SUBREG_REG of TARGET as the target
10442 of the expansion of EXP.
10443 * loop.c (basic_induction_var, case SUBREG): Always look inside.
10444 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10445 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10446 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10447 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10448
10449 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
10450
10451 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10452 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10453 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10454
10455 2002-02-23 Jakub Jelinek <jakub@redhat.com>
10456
10457 PR optimization/5747
10458 * loop.c (scan_loop): Update reg info if move_movables created new
10459 pseudos.
10460
10461 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10462
10463 * gcc.c (init_gcc_spec): Revert last change.
10464
10465 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10466
10467 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10468 gpc_reg_operand constraint.
10469
10470 2002-02-23 Alan Modra <amodra@bigpond.net.au>
10471
10472 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10473 Simplify comparison of `low'.
10474 (add_operand): Fix formatting.
10475 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10476 (mask_operand): Disallow mask to wrap in 64-bit mode.
10477 (rs6000_stack_info): Remove redundant test setting push_p.
10478 (output_toc): Fix formatting.
10479 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10480 cc_reg_not_cr0_operand constraint.
10481 (booldi3, boolcdi3 splitters): Same.
10482
10483 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
10484
10485 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10486
10487 2002-02-22 David Edelsohn <edelsohn@gnu.org>
10488
10489 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10490 gcc invoked with -shared-libgcc.
10491
10492 2002-02-22 Jakub Jelinek <jakub@redhat.com>
10493
10494 PR c++/5748
10495 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10496 decl if any of elements was TREE_USED.
10497
10498 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
10499
10500 * config/sparc/sol2.h: Don't include sys/mman.h.
10501 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10502 (arith_4096_operand): Don't throw high bits away.
10503 (const64_operand): Take sign extension of CONST_INTs into account.
10504 (const64_high_operand, sparc_emit_set_const32): Likewise.
10505 (GEN_HIGHINT64): Likewise.
10506 (sparc_emit_set_const64_quick1): Likewise.
10507 (const64_is_2insns): Likewise.
10508 (print_operand): Use trunc_int_for_mode for sign extension.
10509 * config/sparc/sparc.h (SMALL_INT32): Likewise.
10510 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
10511 chars. Assume CONST_INT is already properly sign-extended.
10512 (movdi split): Sign-extend each SImode part.
10513 (andsi3 split): Don't mask high bits off, so that result
10514 remains properly sign-extend.
10515 (iorsi3 split): Likewise.
10516 (xorsi3 split): Likewise.
10517
10518 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
10519
10520 * fold-const.c (fold): Fix typo in comments.
10521
10522 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10523
10524 * Makefile.in (langhooks.o): Update dependencies.
10525
10526 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10527
10528 * langhooks.c: Include flags.h.
10529
10530 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
10531
10532 * testsuite/gcc.dg/attr-alwaysinline.c: New.
10533
10534 * c-common.c (c_common_post_options): Set inline trees by
10535 default.
10536
10537 * doc/extend.texi (Function Attributes): Document always_inline
10538 attribute.
10539 Update documentation about inlining when not optimizing.
10540
10541 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
10542
10543 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
10544 unless DECL_ALWAYS_INLINE.
10545
10546 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
10547 unless DECL_ALWAYS_INLINE.
10548 (c_disregard_inline_limits): Disregard if always_inline set.
10549
10550 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
10551 Disregard if always_inline set.
10552 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
10553 unless DECL_ALWAYS_INLINE.
10554
10555 * attribs.c (handle_always_inline_attribute): New.
10556 (c_common_attribute_table): Add always_inline.
10557
10558 * config/rs6000/altivec.h: Add prototypes for builtins
10559 requiring the always_inline attribute.
10560
10561 2002-02-21 Eric Christopher <echristo@redhat.com>
10562
10563 * expmed.c (store_bit_field): Try to simplify the subreg
10564 before generating a new one when when the mode size of
10565 value is less than maxmode.
10566
10567 2002-02-21 Richard Henderson <rth@redhat.com>
10568
10569 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
10570 than gen_rtx_PLUS to form the sum.
10571 * explow.c (force_reg): Rearrange to not allocate new pseudo
10572 when force_operand returns a register.
10573 * expr.c (expand_assignment): Allow offset_rtx expansion to
10574 return a sum. Do not force addresses into registers.
10575 (expand_expr): Likewise.
10576 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
10577 to canonicalize arithmetic that didn't simpify.
10578 (simplify_plus_minus): New argument force; update
10579 all callers. Don't split CONST unless we can do something with it,
10580 and wouldn't lose the constness of the operands.
10581
10582 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
10583 that we generated earlier.
10584
10585 2002-02-21 Tom Tromey <tromey@redhat.com>
10586
10587 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10588 (output_line_info): Use constant `1', with a long explanatory
10589 comment.
10590 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
10591
10592 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
10593
10594 * jump.c (redirect_jump): If old label has no UID, don't try to
10595 delete it.
10596
10597 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
10598
10599 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
10600 If input is constant, do shifts at compile time.
10601
10602 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
10603
10604 * doc/extend.texi: Fix some more overfull hboxes.
10605
10606 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10607
10608 PR optimization/4994
10609 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
10610 register moves.
10611
10612 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10613
10614 PR c++/4574
10615 * expr.h (expand_and): Add mode argument.
10616 * expmed.c (expand_and): Add mode argument.
10617 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
10618 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
10619 * except.c (expand_builtin_extract_return_addr): Likewise.
10620 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10621 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10622 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
10623 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
10624 * config/c4x/c4x.md: Use GEN_INT (x) instead of
10625 gen_rtx (CONST_INT, VOIDmode, x).
10626
10627 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10628
10629 PR c/4697:
10630 * stmt.c (warn_if_unused_value): Move side effects test once more.
10631
10632 2002-02-20 Torbjorn Granlund <tege@swox.com>
10633
10634 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
10635 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
10636
10637 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
10638
10639 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
10640 SUBREG or ZERO_EXTEND.
10641
10642 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
10643
10644 * sh.h (current_function_anonymous_args): Remove.
10645 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
10646 of current_function_varargs and current_function_stdarg is set.
10647 * sh.c (sh_expand_prologue): Check current_function_varargs /
10648 current_function_stdarg / TARGET_SH5 instead of
10649 current_function_anonymous_args.
10650
10651 * sh64.h (TARGET_VERSION): Define.
10652
10653 2002-02-20 David Edelsohn <edelsohn@gnu.org>
10654
10655 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
10656 VRSAVE_REGNO on TARGET_ALTIVEC.
10657
10658 2002-02-20 Alan Modra <amodra@bigpond.net.au>
10659
10660 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
10661 bits of SImode const_int.
10662 (includes_rshift_p): Likewise.
10663 (print_operand): Call mask_operand and mask64_operand with correct
10664 mode.
10665 (rs6000_output_function_epilogue): Pad traceback table to word.
10666 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
10667 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
10668 mask64_operand with correct mode.
10669 (FUNCTION_ARG_REGNO_P): Correct parentheses.
10670
10671 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10672
10673 PR debug/4461
10674 * varasm.c (get_pool_constant_mark): New.
10675 * rtl.h (get_pool_constant_mark): Add prototype.
10676 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
10677 be represented if it has not been output.
10678
10679 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
10680
10681 * combine.c (do_SUBST): Sanity check substitutions of
10682 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
10683 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
10684 CONST_INT into its operand.
10685 (known_cond): Likewise, for ZERO_EXTEND.
10686 * simplify-rtx.c (simplify_unary_operation): Fix condition to
10687 allow for simplification of wide modes. Reject CONST_INTs in
10688 ZERO_EXTEND when their actual mode is not given.
10689
10690 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
10691
10692 * c-decl.c (pushdecl): If no global declaration is found for an
10693 extern declaration in block scope, try a limbo one.
10694
10695 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10696
10697 PR c++/4401
10698 * c-common.c (pointer_int_sum): Moved from...
10699 * c-typeck.c (pointer_int_sum): ...here.
10700 * c-common.h (pointer_int_sum): Add prototype.
10701
10702 2002-02-20 Jakub Jelinek <jakub@redhat.com>
10703
10704 PR c++/5713
10705 * c-decl.c (duplicate_decls): Return 0 if issued error about
10706 redeclaration.
10707
10708 2002-02-20 Roger Sayle <roger@eyesopen.com>
10709 Jakub Jelinek <jakub@redhat.com>
10710
10711 PR c/4389
10712 * tree.c (host_integerp): Ensure that the constant integer is
10713 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
10714 when pos is zero or non-zero respectively. Clarify comment.
10715 * c-format.c (check_format_info_recurse): Fix host_integerp
10716 usage; the pos argument should be zero when assigning to a
10717 signed HOST_WIDE_INT.
10718
10719 2002-02-20 Richard Henderson <rth@redhat.com>
10720
10721 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
10722 of the operand, rather than assuming TImode.
10723 (ix86_expand_binop_builtin): Cope with commutative patterns
10724 using nonimmediate_operand for both operands.
10725 (ix86_expand_timode_binop_builtin): Likewise.
10726 (ix86_expand_store_builtin): Validate operand 1.
10727 (ix86_expand_unop1_builtin): Likewise.
10728
10729 2002-02-20 Philip Blundell <philb@gnu.org>
10730
10731 PR 5705
10732 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
10733
10734 2002-02-20 Richard Henderson <rth@redhat.com>
10735
10736 PR c/5615
10737 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
10738
10739 2002-02-20 Tom Tromey <tromey@redhat.com>
10740
10741 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10742 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10743 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10744 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10745 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
10746 unconditionally.
10747
10748 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
10749
10750 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
10751 for (const_int 0) in X not just INTVAL.
10752
10753 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
10754
10755 * doc/extend.texi: Avoid or reduce overfull hboxes.
10756
10757 2002-02-20 Diego Novillo <dnovillo@redhat.com>
10758
10759 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
10760 operations if the field does not start at a mode boundary.
10761
10762 2001-02-20 Joel Sherrill <joel@OARcorp.com>
10763
10764 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
10765 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
10766 Also done for -Acpu and -Amachine.
10767
10768 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
10769
10770 * cppinit.c (init_dependency_output): Take deps output file
10771 from -o if none given with -MF. Suppress normal output.
10772 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
10773 * doc/cpp.texi, doc/invoke.texi: Update.
10774
10775 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10776
10777 * toplev.c (output_quoted_string): Write unprintable
10778 characters with octal escapes.
10779
10780 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10781
10782 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
10783 really_call_used[VRSAVE_REGNO] if not Altivec.
10784
10785 2002-02-19 Alan Modra <amodra@bigpond.net.au>
10786
10787 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
10788 MODE_MASK.
10789 (constant_pool_expr_1): Fix formatting.
10790 (rs6000_legitimize_reload_address): Likewise.
10791
10792 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10793
10794 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
10795 now that we have one.
10796
10797 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10798
10799 * tree.h (struct tree_common): Remove aux. Add unused_0 at
10800 end of first block of bitfields (which was only seven bits);
10801 rename dummy to unused_1; remove comment which is no longer true.
10802
10803 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10804
10805 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
10806
10807 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10808
10809 PR 5399
10810 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
10811 if generating PIC.
10812
10813 PR 5054
10814 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
10815 arm_is_longcall_p rather than inspecting call-type cookie
10816 directly.
10817 (call_value_insn) [TARGET_THUMB]: Likewise.
10818
10819 2002-02-19 Graham Stott <grahams@redhat.com>
10820
10821 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
10822
10823 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10824
10825 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
10826 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
10827 (FP_SAVE_INLINE): Delete.
10828
10829 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
10830 * config/rs6000/eabi.asm: Remove ABI save restore routines.
10831 * config/rs6000/t-ppccomm: Build crtsavres.o.
10832 * config/rs6000/crtsavres.asm: New file.
10833
10834 2002-02-19 Philip Blundell <philb@gnu.org>
10835
10836 * config/arm/arm.c (use_return_insn): Don't reject interrupt
10837 functions.
10838 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10839 (output_return_instruction): Allow interrupt functions to return with
10840 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
10841 (arm_expand_prologue): Subtract 4 before stacking LR in an
10842 interrupt function.
10843
10844 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10845
10846 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10847 decl, not just FUNCTION_DECL.
10848 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10849 (arm_assemble_integer): Likewise.
10850 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10851 marked local.
10852
10853 2002-02-19 matthew green <mrg@eterna.com.au>
10854
10855 * config.gcc (sparc-*-netbsdelf*): Enable target.
10856 (sparc64-*-netbsd*): New target.
10857 * config/sparc/netbsd-elf.h: New file.
10858 * config/sparc/t-netbsd64: New file.
10859
10860 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10861
10862 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10863
10864 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
10865
10866 * doc/invoke.texi: explicitly list the style guidelines that
10867 -Weffc++ checks for.
10868
10869 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
10870
10871 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10872
10873 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
10874
10875 PR other/5718
10876 * gcc.c (cpp_unique_options): Treat -o as indicating object file
10877 only if not -E. If -E, pass -o through to the preprocessor.
10878
10879 2002-02-19 Kazu Hirata <kazu@hxi.com>
10880
10881 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10882 register number with an appropriate macro.
10883
10884 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10885
10886 * doc/rtl.texi (Constants): Close @code tag.
10887
10888 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
10889
10890 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10891 ("mmx_uavgv4hi3"): Same.
10892 ("pmulhrwv4hi3"): Same.
10893
10894 * tree-inline.c (walk_tree): Handle vectors.
10895
10896 * c-common.c (constant_expression_warning): Handle vectors.
10897 (overflow_warning): Same.
10898
10899 * sched-deps.c (sched_analyze_2): Handle vectors.
10900
10901 * rtlanal.c (rtx_unstable_p): Handle vectors.
10902 (rtx_varies_p): Same.
10903 (count_occurrences): Same.
10904 (regs_set_between_p): Same.
10905 (modified_between_p): Same.
10906 (modified_in_p): Same.
10907 (volatile_insn_p): Same.
10908 (volatile_refs_p): Same.
10909 (side_effects_p): Same.
10910 (may_trap_p): Same.
10911 (inequality_comparisons_p): Same.
10912 (replace_regs): Same.
10913 (computed_jump_p_1): Same.
10914
10915 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10916 argument.
10917 (inner_mode_array): New.
10918 (copy_rtx): Handle vectors.
10919 (copy_most_rtx): Same.
10920 (rtx_equal_p): Same.
10921 (get_mode_alignment): Adjust for vectors.
10922
10923 * resource.c (mark_referenced_resources): Handle vectors.
10924 (mark_set_resources): Same.
10925
10926 * reload1.c (eliminate_regs): Handle vectors.
10927 (elimination_effects): Same.
10928 (scan_paradoxical_subregs): Same.
10929
10930 * reload.c (subst_reg_equivs): Handle vectors.
10931
10932 * regrename.c (scan_rtx): Handle vectors.
10933
10934 * regclass.c (reg_scan_mark_refs): Handle vectors.
10935
10936 * recog.c (find_single_use_1): Handle vectors.
10937
10938 * local-alloc.c (equiv_init_varies_p): Handle vectors.
10939 (contains_replace_regs): Same.
10940 (memref_referenced_p): Same.
10941
10942 * integrate.c (copy_rtx_and_substitute): Handle vectors.
10943 (subst_constants): Same.
10944
10945 * genattrtab.c (attr_copy_rtx): Handle vectors.
10946 (encode_units_mask): Same.
10947 (clear_struct_flag): Same.
10948 (count_sub_rtxs): Same.
10949
10950 * gcse.c (want_to_gcse_p): Handle vectors.
10951 (oprs_unchanged_p): Same.
10952 (hash_expr_1): Same.
10953 (oprs_not_set_p): Same.
10954 (expr_killed_p): Same.
10955 (compute_transp): Same.
10956 (store_ops_ok): Same.
10957
10958 * function.c (purge_addressof_1): Do not allow paradoxical subregs
10959 of vectors.
10960 (fixup_var_refs_1): Same.
10961 (instantiate_virtual_regs_1): Same.
10962
10963 * fold-const.c (operand_equal_p): Handle vectors.
10964 (fold): Same.
10965 (rtl_expr_nonnegative_p): Same.
10966
10967 * flow.c (mark_used_regs): Handle vectors.
10968
10969 * df.c (df_uses_record): Handle vectors.
10970
10971 * cselib.c (cselib_subst_to_values): Handle vectors.
10972 (cselib_mem_conflict_p): Same.
10973 (hash_rtx): Same.
10974
10975 * cse.c (canon_reg): Handle vectors.
10976 (fold_rt): Same.
10977 (cse_process_notes): Same.
10978 (count_reg_usage): Same.
10979 (canon_hash): Same.
10980
10981 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10982
10983 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10984
10985 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10986 (gen_rtx): Handle CONST_VECTOR.
10987 (gen_const_vector_0): New.
10988 (copy_rtx_if_shared): CONST_VECTORs can be shared.
10989 (reset_used_flags): Same.
10990 (copy_insn_1): Same.
10991 (initializer_constant_valid_p): Handle VECTOR_CST.
10992
10993 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10994
10995 * doc/rtl.texi (Constants): Document const_vector.
10996 (CONST0_RTX): Update for vectors.
10997 (RTL sharing): Same.
10998
10999 * print-tree.c (print_node): Add case for VECTOR_CST.
11000
11001 * tree.h (TREE_VECTOR_CST_ELTS): New.
11002 (struct tree_vector): New.
11003 (union tree_node): Add vector node.
11004 (build_vector): Add prototype.
11005
11006 * tree.def (VECTOR_CST): New.
11007
11008 * tree.c (build_vector): New.
11009
11010 * expmed.c (make_tree): Handle CONST_VECTOR.
11011
11012 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11013 (CONST_VECTOR_ELT): New.
11014 (CONST_VECTOR_NUNITS): New.
11015
11016 * machmode.h (GET_MODE_INNER): New.
11017 (DEF_MACHMODE): Accept 8th arg.
11018
11019 * machmode.def: Add 8th argument for vector inner mode.
11020 Add inner vector modes for vectors.
11021
11022 * rtl.def (VEC_CONST): Remove.
11023 (CONST_VECTOR): New.
11024
11025 * expr.c (clear_storage): Allow vectors.
11026 (is_zeros_p): Handle VECTOR_CST.
11027
11028 * varasm.c (output_constant_pool): Handle vectors.
11029 (rtx_const): Add veclo and vechi fields.
11030 (kind): Add RTX_VECTOR.
11031 (decode_rtx_const): Add case for vector.
11032
11033 * config/rs6000/rs6000-protos.h: Add zero_constant.
11034
11035 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11036 constants. Force easy vector constants into memory.
11037 (easy_vector_constant): New.
11038 (emit_easy_vector_constant): New.
11039 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11040 darwin.
11041
11042 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11043 instruction does.
11044 ("altivec_lvxl"): Same.
11045 (altivec_lvebx): Same.
11046 (altivec_lvehx): Same.
11047 (altivec_lvewx): Same.
11048 ("*movv4si_const0"): New.
11049 ("*movv4sf_const0"): New.
11050 ("*movv8hi_const0"): New.
11051 ("*movv16qi_const0"): New.
11052
11053 2002-02-18 Kazu Hirata <kazu@hxi.com>
11054
11055 * config/h8300/h8300.c (notice_update_cc): Use
11056 cc_status.value2.
11057
11058 2002-02-18 Kazu Hirata <kazu@hxi.com>
11059
11060 * config/h8300/h8300.md (divmod patterns): Change the
11061 constraints for operands[1] to register_operand.
11062
11063 2002-02-18 Kazu Hirata <kazu@hxi.com>
11064
11065 * config/h8300/h8300-protos.h: Remove the prototype for
11066 p_operand.
11067 * config/h8300/h8300.c (p_operand): Remove.
11068 * config/h8300/h8300.md: Replace p_operand with
11069 const_int_operand.
11070
11071 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11072
11073 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11074 comment.
11075 (output_return_instruction): Allow use of LDR to unstack
11076 return addresss even for interrupt handlers or when
11077 interworking. If compiling for ARMv5, use interworking-safe
11078 return instructions by default. Remove duplicated code and
11079 lengthy "strcat" sequences.
11080
11081 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11082
11083 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11084 (LINK_EH_SPEC): Define.
11085 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11086
11087 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11088
11089 * config/s390/s390.c (s390_emit_prologue): Do not set the
11090 frame_related flag for call-clobbered registers.
11091
11092 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11093
11094 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11095 (construct_container): Fix handling of SSE operands.
11096 (ix86_expand_builtin): Fix handling of 64bit pointers.
11097 (mmx_maskmovq_rex): New pattern.
11098
11099 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11100
11101 * regrename.c (kill_set_value): Handle subregs properly.
11102
11103 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11104
11105 * objc/objc-act.c (handle_impent): Remove leading '*'
11106 from objc_class_name.
11107
11108 2002-02-17 Richard Henderson <rth@redhat.com>
11109
11110 * config/alpha/alpha.c (some_small_symbolic_operand,
11111 some_small_symbolic_operand_1, split_small_symbolic_operand,
11112 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11113 Handle small SYMBOL_REFs anywhere, not just inside memories.
11114 * config/alpha/alpha-protos.h: Update.
11115 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11116 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11117
11118 2002-02-17 Roland McGrath <roland@frob.com>
11119
11120 * config.gcc (powerpc-*-gnu-gnualtivec*,
11121 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11122 * config/rs6000/gnu.h: New file.
11123 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11124 Grok "gnu" in rs6000_abi_name.
11125 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11126 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11127 Grok -mcall-gnu analogous to -mcall-linux et al.
11128 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11129 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11130 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11131
11132 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11133
11134 PR c/3444:
11135 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11136 shortening.
11137
11138 2002-02-17 Philipp Thomas <pthomas@suse.de>
11139
11140 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11141 ENDFILE_SPEC before (re)defining them.
11142
11143 2002-02-17 Kazu Hirata <kazu@hxi.com>
11144
11145 * config/h8300/h8300.c: Fix formatting.
11146 * config/h8300/h8300.h: Likewise.
11147
11148 2002-02-17 Philipp Thomas <pthomas@suse.de>
11149
11150 * doc/tm.texi: Explain why empty strings should not be
11151 marked for translation.
11152
11153 2002-02-17 Philipp Thomas <pthomas@suse.de>
11154
11155 * final.c (output_operand_lossage): Changed to accept
11156 printf style arguments. Change calls where necessary.
11157 * output.h (output_operand_lossage): Change declaration
11158 accordingly. Update copyright.
11159 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11160 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11161 Update copyright date where necessary.
11162
11163 * config/i386/i386.c (print_operand): Likewise. Remove use of
11164 sprintf.
11165
11166 * config/cris/cris.c (cris_operand_lossage): Likewise.
11167 Rename parameter so that exgettext recognizes it as
11168 translatable message.
11169 (LOSE_AND_RETURN): Rename parameter to msgid.
11170
11171 2002-02-17 Kazu Hirata <kazu@hxi.com>
11172
11173 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11174 hard coded register number with an appropriate macro.
11175 (HARD_REGNO_MODE_OK): Likewise.
11176 (ARG_POINTER_REGNUM): Likewise.
11177 (STATIC_CHAIN_REGNUM): Likewise.
11178 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11179 * config/h8300/h8300.md (define_constants): Define more
11180 register numbers.
11181
11182 2002-02-17 Philipp Thomas <pthomas@suse.de>
11183
11184 * config/i386/i386.h: Don't mark empty strings for translation.
11185
11186 2002-02-16 H.J. Lu <hjl@gnu.org>
11187
11188 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11189
11190 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11191
11192 * cppinit.c (merge_include_chains): Check for brack being
11193 NULL before attempting to merge it with qtail.
11194
11195 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11196
11197 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11198 DBX_DEBUG.
11199
11200 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11201
11202 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11203
11204 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11205
11206 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11207 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11208 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11209
11210 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11211
11212 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11213 now only if !TARGET_FIX.
11214 (*movsi_nt_vms_fix): New pattern.
11215
11216 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11217
11218 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11219 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11220 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11221 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11222 (alpha_start_function, alpha_expand_epilogue): Likewise.
11223 (unicosmk_gen_dsib): Likewise.
11224
11225 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11226
11227 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11228
11229 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11230
11231 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11232 check_and_change_labels, s390_final_chunkify): Delete.
11233 (s390_split_branches, s390_chunkify_pool): New functions.
11234 (s390_function_prologue): Call them.
11235
11236 * config/s390/s390.h (S390_REL_MAX): Delete.
11237 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11238
11239 * config/s390/s390.md (cjump, icjump, jump): Fix length
11240 attribute calculation.
11241
11242
11243 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11244
11245 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11246 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11247
11248 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11249
11250 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11251 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11252 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11253
11254 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11255
11256 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11257
11258 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11259
11260 * reload.c (find_dummy_reload): Check that an output register
11261 is valid for its mode.
11262
11263 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11264
11265 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11266 to simplify it.
11267
11268 * function.c (assign_parms): Demote promoted argument passed by
11269 transparent reference.
11270
11271 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11272
11273 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11274 -Acpu() and -Amachine() to eliminate warnings.
11275
11276 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11277
11278 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11279
11280 2002-02-14 Kazu Hirata <kazu@hxi.com>
11281
11282 * config/h8300/h8300-protos.h: Update the prototype for
11283 const_costs.
11284 * config/h8300/h8300.c (const_costs): Treat SET as a little
11285 more expensive operation.
11286 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11287 reference to const_costs.
11288
11289 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11290
11291 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11292
11293 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11294
11295 PR c/5503:
11296 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11297 use arguments from newtype.
11298
11299 2002-02-13 Eric Christopher <echristo@redhat.com>
11300
11301 * config/mips/mips.c (override_options): Add check for march/mipsX
11302 on the same command line. Fix error message in cpu processing.
11303 Remove architecture and ISA checks.
11304
11305 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11306
11307 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11308
11309 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11310
11311 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11312
11313 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11314 alternatives.
11315 ("*movv8hi_internal1"): Same.
11316 ("*movv16qi_internal1"): Same.
11317 ("*movv4sf_internal1"): Same.
11318
11319 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11320 not push_reload for altivec modes.
11321
11322 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11323
11324 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11325 all RTEMS targets including removal of #includes from config/*/rtems*.h
11326 file and adding them to tm_file setting. Added xm_defines=POSIX to
11327 many targets.
11328 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11329 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11330 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11331 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11332 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11333 config/m68k/rtemself.h: Ditto.
11334 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11335 config/mips/rtems64.h: Ditto.
11336 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11337 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11338 Ditto.
11339 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11340 config/sparc/rtemself.h: Ditto.
11341 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11342 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11343 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11344 more like arm-elf.
11345 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11346 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11347 target made more similar to i386-elf.
11348 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11349 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11350 be similar to config/m68k/t-m68kelf.
11351 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11352
11353 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11354
11355 * regmove.c (kill_value): Handle subregs.
11356
11357 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11358
11359 * i386.md (mul patterns): Allow memory operand to be first;
11360 add expanders where needed; fix constraints.
11361 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11362 Allow memory operand to be the first.
11363
11364 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11365 operands.
11366
11367 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11368
11369 PR c/5681:
11370 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11371 GET_MODE (x).
11372
11373 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11374
11375 PR optimization/5547:
11376 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11377 all valid IA-32 address modes involving non-scaled %ebx and
11378 GOT/GOTOFF as displacement.
11379
11380 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11381
11382 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11383 after emitting ltorg insns.
11384
11385 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11386 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11387 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11388 *abssf2): Fix "op_type" attribute.
11389
11390 2002-02-13 Douglas B Rupp <rupp@gnat.com>
11391
11392 * mkconfig.sh: Avoid using a subshell redirect.
11393 ($output.T): Change to $(output)T.
11394 (ENABLE_NLS): Remove unneeded undef.
11395
11396 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11397 * config/alpha/x-vms (libsubdir): Define.
11398
11399 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11400 register frame procedures. Optimize retrieving context.
11401
11402 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11403 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11404 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11405
11406 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11407
11408 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11409 Make same change as for find_base_value.
11410
11411 2002-02-13 Kazu Hirata <kazu@hxi.com>
11412
11413 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11414 of QImode and SImode.
11415
11416 2002-02-13 Kazu Hirata <kazu@hxi.com>
11417
11418 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11419 length computation of movsi.
11420 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11421
11422 2002-02-13 Kazu Hirata <kazu@hxi.com>
11423
11424 * config/h8300/h8300.md (subqi3): Tighten the predicate for
11425 operands[2] to register_operand.
11426
11427 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
11428
11429 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11430
11431 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
11432
11433 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11434 for altivec_lvx* and altivec_stvx*.
11435 ("*movv4si_internal"): Add constraint for loading from GPRs.
11436 ("*movv8hi_internal1"): Same.
11437 ("*movv16qi_internal1"): Same.
11438 ("*movv4sf_internal1"): Same.
11439
11440 * config/rs6000/rs6000.c (altivec_register_operand): New.
11441
11442 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11443 altivec_register_operand.
11444
11445 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
11446
11447 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11448 handle SYMBOL_REF.
11449
11450 2002-02-13 Stan Shebs <shebs@apple.com>
11451
11452 * c-typeck.c (digest_init): Handle vectors.
11453 (really_start_incremental_init): Same.
11454 (pop_init_level): Same.
11455 (process_init_element): Same.
11456
11457 * varasm.c (output_constant): Same.
11458
11459 * expr.c (clear_storage): Same.
11460 (store_constructor): Same.
11461
11462 2002-02-12 Eric Christopher <echristo@redhat.com>
11463
11464 * explow.c (hard_function_value): Add comment explaining
11465 signed/unsigned comparison.
11466
11467 2002-02-12 Jakub Jelinek <jakub@redhat.com>
11468
11469 * jump.c (never_reached_warning): Add finish argument.
11470 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11471 real insn after end.
11472 * rtl.h (never_reached_warning): Adjust prototype.
11473 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11474 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11475 never_reached_warning.
11476
11477 2002-02-12 Graham Stott <grahams@redhat.com>
11478
11479 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11480
11481 2002-02-12 Kazu Hirata <kazu@hxi.com>
11482
11483 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11484 logical shifts on H8/300.
11485 (shift_alg_si): Improve several shifts on H8/300.
11486 (get_shift_alg): Likewise.
11487
11488 2002-02-12 Graham Stott <grahams@redhat.com>
11489
11490 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11491
11492 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11493
11494 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11495 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11496
11497 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
11498
11499 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11500 non-CONST_INT through default_assemble_integer.
11501 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11502 <case 8>: Abort for CONST_DOUBLE.
11503
11504 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11505
11506 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11507 is specified.
11508 * config/pa/pa-linux.h (LIB_SPEC): Delete.
11509 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11510
11511 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
11512
11513 * config/stormy16/stormy16.md (zero_extendqihi2): New.
11514
11515 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
11516
11517 * regrename.c (regrename_optimize): Don't accept a
11518 part-clobbered register if the replaced register is not part
11519 clobbered.
11520
11521 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
11522 take padding into account when computing the argument value.
11523
11524 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
11525
11526 * combine.c (try_combine): Apply substitutions in
11527 CALL_INSN_FUNCTION_USAGE too.
11528
11529 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
11530
11531 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11532 __builtin_altivec_abs*.
11533 (bdesc_abs): New.
11534
11535 * config/rs6000/rs6000.h (rs6000_builtins): Add
11536 ALTIVEC_BUILTIN_ABS*.
11537
11538 * config/rs6000/altivec.h: Use const char for builtins expecting
11539 literals.
11540 (vec_abs): New versions for C and C++.
11541 (vec_abss): Same.
11542
11543 2002-02-10 Kazu Hirata <kazu@hxi.com>
11544
11545 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
11546 using Pmode.
11547
11548 2002-02-10 Kazu Hirata <kazu@hxi.com>
11549
11550 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
11551 constant definition from h8300.md.
11552 (FRAME_POINTER_REGNUM): Likewise.
11553 * config/h8300/h8300.md (define_constants): Add FP_REG.
11554
11555 2002-02-10 Kazu Hirata <kazu@hxi.com>
11556
11557 * config/h8300/h8300.c (print_operand): Remove redundant code.
11558
11559 2002-02-10 Kazu Hirata <kazu@hxi.com>
11560
11561 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
11562 * config/h8300/h8300.c (byte_reg): Make it static.
11563
11564 2002-02-10 Richard Henderson <rth@redhat.com>
11565
11566 PR c/5623
11567 * c-typeck.c (incomplete_type_error): Handle flexible array members.
11568
11569 2002-02-10 Richard Henderson <rth@redhat.com>
11570
11571 PR c++/5624
11572 * tree.c (append_random_chars): Don't abort if main_input_filename
11573 does not exist.
11574
11575 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
11576
11577 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
11578
11579 2002-02-10 Kazu Hirata <kazu@hxi.com>
11580
11581 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
11582 (pushhi1): Likewise.
11583
11584 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
11585
11586 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
11587 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
11588
11589 2002-02-09 David O'Brien <obrien@FreeBSD.org>
11590
11591 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
11592 remove MASK_VIS.
11593 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
11594
11595 2002-02-09 Kazu Hirata <kazu@hxi.com>
11596
11597 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
11598 a half of an SImode register on H8/300.
11599
11600 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
11601
11602 * i386.md (movdi_2): Add missing '!'.
11603
11604 2002-02-09 Kazu Hirata <kazu@hxi.com>
11605
11606 * config/h8300/h8300.h: Fix formatting. Remove commented-out
11607 definitions.
11608
11609 2002-02-09 Kazu Hirata <kazu@hxi.com>
11610
11611 * config/h8300/h8300.md (length): Correct the distance valid
11612 for the short branch.
11613
11614 2002-02-09 Kazu Hirata <kazu@hxi.com>
11615
11616 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
11617
11618 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11619
11620 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
11621 registers in SImode.
11622 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
11623 part-clobbered.
11624
11625 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
11626 patch.
11627
11628 Contribute sh64-elf.
11629 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11630 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
11631 (sh_cannot_modify_jumps_p): New function.
11632 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11633 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
11634 (sh_ms_bitfield_layout_p): New function.
11635 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
11636 Zack Weinberg <zack@codesourcery.com>
11637 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
11638 expand_simple_binop instead of expand_binop.
11639 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
11640 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
11641 use of .quad and .uaquad.
11642 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
11643 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
11644 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11645 * config/sh/sh.md (movdi_const, movdi_const_32bit,
11646 movdi_const_16bit): Make sure all CONSTs have modes.
11647 (sym2PIC): Ditto, but by adjusting all callers.
11648 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
11649 if the prologue calls the SHmedia argument decoder or register
11650 saver.
11651 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11652 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
11653 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
11654 (sh_expand_epilogue): Don't emit USE of return target register.
11655 (prepare_move_operands): Legitimize DImode PIC addresses.
11656 (sh_media_register_for_return): Skip tr0, used to initialize the
11657 PIC register.
11658 (sh_expand_prologue): Remove explicit USE of return register.
11659 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
11660 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
11661 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
11662 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
11663 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
11664 EXTRA_CONSTRAINT_T.
11665 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
11666 (MOVI_SHORI_BASE_OPERAND_P): New.
11667 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
11668 (EXTRA_CONSTRAINT_T): Define in terms of them.
11669 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
11670 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
11671 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
11672 alternatives supporting TARGET_REGS.
11673 (UNSPEC_GOTPLT): New constant.
11674 (movdi split): Move incrementing of LABEL_NUSES...
11675 (movdi_const, movdi_const_32bit): Here. Use
11676 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
11677 (movdi_const_16bit): New.
11678 (call, call_value) [flag_pic]: Use GOTPLT.
11679 (call_pop, call_value_pop): New expands.
11680 (call_pop_compact, call_pop_rettramp): New insns.
11681 (call_value_pop_compact, call_value_pop_rettramp): New insns.
11682 (sibcall) [flag_pic]: Use GOT.
11683 (builtint_setjmp_receiver): Remove bogus, unused expand.
11684 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
11685 (*pt, *ptb, ptrel): New insns.
11686 (sym2GOT): Handle DImode GOT.
11687 (sym2GOTPLT, symGOTPLT2reg): New expands.
11688 (sym2PIC): New expand.
11689 (shcompact_return_tramp): Use GOTPLT to return trampoline.
11690 (shcompact_return_tramp_i): Use return register explicitly.
11691 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
11692 disable flag_reorder_blocks.
11693 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11694 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
11695 clobbers, for clarity.
11696 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
11697 restoring of r0 in macl as MAYBE_DEAD.
11698 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
11699 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
11700 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
11701 alter_subreg all over.
11702 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
11703 reload, instead of emitting instructions that would require
11704 reloading.
11705 (casesi_load_media): Add missing modes.
11706 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
11707 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
11708 as used if the argument decoder is called.
11709 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
11710 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
11711 Pmode, then extend it to DImode if necessary.
11712 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
11713 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
11714 constants in FPU-enabled SHmedia, let them be loaded from memory.
11715 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
11716 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
11717 Adjust whitespace in assembly output templates.
11718 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
11719 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
11720 mode of if_then_else.
11721 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
11722 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
11723 sh.h.
11724 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
11725 Joern Rennecke <amylaar@redhat.com>
11726 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
11727 (SUBTARGET_CPP_PTR_SPEC): New.
11728 (SUBTARGET_CPP_SPEC): Remove.
11729 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
11730 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
11731 Fix typo in previous checkin.
11732 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
11733 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
11734 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
11735 Alexandre Oliva <aoliva@redhat.com>
11736 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
11737 what single FP register can hold for SHmedia target.
11738 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
11739 Alexandre Oliva <aoliva@redhat.com>
11740 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
11741 Do not split into SUBREG.
11742 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
11743 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
11744 and added new functions as specified in SH5 ABI r9.
11745 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
11746 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
11747 8-byte boundary.
11748 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
11749 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
11750 gen_consttable_4 and gen_consttable_8. Emit multiple labels
11751 and consttable_window_ends.
11752 2001-06-03 Graham Stott <grahams@redhat,com>
11753 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
11754 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
11755 * config/sh/sh.c (print_operand): Handle floating-point pair,
11756 vector and matrix registers.
11757 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
11758 vector modes into account.
11759 * config/sh/sh.md (movv2sf): Split move between registers into
11760 movdf.
11761 (movv4sf, movv16sf): Introduce insns that get split only after
11762 reload.
11763 * config/sh/shmedia.h: Fix Copyright dates.
11764 * config/sh/ushmedia.h: Likewise. Move loop counter
11765 declarations into conditionals that uses them.
11766 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
11767 loop boundary.
11768 * config/sh/sshmedia.h: Fix Copyright dates.
11769 (sh_media_PUTCFG): Fix constraints.
11770 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
11771 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
11772 ptrmemfunc_vbit_in_delta for SH5.
11773 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
11774 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
11775 * invoke.texi: Likewise.
11776 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
11777 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
11778 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
11779 GCC_pop_shmedia_regs_nofpu): New global symbols.
11780 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
11781 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
11782 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
11783 compact function with nonlocal labels.
11784 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
11785 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
11786 (initial_elimination_offset): Account for their stack space.
11787 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
11788 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
11789 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
11790 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
11791 least one of the operands to be a register.
11792 (movv2sf): Likewise. Renamed to movv2sf_i.
11793 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
11794 prepare_move_operands() before emitting SHmedia insns.
11795 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
11796 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
11797 Don't save nor initialize r12. Don't mis-align the stack.
11798 Pad the code with a nop.
11799 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
11800 stack.
11801 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
11802 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
11803 [__SHMEDIA__]: Implement.
11804 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
11805 * config/sh/sh.md: Set latency of `pt' closer to reality.
11806 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
11807 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
11808 Set move, load and store type attributes.
11809 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
11810 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
11811 profiling.
11812 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
11813 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
11814 * config/sh/sh.c (sh_media_register_for_return): New function.
11815 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
11816 branch-target register.
11817 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
11818 * config/sh/sh.md (return_media_i): Use any call-clobbered
11819 branch-target register.
11820 (return_media): If r18 wasn't copied in the prologue, copy it
11821 here.
11822 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
11823 Clear class FP0_REGS.
11824 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
11825 from elf.h.
11826 2001-03-08 DJ Delorie <dj@redhat.com>
11827 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
11828 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
11829 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
11830 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
11831 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
11832 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
11833 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
11834 return value correctly for call_cookie.
11835 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
11836 * config/sh/crt1.asm (start): Modified so as to call
11837 ___setup_argv_and_call_main.
11838 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
11839 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11840 SHmedia mode.
11841 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
11842 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11843 (STRIP_NAME_ENCODING): Use it.
11844 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
11845 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
11846 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11847 prepare_scc_operands().
11848 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11849 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11850 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
11851 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11852 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
11853 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11854 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11855 used in shcompact_incoming_args.
11856 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11857 change.
11858 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11859 mode.
11860 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11861 Adjust accordingly.
11862 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11863 Simplify. Adjust. Add sanity check.
11864 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11865 FPU_SINGLE_BIT.
11866 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11867 TARGET_SHCOMPACT.
11868 (udivsi3, divsi3): Use them.
11869 (force_mode_for_call): New insn.
11870 (call, call_value, sibcall_value): Emit it before SHcompact
11871 calls.
11872 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
11873 * config/sh/sh.md (call, call_value, sibcall): Make sure the
11874 call cookie is non-NULL before taking its value.
11875 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
11876 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11877 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
11878 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11879 block.
11880 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11881 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11882 temporary for stack adjusts. Use MACL and MACH to pass
11883 arguments to shcompact_incoming_args.
11884 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
11885 clobber r1.
11886 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11887 (nested_trampoline): Load static chain address into r1.
11888 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11889 2001-01-07 Alexandre Oliva <aoliva@redhat.com
11890 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11891 fp_arith_reg_operand().
11892 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
11893 * config/sh/sh.md (casesi): Sign-extend the first two operands,
11894 and use signed compares for them.
11895 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11896 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
11897 ones properly aligned.
11898 (find_barrier): Account for extra alignment needed for 8-byte wide
11899 constants.
11900 (machine_dependent_reorg): Require a label for the second 4-byte
11901 constant after an 8-byte one.
11902 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11903 change.
11904 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11905 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11906 last_float when switching float modes.
11907 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11908 auto-increment for general-purpose registers.
11909 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11910 result.
11911 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11912 for stack adjust.
11913 * config/sh/sh.c (sh_builtin_saveregs): Support using all
11914 registers for varargs.
11915 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
11916 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11917 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11918 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11919 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11920 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
11921 call_cookie accordingly.
11922 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11923 (SHCOMPACT_BYREF): Likewise.
11924 (SHCOMPACT_FORCE_ON_STACK): New macro.
11925 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11926 (sh_builtin_saveregs): Likewise.
11927 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11928 shcompact_incoming_args): Use new shift values. Support
11929 sequences of consecutive and non-consecutive pushes/pops.
11930 * config/sh/sh.md (return): Don't explicitly use PR_REG.
11931 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
11932 * config/sh/sh.h (TEXT_SECTION): Define.
11933 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11934 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11935 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11936 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11937 return values on FPU-enabled SHmedia.
11938 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11939 FPU-enabled SHmedia.
11940 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11941 value is returned in a non-FP reg and is not returned by
11942 reference.
11943 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11944 jump_ind.
11945 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
11946 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11947 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11948 quad-aligned to be passed by callee-copy reference.
11949 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
11950 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11951 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11952 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
11953 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11954 copying low-numbered FP regs to r7 and r8.
11955 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11956 FP regs to general-purpose regs only if the copy was passed on the
11957 stack.
11958 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11959 copying FP reg to r9.
11960 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11961 copy FP regs to general-purpose regs only in outgoing calls.
11962 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
11963 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
11964 HOST_WIDE_INT.
11965 * config/sh/sh.h (struct sh_args): Document all fields.
11966 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11967 passed partially on the stack should not consider making
11968 sibcalls.
11969 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11970 stack_regs only for incoming calls. When passing FP args,
11971 make sure there are FP regs available before modifying
11972 call_cookie.
11973 (SHCOMPACT_BYREF): Pass double args in general-purpose
11974 registers by reference.
11975 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
11976 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11977 attempt to generate sibcalls if the caller got any arguments
11978 by reference.
11979 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11980 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11981 to 8-byte boundaries.
11982 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11983 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11984 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11985 stored in the stack.
11986 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11987 for the offsets to have the ISA bit set.
11988 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
11989 invocation. Use beq instead of bgt to mark end of sequence of
11990 loads.
11991 (shcompact_incoming_args): Fix store of r2. Use beq instead of
11992 bgt to mark end of sequence of stores.
11993 * config/sh/sh.c (arith_operand): Don't check whether
11994 CONST_OK_FOR_J for now.
11995 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11996 instead of long for conversion.
11997 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
11998 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11999 before passing it to fprintf.
12000 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12001 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12002 Call set_fpscr before reading/writing SR.
12003 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12004 Call set_fpscr.
12005 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12006 SHmedia code.
12007 (FMOVD_WORKS): Define on SH5 with FPU.
12008 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12009 setting.
12010 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12011 _fpscr_values.
12012 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12013 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12014 address.
12015 (ia_main_table): Ditto.
12016 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12017 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12018 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12019 the definitions from sh.h.
12020 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12021 TARGET_SH5.
12022 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12023 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12024 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12025 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12026 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12027 Increment LABEL_NUSES.
12028
12029 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12030 TARGET_SH5.
12031 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12032 defined.
12033 * config/sh/elf.h (SIZE_TYPE): Likewise.
12034 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12035 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12036 shcompact_incoming_args): Load switch table addresses using
12037 datalabel.
12038 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12039 (NO_BUILTIN_SIZE_TYPE): Define.
12040 (SIZE_TYPE): Don't define.
12041 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12042 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12043 definition of __SH5__=32 for -m5-compact-nofpu.
12044 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12045 ADDR_DIFF_VEC.
12046 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12047 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12048 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12049 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12050 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12051 (INSN_LENGTH_ALIGNMENT): Likewise.
12052 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12053 * config/sh/sh.md (call, call_value, sibcall): Simplify
12054 copying of non-branch-target register.
12055 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12056 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12057 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12058 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12059 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12060 floating-point values as structs.
12061 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12062 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12063 general-purpose register.
12064 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12065 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12066 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12067 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12068 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12069 (ENCODE_SECTION_INFO): Enclose variables and constants in
12070 DATALABEL unspecs.
12071 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12072 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12073 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12074 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12075 only for LABEL_REFs. For SYMBOL_REFs, prepend
12076 SH_DATALABEL_ENCODING to the symbol name.
12077 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12078 convert_mode().
12079 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12080 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12081 UNSPEC_DATALABEL.
12082 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12083 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12084 (DATALABEL_REF_P): Don't require CONST.
12085 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12086 REL label.
12087 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12088 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12089 right.
12090 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12091 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12092 Use shallow_copy_rtx and PUT_MODE to change the mode of
12093 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12094 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12095 on SHmedia using GENERAL_REGs.
12096 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12097 bltu_media_i): Fix reversion of conditions.
12098 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12099 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12100 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12101 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12102 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12103 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12104 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12105 (GCC_nested_trampoline): Likewise.
12106 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12107 * config/sh/sh.c (gen_datalabel_ref): Define.
12108 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12109 (INITIALIZE_TRAMPOLINE): Likewise.
12110 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12111 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12112 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12113 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12114 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12115 (ic_invalidate): Adjust for SH5.
12116 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12117 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12118 _nested_trampoline.
12119 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12120 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12121 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12122 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12123 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12124 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12125 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12126 * config/sh/sh.c (target_reg_operand): Match only target-branch
12127 registers and pseudos that aren't virtual registers.
12128 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12129 Copy operands that don't match target_reg_operand to pseudos.
12130 (call_media, call_value_media, sibcall_media): Use
12131 target_reg_operand instead of target_operand.
12132 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12133 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12134 * config/sh/sh.c (target_reg_operand): Match hardware registers
12135 other than branch-target registers.
12136 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12137 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12138 (fpscr_values) [SH5 == 32]: Define.
12139 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12140 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12141 Handle function addresses coming in SUBREGs.
12142 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12143 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12144 shcompact_return_trampoline): Use datalabel where appropriate.
12145 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12146 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12147 general-purpose register to copy one branch-target register to
12148 another.
12149 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12150 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12151 SYMBOL_REFs with VOIDmode.
12152 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12153 bltu_media_i): New insns.
12154 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12155 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12156 (INIT_CUMULATIVE_ARGS): Likewise.
12157 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12158 * machmode.def (V16SFmode): New mode.
12159 * c-common.c (type_for_mode): Support V2SF and V16SF.
12160 * tree.c (build_common_tree_nodes_2): Likewise.
12161 * tree.h (tree_index): Likewise.
12162 * calls.c (emit_call_1): Take args_so_far. Adjust all
12163 callers. Introduce CALL_POPS_ARGS.
12164 * tm.texi (CALL_POPS_ARGS): Document.
12165 * config/sh/crt1.asm: Implement in SHmedia mode.
12166 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12167 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12168 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12169 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12170 Implement divsi and udivsi in SHmedia mode. Introduce
12171 SHcompact trampolines.
12172 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12173 only in SHmedia64.
12174 (regno_reg_class): Rewrite.
12175 (fp_reg_names): Remove.
12176 (sh_register_names, sh_additional_register_names): New.
12177 (print_operand): Added `u'. Support SUBREGs in addresses.
12178 Add parentheses around shifted CONSTs.
12179 (output_file_start): Output .mode and .abi directives.
12180 (shiftcosts, addsubcosts, multcosts): Adjust.
12181 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12182 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12183 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12184 bytes, not registers. Take into account the need for the
12185 SHcompact incoming args trampoline. Adjust all callers.
12186 (sh_expand_prologue): Take stack_regs into account. Call
12187 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12188 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12189 stack aligned as per SH5 ABI.
12190 (sh_builtin_saveregs): Support SH5 ABI.
12191 (sh_build_va_list, sh_va_start): Likewise.
12192 (initial_elimination_offset): Take alignment into account.
12193 Compute location of PR according to the SH5 stack frame.
12194 (arith_reg_operand): Reject branch-target registers.
12195 (shmedia_6bit_operand): New.
12196 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12197 (target_reg_operand): Match DImode only. Accept SUBREGs.
12198 (target_operand): New.
12199 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12200 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12201 SIBCALL_REGS for SHmedia.
12202 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12203 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12204 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12205 (TARGET_SWITCHES): New SH5 flags.
12206 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12207 VALID_REGISTER_P to disable unsupported registers.
12208 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12209 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12210 (FUNCTION_ARG_PADDING): Define.
12211 (FASTEST_ALIGNMENT): Adjust.
12212 (SH_REGISTER_NAMES_INITIALIZER): New.
12213 (sh_register_names): Declare.
12214 (DEBUG_REGISTER_NAMES): Define.
12215 (REGISTER_NAMES): Define based on sh_register_names.
12216 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12217 (sh_additional_register_names): Declare.
12218 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12219 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12220 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12221 (REGISTER_NATURAL_MODE): Define.
12222 (FIRST_PSEUDO_REGISTER): Adjust.
12223 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12224 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12225 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12226 (VECTOR_MODE_SUPPORTED_P): Define.
12227 (REG_CLASS_CONTENTS): Adjust.
12228 (SMALL_REGISTER_CLASSES): Adjust.
12229 (REG_ALLOC_ORDER): Adjust.
12230 (INDEX_REG_CLASS): Adjust.
12231 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12232 (CONST_OK_FOR_LETTER_P): Adjust.
12233 (PREFERRED_RELOAD_CLASS): Adjust.
12234 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12235 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12236 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12237 (FIRST_FP_PARM_REG): Adjust.
12238 (CALL_POPS_ARGS): Define.
12239 (FUNCTION_ARG_REGNO_P): Adjust.
12240 (struct sh_args): New fields.
12241 (GET_SH_ARG_CLASS): Adjust.
12242 (INIT_CUMULATIVE_ARGS): Adjust.
12243 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12244 (FUNCTION_ARG_ADVANCE): Adjust.
12245 (FUNCTION_ARG): Adjust.
12246 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12247 (FUNCTION_ARG_CALLEE_COPIES): Define.
12248 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12249 (STRICT_ARGUMENT_NAMING): Define.
12250 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12251 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12252 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12253 (SETUP_INCOMING_VARARGS): Adjust.
12254 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12255 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12256 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12257 (SUBREG_OK_FOR_INDEX_P): Adjust.
12258 (EXTRA_CONSTRAINT_S): Update.
12259 (EXTRA_CONSTRAINT_T): New.
12260 (EXTRA_CONSTRAINT): Adjust.
12261 (GO_IF_LEGITIMATE_INDEX): Adjust.
12262 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12263 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12264 (MOVE_MAX): Adjust.
12265 (MAX_MOVE_MAX): Define.
12266 (Pmode): Adjust.
12267 (CONST_COSTS): Adjust.
12268 (REGISTER_MOVE_COST): Adjust.
12269 (BRANCH_COST): Adjust.
12270 (TEXT_SECTION_ASM_OP): Adjust.
12271 (DBX_REGISTER_NUMBER): Adjust.
12272 (ASM_OUTPUT_DOUBLE_INT): New.
12273 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12274 (PREDICATE_CODES): Adjust.
12275 (PROMOTE_MODE): Adjust.
12276 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12277 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12278 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12279 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12280 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12281 (TR0_REG, TR1_REG, TR2_REG): New.
12282 (XD0_REG): Renumber.
12283 (UNSPEC_COMPACT_ARGS): New.
12284 (type): Added pt and ptabs.
12285 (length): Default to 4 on SHmedia. Default pt length to 12
12286 and 20 on SHmedia32 and SHmedia64, respectively.
12287 (pt): New function unit.
12288 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12289 Add whitespace between operands of SHmedia instructions.
12290 (movdicc): Fix.
12291 (adddi3_media, addsi3_media): Adjust constraints.
12292 (subsi3) [SHmedia]: Force operand 1 into a register.
12293 (udivsi3_i1_media, udivsi3_i4_media): New.
12294 (udivsi3): Support SHmedia.
12295 (divsi3_i1_media, divsi3_i4_media): New.
12296 (divsi3): Support SHmedia.
12297 (anddi3, iordi3, xordi3): Adjust constraints.
12298 (zero_extendhidi2, zero_extendqidi2): New.
12299 (extendsidi2, extendhidi2, extendqidi2): New.
12300 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12301 (pop_e, pop_fpul, pop_4): Likewise.
12302 (movsi_media): Support FP and BT registers.
12303 (movsi_media_nofpu): New. Adjust splits to DImode.
12304 (lduw, ldub): Renamed to zero_extend* above.
12305 (movqi_media): Fix typo.
12306 (movdi_media): Support FP and BT registers.
12307 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12308 (movdi_const_32bit): New.
12309 (shori_media): Require immediate operand. Use `u' for output.
12310 (movdf_media, movsf_media): Simplified.
12311 (movdf_media_nofpu, movsf_media_nofpu): New.
12312 (movdf, movsf): Adjust
12313 (movv2sf, movv2sf, movv16sf): New.
12314 (beq_media, beq_media_i): Adjust constraints. Don't use
12315 scratch BT register.
12316 (bne_media, bne_media_i): Likewise.
12317 (bgt_media, bgt_media_i): Likewise.
12318 (bge_media, bge_media_i): Likewise.
12319 (bgtu_media, bgtu_media_i): Likewise.
12320 (bgeu_media, bgeu_media_i): Likewise.
12321 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12322 bunordered): Emit jump insn. Force operands to registers when
12323 needed.
12324 (jump_media, jump): Simplify.
12325 (call_compact, call_compact_rettramp): New.
12326 (call_value_compact, call_value_compact_rettramp): New.
12327 (call_media, call_value_media): Simplify.
12328 (sibcall_compact, sibcall_media): New.
12329 (call, call_value): Adjust for SHmedia and SHcompact.
12330 (sibcall, sibcall_value, untyped_call): Likewise.
12331 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12332 (indirect_jump): Adjust for SHmedia.
12333 (casesi_jump_media): New.
12334 (nop): Re-enable for SHmedia.
12335 (call_site): Restrict to SH1.
12336 (casesi): Adjust for SHmedia.
12337 (casesi_shift_media, casesi_load_media): New.
12338 (return): Explicitly use PR register. Call return trampoline
12339 on SHcompact.
12340 (return_i): Explicitly use PR register.
12341 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12342 (return_media): Adjust.
12343 (shcompact_incoming_args): New.
12344 (epilogue): Adjust.
12345 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12346 (movstrsi): Disable on SH5.
12347 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12348 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12349 (subsf3, subsf3_media): Likewise.
12350 (mulsf3, mulsf3_media, mac_media): Likewise.
12351 (divsf3, divsf3_media): Likewise.
12352 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12353 (floatsisf2, fux_truncsfsi2): Likewise.
12354 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12355 constraints.
12356 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12357 (cmpunsf_media, cmpsf): Likewise.
12358 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12359 (abssf2, abssf2_media): Likewise.
12360 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12361 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12362 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12363 (floatsidf2, fix_truncdfsi2): Likewise.
12364 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12365 constraints.
12366 (cmpeqdf_media, cmpgtdf_media): Likewise.
12367 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12368 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12369 (absdf2, absdf2_media): Likewise.
12370 (extendsfdf2, extendsfdf2_media): Likewise.
12371 (truncsfdf2, truncsfdf2_media): Likewise.
12372 * config/sh/sh64.h: New file.
12373 * config/sh/t-sh64: New file.
12374 * config/sh/shmedia.h: New file.
12375 * config/sh/ushmedia.h: New file.
12376 * config/sh/sshmedia.h: New file.
12377 * configure.in: Added sh64-*-elf.
12378 * configure: Rebuilt.
12379 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
12380 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12381 (reg_class_from_letter): Use `b' for TARGET_REGS.
12382 (print_operand): Support `%M', `%m', `AND' and
12383 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
12384 (andcosts): Adjust for SHmedia.
12385 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12386 Likewise.
12387 (target_reg_operand): New function.
12388 * config/sh/sh-protos.h (target_reg_operand): Declare.
12389 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12390 FP registers on SH5.
12391 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12392 on SH4.
12393 (TARGET_REGISTER_P): New macro.
12394 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12395 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12396 (EXTRA_CONSTRAINT_S): New macro.
12397 (EXTRA_CONSTRAINT): Adjust.
12398 (FLOAT_TYPE_SIZE): Define to 32.
12399 (Pmode): DImode on SHmedia.
12400 (CONST_COSTS): Adjust for SHmedia literals.
12401 (PREDICATE_CODES): Added target_reg_operand.
12402 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12403 * config/sh/sh.md: Remove all attrs from SHmedia insns.
12404 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12405 (cmpdi): Accept SHmedia.
12406 (movdicc_false, movdicc_true): New insns.
12407 (movdicc): New expand.
12408 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12409 no_new_pseudos.
12410 (addsi3_media): Match `S' constraint.
12411 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12412 (negdi2): Expand for SHmedia.
12413 (one_cmpldi2): New expand.
12414 (zero_extendsidi2): Change from expand to insn.
12415 (extendsidi2): Add constraints.
12416 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
12417 LD/ST address. Fix SI immediate loading split.
12418 (movhi_media, movqi_media, lduw, ldub): New insns.
12419 (movhi, movqi): Accept SHmedia.
12420 (shori_media, movdi_media): Relax input constraints. Split
12421 symbolic constants.
12422 (movdf_media, movsf_media): New insn. New split to movdi.
12423 (movdf, movsf): Match on SHmedia.
12424 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12425 bgeu_media): New insns and splits. New insns with `_i' suffix.
12426 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12427 (bunordered): New expand.
12428 (jump_compact): Renamed from `jump'.
12429 (jump_media): New insn.
12430 (jump): New expand.
12431 (call_media, call_value_media): New insns.
12432 (call, call_value): Adjust.
12433 (indirect_jump_compact): Renamed from `indirect_jump'.
12434 (indirect_jump_media): New insn.
12435 (indirect_jump): New expand.
12436 (untyped_call, return): Accept SHmedia.
12437 (return_media): New insn.
12438 (prologue, epilogue, blockage): Accept SHmedia.
12439 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12440 (sunordered): New expand.
12441 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12442 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12443 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12444 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12445 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12446 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12447 abssf2_media): New insns.
12448 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12449 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12450 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12451 floatdidf2, floatsidf2_media, fix_truncdfdi2,
12452 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12453 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12454 absdf2_media): New insns.
12455 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12456 (extendsfdf2_media, truncdfsf2_media): New insns.
12457 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
12458 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12459 * config/sh/sh.h (CONST_OK_FOR_J): Document.
12460 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12461 * config/sh/sh.md (adddi3): New expand.
12462 (adddi3_media, adddi3z_media): New insns.
12463 (adddi3_compact): Renamed from adddi3.
12464 (addsi3_media): Use add.l r63 to add constant zero.
12465 (subdi3): New expand.
12466 (subdi3_media): New insn.
12467 (subdi3_compact): Renamed from subdi3.
12468 (mulsidi3): New expand.
12469 (mulsidi3_media): New insn.
12470 (mulsidi3_compact): Renamed from mulsidi3.
12471 (umulsidi3): New expand.
12472 (umulsidi3_media): New insn.
12473 (umulsidi3_compact): Renamed from umulsidi3.
12474 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12475 (ashlsi3, ashrsi3, lshrsi3): Use them.
12476 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12477 (ashldi3, ashrdi3, lshrdi3): Use them.
12478 (zero_extendsidi2): New expand.
12479 (extendsidi2): New insn.
12480 (movsi_media): New insn. Split to movdi to load constants.
12481 (movsi): Enable for shmedia.
12482 (movdi_media): New insn. Use shori_media to load wide constants.
12483 (short_media): New insn.
12484 (movdi): Enable for shmedia.
12485 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
12486 * config/sh/sh.h (CPP_SPEC): Added `m5'.
12487 (SUBTARGET_CPP_SPEC): Added `!m5'.
12488 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12489 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
12490 to all other SH variants.
12491 (TARGET_DEFAULT): Set to SH1_BIT.
12492 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12493 (BITS_PER_WORD): Raise to 64 on shmedia.
12494 (MAX_BITS_PER_WORD): Change to 64.
12495 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12496 (INT_TYPE_SIZE): Keep as 32.
12497 (UNITS_PER_WORD): Raise to 8 on shmedia.
12498 (MIN_UNITS_PER_WORD): Keep as 4.
12499 (POINTER_SIZE): Raise to 64 on shmedia.
12500 (CONST_OK_FOR_J): New macro.
12501 (CONST_OK_FOR_LETTER_P): Use it.
12502 (processor_type): Add PROCESSOR_SH5.
12503 * config/sh/sh.md: Conditionalize all expands, insns and
12504 splits to TARGET_SH1.
12505 (cpu): Added sh5.
12506 (addsi3_compact): Renamed from...
12507 (addsi3): Now an expand.
12508 (addsi3_media, subsi3_media): New insns.
12509 (subsi3): Don't negate constants with SHmedia.
12510
12511 * hooks.c: New file.
12512 * hooks.h: New file.
12513 * Makefile.in (HOOKS_H): New.
12514 (TARGET_DEF_H): Added $(HOOKS_H).
12515 (OBJS): Added hooks.o.
12516 (cfgcleanup.o, bb-reorder.o): Added target.h.
12517 (hooks.o): Added dependencies.
12518 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
12519 (TARGET_INITIALIZER): this.
12520 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
12521 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
12522 * bb-reorder.c: Include target.h.
12523 (reorder_basic_blocks): Skip if cannot modify jumps.
12524 * cfgcleanup.c: Include target.h.
12525 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
12526
12527 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12528
12529 * config/mips/mips.md (casesi_internal, casesi_internal_di):
12530 Protect jump delay slot instructions with .set noreorder and
12531 .set nomacro.
12532
12533 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12534
12535 * config/mips/mips.md (casesi_internal_di): Calculate
12536 the index into the target offset table correctly.
12537
12538 2002-02-08 Richard Henderson <rth@redhat.com>
12539
12540 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
12541 * final.c (output_addr_const): Accept and discard SUBREG.
12542 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
12543 mark them unknown instead.
12544 (simplify_subtraction): Handle RTX_UNKNOWN.
12545 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
12546
12547 2002-02-08 David Edelsohn <edelsohn@gnu.org>
12548
12549 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
12550
12551 2002-02-08 Richard Henderson <rth@redhat.com>
12552
12553 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
12554
12555 2002-02-08 Andreas Jaeger <aj@suse.de>
12556
12557 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
12558 * config/i386/t-linux64: New file.
12559
12560 2002-02-08 Jakub Jelinek <jakub@redhat.com>
12561
12562 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
12563 * c-parse.in (compstmt): Clear last_expr_type.
12564
12565 2002-02-07 Richard Henderson <rth@redhat.com>
12566
12567 * loop.c (strength_reduce): Sink final_value when not
12568 eliminating a biv.
12569
12570 2002-02-07 David O'Brien <obrien@FreeBSD.org>
12571
12572 * config/sparc/freebsd.h: Fix mismatched spec {.
12573
12574 2002-02-07 Richard Henderson <rth@redhat.com>
12575
12576 * cfgrtl.c: Include recog.h and insn-config.h.
12577 (keep_with_call_p): Fix general_operand invocation.
12578 * Makefile.in (cfgrtl.o): Update dependencies.
12579
12580 2002-02-07 Kazu Hirata <kazu@hxi.com>
12581
12582 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
12583 comment. Accept HImode only if TARGET_H8300.
12584
12585 2002-02-07 Eric Christopher <echristo@redhat.com>
12586
12587 * config/mips/crtn.asm: Cleanup #ifdefs.
12588
12589 2002-02-07 Eric Christopher <echristo@redhat.com>
12590
12591 * config/mips/crti.asm: Add changes for mips16. mips16 uses
12592 register 7 as RA instead of $31.
12593 * config/mips/crtn.asm: Ditto.
12594 * config/mips/mips.c (mips_move_2words): Add case for
12595 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
12596 (compute_frame_size): Fix typo.
12597 (save_restore_insns): Ditto. Make documentation about using
12598 register $7 as return register more precise.
12599 (mips_expand_epilogue): Fix comment. Add code to work around not
12600 being able to add to the stack pointer directly.
12601 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
12602 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
12603 epilogue.
12604
12605 2002-02-07 Tom Rix <trix@redhat.com>
12606
12607 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
12608 immediates in ldu and stdu DS opcode field.
12609 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
12610 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
12611 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
12612
12613 2002-02-07 Jeff Sturm <jsturm@one-point.com>
12614
12615 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
12616 offset for stack bias.
12617
12618 2002-02-07 H.J. Lu <hjl@gnu.org>
12619
12620 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
12621
12622 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
12623
12624 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
12625
12626 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
12627
12628 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
12629 * i386.c (x86_order_regs_for_local_alloc): New global function.
12630 * i386.h (REG_ALLOC_ORDER): CLeanup.
12631 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
12632
12633 2002-02-07 Richard Henderson <rth@redhat.com>
12634
12635 PR optimization/2463
12636 * alias.c (find_base_value): Recall base values for fixed hard regs.
12637 * loop.c (loop_regs_update): Don't use single_set on non-insns.
12638
12639 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
12640
12641 * config/mips/mips.md (define_delay) [mips16]: Adjust required
12642 length.
12643
12644 2002-02-06 Richard Henderson <rth@redhat.com>
12645
12646 PR c/5609
12647 * stmt.c (resolve_operand_name_1): Take more care with mixed
12648 named and unnamed operands.
12649
12650 2002-02-06 Janis Johnson <janis187@us.ibm.com>
12651 Jan Hubicka <jh@suse.cz>
12652
12653 * loop.c (remove_constant_addition): Avoid clobbering a shared
12654 CONST expression.
12655
12656 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12657
12658 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
12659 * config/s390/t-linux64: New file.
12660 * config/s390/libgcc-glibc.ver: New file.
12661
12662 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12663
12664 * config/s390/linux64.h: Delete file.
12665 * config/s390/s390x.h: New file.
12666 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
12667 as target header file.
12668 * config/s390/linux.h (TARGET_VERSION): Define depending on
12669 DEFAULT_TARGET_64BIT.
12670 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
12671 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
12672 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
12673 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
12674 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
12675 (EXTRA_SPEC): New define.
12676 * config/s390/s390.h (TARGET_VERSION): Define depending on
12677 DEFAULT_TARGET_64BIT.
12678 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
12679
12680 2002-02-06 Jason Merrill <jason@redhat.com>
12681
12682 * c-decl.c (finish_function): Warn about a non-void function with
12683 no return statement and no abnormal exit.
12684 (current_function_returns_abnormally): New variable.
12685 (start_function): Clear it.
12686 (struct c_language_function): Add returns_abnormally.
12687 (push_c_function_context): Save it.
12688 (pop_c_function_context): Restore it.
12689 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
12690 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
12691 an explicit return type.
12692 * c-tree.h: Declare current_function_returns_abnormally.
12693 (C_FUNCTION_IMPLICIT_INT): New macro.
12694 * c-typeck.c (build_function_call): Set it.
12695 (c_expand_return): Set current_function_returns_value even if the
12696 value is erroneous.
12697
12698 2002-02-06 Jakub Jelinek <jakub@redhat.com>
12699
12700 PR c/5420:
12701 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
12702 unsafe for reevaluation.
12703
12704 2002-02-06 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR c/5482:
12707 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
12708 EXPR_STMT, but COMPOUND_STMT, recurse into it.
12709
12710 2002-02-06 Richard Henderson <rth@redhat.com>
12711
12712 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
12713 be a general_operand. Dest for function value must be a pseudo.
12714
12715 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12716
12717 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
12718 as SYMBOL_REFs from the constant pool.
12719
12720 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
12721
12722 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
12723 passed by invisible reference.
12724
12725 2002-02-05 Richard Henderson <rth@redhat.com>
12726
12727 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
12728
12729 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
12730
12731 Implement using "base addresses" in insn operands as default.
12732 * config/mmix/mmix.c (mmix_conditional_register_usage): if
12733 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
12734 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
12735 used to read the rtx value.
12736 (mmix_target_asm_function_epilogue): Fix spacing.
12737 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
12738 (mmix_legitimate_address): Ditto.
12739 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
12740 should be loaded with a GETA insn. Don't allocate needless extra
12741 char for nul termination and fix misleading comment.
12742 (mmix_print_operand_address): Handle constants if
12743 TARGET_BASE_ADDRESSES.
12744 (mmix_output_register_setting): Use base addressing if
12745 TARGET_BASE_ADDRESSES and the number of insns is 3.
12746 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
12747 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
12748 to use R as constraint, add LDA to match s.
12749 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
12750 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
12751 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
12752 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
12753 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
12754 order with other fixed registers.
12755 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
12756 other parameter/call-clobbered registers.
12757 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
12758 -mbase-addresses, -mno-base-addresses.
12759 (MMIX Options): Ditto.
12760
12761 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12762
12763 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
12764
12765 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
12766
12767 * config/rs6000/altivec.h: Change elem to _S_elem.
12768
12769 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12770
12771 * config/netbsd.h (WCHAR_TYPE): Define.
12772 (WCHAR_TYPE_SIZE): Ditto.
12773 (WINT_TYPE): Ditto.
12774 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
12775 (WCHAR_UNSIGNED): Ditto.
12776 (WCHAR_TYPE_SIZE): Ditto.
12777 (WINT_TYPE): Ditto.
12778 * config/arm/netbsd.h: Likewise.
12779 * config/i386/netbsd-elf.h: Likewise.
12780 * config/i386/netbsd.h: Likewise.
12781 * config/m68k/netbsd-elf.h: Likewise.
12782 * config/m68k/netbsd.h: Likewise.
12783 * config/ns32k/netbsd.h: Likewise.
12784 * config/sparc/netbsd.h: Likewise.
12785 * config/vax/netbsd.: Likewise.
12786
12787 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12788
12789 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
12790 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
12791 (TARGET_INITIALIZER): this.
12792 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
12793 (BITFIELD_NBYTES_LIMITED): Markup fix.
12794 * tree.h (default_ms_bitfield_layout_p): Declare.
12795 (record_layout_info): Added prev_field.
12796 * tree.c (default_ms_bitfield_layout_p): New fn.
12797 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
12798 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
12799 * stor-layout.c: Include target.h.
12800 (start_record_layout): Initialize prev_field.
12801 (place_field): Handle MS bit-field layout, and disregard
12802 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
12803 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
12804 * Makefile.in (stor-layout.o): Adjust dependencies.
12805
12806 2002-02-05 Jason Merrill <jason@redhat.com>
12807
12808 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
12809
12810 2002-02-05 Andreas Jaeger <aj@suse.de>
12811
12812 * crtstuff.c: Fix comments.
12813
12814 2002-02-05 Richard Henderson <rth@redhat.com>
12815
12816 PR fortran/3393
12817 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
12818 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12819
12820 PR fortran/3392
12821 * config/mips/mips.c (function_arg): Handle TImode.
12822 (function_arg_advance): Likewise.
12823
12824 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12825
12826 * config/rs6000/altivec.h (vec_step_help): Rename to
12827 __vec_step_help.
12828
12829 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12830
12831 * config/rs6000/altivec.h: Fix typos.
12832
12833 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12834
12835 * config/arm/netbsd.h: Correct a comment.
12836
12837 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12838
12839 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12840 building void typed builtins.
12841
12842 * config/rs6000/altivec.h (vec_ld*): Fix typos.
12843 (vec_step): Implement for C++.
12844
12845 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12846
12847 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12848
12849 2002-02-04 Richard Henderson <rth@redhat.com>
12850
12851 * combine.c (nonzero_bits): Re-introduce special case for
12852 sp/fp/ap wrt REGNO_POINTER_ALIGN.
12853
12854 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12855
12856 * doc/extend.texi: Warn about unsupported usage of altivec
12857 builtins.
12858
12859 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12860 (altivec_predicate_*): New.
12861
12862 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12863 Add C++ version of vec_*() functions.
12864
12865 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12866 (bdesc_2arg): Remove altivec predicates.
12867 (altivec_expand_builtin): Handle predicates.
12868 (altivec_init_builtins): Handle predicates.
12869 (altivec_expand_predicate_builtin): New.
12870
12871 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12872
12873 * pa.c (DO_FRAME_NOTES): Move forward.
12874 (store_reg): Revise handling of frame notes.
12875 (load_reg): Likewise.
12876 (set_reg_plus_d): Likewise.
12877 (hppa_expand_prologue): Likewise.
12878 (hppa_expand_epilogue): Likewise.
12879
12880 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12881
12882 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12883
12884 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12885
12886 PR c/4475, c++/3780:
12887 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12888 * c-common.h (SWITCH_TYPE): Define.
12889 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12890 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12891 Rename spareness variable to sparseness.
12892 (expand_end_case_type): Renamed from expand_end_case, use orig_type
12893 if non-NULL instead of TREE_TYPE (orig_index).
12894 * tree.h (expand_end_case_type): Renamed from expand_end_case.
12895 (expand_end_case): Define using expand_end_case_type.
12896 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12897 to expand_end_case_type.
12898 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12899
12900 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12901
12902 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12903 (BIGGEST_ALIGNMENT): Change to 128.
12904
12905 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12906
12907 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12908
12909 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12910
12911 * pa.md (call_internal_reg_64bit): Remove unused variable.
12912
12913 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
12914
12915 * config/arm/arm.h (machine_function): Add uses_anonymous_args
12916 field.
12917 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
12918 * config/arm/arm.c (current_function_anonymous_args): Delete,
12919 replace uses with cfun->machine->uses_anonymous_args.
12920 (arm_reorg): Do not reset uses_anonymous_args.
12921
12922 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12923 any geenral register.
12924
12925 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
12926
12927 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12928 the entry block.
12929
12930 2002-02-04 Richard Henderson <rth@redhat.com>
12931
12932 * combine.c (force_to_mode): Remove STACK_BIAS code.
12933 (nonzero_bits): Likewise. Replace sp/fp special case with
12934 REGNO_POINTER_ALIGN.
12935
12936 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12937 (HARD_FRAME_POINTER_REGNUM): New.
12938 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12939 (FIXED_REGS, CALL_USED_REGS): Update.
12940 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12941 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12942 (HARD_REGNO_NREGS): Update for SFP.
12943 (STACK_POINTER_OFFSET): Include bias here ...
12944 (FIRST_PARM_OFFSET): ... not here.
12945 (STACK_BIAS): Remove.
12946 (INIT_EXPANDERS): New.
12947 (STARTING_FRAME_OFFSET): Do not include bias.
12948 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12949 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12950 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12951 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12952 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12953 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12954 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12955 (MUST_SAVE_REGISTER): Likewise.
12956 (sparc_flat_function_prologue): Likewise.
12957 (sparc_flat_function_epilogue): Likewise.
12958 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12959 (sparc_init_modes): SFP is GENERAL_REGS.
12960 (sparc_builtin_saveregs): SFP does not have bias applied.
12961
12962 2002-02-04 Richard Henderson <rth@redhat.com>
12963
12964 * config/alpha/alpha.c (current_function_is_thunk): Don't check
12965 current_function_is_thunk.
12966 (alpha_sa_mask): Distinguish between current_function_is_thunk
12967 called from ASM_OUTPUT_MI_THUNK and not.
12968 (alpha_does_function_need_gp): Thunks always need gp.
12969 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12970 (alpha_output_mi_thunk_osf): New.
12971 * config/alpha/alpha-protos.h: Update.
12972 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12973
12974 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
12975
12976 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12977 function types, not when they're taken away.
12978
12979 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
12980
12981 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12982 CODE_LABEL and jump table when replacing a table jump with a
12983 simple jump.
12984
12985 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12986
12987 * config/s390/s390-protos.h (legitimize_la_operand,
12988 s390_secondary_input_reload_class, s390_plus_operand,
12989 s390_expand_plus_operand): Add prototypes.
12990
12991 config/s390/s390.c (s390_secondary_input_reload_class,
12992 s390_plus_operand, s390_expand_plus_operand): New functions.
12993
12994 (struct s390_address): New member 'pointer'.
12995 (s390_decompose_address): Compute it.
12996 (legitimate_la_operand_p): Use it.
12997 (legitimize_la_operand): New function.
12998 (movti, movdi, movdf splitters): Call it.
12999
13000 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13001 (PREDICATE_CODES): Add s390_plus_operand.
13002
13003 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13004 (la_ccclobber): Allow GENERAL_REGS as output operand.
13005
13006 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13007 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13008 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13009
13010 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13011
13012 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13013 register names for regular asm () construct.
13014
13015 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13016
13017 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13018 registers.
13019
13020 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13021
13022 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13023 pat for recog.
13024
13025 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13026
13027 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13028 constant pool to be identical by string address and index.
13029
13030 2002-02-04 Anthony Green <green@redhat.com>
13031
13032 * output.h (SECTION_OVERRIDE): Define.
13033 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13034
13035 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13036
13037 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13038 by existing arm*-*-netbsd* (a.out) target.
13039 (ns32k-*-netbsdelf*): Likewise.
13040 (sparc-*-netbsdelf*): Likewise.
13041 (vax-*-netbsdelf*): Likewise.
13042
13043 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13044
13045 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13046 headers and libobjc headers.
13047
13048 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13049
13050 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13051 (_mingw.h): Remove duplicate include.
13052
13053 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13054
13055 * config.gcc: Set cpu_type to m68k for 68010, as well.
13056 (m68010-*-netbsdelf*): New...
13057 (m68k*-*-netbsdelf*): ...targets.
13058 * config/m68k/netbsd-elf.h: New file.
13059
13060 2002-02-02 Kazu Hirata <kazu@hxi.com>
13061
13062 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13063
13064 2002-02-02 Kazu Hirata <kazu@hxi.com>
13065
13066 * config/h8300/h8300.c (h8_push_ops): Move inside
13067 h8300_init_once.
13068 (h8_pop_ops): Likewise.
13069 (h8_move_ops): Likewise.
13070
13071 2002-02-02 Kazu Hirata <kazu@hxi.com>
13072
13073 * config/h8300/h8300.c (os_task): Make it static.
13074 (monitor): Likewise.
13075 (pragma_saveall): Likewise.
13076
13077 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13078
13079 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13080 constant is a valid sign-extension for Pmode.
13081
13082 2002-02-02 Kazu Hirata <kazu@hxi.com>
13083
13084 * config/h8300/h8300.c: Fix formatting.
13085
13086 2002-02-02 Kazu Hirata <kazu@hxi.com>
13087
13088 * config/h8300/h8300.md: Fix formatting.
13089
13090 2002-02-02 Kazu Hirata <kazu@hxi.com>
13091
13092 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13093 predicates of operands[1]. Split the patterns for each
13094 processor variant.
13095
13096 2002-02-02 Kazu Hirata <kazu@hxi.com>
13097
13098 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13099 of operands[1] to register_operand.
13100
13101 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13102
13103 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13104 * cpphash.c (_cpp_init_hashtable): Similarly.
13105 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13106 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13107 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13108 (cpp_handle_option): Handle the new options.
13109 * cpplex.c (cpp_interpret_charconst): Use new flag.
13110 * cpplib.h (struct cpp_options): New member signed_char.
13111 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13112 (cpp_options): Handle -fsigned-char and -funsigned-char.
13113 (static_specs): Remove signed_char_spec.
13114 (do_spec1): Don't handle %c.
13115 * system.h: Poison SIGNED_CHAR_SPEC.
13116 * tradcif.y (yylex): Use flag_signed_char.
13117 * tradcpp.h (flag_signed_char): New.
13118 * tradcpp.c (flag_signed_char): New.
13119 (main): Handle new command-line options.
13120 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13121 config:
13122 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13123 * avr/avr.h: Remove old comments.
13124 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13125 (CC1_SPEC): Pass -fsigned-char if -mic*.
13126 (SIGNED_CHAR_SPEC): Remove.
13127 doc:
13128 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13129
13130 2002-02-01 Eric Christopher <echristo@redhat.com>
13131
13132 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13133 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13134 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13135 (ASM_OUTPUT_REG_POP): Ditto.
13136
13137 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13138
13139 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13140 patch.
13141
13142 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13143
13144 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13145
13146 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13147
13148 PR c/5304:
13149 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13150 unconditionally.
13151
13152 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13153
13154 * cfganal.c: Include tm_p.h.
13155 (keep_with_call_p): Fix the test that determines if a register holds
13156 the return value of a call.
13157
13158 2002-02-01 DJ Delorie <dj@redhat.com>
13159
13160 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13161 we are given conflicting registers, switch to the other one we
13162 had allocated for us.
13163 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13164 as TImode so we know when the "other" register is available.
13165
13166 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13167
13168 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13169 sparc/sparc_bi.h.
13170
13171 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13172
13173 * cfganal.c (keep_with_call_p): New function.
13174 (flow_call_edges_add): Prevent splitting a block between a call and
13175 a single-set instruction that should be kept in the same block.
13176
13177 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13178
13179 * doc/install.texi (avr): Update outdated URL.
13180
13181 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13182
13183 * config/stormy16/stormy16.md (pushqi): New.
13184 (popqi): New.
13185 (pushhi): New.
13186 (pophi): New.
13187 (movhi): Remove stack operands.
13188 (movqi): Likewise.
13189 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13190 nonimmediate_nonstack_operand.
13191 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13192 New.
13193 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13194 New.
13195
13196 2002-01-31 Jason Merrill <jason@redhat.com>
13197
13198 * Makefile.in (c-parse.c): Handle .output file.
13199 * objc/Make-lang.in (objc-parse.c): Likewise.
13200
13201 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13202
13203 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13204 the -me[lb] option is given. Don't output the default flag
13205 twice.
13206
13207 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13208
13209 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13210 the primary source file; this has not been done yet.
13211 * c-decl.c (c_expand_body): Reset input_filename from
13212 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13213
13214 2002-01-31 Kazu Hirata <kazu@hxi.com>
13215
13216 * rtlanal.c (subreg_regno_offset): Do not use
13217 SUBREG_REGNO_OFFSET.
13218 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13219 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13220
13221 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13222
13223 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13224 version rather than GNATS version in --version output.
13225
13226 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13227
13228 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13229 when copying back from a temporary.
13230
13231 2002-01-30 Richard Henderson <rth@redhat.com>
13232
13233 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13234 and new_dest are the same.
13235
13236 2002-01-30 Richard Henderson <rth@redhat.com>
13237
13238 PR opt/5076
13239 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13240 * rtl.c (note_insn_name): Update.
13241 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13242 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13243 to perform loop rotation.
13244 (expand_exit_loop_top_cond): New.
13245 * tree.h (expand_exit_loop_top_cond): Declare it.
13246 * c-semantics.c (genrtl_while_stmt): Use it.
13247 (genrtl_for_stmt): Likewise.
13248
13249 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13250
13251 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13252 arguments to 64-bit boundaries on 64-bit ABIs.
13253
13254 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13255
13256 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13257
13258 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13259
13260 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13261 invalid type.
13262
13263 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13264
13265 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13266 * config/sparc/sparc_bi.h: Remove file.
13267 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13268
13269 2002-01-30 Richard Henderson <rth@redhat.com>
13270
13271 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13272
13273 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13274
13275 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13276
13277 2002-01-30 Jason Merrill <jason@redhat.com>
13278
13279 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13280 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13281 (reg_save): Use DW_CFA_offset_extended_sf instead.
13282
13283 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13284
13285 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13286
13287 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13288 in cselib_lookup.
13289
13290 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13291
13292 * rs6000.md ("*call_value_local32"): Remove constraints.
13293 ("*call_value_local64"): Same.
13294 ("*call_value_indirect_nonlocal_aix32"): Same.
13295 ("*call_value_nonlocal_aix32"): Same.
13296 ("*call_value_indirect_nonlocal_aix64"): Same.
13297 ("*call_value_nonlocal_aix64"): Same.
13298 ("*call_value_nonlocal_sysv"): Same.
13299
13300 2002-01-29 Richard Henderson <rth@redhat.com>
13301
13302 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13303
13304 2002-01-29 Richard Henderson <rth@redhat.com>
13305
13306 * expr.c (force_operand): Ignore flag_pic for detecting pic
13307 address loads.
13308 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13309 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13310 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13311 instead of open-coded loop.
13312 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13313 be fixed when in use.
13314
13315 2002-01-29 Richard Henderson <rth@redhat.com>
13316
13317 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13318 * sched-rgn.c (propagate_deps): Update them.
13319 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13320 clobbers list when either gets too long.
13321
13322 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13323
13324 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13325 and INDEX_REGS the same as GENERAL_REGS.
13326 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13327
13328 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13329
13330 * tree.c (build_nonstandard_integer_type): Correct prototype.
13331
13332 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13333
13334 * config/s390/s390.md (movstrsico, movstrdix_64,
13335 movstrsix_31): Remove, replace by ...
13336 (movstrdi_short, movstrsi_short, movstrdi_long,
13337 movstrsi_long): ... these. New.
13338 (movstrdi, movstrsi): Adapt.
13339
13340 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13341 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13342 Remove unnecessary CC clobber.
13343 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13344 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13345
13346 (divmoddi4): Don't partially initialize TImode register.
13347
13348 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13349
13350 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13351
13352 2002-01-29 Richard Henderson <rth@redhat.com>
13353
13354 * flow.c (print_rtl_and_abort): Remove.
13355 (print_rtl_and_abort_fcn): Remove.
13356 (verify_local_live_at_start): Use dump_bb instead.
13357 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13358 (verify_wide_reg_1): Return 2 on mode test failure.
13359
13360 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13361
13362 PR c/3325, c/3326, c/2511, c/3347
13363 * c-decl.c (enum_decl_context): Remove BITFIELD.
13364 (grokdeclarator): Take bitfield width as an input.
13365 Ensure bitfields are given the correct type. Perform
13366 bitfield width validation with build_bitfield_integer_type
13367 rather than waiting for finish_struct.
13368 (grok_typename, grok_typename_in_parm_context, start_decl,
13369 push_parmdecl, grokfield, start_function): Update calls to
13370 grokdeclarator.
13371 (build_bitfield_integer_type): New function.
13372 (finish_struct): Move bitfield validation to grokdeclarator
13373 and build_bitfield_integer_type.
13374 * tree.c (build_nonstandard_integer_type): New function.
13375 * tree.h (build_nonstandard_integer_type): New prototype.
13376 objc:
13377 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13378
13379 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13380
13381 PR other/1502:
13382 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13383 don't ignore unrecognized -W* options.
13384 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13385 * cpplib.h (cpp_handle_option): Adjust prototype.
13386 * c-decl.c (c_decode_options): Pass 0 as last argument to
13387 cpp_handle_option.
13388
13389 PR c/2896:
13390 * gcc.c (cpp_unique_options): Split from cpp_options.
13391 (cpp_options): Source cpp_unique_options.
13392 (default_compilers): Use cpp_unique_options instead of cpp_options
13393 when used together with cc1_options.
13394 (static_specs): Add cpp_unique_options.
13395 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13396 when used together with cc1_options.
13397
13398 2002-01-29 Kazu Hirata <kazu@hxi.com>
13399
13400 * config/h8300/h8300-protos.h: Update the prototype of
13401 output_a_shift.
13402 * config/h8300/h8300.c (output_a_shift): Remove an unused
13403 argument 'insn'. Remove redundant code.
13404 * config/h8300/h8300.md: Adust to the new prototype of
13405 output_a_shift.
13406
13407 2002-01-29 Kazu Hirata <kazu@hxi.com>
13408
13409 * config/h8300/h8300-protos.h: Update the prototypes of
13410 emit_a_rotate and expand_a_rotate.
13411 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13412 first argument to 'enum rtx_code'.
13413 (expand_a_rotate): Likewise.
13414
13415 2002-01-28 Kazu Hirata <kazu@hxi.com>
13416
13417 * config/h8300/h8300-protos.h: Update the prototype of
13418 output_simode_bld.
13419 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13420 'log2'.
13421 * config/h8300/h8300.md: Adjust to the new prototype.
13422
13423 2002-01-28 Kazu Hirata <kazu@hxi.com>
13424
13425 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13426 redundant code.
13427
13428 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13429
13430 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13431 is a fixed register before returning pic_offset_table_rtx.
13432 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13433 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13434
13435 2002-01-28 Jason Merrill <jason@redhat.com>
13436
13437 * dwarf2.h: Sync with src version.
13438
13439 2002-01-28 Paul Koning <pkoning@equallogic.com>
13440
13441 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13442 BT_FN_VOID_PTR_VAR.
13443 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13444 * doc/extend.texi (__builtin_prefetch): Update documentation:
13445 first argument is now const void ptr.
13446
13447 2002-01-28 Kazu Hirata <kazu@hxi.com>
13448
13449 * config/h8300/h8300-protos.h: Remove an unused prototype.
13450
13451 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
13452
13453 * toplev.c (lang_independent_init): Round up identifier size.
13454
13455 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13456
13457 * config.gcc: Revert previous change.
13458
13459 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
13460
13461 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13462
13463 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13464
13465 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13466 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
13467 other non-elf netbsd config frags.
13468 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13469 collect2 will does that.
13470 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13471 shared-lib frobbing will work.
13472
13473 2002-01-28 Kazu Hirata <kazu@hxi.com>
13474
13475 * config/h8300/h8300.h: Fix formatting.
13476 * config/h8300/h8300.md: Likewise.
13477
13478 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
13479
13480 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13481 the old, removed AAA_standards fix.
13482 * fixinc/fixincl.x: Rebuilt.
13483
13484 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
13485
13486 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13487 atexit call in crtbegin, hooked in after call to frame_dummy;
13488 register EH before registering __fini__start.
13489
13490 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
13491
13492 * config/rs6000/altivec.h: Remove spurious semicolons.
13493
13494 2002-01-27 Kazu Hirata <kazu@hxi.com>
13495
13496 * config/h8300/h8300.md: Replace dead bit extraction patterns
13497 with ones that work.
13498
13499 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13500
13501 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13502 if not STRICT_ALIGNMENT.
13503 * rtl.h (MEM_ALIGN): Likewise.
13504
13505 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
13506
13507 * doc/invoke.texi (-fdump-translation-unit): Revert this
13508 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
13509
13510 2002-01-27 Kazu Hirata <kazu@hxi.com>
13511
13512 * config/h8300/h8300.md (define_constants): New.
13513 (anonymous patterns) Use defined constants appropriately.
13514
13515 2002-01-27 Kazu Hirata <kazu@hxi.com>
13516
13517 * config/h8300/h8300.c (function_arg): Remove redundant code.
13518
13519 2002-01-26 Richard Henderson <rth@redhat.com>
13520
13521 * sched-deps.c (reg_pending_uses_head): New.
13522 (reg_pending_barrier): Rename from reg_pending_sets_all.
13523 (find_insn_list): Don't mark inline.
13524 (find_insn_mem_list): Remove.
13525 (add_dependence_list, add_dependence_list_and_free): New.
13526 (flush_pending_lists): Replace only_write param with separate
13527 for_read and for_write parameters. Update all callers. Use
13528 add_dependence_list_and_free.
13529 (sched_analyze_1): Do not add reg dependencies here; just set
13530 the pending bits. Use add_dependence_list.
13531 (sched_analyze_2): Likewise.
13532 (sched_analyze_insn): Replace schedule_barrier_found with
13533 reg_pending_barrier. Add all dependencies for pending reg
13534 uses, sets, and clobbers.
13535 (sched_analyze): Don't add reg dependencies for calls, just
13536 set pending bits. Use regs_invalidated_by_call. Treat
13537 sched_before_next_call as a normal list, not a fake insn.
13538 (init_deps): No funny init for sched_before_next_call.
13539 (free_deps): Free pending mems lists. Don't zero reg_last.
13540 (init_deps_global): Init reg_pending_uses.
13541 (finish_deps_global): Free it.
13542 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
13543 (find_insn_mem_list): Remove.
13544 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
13545 (propagate_deps): Use them. Zero temp mem lists.
13546
13547 2002-01-26 Richard Henderson <rth@redhat.com>
13548
13549 * Makefile.in (CRTSTUFF_CFLAGS): New.
13550 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
13551 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
13552 crtstuff.c instead of alpha assembly version.
13553 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
13554 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
13555 not FORCE_{INIT,FINI}_SECTION_ALIGN.
13556 (__do_global_dtors_aux): Mark used.
13557 (frame_dummy, __do_global_ctors_aux): Mark used.
13558 (fini_dummy, init_dummy): Remove.
13559
13560 * config/alpha/crtbegin.asm: Remove file.
13561 * config/alpha/crtend.asm: Remove file.
13562 * config/alpha/t-crtbe: Remove file.
13563 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
13564 (LINK_EH_SPEC): New.
13565
13566 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
13567 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
13568 calling constructors.
13569 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
13570
13571 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
13572 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
13573 CRT_END_INIT_DUMMY hack.
13574 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
13575 FORCE_{INIT,FINI}_SECTION_ALIGN.
13576
13577 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
13578 FORCE_{INIT,FINI}_SECTION_ALIGN.
13579
13580 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
13581 invocation sequence.
13582 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
13583
13584 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
13585 (FORCE_CODE_SECTION_ALIGN): New.
13586
13587 2002-01-26 Richard Henderson <rth@redhat.com>
13588
13589 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
13590
13591 2002-01-26 Richard Henderson <rth@redhat.com>
13592
13593 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
13594 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
13595
13596 2002-01-26 Kazu Hirata <kazu@hxi.com>
13597
13598 * config/h8300/h8300.md: Remove bit extraction patterns that
13599 cannot be triggered.
13600 Restrict each bit extraction pattern to a variant on which the
13601 pattern is tested.
13602
13603 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
13604
13605 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
13606
13607 2002-01-26 Kazu Hirata <kazu@hxi.com>
13608
13609 * config/h8300/h8300.md: Remove bit test patterns that cannot
13610 be triggered.
13611 Restrict each bit test pattern to a variant on which the
13612 pattern is tested.
13613
13614 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13615
13616 * builtins.c (expand_builtin_strncat): Remove redundant check for
13617 INTEGER_CST.
13618
13619 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13620
13621 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
13622 default setting.
13623 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
13624 existing setting.
13625
13626 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
13627
13628 * dbxout.c (dbxout_init): Use assemble_name rather than just
13629 stripping off the first character.
13630 (dbxout_source_file): Likewise.
13631
13632 2002-01-25 DJ Delorie <dj@redhat.com>
13633
13634 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
13635 using rtx_equal_p, not by comparing pointers.
13636
13637 2002-01-25 Steve Ellcey <sje@cup.hp.com>
13638
13639 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
13640 for PIC_OFFSET_TABLE_REGNUM.
13641 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
13642
13643 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13644
13645 * config.gcc (x86_64-*-freebsd*): New target.
13646 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
13647 value.
13648 (i[34567]86-*-freebsd*): Don't include svr4.h.
13649 * config/i386/freebsd64.h: New file.
13650
13651 2002-01-25 Douglas B Rupp <rupp@gnat.com>
13652
13653 * config/alpha/x-vms (version): Make static.
13654
13655 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
13656 in previous checkin.
13657
13658 * Makefile.in (install-headers-cp): New target.
13659 * config.gcc (alpha-dec-*vms*): Install headers with
13660 install-headers-cp
13661
13662 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
13663
13664 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
13665 avoid it's copies.
13666
13667 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13668
13669 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
13670 of compare_tree_int.
13671 (expand_builtin_strncat): Likewise.
13672 * c-decl.c (finish_struct): Use tree_low_cst.
13673 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
13674 * tree.c (compare_tree_int): Likewise.
13675
13676 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
13677
13678 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
13679 adjustments even if they are implemented by more than two insns.
13680
13681 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
13682
13683 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
13684 * df.h (struct ref): Kill B.
13685 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
13686
13687 * basic-block.h (PROP_EQUAL_NOTES): New flag.
13688 * flow.c (propagate_one_insn): Use it.
13689 (mark_used_regs): Handle NIL.
13690
13691 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
13692
13693 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
13694 to help folding.
13695
13696 2002-01-25 David Edelsohn <edelsohn@gnu.org>
13697
13698 * rs6000.md (prefetch): Make address V4SI mode so that the address
13699 is restricted to legitimate form for instruction.
13700
13701 2002-01-25 Bob Wilson <bob.wilson@acm.org>
13702
13703 * doc/install.texi (xtensa-*-elf): New target.
13704 (xtensa-*-linux*): New target.
13705 * doc/contrib.texi: Add myself.
13706
13707 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
13708
13709 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
13710 purpose register to hold an SImode (or smaller) value.
13711
13712 2002-01-25 Jakub Jelinek <jakub@redhat.com>
13713
13714 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
13715 registry only.
13716 * crtstuff.c: Likewise.
13717
13718 2002-01-25 Kazu Hirata <kazu@hxi.com>
13719
13720 * config/h8300/h8300.md (negation patterns): Tighten
13721 predicates to register_operand.
13722
13723 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
13724
13725 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
13726 mode, not Pmode.
13727
13728 * builtins.c (expand_builtin_prefetch): Same.
13729
13730 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13731
13732 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
13733 modes.
13734
13735 2002-01-24 Kazu Hirata <kazu@hxi.com>
13736
13737 * config/h8300/h8300.c (print_operand): Remove support for
13738 operand character 'A'.
13739 * config/h8300/h8300.md (three anonymous patterns): Replace
13740 operand character 'A' with either 'T' or 'S'.
13741
13742 2002-01-24 Kazu Hirata <kazu@hxi.com>
13743
13744 * config/h8300/h8300.c (print_operand): Remove support for
13745 operand character 'U'.
13746
13747 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
13748
13749 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
13750
13751 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
13752
13753 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
13754 values to be assigned to the stack pointer.
13755
13756 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13757
13758 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
13759 to const_double needs to be done right for big-endian systems.
13760
13761 2002-01-24 Jason Merrill <jason@redhat.com>
13762
13763 PR c++/2432
13764 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
13765 to can_throw_internal.
13766
13767 2002-01-23 Richard Henderson <rth@redhat.com>
13768
13769 * fold-const.c (fold): Change UINT_MAX test to check vs precision
13770 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
13771
13772 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13773
13774 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
13775 (symGOT2reg): Use them, then set as GOT value as unchanging.
13776 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
13777 as a temporary, if possible.
13778 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
13779 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
13780
13781 2002-01-23 Kazu Hirata <kazu@hxi.com>
13782
13783 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
13784 accept to accept 0x80 as operands[2].
13785
13786 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13787
13788 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
13789
13790 2002-01-23 Richard Henderson <rth@redhat.com>
13791
13792 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
13793
13794 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
13795
13796 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
13797 (parmlist_or_identifiers_1): Verify that only a parmlist follows
13798 an attribute.
13799
13800 2002-01-23 Richard Henderson <rth@redhat.com>
13801
13802 * expr.c (move_by_pieces_1): Extend size before negation.
13803
13804 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
13805 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
13806 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
13807 * config/m68k/t-m68kelf: Likewise.
13808
13809 2002-01-23 Bob Wilson <bob.wilson@acm.org>
13810
13811 * config/xtensa/elf.h: New file.
13812 * config/xtensa/lib1funcs.asm: New file.
13813 * config/xtensa/lib2funcs.S: New file.
13814 * config/xtensa/linux.h: New file.
13815 * config/xtensa/t-xtensa: New file.
13816 * config/xtensa/xtensa-config.h: New file.
13817 * config/xtensa/xtensa-protos.h: New file.
13818 * config/xtensa/xtensa.c: New file.
13819 * config/xtensa/xtensa.h: New file.
13820 * config/xtensa/xtensa.md: New file.
13821 * config.gcc (xtensa-*-elf*): New target.
13822 (xtensa-*-linux*): New target.
13823 * cse.c (canon_hash): Compare rtx pointers instead of register
13824 numbers. This is required for the Xtensa port.
13825 * integrate.c (copy_insn_list): Handle case where the static
13826 chain is in memory and the memory address has to be copied to
13827 a register.
13828 * doc/invoke.texi (Option Summary): Add Xtensa options.
13829 (Xtensa Options): New node.
13830 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
13831
13832 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13833
13834 * diagnostic.c (internal_error): Do ICE suppression only
13835 when ENABLE_CHECKING is not defined.
13836
13837 * c-typeck.c (require_complete_type): Return error_mark_node
13838 if type is error_mark_node.
13839
13840 2002-01-23 Janis Johnson <janis187@us.ibm.com>
13841
13842 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13843 -Os and issue a warning.
13844
13845 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13846
13847 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13848 current (lack of) need for host configuration by hand.
13849
13850 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13851 references. Documentation of some target macros moved from
13852 hostconfig.texi to tm.texi.
13853
13854 2002-01-23 Will Cohen <wcohen@redhat.com>
13855
13856 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13857 defined.
13858
13859 2002-01-23 Kazu Hirata <kazu@hxi.com>
13860
13861 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13862 operand[3].
13863
13864 2002-01-23 Jason Merrill <jason@redhat.com>
13865
13866 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13867
13868 * function.c (assign_parms): Don't put args of inline functions
13869 into registers when not optimizing.
13870
13871 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
13872
13873 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13874 (prologue_use): New pattern.
13875 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13876 preference to gen_rtx_USE.
13877 (thumb_expand_prologue): Use gen_prologue_use in preference to
13878 gen_rtx_USE.
13879 (thumb_expand_epilogue): Use gen_prologue_use in preference to
13880 gen_rtx_USE.
13881
13882 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
13883
13884 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13885
13886 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
13887
13888 PR c/3504
13889 * doc/extend.texi: Correct documentation of __alignof__.
13890
13891 2002-01-22 Zack Weinberg <zack@codesourcery.com>
13892
13893 * params.h: Rename arguments of DEFPARAM so that it will be
13894 recognized as a translation keyword.
13895
13896 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13897
13898 * extend.texi: Document altivec functions.
13899 Fix N-bit adjectives in X86 builtin documentation.
13900
13901 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13902
13903 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13904 auto_inc_dec values.
13905
13906 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
13907
13908 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13909 after backslash.
13910 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13911
13912 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13913
13914 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13915
13916 2002-01-22 Richard Henderson <rth@redhat.com>
13917
13918 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13919 copy_insn not copy_rtx.
13920
13921 2002-01-23 Alan Modra <amodra@bigpond.net.au>
13922
13923 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13924 "nonzero" as that might add "1" bits. Ensure "constop" is
13925 properly sign extened.
13926 (force_to_mode): Tweak for sign extended constop.
13927
13928 2002-01-22 Richard Henderson <rth@redhat.com>
13929
13930 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13931 for_each_rtx instead of assuming we're already looking at the MEM.
13932 (split_small_symbolic_mem_operand): Likewise.
13933 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13934 * config/alpha/alpha.md (small symbolic memory splitters): Update.
13935
13936 2002-01-22 Richard Henderson <rth@redhat.com>
13937
13938 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13939 sequence number for the literal.
13940 (divmoddi_internal_er): Likewise.
13941
13942 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13943
13944 PR java/4972
13945 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13946 in LIBICONV variable.
13947 * configure: Regenerated.
13948
13949 2002-01-22 Krister Walfridsson <cato@df.lth.se>
13950
13951 * dependence.c (build_def_use): Remove array_idx.
13952
13953 * dwarfout.c (last_filename): Remove.
13954 (output_compile_unit_die): Remove last_filename.
13955
13956 2002-01-22 Roger Sayle <roger@eyesopen.com>
13957 Richard Henderson <rth@redhat.com>
13958
13959 PR opt/3640
13960 * fold-const.c (fold): Optimize unsigned comparisons against
13961 UINT_MAX (and similar unsigned constants).
13962
13963 2002-01-22 Janis Johnson <janis187@us.ibm.com>
13964
13965 * Makefile.in (loop.o): Depend on OPTABS_H.
13966 * loop.c (emit_prefetch_instructions): Check the prefetch operand
13967 against the predicate.
13968
13969 PR target/5379
13970 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13971 for the address operand.
13972
13973 2002-01-22 Richard Henderson <rth@redhat.com>
13974
13975 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13976
13977 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13978
13979 PR other/5450
13980 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13981 preprocessor flags.
13982
13983 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
13984
13985 * config.gcc (x86_64-*-netbsd*): New target.
13986 * config/i386/netbsd64.h: New file.
13987
13988 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13989
13990 * regrename.c (kill_value): Fix typo.
13991
13992 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13993
13994 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
13995
13996 * config/rs6000/rs6000.h: Same.
13997
13998 * function.c (instantiate_virtual_regs): Remove
13999 STARTING_FRAME_PHASE.
14000 (assign_stack_local_1): Same.
14001 Calculate frame phase.
14002
14003 2002-01-22 Nick Clifton <nickc@redhat.com>
14004
14005 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14006 variable declaration to outer scope in order to simplify
14007 future extensions.
14008 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14009 arm_hard_regno_mode_ok.
14010 * config/arm/arm-protos.h: Add a prototype for
14011 arm_hard_regno_mode_ok.
14012 * config/arm/arm.c (soft_df_operand): Remove now redundant
14013 check for DImode values using IP_REGNUM.
14014 (nonimmediate_soft_df_operand): Remove now redundant check for
14015 DImode values using IP_REGNUM.
14016 (arm_hard_regno_mode_ok): New function. New check: make sure
14017 that DImode values are not stored in IP_REGNUM.
14018
14019 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14020 note with a USE.
14021 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14022
14023 2002-01-22 Jason Merrill <jason@redhat.com>
14024
14025 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14026 consistency if this COMPOUND_STMT is scoped.
14027
14028 2002-01-22 Kazu Hirata <kazu@hxi.com>
14029
14030 * predict.c: Fix formatting.
14031 * print-tree.c: Likewise.
14032 * protoize.c: Likewise.
14033 * real.h: Likewise.
14034 * rtl.h: Likewise.
14035 * sbitmap.h: Likewise.
14036 * scan.c: Likewise.
14037 * sched-deps.c: Likewise.
14038 * sched-vis.c: Likewise.
14039 * sdbout.c: Likewise.
14040 * sibcall.c: Likewise.
14041 * ssa.c: Likewise.
14042 * ssa-ccp.c: Likewise.
14043 * ssa-dce.c: Likewise.
14044 * stmt.c: Likewise.
14045 * stor-layout.c: Likewise.
14046 * system.h: Likewise.
14047
14048 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14049
14050 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14051 if fits in bounds of base type.
14052
14053 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14054 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14055 (add_bound_info, default): If can't find a context, make a
14056 SAVE_EXPR.
14057 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14058
14059 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14060
14061 * c-typeck.c (parser_build_binary_op): If result from
14062 build_binary_op is ERROR_MARK just return error_mark_node without
14063 further processing.
14064
14065 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14066
14067 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14068 Split a.out-specific bits into...
14069 * config/netbsd-aout.h: ...this.
14070 * config/netbsd-elf.h: New file.
14071 * config/alpha/netbsd-elf.h: Remove.
14072 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14073 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14074 (STARTFILE_SPEC): Remove redundant definition.
14075 (ENDFILE_SPEC): Likewise.
14076 (LINK_SPEC): Likewise.
14077 (CPP_SPEC): Likewise.
14078 (ASM_SPEC): Likewise.
14079 (LIB_SPEC): Likewise.
14080 (SWITCH_TAKES_ARG): Likewise.
14081 (TARGET_MEM_FUNCTIONS): Likewise.
14082 (CPP_PREDEFINES): Redefine.
14083 (ASM_FINAL_SPEC): Remove redefinition.
14084 (ASM_COMMENT_START): Redefine.
14085 (FUNCTION_PROFILER): Define.
14086 (TARGET_VERSION): Redefine.
14087 Comment and formatting cleanup.
14088 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14089 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14090 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14091 big- or little-endian.
14092 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14093 * config.gcc (*-*-netbsd*): Add definitions common to all
14094 NetBSD configs.
14095 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14096 gnu_ld definitions. Add netbsd-elf.h to and remove
14097 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14098 tmake_file, and don't lose previous tmake_file contents.
14099 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14100 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14101 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14102 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14103 (mipsel-*-netbsd*): Rename this to...
14104 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14105 mips/little.h to tm_file for mips*el-*.
14106 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14107 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14108 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14109
14110 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14111
14112 * pa-protos.h (reg_before_reload_operand): New function prototype.
14113 * pa.c (reg_before_reload_operand): New function implementation.
14114 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14115 contraints to "*m".
14116
14117 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14118
14119 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14120
14121 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14122
14123 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14124 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14125 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14126 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14127 (ENDFILE_SPEC): Undefine.
14128 (STARTFILE_SPEC): Redefine for PA.
14129
14130 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14131
14132 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14133
14134 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14135
14136 * config.gcc: Add entries to supported PowerPC --with-cpu
14137 types.
14138
14139 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14140
14141 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14142 true for 64-bit mode only SSE registers in 32-bit mode.
14143
14144 2002-01-21 Kazu Hirata <kazu@hxi.com>
14145
14146 * unwind-dw2.c: Fix formatting.
14147 * unwind-dw2-fde.c: Likewise.
14148 * unwind-dw2-fde.h: Likewise.
14149 * unwind-pe.h: Likewise.
14150 * varasm.c: Likewise.
14151 * varray.h: Likewise.
14152
14153 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14154
14155 Remove workaround for register stack overwrite bug in mmix.
14156 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14157 support for TARGET_REG_STACK_FILL_BUG.
14158 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14159 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14160 Delete.
14161 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14162 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14163 -mno-reg-stack-fill-bug-workaround.
14164 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14165 machine member has_call_without_parameters.
14166 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14167 -mreg-stack-fill-bug-workaround and
14168 -mno-reg-stack-fill-bug-workaround.
14169 (MMIX Options): Ditto.
14170
14171 2002-01-21 Kazu Hirata <kazu@hxi.com>
14172
14173 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14174 as appropriate.
14175 Remove redundant code.
14176
14177 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14178
14179 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14180 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14181 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14182 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14183 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14184 out target macro definitions and non-target-specific comments
14185 mostly taken from old versions of the manual.
14186
14187 2002-01-20 Kazu Hirata <kazu@hxi.com>
14188
14189 * config/h8300/h8300.h: Fix comment formatting.
14190 * config/ia64/aix.h: Likewise.
14191 * config/ia64/ia64-protos.h: Likewise.
14192 * config/ia64/ia64.c: Likewise.
14193 * config/ia64/ia64.h: Likewise.
14194 * config/ia64/ia64intrin.h: Likewise.
14195 * config/ia64/linux.h: Likewise.
14196 * config/ia64/unwind-aix.c: Likewise.
14197 * config/ia64/unwind-ia64.c: Likewise.
14198
14199 2002-01-20 Kazu Hirata <kazu@hxi.com>
14200
14201 * config/h8300/h8300.c: Revise comments about shift code.
14202
14203 2002-01-20 Kazu Hirata <kazu@hxi.com>
14204
14205 * config/h8300/h8300.c (function_arg): Update a comment.
14206
14207 2002-01-20 Kazu Hirata <kazu@hxi.com>
14208
14209 * config/h8300/h8300.md: Update the comments at the beginning
14210 of the file.
14211
14212 2002-01-20 Kazu Hirata <kazu@hxi.com>
14213
14214 * config/i370/i370.c: Fix comment formatting.
14215 * config/i370/i370.h: Likewise.
14216 * config/i370/i370.md: Likewise.
14217 * config/i370/linux.h: Likewise.
14218
14219 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14220
14221 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14222
14223 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14224 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14225 in incomplete case.
14226
14227 2002-01-20 Graham Stott <grahams@redhat.com>
14228
14229 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14230
14231 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14232
14233 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14234
14235 2002-01-19 Tom Rix <trix@redhat.com>
14236
14237 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14238
14239 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14240
14241 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14242
14243 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14244 STARTING_FRAME_PHASE.
14245 (STARTING_FRAME_PHASE): New.
14246 (instantiate_virtual_regs): Check saneness of
14247 STARTING_FRAME_PHASE.
14248
14249 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14250
14251 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14252
14253 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14254
14255 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14256
14257 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14258 be used for bootstrapping GCC 3.0.
14259
14260 2002-01-18 Kazu Hirata <kazu@hxi.com>
14261
14262 * config/h8300/h8300.md: Fix an insn length.
14263
14264 2002-01-18 Kazu Hirata <kazu@hxi.com>
14265
14266 * bitmap.h: Fix comment formatting.
14267 * combine.c: Likewise.
14268 * cppfiles.c: Likewise.
14269 * c-pragma.h: Likewise.
14270 * c-typeck.c: Likewise.
14271 * df.c: Likewise.
14272 * dwarf2out.c: Likewise.
14273 * function.c: Likewise.
14274 * gcc.c: Likewise.
14275 * genattrtab.c: Likewise.
14276 * gthr-win32.h: Likewise.
14277 * haifa-sched.c: Likewise.
14278 * predict.c: Likewise.
14279 * rtlanal.c: Likewise.
14280 * rtl.h: Likewise.
14281 * unwind-dw2-fde.h: Likewise.
14282 * unwind-pe.h: Likewise.
14283 * vmsdbgout.c: Likewise.
14284
14285 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14286
14287 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14288 if type_required and passed decl.
14289
14290 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14291
14292 * config.gcc (cpu_type): Include altivec.h in powerpc
14293 extra_headers.
14294 Same for darwin.
14295
14296 * config/rs6000/altivec.h: New.
14297
14298 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14299
14300 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14301 handling information.
14302 * doc/trouble.texi (Interoperation): Add libstdc++ information
14303 for AIX.
14304 (Misunderstandings): Add template instantiation and static template
14305 member information for AIX.
14306
14307 2002-01-17 Jason Merrill <jason@redhat.com>
14308
14309 * dbxout.c (dbxout_type): Support const and volatile.
14310
14311 * except.c (add_partial_entry): Remove backwards compatibility code.
14312 (end_protect_partials): Likewise.
14313
14314 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14315
14316 * config/ia64/ia64.md (prologue_use): New.
14317 * config/ia64/ia64.c (ia64_expand_prologue): Use
14318 gen_prologue_use instead of gen_rtx_USE.
14319 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14320 as CODE_FOR_pred_rel_mutex.
14321 (ia64_sched_reorder2): Likewise.
14322
14323 2002-01-16 Eric Christopher <echristo@redhat.com>
14324
14325 * config/mips/r3900.h: Reformat.
14326 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14327 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14328 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14329 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14330 * config/mips/t-elf: Remove mips3 multilib.
14331
14332 2002-01-16 H.J. Lu <hjl@gnu.org>
14333
14334 * config/mips/linux.h: Include "mips/abi64.h".
14335
14336 2002-01-16 H.J. Lu <hjl@gnu.org>
14337
14338 * config/mips/t-linux: New.
14339
14340 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14341
14342 * config/mips/linux.h: Don't include "gofast.h".
14343 (INIT_SUBTARGET_OPTABS): Removed.
14344
14345 2002-01-16 Kazu Hirata <kazu@hxi.com>
14346
14347 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14348 output_a_shift.
14349 * config/h8300/h8300.c: Likewise.
14350 * config/h8300/h8300.md: Likewise.
14351
14352 2002-01-16 Kazu Hirata <kazu@hxi.com>
14353
14354 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14355 spaces after an opcode name.
14356 (pushqi1_h8300hs): Likewise.
14357 (pushhi1_h8300hs): Likewise.
14358
14359 2002-01-16 Kazu Hirata <kazu@hxi.com>
14360
14361 * doc/extend.texi: Replace "option" with "attribute"
14362 appropriately.
14363
14364 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14365
14366 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14367 (and:DI () (const_int -8)).
14368 (split_small_symbolic_mem_operand): Split
14369 (mem (and:DI () (const_int -8)).
14370
14371 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14372
14373 PR target/5309:
14374 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14375 same way as TYPE_IMUL.
14376 (ultrasparc_sched_reorder): Likewise.
14377 * config/sparc/sparc.md (type): Add comment to update
14378 ultrasparc_sched_reorder when making changes.
14379
14380 2002-01-16 Kazu Hirata <kazu@hxi.com>
14381
14382 * doc/invoke.texi: Change the dump file name of block
14383 reordering pass from 28.bbro to 29.bbro.
14384 Mention -dk option.
14385
14386 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
14387
14388 * i386.md (minsf splitter): Fix pasto.
14389
14390 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14391
14392 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14393 to frame pointer initialisation instruction.
14394 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14395 initialisation instruction.
14396 (soft_df_operand): Do not accept the IP register.
14397 (nonimmediate_soft_df_operand): Do not accept the IP register.
14398
14399 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR target/5357:
14402 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14403 MASK_V8 being both set.
14404
14405 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
14406
14407 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14408 insn for GOT register; add REG_MAYBE_DEAD notes instead.
14409 config/s390/s390.md (call, call_value): Add GOT register to
14410 CALL_INSN_FUNCTION_USAGE where needed.
14411 (call_exp, call_value_exp): New.
14412
14413 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14414
14415 * config/arm/arm.c: General formatting tidy up.
14416
14417 2002-01-16 Graham Stott <grahams@redhat.com>
14418
14419 * calls.c (try_to_integrate): Use "(size_t)" intermediate
14420 cast and when casting an integer literal to "rtx" pointer.
14421 (expand_call): Likewise.
14422 * flow.c (try_pre_increment): Likewise.
14423 (find_use_as_address): Likewise.
14424 * integrate.c (expand_iline_function): Likewise.
14425 * regmove.c (try_auto_increment): Likewise.
14426
14427 2002-01-16 Graham Stott <grahams@redhat.com>
14428
14429 * sched-rgn.c (passed): Use sbitmap_free.
14430 (header): Likewise.
14431 (inner): Likewise.
14432 (in_queue): Likewise.
14433 (in_stack): Likewise.
14434
14435 2002-01-15 Eric Christopher <echristo@redhat.com>
14436
14437 * flow.c (propagate_one_insn): Change to use fatal_insn.
14438
14439 2002-01-15 Kazu Hirata <kazu@hxi.com>
14440
14441 * expmed.c (extract_fixed_bit_field): Remove unused code.
14442 * system.h: Poison SLOW_ZERO_EXTEND.
14443 * doc/tm.texi: Remove.
14444 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14445 * config/arm/arm.h: Likewise.
14446 * config/avr/avr.h: Likewise.
14447 * config/clipper/clipper.h: Likewise.
14448 * config/convex/convex.h: Likewise.
14449 * config/d30v/d30v.h: Likewise.
14450 * config/dsp16xx/dsp16xx.h: Likewise.
14451 * config/elxsi/elxsi.h: Likewise.
14452 * config/fr30/fr30.h: Likewise.
14453 * config/h8300/h8300.h: Likewise.
14454 * config/i370/i370.h: Likewise.
14455 * config/i386/i386.h: Likewise.
14456 * config/m68k/m68k.h: Likewise.
14457 * config/mips/mips.h: Likewise.
14458 * config/ns32k/ns32k.h: Likewise.
14459 * config/pdp11/pdp11.h: Likewise.
14460 * config/pj/pj.h: Likewise.
14461 * config/s390/s390.h: Likewise.
14462 * config/sh/sh.h: Likewise.
14463 * config/stormy16/stormy16.h: Likewise.
14464 * config/v850/v850.h: Likewise.
14465 * config/vax/vax.h: Likewise.
14466 * config/we32k/we32k.h: Likewise.
14467
14468 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14469
14470 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14471 (altivec_lvsl): Change constraint to b.
14472 (altivec_lvsr): Same.
14473 (altivec_lvebx): Same.
14474 (altivec_lvehx): Same.
14475 (altivec_lvewx): Same.
14476 (altivec_lvxl): Same.
14477 (altivec_lvx): Same.
14478 (altivec_stvx): Add parallel.
14479 (altivec_stvxl): Same.
14480 (altivec_stvehx): Same.
14481 (altivec_stvebx): Same.
14482 (altivec_stvebx): Same.
14483
14484 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14485
14486 * config.gcc: Change altivec.h to altivec-defs.h.
14487
14488 * config/rs6000/altivec.h: Delete.
14489
14490 * config/rs6000/altivec-defs.h: Add.
14491
14492 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14493
14494 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14495 and UMOD modes.
14496
14497 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14498 less than or equal to eight bytes.
14499
14500 * vax.md (andsi3): Remove constraints and change SET destination
14501 operand type to nonimmediate_operand.
14502 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
14503 when it is a CONST_INT.
14504
14505 2002-01-15 Jason Merrill <jason@redhat.com>
14506
14507 * c-common.def (FILE_STMT): New code.
14508 * c-common.c (statement_code_p): It's a statement.
14509 * c-common.h (stmt_tree_s): Add x_last_filename.
14510 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
14511 (last_expr_filename): New macro.
14512 * c-semantics.c (begin_stmt_tree): Initialize it.
14513 (add_stmt): If the filename changed, also insert a
14514 FILE_STMT.
14515 (expand_stmt): Handle seeing one.
14516
14517 2002-01-15 Eric Christopher <echristo@redhat.com>
14518
14519 * flow.c (propagate_one_insn): Add error message and print out
14520 insn for debugging.
14521
14522 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14523
14524 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
14525 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
14526 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
14527 TRAMPOLINE_ALIGNMENT.
14528 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
14529 to be in bits.
14530 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
14531 PCC_BITFIELD_TYPE_MATTERS.
14532 * config/interix.h (STDC_VALUE): Remove. Use
14533 STDC_0_IN_SYSTEM_HEADERS.
14534 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
14535 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
14536 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
14537
14538 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
14539
14540 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
14541 not work on this platform currently.
14542
14543 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14544
14545 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
14546 readonly_warning in _().
14547
14548 2002-01-15 Douglas B Rupp <rupp@gnat.com>
14549
14550 * gcc.c (delete_if_ordinary): Backout previous change.
14551
14552 2002-01-15 Kazu Hirata <kazu@hxi.com>
14553
14554 * config/h8300/h8300.c (print_operand): Remove support for
14555 unused operand characters.
14556
14557 * read-rtl.c: Fix formatting.
14558 * real.c: Likewise.
14559 * recog.c: Likewise.
14560 * regclass.c: Likewise.
14561 * regmove.c: Likewise.
14562 * reg-stack.c: Likewise.
14563 * reload1.c: Likewise.
14564 * rtlanal.c: Likewise.
14565
14566 2002-01-15 Kazu Hirata <kazu@hxi.com>
14567
14568 * config/i386/i386.c: Fix formatting.
14569
14570 2002-01-15 Jakub Jelinek <jakub@redhat.com>
14571
14572 * c-typeck.c (process_init_element): Don't save_expr
14573 COMPOUND_LITERAL_EXPR if just its initializer will be used.
14574
14575 2002-01-15 David Edelsohn <edelsohn@gnu.org>
14576
14577 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
14578 emit optional traceback table if optimize_size or TARGET_ELF.
14579 * config/rs6000/rs6000.md (prefetch): New.
14580
14581 2002-01-15 Andreas Jaeger <aj@suse.de>
14582
14583 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
14584
14585 2002-01-15 Kazu Hirata <kazu@hxi.com>
14586
14587 * mips-tfile.c: Fix formatting.
14588
14589 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
14590
14591 * unroll.c (final_reg_note_copy): Fix previous commit.
14592
14593 2002-01-14 Kazu Hirata <kazu@hxi.com>
14594
14595 * config/h8300/h8300-protos.h: Remove the prototype for
14596 eq_operator.
14597 * config/h8300/h8300.c (eq_operator): Remove.
14598
14599 2002-01-14 Richard Henderson <rth@redhat.com>
14600
14601 * config/i386/i386.md (prefetch): Tidy.
14602 (prefetch_3dnow): Fix locality operand.
14603
14604 2002-01-14 Richard Henderson <rth@redhat.com>
14605
14606 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
14607 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
14608
14609 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
14610
14611 * reload1.c (reload_combine): Pass reg_sum replacement through
14612 copy_rtx in loop performing multiple changes.
14613
14614 2002-01-14 Jakub Jelinek <jakub@redhat.com>
14615
14616 * except.c (remove_unreachable_regions): New.
14617 (free_eh_status): Clear exception_handler_labels.
14618 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
14619 (find_exception_handler_labels): Don't add the same label more than
14620 once.
14621 (remove_exception_handler_label): Don't die if
14622 find_exception_handler_labels hasn't been called for the current
14623 function yet.
14624
14625 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
14626
14627 * toplev.c (rest_of_compilation): Rebuild jump labels after
14628 gcse.
14629
14630 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
14631
14632 * doc/extend.texi: Move documentation of X86 built-in functions
14633 here.
14634 * doc/invoke.texi: From here.
14635 * doc/sourcebuild.texi: Document location of documentation for
14636 machine built-in functions.
14637
14638 2002-01-13 Christopher Faylor <cgf@redhat.com>
14639
14640 * cppfiles.c (TEST_THRESHOLD): New macro.
14641 (SHOULD_MMAP): Ditto.
14642 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
14643 be used.
14644
14645 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
14646
14647 * unroll.c (final_reg_note_copy): Properly handle
14648 REG_LABEL
14649 (unroll_loops): Fix LOOP_CONDITION heuristics.
14650
14651 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
14652
14653 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
14654 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
14655
14656 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
14657
14658 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
14659 threaded loop.
14660
14661 2002-01-14 Tom Rix <trix@redhat.com>
14662
14663 * config/rs6000/rs6000.md: Fix typo with sradi.
14664
14665 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
14666
14667 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
14668 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
14669 (clrstrdi, clrstrsi): Adapt callers.
14670
14671 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
14672
14673 (movti splitter): Never use register 0 as base register.
14674
14675 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14676
14677 * combine.c (simplify_shift_const): Always generate new rtx
14678 for shift expression instead of reusing given expression.
14679
14680 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14681
14682 * config/alpha/alpha.c (alpha_expand_mov): Don't call
14683 alpha_legitimize_address unless mode is Pmode.
14684
14685 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
14686
14687 * doc/md.texi (Modifiers): Document the '*' constraint for the
14688 user.
14689
14690 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
14691 * doc/extend.texi (Function Attributes): 'interrupt' is valid
14692 for xstormy16 too.
14693
14694 2002-01-13 Richard Henderson <rth@redhat.com>
14695
14696 * reload.c (find_reloads): Use a hard reg destination as reload reg
14697 for an input reload of the source.
14698
14699 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14700
14701 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
14702 more generic.
14703
14704 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
14705
14706 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
14707 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
14708
14709 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
14710
14711 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14712
14713 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
14714
14715 2002-01-12 Tom Rix <trix@redhat.com>
14716
14717 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
14718 TARGET_POWERPC64.
14719
14720 2002-01-12 Richard Henderson <rth@redhat.com>
14721
14722 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
14723
14724 * doc/invoke.texi: Update Alpha options.
14725
14726 * doc/invoke.texi: Update i386 built-in function lists.
14727
14728 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
14729
14730 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
14731 referencing outside.
14732
14733 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14734
14735 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
14736 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
14737 offsets, and change line folding.
14738 * optabs.c (expand_binop): Remove warnings.
14739 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
14740
14741 2002-01-12 Graham Stott <grahams@redhat.com>
14742
14743 * attribs.c (handle_deprecated_attribute): constify WHAT.
14744 * diagnostic.c (warn_deprecated_use): Add braces, fixes
14745 dangling else warning and constify WHAT.
14746 * except.h (struct function, struct inline_remap): Move
14747 struct tag forward defs before all prototypes.
14748 (duplicate_eh_regions): Whitespace.
14749
14750 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
14751
14752 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14753 MODE_BASE_REG_CLASS.
14754 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
14755
14756 2002-01-12 Richard Henderson <rth@redhat.com>
14757
14758 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
14759 (ix86_expand_vector_move): New.
14760 (bdesc_2arg): Remove andps, andnps, orps, xorps.
14761 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
14762 Remove old prefetch builtins. Special case the logicals removed above.
14763 (ix86_expand_builtin): Likewise.
14764 (safe_vector_operand): Use V4SFmode, not TImode.
14765 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
14766 (ix86_expand_timode_binop_builtin): New.
14767 * config/i386/i386-protos.h: Update.
14768 * config/i386/i386.h (enum ix86_builtins): Update.
14769 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
14770 Use ix86_expand_vector_move in vector move expanders.
14771 (movti_internal, movti_rex64): Add xorps alternative.
14772 (sse_clrv4sf): Rename and adjust from sse_clrti.
14773 (prefetch): Don't work so hard.
14774 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
14775 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
14776 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
14777
14778 2002-01-11 Richard Henderson <rth@redhat.com>
14779
14780 * config/i386/mmintrin.h: New file.
14781 * config/i386/xmmintrin.h: New file.
14782 * config.gcc (i?86-*-*): Add extra_headers.
14783 * simplify-rtx.c (simplify_unary_operation): Handle saturating
14784 truncation codes.
14785 (simplify_binary_operation): Handle saturating arithmetic codes.
14786 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
14787 not the lowpart subreg.
14788 (ix86_expand_builtin): Return a TImode dummy register instead of 0
14789 on error.
14790 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
14791
14792 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14793
14794 * conflict.c (conflict_graph_compute): Free regsets when finished.
14795 * ssa.c (compute_coalesced_reg_partition): Likewise.
14796
14797 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14798
14799 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
14800 every where we allocate a register.
14801
14802 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14803
14804 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
14805 * lcm.c (compute_earliest, compute_farthest): Likewise.
14806
14807 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14808
14809 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
14810
14811 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14812
14813 * doc/rtl.texi (Insns): Fix 2 typos.
14814
14815 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
14816
14817 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
14818 options. Use @table @gcctabopt for MMIX options. Add index
14819 entries for MMIX options. Start new paragraph with first
14820 heading of the machine-dependent options.
14821
14822 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
14823
14824 PR other/5299
14825 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
14826 * combine.c (force_to_mode): Same.
14827 * reload1.c (clear_reload_reg_in_use): Same.
14828
14829 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
14830
14831 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
14832 and 'subtargets'.
14833
14834 2002-01-11 Andreas Jaeger <aj@suse.de>,
14835 Brad Lucier <lucier@math.purdue.edu>
14836
14837 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14838 mcpu.
14839
14840 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
14841
14842 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14843 Protect with IN_LIBGCC.
14844 (LINK_EH_SPEC): Add required trailing space.
14845
14846 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
14847
14848 * c-tree.h: Move function declarations so that they are listed
14849 under the filename which contains them.
14850 (check_identifier, finish_decl_top_level,
14851 lookup_name_current_level_global, shadow_record_fields): Remove.
14852
14853 2002-01-11 Andreas Jaeger <aj@suse.de>
14854
14855 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14856 march.
14857
14858 2002-01-10 Richard Henderson <rth@redhat.com>
14859
14860 * config/alpha/alpha.c (print_operand): Add 'J'.
14861 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14862 new operand with the sequence number for the lituse. When splitting
14863 the insns, use gen_movdi_er_high_g and generate a sequence number.
14864 (gen_movdi_er_high_g): Print the sequence number if non-zero.
14865
14866 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
14867
14868 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14869 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14870 stvxl.
14871 (altivec_expand_builtin): Same.
14872 (altivec_expand_stv_builtin): New.
14873
14874 * config/rs6000/rs6000.h (rs6000_builtins): Same.
14875
14876 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14877 ("altivec_lvehx"): New.
14878 ("altivec_lvewx"): New.
14879 ("altivec_lvxl"): New.
14880 ("altivec_lvx"): New.
14881 ("altivec_stvx"): New.
14882 ("altivec_stvebx"): New.
14883 ("altivec_stvehx"): New.
14884 ("altivec_stvewx"): New.
14885 ("altivec_stvxl"): New.
14886
14887 2002-01-10 Richard Henderson <rth@redhat.com>
14888
14889 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14890 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
14891 care not to delete instructions twice.
14892
14893 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14894
14895 * toplev.c: Don't declare environ (it's not used anywhere).
14896 * configure.in: Don't check for declaration of environ.
14897 * config/i386/xm-mingw32.h: Don't #define environ.
14898 * config.in, configure: Regenerate.
14899
14900 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14901
14902 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14903 * configure: Regenerate.
14904
14905 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14906 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14907 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14908 alpha/xm-vms.h.
14909 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14910 LIMITS_H_TEST here, not in m68k/x-next.
14911 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14912 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14913
14914 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14915 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14916 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
14917
14918 * config/i386/x-djgpp: Renamed i386/t-djgpp.
14919 * config/m88k/x-dolph: Renamed m88k/t-dolph.
14920 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14921 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
14922 replacement of quadlib.asm with quadlib.c.
14923
14924 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14925 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14926 config/rs6000/xm-beos.h: Delete file.
14927
14928 * config.gcc: Update to match above changes.
14929
14930 2002-01-10 Kazu Hirata <kazu@hxi.com>
14931
14932 * config/h8300/h8300.h: Fix comment typos.
14933 * config/h8300/h8300.md: Likewise.
14934 * config/h8300/lib1funcs.asm: Likewise.
14935
14936 2002-01-10 Dale Johannesen <dalej@apple.com>
14937
14938 PR optimization/5269
14939 * unroll.c (precondition_loop_p): Make *increment be the correct
14940 sign when n_iterations known, to avoid confusing caller.
14941
14942 2002-01-10 Kazu Hirata <kazu@hxi.com>
14943
14944 * doc/extend.texi (deprecated): Fix a typo.
14945
14946 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
14947
14948 * basic-block.h (update_br_prob_note): Declare.
14949 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14950 (try_forward_edges): Care negative frequencies and update note.
14951 (outgoing_edges_match): Tweek conditional merging heuristics.
14952 (try_crossjump_to_edge): use update_br_prob_note.
14953 * cfglayout.c (fixup_reorder_chain): Likewise.
14954 * cfrtl.c (update_br_prob_note): New.
14955 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14956
14957 * i386.c (ix86_decompose_address): Return -1 if address contains
14958 shift.
14959 (legitimate_address_p): Require ix86_decompose_address to return 1.
14960
14961 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14962 (cprop_insn): Likewise.
14963
14964 2002-01-10 Kazu Hirata <kazu@hxi.com>
14965
14966 * toplev.c: Fix formatting.
14967 * tree.c: Likewise.
14968 * tree-dump.c: Likewise.
14969 * unroll.c: Likewise.
14970 * unwind-dw2.c: Likewise.
14971 * unwind-dw2-fde.c: Likewise.
14972 * unwind-dw2-fde-glibc.c: Likewise.
14973 * unwind-sjlj.c: Likewise.
14974
14975 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14976
14977 * doc/invoke.texi: Document PDP-11 options.
14978
14979 2002-01-10 Kazu Hirata <kazu@hxi.com>
14980
14981 * config/h8300/h8300.h: Fix formatting.
14982
14983 2002-01-10 Ira Ruben <ira@apple.com>
14984
14985 Add __attribute__ ((deprecated)).
14986 * extend.texi: Document __attribute__ ((deprecated)).
14987 * invoke.texi: Document -Wno-deprecated-declarations.
14988 * testsuite/g++.dg/other/deprecated.C: New C++ test.
14989 * testsuite/gcc.dg/deprecated.c: New C test.
14990 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14991 (c_common_attribute_table): Add "deprecated" entry.
14992 (handle_deprecated_attribute): New function.
14993 * c-decl.c (deprecated_states): New enum.
14994 deprecated_state: State of "deprecated" handling.
14995 (start_decl): Set deprecated_state based on attributes.
14996 (grokdeclarator): Test for deprecated uses, propagate attribute.
14997 * c-typeck.c (build_component_ref): Test for deprecated fields.
14998 (build_external_ref): Test for deprecated primaries.
14999 * diagnostic.c (warn_deprecated_use) New function to issue
15000 warnings about __attribute__ ((depricated)) references.
15001 * flags.h (warn_deprecated_decl): Extern declared for
15002 -W[no-]deprecated-declarations option.
15003 * print-tree.c (print_node): Show deprecated flag status.
15004 * toplev.c (warn_deprecated_decl): Defined.
15005 (W_options): Added "deprecated-declaration".
15006 * toplev.h (warn_deprecated_use): Extern declared.
15007 * tree.h (struct tree_common): Define deprecated_flag.
15008 (TREE_DEPRECATED): New macro to access flag.
15009 * cp/call.c (build_call): Test for deprecated calls.
15010 * cp/class.c (add_implicitly_declared_members): Set global
15011 flag to tell grokdeclarator to not issue deprecated warnings.
15012 * cp/cp-tree.h: Add extern for adding_implicit_members.
15013 * cp/decl.c (deprecated_states): New enum.
15014 (start_decl): Set deprecated_state based on attributes.
15015 (grokdeclarator): Test for deprecated uses, propagate attribute.
15016 * cp/lex.c (do_identifier): Test for deprecated primaries.
15017 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15018
15019 2002-01-10 Ira Ruben <ira@apple.com>
15020
15021 Fix to assign attributes to inline member functions.
15022 * cp/decl.c (start_method): Handle attrlist.
15023
15024 2002-01-10 Kazu Hirata <kazu@hxi.com>
15025
15026 * combine.c (expand_field_assignment): Use subreg_lsb().
15027
15028 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15029
15030 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15031 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15032 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15033 Recurse for any operand of AND as long as constant is non-zero.
15034
15035 2002-01-10 Kazu Hirata <kazu@hxi.com>
15036
15037 * config/h8300/h8300.md: Remove constraints from expanders.
15038
15039 2002-01-10 Kazu Hirata <kazu@hxi.com>
15040
15041 * varasm.c: Fix formatting.
15042 * varray.c: Likewise.
15043 * vmsdbgout.c: Likewise.
15044 * xcoffout.c: Likewise.
15045
15046 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15047
15048 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15049 update edge probabilities to match.
15050
15051 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15052
15053 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15054 dependencies.
15055 * doc/languages.texi, doc/sourcebuild.texi: New files.
15056 * doc/configfiles.texi: Make a subsubsection. Update.
15057 * doc/configterms.texi: Add @node. Remove warning that this isn't
15058 instructions for building GCC.
15059 * doc/makefile.texi: Make a subsection.
15060 * doc/gccint.texi: Update.
15061
15062 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15063
15064 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15065
15066 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15067
15068 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15069
15070 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15071
15072 * optabs.c (expand_fix): Look for wider integer modes first.
15073
15074 * i386.md (mov?f): Avoid the fake const double trick for medium
15075 memory model.
15076 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15077 (fop_df_4): Disable for SSE compilation.
15078
15079 2002-01-10 Graham Stott <grahams@redhat.com>
15080
15081 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15082 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15083
15084 2002-01-10 Richard Henderson <rth@redhat.com>
15085
15086 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15087
15088 2002-01-10 Richard Henderson <rth@redhat.com>
15089
15090 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15091 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15092
15093 2002-01-10 Kazu Hirata <kazu@hxi.com>
15094
15095 * combine.c (can_combine_p): Fix a comment typo.
15096
15097 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15098
15099 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15100 empty list correctly. Change loop index $t to $f for
15101 consistency with rest of Makefile.
15102
15103 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15104
15105 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15106 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15107
15108 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15109 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15110 (altivec_init_builtins): Same.
15111 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15112 (altivec_expand_binop_builtin): Same.
15113 (altivec_expand_ternop_builtin): Same.
15114 (bdesc_dst): New.
15115
15116 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15117 ("altivec_vctuxs"): Fix typo.
15118 ("altivec_vnmsubfp"): Same.
15119 ("altivec_dssall"): New.
15120 ("altivec_mfvscr"): New.
15121 ("altivec_dss"): New.
15122 ("altivec_lvsl"): New.
15123 ("altivec_lvsr"): New.
15124 ("altivec_dstt"): New.
15125 ("altivec_dstst"): New.
15126 ("altivec_dststt"): New.
15127 ("altivec_dst"): New.
15128
15129 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15130 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15131
15132 2002-01-09 Richard Henderson <rth@redhat.com>
15133
15134 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15135
15136 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15137
15138 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15139 function.
15140 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15141 prototype.
15142 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15143
15144 2002-01-09 Kazu Hirata <kazu@hxi.com>
15145
15146 * read-rtl.c: Fix formatting.
15147 * real.c: Likewise.
15148 * regclass.c: Likewise.
15149 * regrename.c: Likewise.
15150 * reg-stack.c: Likewise.
15151 * reload1.c: Likewise.
15152 * reload.c: Likewise.
15153 * rtl.c: Likewise.
15154
15155 2002-01-09 Kazu Hirata <kazu@hxi.com>
15156
15157 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15158 to extract items in the expr_list chain.
15159
15160 2002-01-09 Richard Henderson <rth@redhat.com>
15161
15162 * config/vax/vax.c (vax_rtx_cost): Never abort.
15163
15164 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15165
15166 2002-01-09 Jan Hubicka <jh@suse.cz>
15167
15168 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15169
15170 2002-01-09 Richard Henderson <rth@redhat.com>
15171
15172 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15173 Unify code from various alternatives.
15174
15175 2002-01-09 Richard Henderson <rth@redhat.com>
15176
15177 * regrename.c (copy_value): Ignore the copy if the source register
15178 is present in the value chain with a narrower mode.
15179
15180 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15181
15182 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15183 for the c4x target. Also improve layout.
15184
15185 2002-01-09 Richard Henderson <rth@redhat.com>
15186
15187 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15188 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15189 to match insn patterns.
15190
15191 2002-01-09 Richard Henderson <rth@redhat.com>
15192
15193 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15194 (copyprop_hardreg_forward_1): Likewise.
15195
15196 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15197
15198 * pa.md (decrement_and_branch_until_zero): Change predicate for
15199 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15200
15201 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15202
15203 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15204 gets undefined. For Darwin.
15205
15206 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15207
15208 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15209
15210 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15211
15212 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15213
15214 2002-01-08 Richard Henderson <rth@redhat.com>
15215
15216 * regrename.c (copy_value): Ignore overlapping copies.
15217
15218 2002-01-08 Richard Henderson <rth@redhat.com>
15219
15220 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15221 as needed to avoid shared structure.
15222
15223 2002-01-08 Kazu Hirata <kazu@hxi.com>
15224
15225 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15226 H8/300H and H8/S.
15227
15228 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15229
15230 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15231 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15232 documentation of obsolete macros.
15233 * system.h: Poison these macros.
15234 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15235 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15236 config/c4x/c4x.h, config/clipper/clipper.h,
15237 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15238 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15239 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15240 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15241 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15242 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15243 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15244 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15245 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15246 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15247 config/sparc/sparc.h, config/stormy16/stormy16.h,
15248 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15249 definitions and commented out definitions of obsolete macros.
15250 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15251 of MAX_INT_TYPE_SIZE.
15252
15253 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15254
15255 * config/s390/s390.c (s390_preferred_reload_class): Never
15256 return ADDR_REGS if it isn't a subset of the given class.
15257 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15258 FP_REGS, but all superclasses as well.
15259
15260 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15261
15262 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15263 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15264 must not be a const_int.
15265
15266 2002-01-08 Richard Henderson <rth@redhat.com>
15267
15268 * Makefile.in (toplev.o): Depend on options.h.
15269 (gcc.o): Depend on specs.h.
15270
15271 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15272
15273 * expr.c (store_expr): Convert VOIDmode constants back to target's
15274 mode.
15275
15276 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15277
15278 * doc/invoke.texi: Markup gcc as @command. Refer to
15279 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15280 of http://gcc.gnu.org/thanks.html.
15281
15282 2002-01-08 Dale Johannesen <dalej@apple.com>
15283
15284 * config/rs6000/rs6000.md: Add missing int register
15285 target case to movdf_low.
15286
15287 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15288
15289 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15290 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15291 (cppinit.o): Depend on except.h.
15292 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15293 s-specs): New rules.
15294
15295 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15296 Don't create specs.h/options.h/gencheck.h here. Remove
15297 unnecessary variable settings from last argument of AC_OUTPUT.
15298 * config.in, configure: Regenerate.
15299 * intl.c: Hardcode package name as "gcc".
15300
15301 * cppinit.c: Include except.h.
15302 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15303 appropriate.
15304 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15305 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15306 (!)USING_SJLJ_EXCEPTIONS.
15307 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15308
15309 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15310
15311 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15312 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15313 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15314 documentation of obsolete macros.
15315 * system.h: Poison these macros.
15316 * config/d30v/d30v.h, config/ns32k/encore.h,
15317 config/stormy16/stormy16.h: Remove definitions and commented out
15318 definitions of obsolete macros.
15319
15320 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15321
15322 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15323 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15324 warnings.
15325
15326 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15327
15328 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15329 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15330 to insn adjusting stack/frame pointer.
15331 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15332 accept operands that cause the insn to be non-splittable.
15333
15334 2002-01-08 Graham Stott <grahams@redhat.com>
15335
15336 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15337 (C_TYPE_FIELDS_VOLATILE): Likewise.
15338 (C_TYPE_BEING_DEFINED): Likewise.
15339 (C_IS_RESERVED_WORD): Likewise.
15340 (C_TYPE_VARIABLE_SIZE): Likewise.
15341 (C_DECL_VARIABLE_SIZE): Likewise.
15342 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15343 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15344 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15345 parenthesis.
15346 (C_DECL_ANTICIPATED): Likewise.
15347 (c_build_type_variant): Add parenthesis.
15348
15349 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15350
15351 * gcc.c (option_map): Remove --version.
15352 (process_command): Handle -fversion following the GNU Coding
15353 Standards. Partially addresses PR other/704.
15354
15355 2002-01-08 Graham Stott <grahams@redhat.com>
15356
15357 * combine.c (combine_instructions): Fix typo.
15358
15359 2002-01-08 Graham Stott <grahams@redhat.com>
15360
15361 * debug.h: Use "tree" and "rtx" throughout.
15362
15363 * debug.c: Likewise.
15364
15365 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15366
15367 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15368 constant pool, use the pool's version of the symbol instead.
15369
15370 2002-01-07 Richard Henderson <rth@redhat.com>
15371
15372 * regrename.c (find_oldest_value_reg): Ignore the value chain if
15373 the original register was copied in a mode with a fewer number of
15374 hard registers than the desired mode.
15375 (copyprop_hardreg_forward_1): Likewise.
15376 (debug_value_data): Fix loop test.
15377 * toplev.c (parse_options_and_default_flags): Reenable
15378 -fcprop-registers at -O1.
15379
15380 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15381
15382 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15383 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15384
15385 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15386 predicates.
15387
15388 * config/rs6000/rs6000.md: Add altivec predicate patterns.
15389
15390 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15391
15392 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15393 (pa_output_function_prologue): Output local label at the beginning of
15394 the prologue when profiling.
15395 (hppa_profile_hook): Use the local label rather than the function label.
15396 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15397
15398 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15399
15400 * config/rs6000/rs6000.c (print_operand): Remove extra space.
15401 (altivec_expand_unop_builtin): Fix thinko.
15402 (altivec_expand_binop_builtin): Same.
15403 (altivec_expand_ternop_builtin): Same.
15404 (altivec_expand_builtin): Same.
15405
15406 2002-01-07 Richard Henderson <rth@redhat.com>
15407
15408 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15409
15410 2002-01-07 Jason Merrill <jason@redhat.com>
15411
15412 * unwind-dw2.c (execute_cfa_program): Use < again.
15413
15414 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15415
15416 * predict.c (combine_predictions_for_insn): Avoid division by zero.
15417
15418 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15419
15420 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15421 Don't allow -1 - x -> ~x simplifications in the first pass.
15422
15423 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15424
15425 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15426 arguments.
15427 (altivec_expand_binop_builtin): Same.
15428 (altivec_expand_unop_builtin): Same.
15429 (print_operand): Fix typo.
15430 (bdesc_1arg): Add vupk* variants.
15431
15432 * rs6000.h (rs6000_builtins): Add vupk* enums.
15433
15434 * rs6000.md: Add altivec_vupk* variants.
15435
15436 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
15437
15438 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15439 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15440 and last update dates.
15441
15442 2002-01-07 Janis Johnson <janis187@us.ibm.com>
15443
15444 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15445
15446 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
15447
15448 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15449 * config/avr/avr.h (CPP_SPEC): Likewise.
15450 (LINK_SPEC): Likewise.
15451 (CRT_BINUTILS_SPECS): Likewise.
15452 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15453 * doc/invoke.texi (AVR Options): Document them.
15454
15455 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
15456
15457 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15458 LABEL_NUSES.
15459
15460 2002-01-07 Graham Stott <grahams@redhat.com>
15461
15462 * config/i386/i386.h: Update copyright date.
15463 (HALF_PIC_PTR): Add parenthesis.
15464 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15465 (CONSTANT_ALIGNMENT): Add parenthesis.
15466 (DATA_ALIGNMENT): Likewise.
15467 (LOCAL_ALIGNMENT): Likewise.
15468 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15469 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15470 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15471 (HARD_REGNO_NREGS): Add paranethesis.
15472 (VALID_SSE_REG_MODE): Whitespace.
15473 (VALID_MMX_REG_MODE): Whitespace.
15474 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15475 (ix86_hard_regno_mode_ok): Add parenthesis.
15476 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15477 (RETURN_IN_MEMORY): Whitespace.
15478 (N_REG_CLASSES): Add parenthesis.
15479 (INTEGER_CLASS_P): Add parenthesis and wrap.
15480 (FLOAT_CLASS_P): Likewise.
15481 (SSE_CLASS_P): Likewise.
15482 (MMX_CLASS_P): Likewise.
15483 (MAYBE_INTEGER_CLASS_P): Likewise.
15484 (MAYBE_FLOAT_CLASS_P): Likewise.
15485 (MAYBE_SSE_CLASS_P): Likewise.
15486 (MAYBE_MMX_CLASS_P): Likewise.
15487 (Q_CLASS_P): Likewise.
15488 (GENERAL_REGNO_P): Uppercase macro parameter.
15489 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15490 (FP_REGNO_P): Likewise.
15491 (ANY_FP_REGNO_P): Uppercase macro parameter.
15492 (SSE_REGNO_P): Likewise.
15493 (SSE_REGNO): Likewise.
15494 (SSE_REG_P): Likewise.
15495 (SSE_FLOAT_MODE_P): Likewise.
15496 (MMX_REGNO_P): Likewise.
15497 (MMX_REG_P):Likewise.
15498 (STACK_REG_P): Likewise.
15499 (NON_STACK_REG_P): Likewise.
15500 (STACK_TOP_P): Likewise.
15501 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15502 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15503 (SECONDARY_MEMORY_NEEDED): Likewise.
15504 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15505 (MD_ASM_CLOBBERS): Whitespace and wrap.
15506 (MUST_PASS_IN_STACK): Whitespace and wrap.
15507 (RETURN_POPS_ARGS): Add parenthesis.
15508 (INIT_CUMULATIVE_ARGS): Likewise.
15509 (FUNCTION_ARG): Likewise.
15510 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
15511 (SETUP_INCOMING_VARARGS): Likewise.
15512 (BUILD_VA_LIST_TYPE): Add parenthesis.
15513 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
15514 parenthsis.
15515 (EXPAND_BUILTIN_VA_ARG): Likewise.
15516 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
15517 (INITIALIZE_TRAMPOLINE): Add parenthesis.
15518 (INITIAL_ELIMINATION_OFFSET): Likewise.
15519 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
15520 (REGNO_OK_FOR_BASE_P): Likewise.
15521 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
15522 (REGNO_OK_FOR_DIREG_P): Likewise.
15523 (REG_OK_FOR_INDEX_P): Whitespace.
15524 (REG_OK_FOR_BASE_P): Whitespace.
15525 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
15526 parenthesis.
15527 (FIND_BASE_TERM): Fix typo.
15528 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
15529 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
15530 (SYMBOLIC_CONST; Whitespace.
15531 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
15532 (ENCODE_SECTION_INFO): Whitespace.
15533 (FINALIZE_PIC): Remove do { ... } while (0).
15534 (PROMOTE_MODE): Wrap in do { ... } while (0).
15535 (CONST_COSTS): Whitespace.
15536 (RTX_COSTS): Add paramethesis, whitespace and wrap.
15537 (REGISTER_MOVE_COST): Add parenthesis.
15538 (MEMORY_MOVE_COST): Likewise.
15539 (EXTRA_CC_MODES): Whitespace.
15540 (SELECT_CC_MODE): Add parenthesis and whitespace.
15541 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
15542 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
15543 (ASM_OUTPUT_LABEL): Add paramethesis.
15544 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
15545 (ASM_OUTPUT_REG_POP): Likewise.
15546 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
15547 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15548
15549 * config/i386/i386.c: Update copyright.
15550 (CHECK_STACK_LIMIT): Add parenthesis.
15551 (AT_BP): Uppercase macro parameter.
15552 (x86_64_int_parameter_registers): Constify.
15553 (x86_64_int_return_registers): Likewise.
15554 (ix86_compare_op0): Use rtx.
15555 (construct_container): Constify INTREG parameter.
15556 (function_arg): Use rtx.
15557
15558 * diagnostic.h: Update copyright date.
15559 (output_buffer_state): Add parenthesis.
15560 (output_buffer_format_args): Likewise.
15561
15562 * combine.c (combine_instructions): Replace XEXP (links, 0)
15563 with link.
15564
15565 2002-01-06 H.J. Lu <hjl@gnu.org>
15566
15567 * cfgcleanup.c (thread_jump): Fix 2 typos.
15568
15569 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
15570
15571 * config.gcc: Add support for --enable-altivec.
15572
15573 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15574
15575 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
15576
15577 2002-01-06 Jakub Jelinek <jakub@redhat.com>
15578
15579 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
15580 __objc_class_name_*.
15581
15582 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15583
15584 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
15585
15586 2002-01-06 Richard Henderson <rth@redhat.com>
15587
15588 * reorg.c (emit_delay_sequence): Remove death notes, not merely
15589 nop them out. Increment label reference count for REG_LABEL.
15590 (fill_slots_from_thread): Frob label reference count around
15591 delete_related_insns.
15592
15593 2002-01-05 Richard Henderson <rth@redhat.com>
15594
15595 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
15596 jump threading.
15597
15598 2002-01-05 Richard Henderson <rth@redhat.com>
15599
15600 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
15601 * integrate.c (output_inline_function): Likewise.
15602 * toplev.c (rest_of_compilation): Do it here instead. Move call
15603 to remove_unnecessary_notes after emitting abstract instance.
15604 Force an emitted nested function to have its parent emited as well.
15605 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
15606 for null.
15607 (rtl_for_decl_location): Do not look at reload data structures
15608 before reload has run.
15609
15610 2002-01-05 Kazu Hirata <kazu@hxi.com>
15611
15612 * cse.c: Fix formatting.
15613 * dwarf2asm.c: Likewise.
15614 * dwarf2out.c: Likewise.
15615 * explow.c: Likewise.
15616 * expmed.c: Likewise.
15617 * function.c: Likewise.
15618 * gcov.c: Likewise.
15619 * gencheck.c: Likewise.
15620 * genrecog.c: Likewise.
15621 * ggc-common.c: Likewise.
15622 * ggc-page.c: Likewise.
15623 * global.c: Likewise.
15624
15625 2002-01-05 Kazu Hirata <kazu@hxi.com>
15626
15627 * combine.c: Fix formatting.
15628
15629 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
15630
15631 PR middle-end/1557
15632 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
15633
15634 2002-01-05 David Edelsohn <edelsohn@gnu.org>
15635
15636 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
15637 as 1 for __powerpc64__ as well.
15638
15639 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
15640
15641 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
15642 return it.
15643
15644 2002-01-05 Daniel Berlin <dan@dberlin.org>
15645
15646 * lcm.c: Revert change, due to performance regression it causes on
15647 SPEC because it's slightly more conservative (sigh, I hate
15648 edge-based LCM).
15649
15650 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
15651
15652 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
15653
15654 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
15655
15656 * doc/cppinternals.texi: Update.
15657
15658 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
15659
15660 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
15661 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
15662 negatives.
15663 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
15664 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
15665 kludge for pre-october-14th mmix versions to handle new-found bug
15666 with PUSHJ/PUSHGO and the register stack.
15667 * config/mmix/mmix.h (struct machine_function): Rename member
15668 has_call_value_without_parameters to has_call_without_parameters.
15669 All referers changed.
15670 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
15671 TARGET_MASK_BRANCH_PREDICT): New macros.
15672 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
15673 -mno-reg-stack-fill-bug-workaround.
15674 * config/mmix/mmix.md ("call"): Set struct machine member
15675 has_call_without_parameters.
15676
15677 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
15678
15679 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
15680
15681 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
15682
15683 * cfgcleanup.c: Include tm_p.h
15684 (mark_effect): Fix handling of hard register; fix handling of SET
15685
15686 2002-01-04 Kazu Hirata <kazu@hxi.com>
15687
15688 * config/h8300/h8300.md (anonymous patterns): Check that
15689 operands are registers before using REGNO on them.
15690
15691 2002-01-03 Roland McGrath <roland@frob.com>
15692
15693 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
15694
15695 2002-01-04 Jakub Jelinek <jakub@redhat.com>
15696
15697 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
15698 * c-common.h (genrtl_expr_stmt_value): Likewise.
15699 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
15700 (expand_expr_stmt_value): Add maybe_last argument.
15701 Don't warn about statement with no effect if it is the last statement
15702 in expression statement.
15703 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
15704 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
15705 expand_expr_stmt_value.
15706 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
15707 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
15708 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
15709 as maybe_last to expand_expr_stmt_value.
15710
15711 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
15712
15713 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
15714 be passed in, do not build it.
15715 (c_begin_if_stmt): New function.
15716 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
15717 * c-common.h (c_expand_start_cond): Update prototype.
15718 (c_begin_if_stmt): Prototype new function.
15719 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
15720 * c-parse.in (if_prefix): Use c_begin_if_stmt,
15721 c_begin_while_stmt and c_finish_while_stmt_cond.
15722
15723 2002-01-04 William Cohen <wcohen@redhat.com>
15724
15725 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
15726 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15727 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15728 * config/pa/som.h (ASM_FILE_START): Likewise.
15729
15730 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
15731
15732 * lcm.c: Include df.h.
15733 Add available_transfer_function prototype.
15734 (compute_available): Rework to use iterative dataflow framework.
15735 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
15736 with bb_info in df.h
15737 (available_transfer_function): New function.
15738
15739 * Makefile.in (lcm.o): add df.h to dependencies.
15740
15741 2002-01-04 Richard Henderson <rth@redhat.com>
15742
15743 * config/alpha/alpha.c (some_operand): Accept HIGH.
15744 (input_operand): Likewise; accept simple references to globals.
15745 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
15746 (alpha_const_double_ok_for_letter_p): Likewise.
15747 (alpha_extra_constraint): Likewise.
15748 (alpha_preferred_reload_class): Likewise. Do not force
15749 symbolic constants to memory.
15750 (alpha_legitimate_address_p): Accept simple references
15751 to small_symbolic_operand.
15752 (alpha_legitimize_address): New arg scratch. Be prepared to be
15753 called when no_new_pseudos. Emit simple symbolic references.
15754 Split integers into low, high, and rest.
15755 (alpha_expand_mov): Use alpha_legitimize_address.
15756 (some_small_symbolic_mem_operand): New.
15757 (split_small_symbolic_mem_operand): New.
15758 * config/alpha/alpha-protos.h: Update.
15759 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
15760 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15761 (EXTRA_CONSTRAINT): Likewise.
15762 (PREFERRED_RELOAD_CLASS): Likewise.
15763 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
15764 (PREDICATE_CODES): Update.
15765 * config/alpha/alpha.md: New post-reload splitters to convert
15766 simplfied symbolic operands to the form that references $29.
15767 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
15768 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
15769
15770 2002-01-03 Richard Henderson <rth@redhat.com>
15771
15772 * local-alloc.c (function_invariant_p): Update commentary.
15773
15774 2002-01-04 H.J. Lu <hjl@gnu.org>
15775
15776 * toplev.c (rest_of_compilation): Fix a typo when calling
15777 cleanup_cfg.
15778
15779 2002-01-03 Kazu Hirata <kazu@hxi.com>
15780
15781 * c-common.c: Fix formatting.
15782 * diagnostic.c: Likewise.
15783 * doloop.c: Likewise.
15784 * dwarf2out.c: Likewise.
15785
15786 2002-01-03 Kazu Hirata <kazu@hxi.com>
15787
15788 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
15789 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
15790
15791 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15792
15793 * cpperror.c: Update comments and copyright.
15794 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
15795 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
15796
15797 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
15798
15799 * collect2.c (main): Use strcmp when testing for "-shared".
15800
15801 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15802
15803 * cppmacro.c: Don't include intl.h. Update comments.
15804 (new_number_token): Allocate enough buffer for 64-bit unsigned
15805 integers; update prototype.
15806 * cppmain.c: Update comments.
15807
15808 2002-01-03 William Cohen <wcohen@redhat.com>
15809
15810 * function.h (struct function): Add profile.
15811 (current_function_profile): New.
15812 doc/extend.texi: Update documentation.
15813 * final.c (final_start_function): Use current_function_profile
15814 instead of profile_flag.
15815 (profile_after_prologue): Likewise.
15816 * function.c (expand_function_start): Likewise.
15817 (expand_function_start): Likewise.
15818 * config/alpha/alpha.c (direct_call_operand):
15819 (alpha_does_function_need_gp): Likewise.
15820 (alpha_expand_prologue): Likewise.
15821 * config/arm/arm.c (arm_expand_prologue): Likewise.
15822 thumb_expand_prologue: Likewise.
15823 * config/d30v/d30v.c (d30v_stack_info): Likewise.
15824 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
15825 (fr30_expand_prologue): Likewise.
15826 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
15827 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
15828 * config/i386/i386.h (FINALIZE_PIC): Likewise.
15829 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
15830 * config/i960/i960.c (i960_output_function_prologue): Likewise.
15831 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15832 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
15833 (m32r_expand_prologue): Likewise.
15834 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
15835 (m88k_expand_prologue): Likewise.
15836 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
15837 * config/mips/mips.c (compute_frame_size): Likewise.
15838 (mips_expand_prologue): Likewise.
15839 (mips_can_use_return_insn): Likewise.
15840 * config/pa/elf.h (ASM_FILE_START): Likewise.
15841 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15842 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15843 * config/pa/som.h (ASM_FILE_START): Likewise.
15844 * config/romp/romp.c (romp_using_r14): Likewise.
15845 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15846 (rs6000_stack_info): Likewise.
15847 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15848 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
15849 * config/v850/v850.c (compute_register_save_size): Likewise.
15850
15851 2002-01-03 Jakub Jelinek <jakub@redhat.com>
15852
15853 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15854 gen_lowpart_common fails, use gen_lowpart_SUBREG.
15855
15856 2002-01-03 Turly O'Connor <turly@apple.com>
15857
15858 * darwin.c (machopic_output_possible_stub_label): Don't generate
15859 stub routines for pseudo-stubs which we've just defined.
15860
15861 2002-01-03 Kazu Hirata <kazu@hxi.com>
15862
15863 * builtins.c: Fix formatting.
15864 * c-typeck.c: Likewise.
15865 * combine.c: Likewise.
15866 * expr.c: Likewise.
15867 * loop.c: Likewise.
15868
15869 2002-01-03 Andreas Schwab <schwab@suse.de>
15870
15871 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15872 and return true if _cpp_push_next_buffer pushed a new include
15873 file.
15874 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15875 _cpp_pop_file_buffer did not push a new file.
15876 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15877
15878 2002-01-02 Eric Christopher <echristo@redhat.com>
15879
15880 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15881 FIND_REG_INC_NOTE call. Update copyright.
15882 * loop.c (canonicalize_condition): Ditto.
15883 * reorg.c (delete_scheduled_jump): Ditto.
15884
15885 2002-01-03 Kazu Hirata <kazu@hxi.com>
15886
15887 * gcse.c: Fix formatting.
15888
15889 2002-01-03 Graham Stott <grahams@redhat.com>
15890
15891 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15892 forward defs for struct tags rtx_def, union_tree, rtvec_def
15893 also output corresponding typedefs for rtx, tree, and rtvec.
15894
15895 * system.h: Move forward defs for struct tags rtx_def, union_tree,
15896 rtvec_def along with corresponding typedefs for rtx, tree, and
15897 rtvec to config.h, hconfig.h, tconfig.h.
15898
15899 2002-01-03 Graham Stott <grahams@redhat.com>
15900
15901 * tree.h: Update copyright date.
15902 (IS_EXPR_CODE_CLASS): Add parenthesis.
15903 (TREE_SET_CODE): Add whitespace.
15904 (TREE_CHECK): Add parenthesis.
15905 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15906 (CST_OR_CONSTRUCTOR_CHECK):
15907 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15908 (TREE_SYMBOL_REFERENCED): Whitespace.
15909 (INT_CST_LT): Likewise.
15910 (INT_CST_LT_UNSIGNED): Likewise.
15911 (tree_real_cst): Unwrap comment.
15912 (tree_string): Likewise.
15913 (tree_complex): Likewise.
15914 (IDENTIFIER_POINTER): correct cast.
15915 (SAVE_EXPR_CONTEXT): Whitespace.
15916 (EXPR_WFL_FILENAME_NODE): Likewise.
15917 (EXPR_WFL_FILENAME): Remove parenthesis.
15918 (DECL_ORIGIN): Add parenthesis.
15919 (DECL_FROM_INLINE): Use NULL_TREE.
15920 (build_int_2): Whitespace.
15921 (build_type_variant): Add parenthesis.
15922
15923 * gcc/jcf-parse.c: Update copyright date.
15924 (yyparse): Constify resource_filename.
15925
15926 2002-01-03 Graham Stott <grahams@redhat.com>
15927
15928 * rtl.h: Update copyright date.
15929 (RTL_CHECK1): Wrap long line.
15930 (RTL_CHECK2): Likewise.
15931 (RTL_CHECKC1): Wrap long line and whitespace.
15932 (RTL_CHECKC2): Likewise.
15933 (XWINT): Whitespace.
15934 (XINT): Likewise.
15935 (XSTR): Likewise.
15936 (XEXP): Likewise.
15937 (XVEC): Likewise.
15938 (XMODE): Likewise.
15939 (XBITMAP): Likewise.
15940 (XTREE): Likewise.
15941 (XBBDEF): Likewise.
15942 (XTMPL): Likewise.
15943 (X0WINT): Likewise.
15944 (X0INT):Likewise.
15945 (X0UINT): Likewise.
15946 (X0STR): Likewise.
15947 (X0EXP): Likewise.
15948 (X0VEC): Likewise.
15949 (X0MODE): Likewise.
15950 (X0BITMAP): Likewise.
15951 (X0TREE): Likewise.
15952 (X0BBDEF): Likewise.
15953 (X0ADVFLAGS): Likewise.
15954 (X0CSELIB): Likewise.
15955 (X0MEMATTR): Likewise.
15956 (XCWINT): Likewise.
15957 (XCINT): Likewise.
15958 (XCUINT): Likewise.
15959 (XCSTR): Likewise.
15960 (XCEXP): Likewise.
15961 (XCVEC): Likewise.
15962 (XCMODE): Likewise.
15963 (XCBITMAP): Likewise.
15964 (XCTREE): Likewise.
15965 (XCBBDEF): Likewise.
15966 (XCADVFLAGS): Likewise.
15967 (XCCSELIB): Likewise.
15968 (XC2EXP): Likewise.
15969 (INSN_UID): Likewise.
15970 (PREV_INSN): Likewise.
15971 (PATTERN): Likewise.
15972 (INSN_CODE): Likewise.
15973 (PUT_REG_NOTE_KIND): Likewise.
15974 (CODE_LABEL_NUMBER): Likewise.
15975 (NOTE_SOURCE_FILE): Likewise.
15976 (NOTE_BLOCK): Likewise.
15977 (NOTE_EH_HANDLER): Likewise.
15978 (NOTE_RANGE_INFO): Likewise.
15979 (NOTE_LIVE_INFO): Likewise.
15980 (NOTE_BASIC_BLOCK): Likewise.
15981 (NOTE_EXPECTED_VALUE): Likewise.
15982 (NOTE_LINE_NUMBER): Likewise.
15983 (LABEL_NAME): Likewise.
15984 (LABEL_NUSES): Likewise.
15985 (LABEL_ALTERNATE_NAME): Likewise.
15986 (ADDRESSOF_DECL): Likewise.
15987 (JUMP_LABEL): Likewise.
15988 (LABEL_NEXTREF): Likewise.
15989 (REGNO): Likewise.
15990 (ORIGINAL_REGNO: Likewise.
15991 (HARD_REGISTER_NUM_P): Add parenthesis.
15992 (SUBREG_REG): Whitespace.
15993 (SUBREG_BYTE): Likewise.
15994 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15995 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15996 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15997 (ASM_OPERANDS_INPUT_VEC): Likewise.
15998 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15999 (ASM_OPERANDS_INPUT): Likewise.
16000 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16001 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16002 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16003 (ASM_OPERANDS_INPUT_MODE): Likewise.
16004 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16005 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16006 (MEM_SET_IN_STRUCT_P): Minor reformat.
16007 (TRAP_CONDITION): Whitespace.
16008 (TRAP_CODE): Likewise.
16009 (COND_EXEC_TEST): Likewise.
16010 (COND_EXEC_CODE): Likewise.
16011 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16012 (PHI_NODE_P): Add parenthesis.
16013 (plus_constant): Whitespace and add parenthesis.
16014
16015 2002-01-03 Kazu Hirata <kazu@hxi.com>
16016
16017 * config/avr/avr.c: Fix comment typos.
16018 * config/c4x/c4x.md: Likewise.
16019 * config/dsp16xx/dsp16xx.h: Likewise.
16020 * config/dsp16xx/dsp16xx.md: Likewise.
16021 * config/i386/i386.md: Likewise.
16022 * config/ia64/ia64.c: Likewise.
16023 * config/m32r/m32r.h: Likewise.
16024 * config/m68hc11/m68hc11.md: Likewise.
16025 * config/mmix/mmix.c: Likewise.
16026 * config/mn10200/mn10200.c: Likewise.
16027 * config/romp/romp.c: Likewise.
16028 * config/sh/sh.c: Likewise.
16029 * config/stormy16/stormy16.c: Likewise.
16030 * config/stormy16/stormy16.h: Likewise.
16031 * config/stormy16/stormy16.md: Likewise.
16032
16033 2002-01-03 Graham Stott <grahams@redhat.com>
16034
16035 * loop.h: Update copyright date.
16036 (LOOP_MOVABLES): Fix typo.
16037 (LOOP_REGS): Likewise.
16038 (LOOP_IVS): Likewise.
16039
16040 2002-01-03 Graham Stott <grahams@redhat.com>
16041
16042 * cppinit.c: Update copyright date.
16043 Don't include output.h
16044 * Makefile.in: Update copyright date.
16045 Update dependency.
16046
16047 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16048
16049 PR c/5226
16050 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16051 (-pthread) Add to RS/6000 options.
16052
16053 2002-01-02 Kazu Hirata <kazu@hxi.com>
16054
16055 * except.c: Fix comment typos.
16056 * loop.c: Likewise.
16057 * varasm.c: Likewise.
16058 * doc/tm.texi: Fix a typo.
16059
16060 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16061
16062 * c-typeck.c (output_init_element): Allow initializing static storage
16063 duration objects with compound literals.
16064
16065 2002-01-02 Richard Henderson <rth@redhat.com>
16066
16067 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16068 after abusing it.
16069
16070 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16071
16072 * gcc.c (default_compilers): Const-ify.
16073 * mips-tdump.c (stab_names): Likewise.
16074 * mips-tfile.c (map_coff_types, map_coff_storage,
16075 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16076 pseudo_ops_t, pseudo_ops): Likewise.
16077 * protoize.c (default_include): Likewise
16078
16079 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16080 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16081 Add array size in declaration.
16082 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16083 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16084 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16085 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16086 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16087 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16088 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16089 emtens, make_nan): Const-ify.
16090 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16091 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16092
16093 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16094
16095 * config.gcc (ia64-*-*): Set extra_headers.
16096 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16097 * config/alpha/t-osf: Remove.
16098 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16099
16100 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16101
16102 * config/rs6000/t-aix43: Revert previous change.
16103
16104 2002-01-02 Jason Merrill <jason@redhat.com>
16105
16106 * c-decl.c (c_expand_body): Call outlining_inline_function when
16107 emitting an inline function out of line.
16108
16109 2002-01-02 Richard Henderson <rth@redhat.com>
16110
16111 * dwarf2out.c (limbo_die_node): Add created_for member.
16112 (new_die): New argument created_for. Update all callers.
16113 (mark_limbo_die_list): New.
16114 (dwarf2out_init): Register limbo_die_list as a root.
16115 (dwarf2out_finish): Force insert limbo dies into their function
16116 context.
16117
16118 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16119
16120 PR c++/5089
16121 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16122
16123 2002-01-02 Kazu Hirata <kazu@hxi.com>
16124
16125 * config/h8300/fixunssfsi.c: Update copyright.
16126 Fix comment typos.
16127 Fix formatting.
16128 * config/h8300/h8300.c: Update copyright.
16129 Eliminate warnings.
16130
16131 2002-01-02 Kazu Hirata <kazu@hxi.com>
16132
16133 * config/romp/romp.c: Fix comment formatting.
16134 * config/romp/romp.h: Likewise.
16135 * config/romp/romp.md: Likewise.
16136 * config/s390/s390.c: Likewise.
16137 * config/stormy16/stormy16.c: Likewise.
16138 * config/stormy16/stormy16.h: Likewise.
16139
16140 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16141
16142 * c-common.h (genrtl_expr_stmt_value): Declare.
16143 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16144 (genrtl_goto_stmt_value): ... this new function. Pass new
16145 argument down to expand_expr_stmt_value, taking
16146 TREE_ADDRESSABLE into account.
16147 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16148 STMT_EXPR as addressable, i.e., one whose result we want.
16149 * expr.c (expand_expr): Don't save expression statement value
16150 of labeled_blocks or loop_exprs.
16151 * stmt.c (expand_expr_stmt): Redirect to...
16152 (expand_expr_stmt_value): ... this new function. Use new
16153 argument to tell whether to save expression value.
16154 (expand_end_stmt_expr): Reset last_expr_type and
16155 last_expr_value if we don't have either.
16156 * tree-inline.c (declare_return_variable): Mark its use
16157 statement as addressable.
16158 * tree.h: Document new use of TREE_ADDRESSABLE.
16159 (expand_expr_stmt_value): Declare.
16160
16161 2002-01-01 Tom Rix <trix@redhat.com>
16162
16163 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16164 rs6000_emit_allocate_stack.
16165
16166 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16167
16168 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16169 ${srcdir}/ginclude/ to every entry in extra_headers.
16170 * configure: Regenerate.
16171 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16172 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16173 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16174 * ginclude/proto.h: Rename to config/convex/proto.h.
16175
16176 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16177
16178 * attribs.c (handle_vector_size_attribute): Use host_integerp
16179 and tree_int_cst; remove warnings.
16180 * caller-save.c (insert_restore): Add cast to get rid of warning.
16181 (insert_save): Likewise.
16182 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16183 * regmove.c (find_matches): Add temporary var to kill a warning.
16184
16185 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16186
16187 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16188 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16189 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16190 (vms-dwarf2eh.o): Add Makefile rule.
16191 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16192 * config/alpha/vms-dwarf2eh.asm: New file.
16193
16194 * gcc.c (delete_if_ordinary): Delete all versions.
16195
16196 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16197
16198 * config/mmix/mmix.md: Update FIXME to not mention
16199 define_constants.
16200 (MMIX_rJ_REGNUM): New define_constants constant.
16201 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16202 "*movdicc_real"): Adjust contraints formatting.
16203 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16204 for branch prediction.
16205 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16206 output template.
16207 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16208 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16209 number. Delete related FIXMEs.
16210 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16211 from number to MMIX_rJ_REGNUM.
16212 (TARGET_MASK_BRANCH_PREDICT): New.
16213 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16214 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16215 value. Add -mbranch-predict and -mno-branch-predict.
16216 (TARGET_VERSION): Drop date.
16217 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16218 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16219 for finding out global symbols.
16220 (mmix_asm_output_labelref): Revert condition for global symbol.
16221 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16222 (mmix_print_operand_punct_valid_p): A '+' is valid.
16223
16224 See ChangeLog.6 for earlier changes.