]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
t-elf: Enable v8 multilibs.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2
3 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4 sparc-elf and sparc-rtems targets.
5
6 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7
8 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10 * arm/linux-elf.h: Likewise.
11 * cris/aout.h: Likewise.
12 * cris/linux.h: Likewise.
13 * i370/linux.h: Likewise.
14 * i386/gnu.h: Likewise.
15 * i386/linux-aout.h: Likewise.
16 * i386/linux-oldld.h: Likewise.
17 * i386/linux.h: Likewise.
18 * i386/linux64.h: Likewise.
19 * ia64/linux.h: Likewise.
20 * m68k/linux-aout.h: Likewise.
21 * m68k/linux.h: Likewise.
22 * mips/linux.h: Likewise.
23 * pa/pa-linux.h: Likewise.
24 * pj/linux.h: Likewise.
25 * rs6000/sysv4.h: Likewise.
26 * s390/linux.h: Likewise.
27 * sh/linux.h: Likewise.
28 * sparc/linux-aout.h: Likewise.
29 * sparc/linux.h: Likewise.
30 * sparc/linux64.h: Likewise.
31 * xtensa/linux.h: Likewise.
32
33 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
34
35 * stmt.c (check_unique_operand_names): Expect operand names to
36 be strings rather than identifiers. Use simple_cst_equal to
37 compare them.
38 (resolve_operand_name_1): Make same identifier to string change here.
39 * c-parse.in (asm_operand): Convert a named operand into a string.
40 * cp/parse.y (asm_operand): Likewise.
41
42 2002-04-13 Andreas Schwab <schwab@suse.de>
43
44 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
45
46 2002-04-12 Mark Mitchell <mark@codesourcery.com>
47
48 Revert these changes:
49
50 2002-04-06 Mark Mitchell <mark@codesourcery.com>
51
52 PR c++/5571
53 * stor-layout.c (layout_decl): Reset the RTL for the decl.
54
55 2002-04-12 Richard Henderson <rth@redhat.com>
56
57 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
58 (sparc*-*-solaris): Clean up header files.
59 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
60 and plan on generating 64-bit code.
61 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
62 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
63 * config/sparc/sol2-sld-64.h: Rename ...
64 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
65 for AS_SPARC64_FLAG not defined.
66 * config/sparc/sol2-gld-bi.h: New.
67 * config/sparc/sol2-sld.h: Remove.
68 * config/sparc/sol26-sld.h: New.
69 * config/sparc/sol2.h: Tidy comments.
70 * doc/install.texi: Document sparc-solaris configury changes.
71
72 2002-04-12 Richard Henderson <rth@redhat.com>
73
74 * recog.c (offsettable_address_p): Match the logic in adjust_address.
75
76 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
77 in 64-bit mode only. Use only for 32-bit or MEDLOW.
78
79 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
80
81 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
82
83 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
84
85 * pa.c (pa_can_combine_p): Call extract_insn before calling
86 constrain_operands.
87
88 2002-04-12 Douglas B Rupp <rupp@gnat.com>
89
90 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
91 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
92 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
93 (CPP_PREDEFINES): Handle __declspec.
94 * config/i386/t-interix (USER_H): Remove.
95
96 2002-04-12 DJ Delorie <dj@redhat.com>
97
98 * integrate.c (compare_blocks): Make comparisons safe for when
99 sizeof(int) < sizeof(char *).
100 (find_block): Likewise.
101
102 2002-04-12 Jan Hubicka <jh@suse.cz>
103 David Edelsohn <edelsohn@gnu.org>
104
105 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
106 registers.
107 (symbol_ref_operand): New.
108 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
109 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
110
111 2002-04-12 Andreas Schwab <schwab@suse.de>
112
113 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
114 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
115 overrides the definition in config/svr4.h.
116
117 2002-04-12 Eric Norum <eric.norum@usask.ca>
118
119 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
120 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
121 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
122 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
123 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
124 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
125 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
126 definitions to config/rtems.h and make the targets more similar.
127
128 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
129
130 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
131 POINTERS_EXTEND_UNSIGNED.
132 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
133 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
134
135 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
136 not specified.
137
138 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
139
140 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
141 depends on TARGET_SHMEDIA, not TARGET_SH5.
142
143 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
144
145 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
146 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
147
148 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
149
150 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
151 no r0 clobber.
152
153 2002-04-12 Andreas Schwab <schwab@suse.de>
154
155 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
156
157 2002-04-12 Richard Henderson <rth@redhat.com>
158
159 PR bootstrap/4191
160 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
161
162 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
163 modes spanning multiple hard regs.
164
165 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
166
167 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
168
169 * pa.c (pa_output_function_prologue): Don't accumulate the total
170 number of code bytes when using TARGET_64BIT, or gas, SOM and not
171 the portable runtime.
172 (output_deferred_plabels): Handle 64bit plabels.
173 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
174 generating pic code using the GAS assembler for object formats that
175 are not SOM (ie., ELF32 and ELF64).
176 (output_millicode_call): Check attribute type if attribute length is 28.
177 Likewise use $PIC_pcrel$0. Only call get_attr_length and
178 dbr_sequence_length once.
179 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
180 dbr_sequence_length once.
181 * pa.h (TARGET_SOM): Define if not defined.
182 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
183 with GAS and not SOM.
184 (jump, call_internal_reg, call_value_internal_reg): Likewise.
185 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
186
187 2002-04-11 David O'Brien <obrien@FreeBSD.org>
188
189 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
190 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
191 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
192 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
193 elfos.h and dbxelf.h values are fine now.
194 * config/i386/freebsd.h, config/alpha/freebsd.h
195 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
196
197 2002-04-11 David O'Brien <obrien@FreeBSD.org>
198
199 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
200 or set Acpu or Amachine. Reformat.
201 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
202 define.
203 (LINK_SPEC): Do not need to undef.
204 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
205 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
206 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
207 define.
208 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
209 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
210 (LINK_SPEC): Do not need to undef.
211 (DONT_USE_BUILTIN_SETJMP): Do not define.
212 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
213 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
214 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
215 Remove trailing spaces.
216 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
217 __ELF__, or set Acpu or Amachine. Reformat.
218 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
219 define.
220
221 2002-04-11 David O'Brien <obrien@FreeBSD.org>
222
223 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
224 all other *-*-freebsd* targets.
225
226 2002-04-11 Richard Henderson <rth@redhat.com>
227
228 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
229
230 2002-04-11 David O'Brien <obrien@FreeBSD.org>
231
232 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
233 Include {cpu}/{cpu}.h thru tm_file.
234 (alpha*-*-linux*ecoff): Remove target.
235 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
236 (LINK_SPEC): Remove, is not OS independent.
237 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
238 (LINK_SPEC): Do not need to #undef any longer.
239 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
240 any longer.
241 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
242 __ELF__.
243 (LINK_SPEC): Moved here from alpha/elf.h.
244 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
245 SUB_CPP_PREDEFINES.
246 * config/alpha/linux-ecoff.h: Remove.
247 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
248 (CPP_SPEC): Define _POSIX_SOURCE as needed.
249 (CPP_SUBTARGET_SPEC): Do not define.
250 (LINK_SPEC): Do not need to #undef any longer.
251 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
252 * config/alpha/vms.h: Likewise.
253
254 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
255
256 * doc/extend.texi: Remove old claim that typedefs cannot have
257 an alignment attribute.
258
259 2002-04-11 Jakub Jelinek <jakub@redhat.com>
260
261 PR optimization/6177
262 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
263 bitpos is 0 and bitsize CONCAT size.
264
265 2002-04-11 Jakub Jelinek <jakub@redhat.com>
266
267 PR c/6223
268 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
269
270 2002-04-10 David O'Brien <obrien@FreeBSD.org>
271
272 * config/alpha/freebsd.h: Minor reformatting.
273 (CPP_SPEC): Define ELF and add cpp_subtarget.
274 (ASM_SPEC): No longer needed.
275
276 2002-04-11 Richard Henderson <rth@redhat.com>
277
278 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
279 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
280 (dimode mem/zero splitter): New.
281
282 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
283
284 * config/cris/cris.c (cris_override_options): Tweak error message
285 for PIC not implemented.
286
287 * config/cris/cris.h: Tweak comments related to parameter-passing.
288
289 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
290
291 2002-04-10 Richard Henderson <rth@redhat.com>
292
293 * except.c (add_ehl_entry): Allow duplicates after landing pad
294 creation.
295
296 2002-04-10 David Edelsohn <edelsohn@gnu.org>
297
298 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
299
300 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
301
302 * c-decl.c (c_init_decl_processing): Move generation of
303 decls for g77_integer_type_node and friends from here ...
304 * c-common.c (c_common_nodes_and_builtins): ... to here.
305
306 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
307
308 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
309 is only used as frame pointer when frame_pointer_needed is true.
310
311 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
312
313 PR target/817
314 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
315 for the fact that the pool entry uses two words.
316 (movdf_hard_insn): Similarly. Also, ADR instruction can span
317 1k bytes.
318 (movdf_soft_insn): Similarly.
319 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
320 for the fact that the pool entry uses three words.
321
322 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
323
324 * config/mips/mips.c (mips_va_arg): When using the struct version
325 of the EABI va_list, allow arguments in the register save area to
326 take up less room than a stack argument.
327
328 2002-04-10 Richard Henderson <rth@redhat.com>
329
330 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
331 if EXPAND_INITIALIZER.
332
333 2002-04-09 Richard Henderson <rth@redhat.com>
334
335 * config/alpha/alpha.md (movdi_er_maybe_g): New.
336 * config/alpha/alpha.c (alpha_expand_mov): Use it.
337
338 2002-04-10 Alan Modra <amodra@bigpond.net.au>
339
340 PR optimization/6233
341 * rtlanal.c (pure_call_p): New function.
342 * rtl.h (pure_call_p): Declare.
343 * loop.c (prescan_loop): Use it to set has_nonconst_call.
344 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
345
346 2002-04-09 Eric Christopher <echristo@redhat.com>
347
348 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
349 information to .comm directive.
350
351 2002-04-09 Richard Henderson <rth@redhat.com>
352
353 PR c/5078
354 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
355
356 2002-04-09 Richard Henderson <rth@redhat.com>
357
358 * basic-block.h (flow_delete_block_noexpunge): Declare.
359 (expunge_block_nocompact): Declare.
360 * cfg.c (expunge_block_nocompact): Split out from ...
361 (expunge_block): ... here.
362 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
363 (flow_delete_block_noexpunge): Split out from ...
364 (flow_delete_block): ... here.
365 * cfgcleanup.c (delete_unreachable_blocks): Compact while
366 removing dead blocks.
367 * except.c (exception_handler_labels): Remove.
368 (exception_handler_label_map): New.
369 (struct eh_region): Add aka member.
370 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
371 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
372 (for_each_eh_label, for_each_eh_label_1): New.
373 (init_eh): Register exception_handler_label_map.
374 (free_eh_status): Use free_region.
375 (find_exception_handler_labels): Use the map, not the list.
376 (remove_exception_handler_label): Likewise.
377 (maybe_remove_eh_handler): Likewise.
378 (remove_eh_handler): Use the region aka bitmap.
379 * except.h (exception_handler_labels): Remove.
380 (for_each_eh_label): Declare.
381 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
382 * loop.c (invalidate_loops_containing_label): New.
383 (find_and_verify_loops): Use it. Use for_each_eh_label.
384 * sched-rgn.c (is_cfg_nonregular): Use
385 current_function_has_exception_handlers.
386
387 2002-04-09 Richard Henderson <rth@redhat.com>
388
389 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
390 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
391 Do not return changed status.
392 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
393 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
394 New functions that do return changed status.
395 * sbitmap.h: Update decls.
396 * gcse.c, lcm.c: Use _cg functions as needed.
397
398 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
399
400 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
401 (sh64-*-elf*, sh-*-rtemself*): Likewise.
402 * config/sh/embed_bb.c: New file.
403 * config/sh/embed-elf.h: New file.
404 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
405 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
406 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
407 __PTRDIFF_TYPE__ .
408 (SUBTARGET_CPP_PTR_SPEC): Don't define.
409 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
410 Add subtarget_asm_endian_spec.
411 (ASM_SPEC): Use subtarget_asm_endian_spec.
412 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
413 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
414 (WCHAR_UNSIGNED): Define.
415 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
416 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
417 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
418 Fix value.
419 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
420 (sh_adjust_cost): Likewise.
421 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
422 __PTRDIFF_TYPE__ .
423 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
424 (WCHAR_TYPE_SIZE): Likewise.
425 (ASM_SPEC): Use subtarget_asm_endian_spec.
426 (SH_ELF_WCHAR_TYPE): #undef/ #define.
427 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
428 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
429 (MAX_WCHAR_TYPE_SIZE): Don't #define .
430 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
431 (USER_LABEL_PREFIX): Don't #undef /#define .
432 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
433 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
434 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
435 (ASM_SPEC): Likewise.
436 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
437 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
438 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
439 (LIB2FUNCS_EXTRA): Define.
440 * t-sh64 (LIB2FUNCS_EXTRA): Define.
441 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
442 (LIB1ASMFUNCS_CACHE): Define.
443 (LIB2FUNCS_EXTRA): Redefine empty.
444
445 2002-04-08 Richard Henderson <rth@redhat.com>
446
447 * reorg.c (get_branch_condition): Use reversed_comparison_code.
448
449 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
450
451 * config/m68hc11/larith.asm (__map_data_section): Fix condition
452 and optimize for size.
453 (__do_global_ctors): Fix pointer comparison.
454 (__do_global_dtors): Likewise.
455
456 2002-04-09 David S. Miller <davem@redhat.com>
457
458 * config/sparc/sparc.c (sparc_extra_constraint_check): New
459 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
460 allow reloading pseudos.
461 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
462 * config/sparc/sparc-protos.h: Declare it.
463
464 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
465 unsigned comparison warning.
466 (output_restore_regs): Mark leaf_function as unused.
467
468 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
469
470 * expr.c (is_aligning_offset): New function.
471 (expand_expr, case COMPONENT_EXPR): Call it.
472
473 2002-04-08 David S. Miller <davem@redhat.com>
474
475 PR target/6082
476 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
477
478 Make init_priority work on Sparc when using GNU ld.
479 * config/sparc/linux.h, config/sparc/linux64.h,
480 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
481 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
482 * config/sparc/sol2-gld.h: New file to do the same.
483 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
484 sparc/sol2-gld.h to tm_file.
485
486 PR optimization/4328
487 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
488 * doc/md.texi: Document it.
489 * config/sparc/sparc.md (movdi_insn_sp64_novis,
490 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
491 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
492 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
493 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
494
495 2002-04-08 Andreas Jaeger <aj@suse.de>
496
497 * stmt.c (expand_asm_operands): Revert last patch from Richard
498 Henderson.
499
500 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
501
502 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
503 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
504
505 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
506
507 * doc/contrib.texi (Contributors): Add David O'Brien.
508
509 2002-04-08 Alan Modra <amodra@bigpond.net.au>
510
511 * configure.in (auto-build.h): Use target_alias and build_alias
512 when running configure.
513 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
514 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
515 * configure: Regenerate.
516
517 2002-04-07 David S. Miller <davem@redhat.com>
518
519 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
520
521 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
522
523 PR 5933
524 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
525 generating 32-bit pic code.
526
527 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
528
529 * cppinit.c (cpp_create_reader): Initialize
530 discard_comments_in_macro_exp.
531 (COMMAND_LINE_OPTIONS): Add "-CC" option.
532 (cpp_handle_option): Handle "-CC" option.
533 * cpplex.c (save_comment): If saving a C++ comment in
534 a directive, convert it to a C comment.
535 (_cpp_lex_direct): Pass second comment start character to
536 save_comment to indicate comment type.
537 * cpplib.c (_cpp_handle_directive): If processing
538 a "#define" directive and discard_comments_in_macro_exp
539 is false, re-enable saving of comments.
540 (lex_macro_node): If discard_comments_in_macro_exp is false,
541 discard any comments before the macro identifier.
542 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
543 member.
544 * cppmacro.c (cpp_get_token): If expanding a macro while
545 processing a directive, discard any comments we might encounter.
546 (parse_params): If discard_comments_in_macro_exp is false,
547 ignore comments in the macro parameter list.
548 * gcc.c (cpp_unique_options): Add "-CC" option.
549 (option_map): Map "--comments-in-macros" to "-CC".
550 * doc/cppopts.texi: Document "-CC" option.
551 * f/lang-specs.h: Add "-CC" option.
552 * testsuite/gcc.dg/cpp/maccom1.c: New test.
553 * testsuite/gcc.dg/cpp/maccom2.c: New test.
554 * testsuite/gcc.dg/cpp/maccom3.c: New test.
555 * testsuite/gcc.dg/cpp/maccom4.c: New test.
556 * testsuite/gcc.dg/cpp/maccom5.c: New test.
557 * testsuite/gcc.dg/cpp/maccom6.c: New test.
558
559 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
560
561 PR middle-end/6180
562 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
563
564 2002-04-06 Mark Mitchell <mark@codesourcery.com>
565
566 PR c++/5571
567 * stor-layout.c (layout_decl): Reset the RTL for the decl.
568
569 PR opt/5120
570 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
571 RTX_UNCHANGING_P for the functions arguments when a tail call
572 is made.
573
574 2002-04-06 Jason Merrill <jason@redhat.com>
575
576 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
577 (parse_options_and_default_flags): Set them appropriately.
578 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
579
580 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
581
582 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
583 here.
584
585 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
586 semicolon.
587
588 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
589 types come in by-reference. Fix typo in comment.
590
591 2002-04-05 David S. Miller <davem@redhat.com>
592
593 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
594 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
595 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
596 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
597
598 2002-04-05 David S. Miller <davem@redhat.com>
599
600 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
601 are not going to emit return instructions, emit at least a nop
602 for the sake of sane backtraces.
603
604 2002-04-05 Richard Henderson <rth@redhat.com>
605
606 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
607
608 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
609
610 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
611
612 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
613
614 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
615 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
616 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
617
618 2002-04-05 Andreas Schwab <schwab@suse.de>
619
620 * c-convert.c: Include c-common.h.
621 * Makefile.in (c-convert.o): Updated.
622
623 2002-04-05 Jakub Jelinek <jakub@redhat.com>
624
625 * mklibgcc.in: Use separate libgcc.map for each multilib.
626 * Makefile.in (distclean): Don't remove libgcc.map here.
627
628 2002-04-05 Jakub Jelinek <jakub@redhat.com>
629
630 * Makefile.in (s-mlib): Handle --disable-multilib by separate
631 genmultilib invocation.
632
633 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
634
635 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
636 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
637 to num_gprs for symmetry.
638 * config/mips/mips.c: Adjust accordingly.
639
640 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
641
642 * c-common.c (truthvalue_conversion): Rename, update.
643 * c-common.h (c_common_truthvalue_conversion): New.
644 * c-convert.c (convert): Update.
645 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
646 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
647 * c-typeck.c (build_binary_op, build_unary_op,
648 build_conditional_expr): Update.
649 * fold-const.c (constant_boolean_node, fold): Use langhook.
650 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
651 * langhooks.h (struct lang_hooks): New hook.
652 * stmt.c (expand_decl_cleanup): Use langhook.
653 * tree.h (truthvalue_conversion): Remove.
654 objc:
655 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
656
657 2002-04-05 Alan Modra <amodra@bigpond.net.au>
658
659 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
660 Add rules to make null object file.
661
662 2002-04-04 Jim Blandy <jimb@redhat.com>
663
664 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
665 macro formal parameter names.
666
667 2002-04-04 David S. Miller <davem@redhat.com>
668
669 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
670
671 2002-04-04 Richard Henderson <rth@redhat.com>
672
673 PR middle-end/5099
674 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
675 Support copies into and out of memory. Don't accept allows_reg
676 and allows_mem as gospel.
677
678 2002-04-04 Richard Henderson <rth@redhat.com>
679
680 PR opt/6165
681 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
682 (write_dependence_p): Likewise.
683
684 2002-04-04 Richard Henderson <rth@redhat.com>
685
686 * predict.c (estimate_bb_frequencies): Do frequency calculation
687 with a volatile temporary.
688
689 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
690
691 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
692
693 2002-04-04 Jakub Jelinek <jakub@redhat.com>
694
695 PR c++/6119
696 * final.c (final_start_function): Don't bump profile_label_no here...
697 (final_end_function): ...but here.
698
699 2002-04-04 Jakub Jelinek <jakub@redhat.com>
700
701 * config/sparc/sparc.md (pic): New attribute.
702 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
703 into stack slots.
704 (split after do_builtin_setjmp_setup): New.
705
706 2002-04-04 Jakub Jelinek <jakub@redhat.com>
707
708 PR fortran/6106
709 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
710 change.
711
712 2002-04-04 Jakub Jelinek <jakub@redhat.com>
713
714 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
715 UNITS_PER_WORD for zero sized aggregates.
716
717 2002-04-03 David S. Miller <davem@redhat.com>
718
719 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
720 one-character spec for this, just use %(link_gcc_c_sequence).
721
722 2002-04-03 David S. Miller <davem@redhat.com>
723
724 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
725 handling.
726
727 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
728
729 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
730 (DWARF_FRAME_RETURN_COLUMN): Move.
731 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
732 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
733 * pa.c (except.h, predict.h): Include.
734 (FRP): Delete.
735 (store_reg_modify, set_reg_plus_d): Revise prototypes.
736 (output_ascii): Add cast.
737 (store_reg_modify): Revise to add frame notes.
738 (set_reg_plus_d): Likewise.
739 (compute_frame_size): Include space for eh data registers in frame if
740 the current function calls eh_return.
741 (hppa_expand_prologue): Ensure register %r2 is saved if the current
742 function calls eh_return. Save eh data registers if the current
743 function calls eh_return. Fix code to add frame notes. Emit
744 blockage to prevent insns with frame notes being scheduled in the
745 delay slot of calls.
746 (hppa_expand_epilogue): Restore eh data registers and do final stack
747 adjustment if the current function calls eh_return. Don't add frame
748 notes.
749 (output_call): Revise for change in length of call insn. Don't do
750 return pointer adjustment for an unconditional jump in the delay slot
751 of a call when using frame notes.
752 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
753 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
754 (ARG_POINTER_CFA_OFFSET): Define.
755 * pa.md (return_external_pic): New pattern.
756 (prologue): Correct formatting. Use return_external_pic if current
757 function calls eh_return.
758 (call_internal_symref, call_value_internal_symref,
759 sibcall_internal_symref, sibcall_value_internal_symref): Change default
760 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
761 respectively.
762 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
763
764 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
765 list of targets to check using "nop" insn.
766 * configure: Rebuilt.
767
768 2002-04-04 Alan Modra <amodra@bigpond.net.au>
769
770 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
771
772 2002-04-03 David S. Miller <davem@redhat.com>
773
774 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
775 library sequence passed to the linker.
776 (LINK_COMMAND_SPEC): Use it.
777 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
778 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
779 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
780
781 2002-04-03 Jason Merrill <jason@redhat.com>
782
783 * except.c (struct eh_status): Remove protect_list.
784 (begin_protect_partials, end_protect_partials): Remove.
785 (add_partial_entry): Remove.
786 * except.h: Remove prototypes.
787
788 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
789 expand_decl_cleanup_eh.
790
791 PR c++/5636
792 * tree.h (CLEANUP_EH_ONLY): New macro.
793 * stmt.c (expand_decl_cleanup_eh): New fn.
794 (expand_cleanups): Check CLEANUP_EH_ONLY.
795 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
796 Use expand_decl_cleanup_eh.
797 (expand_stmt): Adjust.
798 * c-common.h: Adjust prototype.
799
800 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
801
802 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
803 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
804 (cris_target_asm_function_epilogue): Ditto.
805 (cris_initial_frame_pointer_offset): Ditto.
806 (cris_simple_epilogue): Ditto.
807 (cris_expand_builtin_va_arg): Variable-size types come in
808 by-reference.
809
810 2002-04-03 David S. Miller <davem@redhat.com>
811
812 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
813 little-endian.
814 (set_fast_math): Correct 'fsr' type.
815
816 2002-04-03 Richard Henderson <rth@redhat.com>
817
818 PR opt/3569
819 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
820 * toplev.c (check_global_declarations): Use it.
821 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
822 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
823 (LANG_HOOKS_DECLS): Add it.
824 * langhooks.c (lhd_warn_unused_global_decl): New.
825 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
826 * c-objc-common.c (c_warn_unused_global_decl): New.
827 * c-tree.h (c_warn_unused_global_decl): Declare.
828 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
829
830 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
831
832 * langhooks-def.h (lhd_set_decl_assembler_name,
833 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
834 (LANG_HOOKS_INITIALIZER): Update.
835 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
836 * langhooks.h (struct lang_hooks): New hook.
837 * tree.c (set_decl_assembler_name): Move to langhooks.c.
838 (lang_set_decl_assembler_name): Remove.
839 (init_obstacks): Don't set hook.
840 (decl_assembler_name): New function.
841 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
842 (decl_assembler_name): New.
843 (lang_set_decl_assembler_name): Remove.
844
845 2002-04-03 Jakub Jelinek <jakub@redhat.com>
846
847 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
848 works properly with .hidden symbols.
849 * configure: Rebuilt.
850 * config.in: Rebuilt.
851 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
852 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
853 properly with .hidden symbols.
854
855 2002-04-03 Jakub Jelinek <jakub@redhat.com>
856
857 PR middle-end/6102
858 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
859 USE argument.
860
861 2002-04-03 Richard Henderson <rth@redhat.com>
862
863 PR opt/4120
864 * sched-rgn.c (sets_likely_spilled): New.
865 (sets_likely_spilled_1): New.
866 (add_branch_dependences): Use it.
867
868 2002-04-02 Richard Henderson <rth@redhat.com>
869
870 PR opt/4311
871 * loop.h (LOOP_FIRST_PASS): New.
872 * loop.c (strength_reduce): Mind it when deciding to unroll.
873 * toplev.c (rest_of_compilation): Set it.
874
875 2002-04-02 David S. Miller <davem@redhat.com>
876
877 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
878 mems_ok_for_ldd_peep when the order of the loads being examined
879 is reversed.
880 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
881 existing comment to increase comprehension of this situation.
882
883 2002-04-02 Zack Weinberg <zack@codesourcery.com>
884
885 * config/sh/sh.md: Don't use union real_extract.
886
887 2002-04-02 Richard Henderson <rth@redhat.com>
888
889 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
890
891 2002-04-02 David O'Brien <obrien@FreeBSD.org>
892
893 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
894 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
895 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
896 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
897 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
898 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
899 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
900 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
901 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
902 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
903 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
904 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
905 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
906 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
907 Include as many configury headers via tm_file as possible. This
908 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
909 * config/openbsd-oldgas.h: New file.
910 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
911 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
912 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
913 config/i386/i386-coff.h, config/i386/i386-interix.h,
914 config/i386/iscdbx.h, config/i386/linux-aout.h,
915 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
916 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
917 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
918 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
919 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
920 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
921 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
922 config/i386/vxi386.h: Do not directly include configury headers.
923 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
924 Directly include configury headers that are no longer automatically
925 included by the above headers.
926 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
927 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
928 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
929 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
930 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
931 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
932 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
933 (TARGET_VERSION): Define.
934 * config/i386/beos-elf.h, config/i386/freebsd.h,
935 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
936 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
937 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
938 config/i386/sco5.h, config/i386/sysv4.h
939 (TARGET_VERSION): Do not need to protect.
940 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
941 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
942 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
943 config/i386/i386-interix.h, config/i386/linux-aout.h,
944 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
945 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
946 (YES_UNDERSCORES): Do not define - not needed.
947 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
948 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
949 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
950 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
951 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
952 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
953 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
954 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
955
956 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
957 Richard Henderson <rth@redhat.com>
958
959 PR c/5484
960 * function.c (assign_temp): Accept either type or decl argument.
961 Detect variables whose size is too large to fit into an integer.
962 * stmt.c (expand_decl): Pass the decl, not the type.
963
964 2002-04-02 David O'Brien <obrien@FreeBSD.org>
965
966 * protoize.c: Match include directory usage with cppdefault.c.
967
968 2002-04-03 Jeffrey A Law (law@redhat.com)
969 Hans-Peter Nilsson <hp@bitrange.com>
970
971 * combine.c (simplify_comparison): Avoid narrowing a comparison
972 with a paradoxical subreg when doing so would drop signficant bits.
973
974 2002-04-02 Steve Ellcey <sje@cup.hp.com>
975
976 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
977 if POINTERS_EXTEND_UNSIGNED is defined.
978
979 2002-04-02 Richard Henderson <rth@redhat.com>
980
981 PR opt/3967
982 * local-alloc.c (contains_replace_regs): LO_SUM may contain
983 replace regs.
984
985 2002-04-02 Richard Henderson <rth@redhat.com>
986
987 * doc/standards.texi: Document required freestanding libc entry points.
988
989 2002-04-02 Alan Modra <amodra@bigpond.net.au>
990
991 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
992 associated splitter. Remove MQ constraint.
993 (ctrdi_internal4): Correct CCmode clobber.
994
995 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
996
997 * milli64.S ($$dyncall): New function.
998 * t-linux (LIB1ASMFUNCS): Revise module list.
999 (LIB1ASMSRC): Use pa/milli64.S.
1000
1001 2002-04-02 Richard Henderson <rth@redhat.com>
1002
1003 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1004 rename solaris_sys_varargs_h.
1005
1006 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1007
1008 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1009 the same mode as its component.
1010
1011 2002-04-02 Richard Henderson <rth@redhat.com>
1012
1013 PR opt/190
1014 * final.c (this_is_asm_operands): Export.
1015 * output.h (this_is_asm_operands): Declare.
1016 * config/i386/i386.c (print_operand): Error odd asm operands.
1017
1018 2002-04-02 Richard Henderson <rth@redhat.com>
1019
1020 PR opt/420
1021 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1022
1023 2002-04-01 Richard Henderson <rth@redhat.com>
1024
1025 PR target/1538
1026 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1027 * fixinc/fixincl.x: Rebuild.
1028
1029 2002-04-01 Richard Henderson <rth@redhat.com>
1030
1031 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1032 (atomic_alloc, atomic_free): New.
1033 (SIZE, MASK_FOR, PTR_IN): New.
1034 (emergency_reg_state, emergency_reg_state_free): New.
1035 (emergency_labeled_state, emergency_labeled_state_free): New.
1036 (reg_state_alloced, labeled_state_alloced): New.
1037 (alloc_reg_state, free_reg_state): New.
1038 (alloc_label_state, free_label_state, free_label_states): New.
1039 (push, pop, dup_state_stack, free_state_stack): Use them.
1040 (desc_label_state): Likewise.
1041 (uw_frame_state_for): Free label states and state stack.
1042 (uw_update_reg_address): Eliminate warnings.
1043
1044 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
1045
1046 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1047 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1048
1049 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1050
1051 * c-decl.c (grokdeclarator): Update.
1052 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1053 * c-tree.h (c_mark_addressable): New.
1054 * c-typeck.c (default_function_array_conversion, build_unary_op,
1055 build_array_ref, convert_for_assignment): Update.
1056 (mark_addressable): Rename.
1057 * calls.c (try_to_integrate, expand_call): Use langhook.
1058 * expr.c (expand_expr): Use langhook.
1059 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1060 * langhooks.h (struct lang_hooks): New hook.
1061 * stmt.c (expand_asm_operands): Use langhook.
1062 * tree.h (mark_addressable): Remove.
1063 objc:
1064 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1065
1066 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1067
1068 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1069 in previous change.
1070
1071 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1072
1073 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1074 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1075
1076 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1077
1078 * c-common.c (unsigned_conversion_warning, convert_and_check,
1079 unsigned_type, signed_type, shorten_compare,
1080 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1081 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1082 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1083 New.
1084 * c-decl.c (grokdeclarator): Update.
1085 * c-format.c (check_format_types): Update.
1086 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1087 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1088 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1089 * convert.c (convert_to_integer): Use new hooks.
1090 * expmed.c (make_tree): Use new hooks.
1091 * expr.c (store_expr): Use new hooks.
1092 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1093 all_ones_mask_p, unextend, fold): Use new hooks.
1094 * langhooks.h (struct lang_hooks_for_types): New hooks.
1095 * tree.h (signed_or_unsigned_type, signed_type,
1096 unsigned_type): Remove.
1097 objc:
1098 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1099 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1100
1101 2002-03-31 Richard Henderson <rth@redhat.com>
1102
1103 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1104 (desc_frgr_mem): Fix reference to f16-f31.
1105
1106 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1107
1108 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1109 RTVEC_ELT): Const-ify.
1110 * varray.h (VARRAY_CHECK): Const-ify.
1111 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1112 ggc_mark_rtvec, ggc_mark): Const-ify.
1113
1114 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1115
1116 * diagnostic.c: Include langhooks-def.h.
1117 * Makefile.in (diagnostic.o): Update.
1118
1119 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1120
1121 * c-common.c (c_unsafe_for_reeval): Rename.
1122 * c-common.h (c_unsafe_for_reeval): Rename.
1123 * c-decl.c (finish_incomplete_decl): Rename.
1124 (c_init_decl_processing): Don't set langhook.
1125 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1126 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1127 * c-objc-common.c (c_objc_common_init): Don't set langhook.
1128 * c-tree.h (finish_incomplete_decl): Rename.
1129 * langhooks-def.h (lhd_unsafe_for_reeval): New.
1130 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1131 (LANG_HOOKS_INITIALIZER): Update.
1132 * langhooks.c (lhd_unsafe_For_reeval): New.
1133 * langhooks.h (struct langhooks): New hooks.
1134 * toplev.c (incomplete_decl_finalize_hook): Remove.
1135 (wrapup_global_declarations): Update.
1136 * tree.c (lang_unsafe_for_reeval): Remove.
1137 (unsafe_for_reeval): Update.
1138 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1139 Remove.
1140 objc:
1141 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1142 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1143
1144 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1145
1146 * diagnostic.c (print_error_function): Remove.
1147 (default_print_error_function): Rename.
1148 (report_error_function): Update.
1149 * diagnostic.h (print_error_function): Remove.
1150 (default_print_error_function): Remove.
1151 * langhooks-def.h (struct diagnostic_context): Predeclare.
1152 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1153 (LANG_HOOKS_INITIALIZER): Update.
1154 * langhooks.h (struct diagnostic context): Predeclare.
1155 (struct lang_hooks): New hook.
1156
1157 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1158
1159 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1160 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1161 !flag_pic.
1162 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1163 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1164 of PIC_OFFSET_TABLE_REGNUM thruout.
1165 * config/rs6000/rs6000.md: Likewise.
1166 * config/rs6000/darwin.h: Likewise.
1167
1168 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1169
1170 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1171 unsigned HOST_WIDE_INT, not unsigned int.
1172
1173 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1174
1175 PR middle-end/6096, middle-end/6098, middle-end/6099
1176 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1177 CODE_LABELs.
1178 (fill_slots_from_thread): Likewise.
1179
1180 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1181
1182 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1183 floating fields in float regs.
1184 (function_arg_record_value_2): Likewise.
1185
1186 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1187
1188 * config/mmix/mmix.md (define_constants): Remove misleading
1189 FIXME. Add MMIX_fp_rO_OFFSET.
1190 ("nonlocal_goto_receiver"): Don't have stack-frame address of
1191 saved rO as part of the pattern. Remove FIXME.
1192 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
1193 here, at output-time.
1194
1195 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1196
1197 PR middle-end/6100
1198 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1199 REG_BR_PRED.
1200 (output_v9branch): Likewise.
1201
1202 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1203
1204 * gcc.c: Revert previous patch for now.
1205 * config/i386/djgpp.h: Likewise.
1206
1207 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1208
1209 * config/mmix/crti.asm (_init): Register _fini with atexit.
1210 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1211
1212 2002-03-31 Richard Henderson <rth@redhat.com>
1213
1214 PR target/3997
1215 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1216 (ASM_OUTPUT_DEF_FROM_DECLS): New.
1217
1218 2002-03-31 Richard Henderson <rth@redhat.com>
1219
1220 * libgcc2.c (__bb_exit_func): Make static.
1221
1222 * config/alpha/alpha.md (trap): New.
1223
1224 2002-03-31 Richard Henderson <rth@redhat.com>
1225
1226 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1227 promoted argument types; build trap.
1228 (expand_builtin_trap): New.
1229 (expand_builtin): Use it.
1230 * stmt.c (expand_nl_goto_receivers): Likewise.
1231 * expr.h (expand_builtin_trap): Declare.
1232 * libfuncs.h (LTI_abort, abort_libfunc): New.
1233 * optabs.c (init_optabs): Init abort_libfunc.
1234
1235 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1236
1237 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1238 (LINK_COMMAND_SPEC): ... from here.
1239 (init_gcc_specs): Duplicate it here too, omitting
1240 shared_name in the second copy.
1241 (init_spec): Test for duplicate
1242 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1243
1244 2002-03-30 David S. Miller <davem@redhat.com>
1245
1246 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1247 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1248
1249 2002-03-30 Roger Sayle <roger@eyesopen.com>
1250 Richard Henderson <rth@redhat.com>
1251
1252 * regmove.c (combine_stack_adjustments_for_block): Avoid
1253 emitting a stack adjustment of zero bytes. Let delete_insn
1254 update bb->head.
1255
1256 2002-03-30 Richard Henderson <rth@redhat.com>
1257
1258 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1259 (sparc_emitting_epilogue): New.
1260 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1261 * config/sparc/sparc-protos.h: Update.
1262 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1263 (TARGET_SWITCHES): Update.
1264 * config/sparc/sparc.md (return): Remove.
1265 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1266 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1267 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1268 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1269 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1270 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1271 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1272 Remove MASK_EPILOGUE.
1273 * doc/invoke.texi: Update.
1274
1275 2002-03-30 Daniel Berlin <dan@dberlin.org>
1276
1277 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1278 CPP will start the file for us.
1279
1280 2002-03-30 Richard Henderson <rth@redhat.com>
1281
1282 PR target/5446
1283 * config/ia64/ia64.c (group_barrier_needed_p): Special case
1284 prologue_allocate_stack.
1285 (ia64_single_set): Use insn codes for recognition of special
1286 cases, not rtl matching.
1287 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1288
1289 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
1290
1291 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1292
1293 2002-03-30 Richard Henderson <rth@redhat.com>
1294
1295 PR target/6032
1296 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1297 or -fomit-frame-pointer with profiling.
1298 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1299 (FUNCTION_PROFILER): Do nothing.
1300 (PROFILE_HOOK): New.
1301 * config/sparc/sparc.c (sparc_override_options): Don't check
1302 code models for profiling.
1303 (sparc_function_profiler): Remove.
1304 (sparc_profile_hook): New.
1305 * config/sparc/sparc-protos.h: Update.
1306
1307 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR optimization/6086
1310 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1311 of SUBREG of volatile MEM or because the MEM was mode dependent,
1312 return CLOBBER instead of unmodified SUBREG.
1313
1314 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1315
1316 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1317 when not optimizing.
1318
1319 * toplev.c (rest_of_compilation): Cann mark_constant_function
1320 only when optimizing.
1321
1322 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1323 are NULL.
1324
1325 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1326 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1327 (try_optimize_cfg): clear all AUX fields.
1328
1329 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1330 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1331 (ix86_address_cost): Be prepared for SUBREGed registers.
1332 (legitimate_address_p): Accept SUBREGed registers.
1333
1334 2002-03-29 Richard Henderson <rth@redhat.com>
1335
1336 PR target/5672
1337 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1338
1339 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1340
1341 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1342 for aggregate and TFmode types.
1343
1344 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1345
1346 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1347
1348 2002-03-29 Richard Henderson <rth@redhat.com>
1349
1350 PR target/5886
1351 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1352 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1353
1354 2002-03-29 Richard Henderson <rth@redhat.com>
1355
1356 PR target/6041
1357 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1358 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1359 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1360 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1361 conditional.
1362 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1363
1364 2002-03-29 Dale Johannesen <dalej@apple.com>
1365
1366 * loop.c (combine_movables): Do allow combination of pseudos.
1367
1368 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
1369
1370 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1371 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1372 No functional change except ...
1373 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
1374 * doc/install.texi (*-*-freebsd*): Document port configuration.
1375
1376 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1377
1378 * Makefile.in (convert.o, calls.o, expmed.o): Update.
1379 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1380 Use new hooks.
1381 * builtin-types.def (BT_PTRMODE): Update.
1382 * c-common.c (type_for_size): Rename c_common_type_for_size.
1383 (type_for_mode): Similarly.
1384 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1385 Use new hook.
1386 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1387 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1388 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1389 Redefine.
1390 * c-typeck.c (common_type, comptypes, default_conversion):
1391 Use new hooks.
1392 * calls.c: Include langhooks.h.
1393 (emit_library_call_value_1): Use new hooks. Avoid redundant
1394 calls.
1395 * convert.c: Include langhooks.h
1396 (convert_to_pointer, convert_to_integer): Use new hooks.
1397 * except.c (init_eh): Similarly.
1398 * expmed.c: Include langhooks.h.
1399 (expand_mult_add): Use new hooks.
1400 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1401 try_casesi): Similarly.
1402 * fold-const.c (optimize_bit_field_compare, make_range,
1403 decode_field_reference, fold_truthop, fold): Similarly.
1404 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1405 put_var_into_stack): Similarly.
1406 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1407 LANG_HOOKS_TYPE_FOR_SIZE): New.
1408 (LANG_HOOKS_TYPES_INITIALIZER): Update.
1409 * langhooks.h (lang_hooks_for_types): New hooks.
1410 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1411 * tree.c (get_unwidened, get_narrower): Similarly.
1412 * tree.h (type_for_mode, type_for_size): Remove.
1413 * varasm.c (force_const_mem): Use new hooks.
1414 * utils2.c (nonbinary_modular_operation): Update.
1415 objc:
1416 * objc-act.c (handle_impent): Update.
1417 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1418 Redefine.
1419
1420 2002-03-29 Steve Ellcey <sje@cup.hp.com>
1421
1422 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1423 * config/ia64/ia64.c (basereg_operand): New.
1424 * config/ia64/ia64-protos.h (basereg_operand): Declare.
1425 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1426
1427 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1428
1429 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1430 unwind information when frame_pointer_needed.
1431 (mmix_assemble_integer): Tweak wording in comment.
1432
1433 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1434
1435 * Makefile.in (except.o): Update.
1436 * except.c: Include langhooks.h.
1437 (init_eh): Use langhook.
1438 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1439 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1440 (LANG_HOOKS_INITIALIZER): Update.
1441 * langhooks.h (lang_hooks_for_types): New.
1442 (struct lang_hooks): Add it.
1443 * tree.c (make_lang_type_fn, make_lang_type): Remove.
1444 * tree.h (make_lang_type_fn, make_lang_type): Remove.
1445 config:
1446 * alpha/alpha.c: Include langhooks.h.
1447 (alpha_build_va_list): Use langhook.
1448 * d30v/d30v.c: Include langhooks.h.
1449 (d30v_build_va_list): Use langhook.
1450 * i386/i386.c: Include langhooks.h.
1451 (ix86_build_va_list): Use langhook.
1452 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1453 * s390/s390.c: Include langhooks.h.
1454 (s390_build_va_list): Use langhook.
1455 * stormy16/stormy16.c: Include langhooks.h.
1456 (stormy16_build_va_list): Use langhook.
1457
1458 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1459
1460 PR c++/5964
1461 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1462 attributes.
1463 (length): Compute variable length for branches/calls/jumps here.
1464 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1465 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1466 define branch_type attribute.
1467 (divsi3_sp32): Maximum length is 6 not 7.
1468 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1469 call_address_untyped_struct_value_sp32,
1470 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1471 * config/sparc/sparc.c (empty_delay_slot): New function.
1472 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1473 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1474
1475 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1476
1477 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1478 nonzero_bits if not needed.
1479 (nonzero_bits) [XOR]: Likewise.
1480 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1481 reg_last_set_mode and mode are both MODE_INT, but not equal.
1482 (record_value_for_reg): Compute reg_last_set_nonzero_bits
1483 in nonzero_bits_mode for MODE_INT modes.
1484
1485 2002-03-28 Richard Henderson <rth@redhat.com>
1486
1487 PR target/5715
1488 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1489 to GAS. Correct drift between alternatives.
1490
1491 2002-03-28 Richard Henderson <rth@redhat.com>
1492
1493 PR target/6087
1494 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1495
1496 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
1497
1498 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1499 emulation to the linker.
1500
1501 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
1502
1503 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1504 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1505
1506 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
1507
1508 * combine.c (simplify_and_const_int): Make sure to apply mask
1509 when force_to_mode returns a constant integer. PR3311.
1510
1511 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1512
1513 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1514
1515 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1516
1517 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1518 and Objective-C Dialect Options.
1519
1520 2002-03-28 Richard Henderson <rth@redhat.com>
1521
1522 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1523 comparison should be done vs !=0 not >0 return code. Tidy cases.
1524
1525 2002-03-28 Richard Henderson <rth@redhat.com>
1526
1527 * c-decl.c (finish_function): New arg can_defer_p. Pass it
1528 on to c_expand_body.
1529 * c-tree.h (finish_function): Update decl.
1530 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1531
1532 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
1533
1534 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1535
1536 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
1537
1538 * rtlanal.c: Include flags.h
1539 (may_trap_p): Do not mark FP operations if trapping
1540 if !flag_trapping_math
1541 * Makefile.in (rtlanal.o): Add dependency on flag.h
1542 * ifcvt.c (noce_operand_ok): Avoid the lameness.
1543
1544 2002-03-27 Zack Weinberg <zack@codesourcery.com>
1545
1546 * mips.md: Use dconst1, not 1.0, as first argument of
1547 REAL_VALUE_LDEXP. Don't use union real_extract.
1548
1549 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1550
1551 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1552 rather than $target. Heed program_prefix and
1553 program_transform_name. Search for gas in cross-compiler case too.
1554 "test -x" rather than "test -f".
1555 (gcc_cv_ld): Likewise.
1556 (gcc_cv_nm): Heed program_prefix and program_transform_name.
1557 (gcc_cv_objdump): Likewise.
1558 * configure: Regenerate.
1559
1560 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1561
1562 * Makefile.in (attribs.o): Update.
1563 * attribs.c: Include langhooks.h.
1564 (decl_attributes): Use langhook.
1565 * c-decl.c (insert_default_attributes): Rename.
1566 * c-tree.h (c_insert_default_attributes): New.
1567 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1568 (LANG_HOOKS_INITIALIZER): Update.
1569 * langhooks.h (struct lang_hooks): New hook.
1570 * tree.h (insert_default_attributes): Remove.
1571 objc:
1572 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1573
1574 2002-03-27 Andreas Schwab <schwab@suse.de>
1575
1576 * config/i386/i386.c (classify_argument): Also check for
1577 QUAL_UNION_TYPE.
1578
1579 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1580
1581 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1582 any more.
1583
1584 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
1585
1586 * i960.md (ret): Set PC.
1587 (nonlocal_goto): Fix expander.
1588 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1589 some jump or call.
1590
1591 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1592
1593 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1594 of libcall regions.
1595
1596 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1597
1598 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1599 assigning to BLOCK_FOR_INSN directly.
1600
1601 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1602
1603 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1604
1605 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1606
1607 * c-common.c (c_expand_expr): Fix prototype.
1608 * c-common.h (c_expand_expr): Always declare, update.
1609 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1610 * c-objc-common.c (c_objc_common_init): No global hook.
1611 * expr.c (expand_expr): Use langhook.
1612 * expr.h (enum expand_modifier): Conditionally declare.
1613 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1614 (LANG_HOOKS_INITIALIZER): Update.
1615 * langhooks.c (lhd_expand_expr): New.
1616 * langhooks.h (struct lang_hooks): New hook.
1617 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1618 (lang_independent_init): Don't default hook.
1619 objc:
1620 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1621
1622 2002-03-27 Richard Henderson <rth@redhat.com>
1623
1624 PR target/6054
1625 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1626 TARGET_CONST_GP. Simplify conditions.
1627
1628 2002-03-27 Richard Henderson <rth@redhat.com>
1629
1630 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1631 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1632 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1633
1634 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
1635
1636 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1637 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1638 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1639 Remove unnecessary masks.
1640 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1641 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1642 -mwindows, -mdll switches and their negations.
1643
1644 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1645
1646 * gcc-common.c (lang_mark_false_label_stack): Remove.
1647 * ggc.h (lang_mark_false_label_stack): Similarly.
1648
1649 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
1650
1651 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1652
1653 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1654 or __rtems_ is defined.
1655
1656 2002-03-26 Richard Henderson <rth@redhat.com>
1657
1658 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1659 if a non-trivial load was emitted.
1660 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
1661 in high+extra+low case.
1662
1663 2002-03-26 Richard Henderson <rth@redhat.com>
1664
1665 * config.gcc (sparc*-solaris): Use float_format=sparc.
1666
1667 2002-03-26 Richard Henderson <rth@redhat.com>
1668
1669 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1670 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1671 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1672 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1673 (WINT_TYPE_SIZE): Fix at 32.
1674
1675 2002-03-26 Richard Henderson <rth@redhat.com>
1676
1677 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1678 until after eh landing pad generation.
1679 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1680 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1681
1682 2002-03-26 Richard Henderson <rth@redhat.com>
1683
1684 * expr.h (ADD_PARM_SIZE): One more convert for INC.
1685
1686 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
1687
1688 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
1689 and warning switches.
1690 (cc1_options): Likewise.
1691
1692 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
1693
1694 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1695 Restore more of the signal context. Set no_reg_stack_frame.
1696 * config/ia64/unwind-ia64.c (unw_state_record):
1697 Add no_reg_stack_frame, comments.
1698 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1699 (uw_update_context): Adjust bsp when unwinding from leaf,
1700 but not signal frame.
1701
1702 2002-03-26 David Edelsohn <edelsohn@gnu.org>
1703
1704 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1705
1706 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1707
1708 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1709
1710 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1711
1712 PR target/5621
1713 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1714 "Add a pool_range attribute", which was lost during the ARM/Thumb
1715 merge.
1716
1717 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1718
1719 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1720 a register into the MAC16 accumulator.
1721
1722 2002-03-26 Andrew Cagney <ac131313@redhat.com>
1723
1724 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1725 (Warning Options): Document -Wswitch-enum.
1726 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1727 -Wswitch.
1728 (warn_switch_enum): Define variables.
1729 * flags.h (warn_switch_enum): Declare variables.
1730 * stmt.c (expand_end_case_type): When warn_switch_enum /
1731 -Wswitch-enum, perform switch checks.
1732 Fix PR c/5044.
1733
1734 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1735
1736 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1737 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1738 (reload_muladdsi_compare0_scratch): Delete.
1739
1740 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
1741
1742 * doc/install.texi (*-*-freebsd*): Update.
1743
1744 2002-03-26 Richard Henderson <rth@redhat.com>
1745
1746 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1747 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1748
1749 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1750 types from the normal argument frame.
1751
1752 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1753 variable sized objects by reference.
1754 (sparc_va_arg): Receive them by reference too.
1755
1756 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1757
1758 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1759 code to not restoring global registers.
1760
1761 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1762
1763 * Makefile.in (ggc-common.o): Update.
1764 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1765 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1766 * c-tree.h (c_mark_tree): New.
1767 * ggc-common.c: Include langhooks.h.
1768 (gcc_mark_trees): Use new langhook.
1769 * ggc-callbacks.c: Delete file.
1770 * ggc.h (lang_mark_tree): Remove.
1771 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1772 (LANG_HOOKS_INITIALIZER): Update.
1773 * langhooks.h (struct lang_hooks): New hook.
1774 objc:
1775 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1776
1777 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1778
1779 * doc/cpp.texi: Exclude entire Top node from printed manual.
1780 Move option index after directive index. Insert page breaks
1781 before GFDL and concept index. Index environment variables
1782 with command line options.
1783 * doc/cppenv.texi: Use @vtable for environment variable list.
1784 Add paragraph explaining semantics of empty elements in path
1785 variables. Exclude a cross-reference to Fishkill from the
1786 manpage. Remove an unnecessary cross-reference of the entry
1787 right above the referer. Don't use @anchor in text that goes
1788 into manpage.
1789 * doc/cppopts.texi: Cross-reference the environment variables
1790 section, not the specific environment variable, for consistency.
1791
1792 2002-03-25 Richard Henderson <rth@redhat.com>
1793
1794 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1795 anywhere in the block. Don't refer to insns that have been
1796 removed from the chain. Iterate backward through the new insns.
1797 Don't refer to edges that have been removed.
1798
1799 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1800
1801 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1802 test for overflow of constant.
1803
1804 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
1805
1806 PR target/2623
1807 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1808 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1809 these patterns on arm_archv4.
1810
1811 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1812
1813 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1814 int".
1815
1816 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1817
1818 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1819 float_handled, float_handler, float_signal, set_float_handler,
1820 and do_float_handler. Set handler for SIGFPE to crash_signal.
1821 * toplev.h: Don't prototype do_float_handler.
1822
1823 * c-lex.c: Fold parse_float into lex_number. Make warning
1824 about portability of hex float constants more informative, and
1825 don't issue it on top of a syntax error.
1826 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1827 their callers.
1828 * real.h: Define REAL_VALUE_ABS here...
1829 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1830 simplify_unary_real, simplify_binary_real, and
1831 simplify_binary_is2orm1 into their callers.
1832 * tree.c: Fold build_real_from_int_cst_1 into caller.
1833
1834 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1835
1836 * tsystem.h: Include float.h here...
1837 * libgcc2.c: ... not here.
1838
1839 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1840
1841 Fixes for: PR bootstrap/3591, target/5676
1842 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1843 defined. Do not disable exceptions or rtti.
1844 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1845 mcore.h. Disable exceptions and rtti, since they are not
1846 supported by EPOC.
1847
1848 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1849
1850 * c-decl.c (maybe_build_cleanup): Remove.
1851 * expr.c (expand_expr): Use langhook.
1852 * langhooks-def.h (lhd_return_null_tree,
1853 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1854 (LANGHOOKS_INITIALIZER): Update.
1855 * langhooks.c (lhd_return_null_tree): New.
1856 * langhooks.h (struct lang_hooks): New hook.
1857 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1858 * tree.h (maybe_build_cleanup): Remove.
1859
1860 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1861
1862 * regrename.c (build_def_use): Move recog_memoized
1863 before extract_insn.
1864
1865 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1866
1867 PR target/6043
1868 * expr.c (emit_group_store): Handle storing into CONCAT.
1869
1870 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1871
1872 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1873 corresponding MATCH_DUP.
1874
1875 2002-03-24 Richard Henderson <rth@redhat.com>
1876
1877 * unroll.c (unroll_loop): Zero label_map.
1878
1879 * gcse.c: Include except.h.
1880 * Makefile.in (gcse.o): Update.
1881
1882 2002-03-24 Richard Henderson <rth@redhat.com>
1883
1884 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1885 Do resolve_unique_section before shared data clause.
1886
1887 2002-03-24 Richard Henderson <rth@redhat.com>
1888
1889 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1890
1891 2002-03-24 Richard Henderson <rth@redhat.com>
1892
1893 * recog.c (peephole2_optimize): Split blocks when EH insns are
1894 generated in the middle of a block. Do global life update if
1895 zapped EH edges.
1896
1897 2002-03-24 Richard Henderson <rth@redhat.com>
1898
1899 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1900
1901 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1902
1903 preprocessor/3951
1904 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
1905 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1906 (init_dependency_output): Don't make no_output decision here.
1907
1908 2002-03-24 Andrew Cagney <ac131313@redhat.com>
1909
1910 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1911 warn_switch. Update description.
1912 (expand_end_case_type): Call check_for_full_enumeration_handling
1913 when warn_switch.
1914
1915 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1916
1917 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1918 (m68hc11_split_move): Call it to see if the source and destination
1919 operands use the same direction auto inc/dec mode, otherwise make the
1920 source an offsetable memory operand and generate an add.
1921
1922 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1923
1924 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1925 register for operand 2.
1926 ("*subsi3_zero_extendqi"): Likewise.
1927 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1928 bits so that it is compatible with a pop.
1929 ("*andhi3_gen"): Likewise.
1930 ("xorhi3"): Likewise.
1931
1932 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1933
1934 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1935 -pedantic here...
1936 (cpp_post_options): ... not here.
1937
1938 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1939 Aldy Hernandez <aldyh@redhat.com>
1940
1941 Removal of separate preprocessor cpp0.
1942
1943 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1944 cpp0, install-common): Update.
1945 * c-common.c (flag_preprocess_only): New.
1946 (c_common_init): Preprocess for -E.
1947 * c-common.h (flag_preprocess_only): New.
1948 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1949 * c-objc-common.c (c_init_decl_processing): Exit quickly
1950 for NULL return from c_common_init.
1951 * cpplib.h (cpp_preprocess_file): New.
1952 * cppmain.c (main, general_init, pfile, progname): Remove.
1953 (do_preprocessing): Rename cpp_preprocess_file, don't call
1954 cpp_finish. Don't close stdout here.
1955 (setup_callbacks): Update prototype.
1956 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1957 Update.
1958 * tradcpp.c (main): Ignore -quiet.
1959 objc:
1960 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1961
1962 2002-03-24 Richard Henderson <rth@redhat.com>
1963
1964 PR optimization/5742
1965 * machmode.def: Add inner mode field to complex modes.
1966 * config/mips/mips.c (mips_function_value): Always define. Add
1967 new argument to handle libcalls.
1968 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1969 (FUNCTION_VALUE): Likewise.
1970 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1971 * config/mips/mips-protos.h: Update.
1972
1973 2002-03-23 Richard Henderson <rth@redhat.com>
1974
1975 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1976 * config/sparc/sparc-protos.h: Update.
1977 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1978
1979 2002-03-23 Richard Henderson <rth@redhat.com>
1980
1981 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1982 _start or _init begins the text segment.
1983
1984 2002-03-23 David Edelsohn <edelsohn@gnu.org>
1985
1986 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1987 not HOST_WIDEST_INT.
1988 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1989
1990 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
1991
1992 PR java/5489
1993 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1994 operand argument to output_return_instruction.
1995 * arm.c (arm_print_operand, case 'd'): If the operand is
1996 const_true_rtx then just return.
1997 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1998 then abort.
1999
2000 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2001
2002 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2003 (Warning Options): Document -Wswitch-default.
2004 * toplev.c (W_options): Add -Wswitch-default. Update comment on
2005 -Wswitch.
2006 (warn_switch_default): Define variable.
2007 (warn_switch): Update comment.
2008 * flags.h (warn_switch_default): Declare variable.
2009 (warn_switch): Update comment.
2010 * stmt.c (expand_end_case): Check for and, when
2011 warn_switch_no_default, warn of a missing default case.
2012
2013 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2014
2015 * real.h (N): Special case 128 bit doubles.
2016
2017 * combine.c (simplify_comparison): When widening modes, ignore
2018 sign extension on CONST_INTs.
2019
2020 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2021
2022 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2023 passed to adjust_address. Fix comment formatting.
2024
2025
2026 2002-03-22 Zack Weinberg <zack@codesourcery.com>
2027
2028 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2029 Always make REAL_VALUE_TYPE a struct containing an array of
2030 HOST_WIDE_INT, not a double. Tidy up the code deciding how
2031 big it is. Don't declare or use union real_extract.
2032
2033 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2034 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2035 (print_operand), config/arm/arm.c (output_move_double),
2036 config/arm/arm.md (consttable_4, consttable_8),
2037 config/romp/romp.c (output_fpops), config/s390/s390.h
2038 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2039 (xtensa_output_literal): Don't use union real_extract.
2040
2041 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2042 (sfmode_constant_to_ulong), config/ns32k/merlin.h
2043 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2044 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2045 (PRINT_OPERAND): Don't use local version of union
2046 real_extract.
2047
2048 * config/convex/convex.c (check_float_value), config/vax/vax.c
2049 (vax_float_literal), config/m88k/m88k.md (divdf3),
2050 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2051 config/pdp11/pdp11.c (output_move_quad): Don't do host
2052 arithmetic on target floating point quantities.
2053
2054 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2055 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2056
2057 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2058 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2059
2060 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2061 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2062 INFINITY.
2063 * print-rtl.c (print_rtx): Disable code which needs
2064 floating-point emulator.
2065 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2066 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2067 depending on HOST_FLOAT_FORMAT to be defined properly.
2068
2069 * config/1750a/1750a.c (get_double, float_label): Delete.
2070 (print_operand): Delete huge commented-out chunk. Use
2071 REAL_VALUE_TO_DECIMAL.
2072 * config/1750a/1750a-protos.h: Delete prototypes of deleted
2073 functions.
2074 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2075 IEEE_FLOAT_FORMAT.
2076 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2077 Use REAL_VALUE_TO_DECIMAL as ELF version does.
2078 * config/m88k/m88k.c (real_power_of_2_operand,
2079 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2080 real_extract out of the union; run the input through
2081 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2082 from that into the union.
2083 * config/pdp11/pdp11.c (output_move_double): Rearrange
2084 parentheses to make automatic indenter happy.
2085
2086 * doc/tm.texi (Cross-compilation): Rename node to "Floating
2087 Point" and rewrite to describe current situation. Also adjust
2088 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2089 match code.
2090 * doc/rtl.texi: Adjust cross reference.
2091
2092 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2093
2094 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2095 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2096 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2097 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2098 prevent use of sp as a reload register.
2099 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2100 non_acc_reg_operand.
2101 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2102 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2103 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2104 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2105
2106 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2107
2108 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2109 * cpplex.c (unterminated): Delete.
2110 (parse_string): No string literal may extend over multiple
2111 lines. Suppress the error when preprocessing assembly.
2112 * cppmain.c (scan_translation_unit): Strings are single-line.
2113
2114 * doc/cpp.texi: Update to match.
2115
2116 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2117
2118 PR optimization/5854
2119 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2120 Shut up warnings.
2121 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2122 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2123 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2124 const0 if scratch register was not allocated.
2125 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2126 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2127 with GEN_INT (...).
2128 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2129 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2130 with GEN_INT (...) everywhere. Remove constraints in define_split
2131 patterns.
2132 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2133 require scratch register for setting 0 into regs/non-pushable memory.
2134
2135 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2136
2137 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2138 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2139
2140 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
2141
2142 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
2143 * cppinit.c (cpp_create_reader): On by default.
2144 (cpp_handle_option): Handle -W[no-]endif-labels.
2145 (cpp_post_options): Also enable if -pedantic.
2146 * cpplib.c (do_else): Use it.
2147 (do_endif): Likewise.
2148 * doc/cppopts.texi: Document new option.
2149 * doc/invoke.texi: Document new option.
2150
2151 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
2152
2153 * config/i386/i386.c, config/i386/i386.md: Change all occurences
2154 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2155
2156 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2157
2158 * flow.c (calculate_global_regs_live): Clear aux fields of
2159 ENTRY and EXIT.
2160
2161 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2162
2163 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2164 REG or MEM subregs, pass rtx * instead of rtx to it.
2165 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2166 rtx * instead of rtx to alter_subreg.
2167 * config/m32r/m32r.c (gen_split_move_double): Likewise.
2168 * config/pj/pj.c (pj_output_rval): Likewise.
2169
2170 2002-03-22 Richard Henderson <rth@redhat.com>
2171
2172 PR target/3177
2173 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2174 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2175 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2176 (ia64_expand_prologue): Look at int_regs, not words, for number
2177 of incomming int regs.
2178
2179 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
2180
2181 * expr.c (expand_expr): A RESULT_DECL is part of a call.
2182
2183 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
2184
2185 * toplev.c (flag_loop_optimize, flag_crossjumping):
2186 New static variables.
2187 (rest_of_compilation): Conditionalize crossjumping and
2188 loop optimizer.
2189 (parse_options_and_default_flags): Default loop_optimize and
2190 crossjumping.
2191 (lang_independent_options): Add -fcrossjumping and -floop-optimize
2192 * invoke.texi (crossjumping, loop-optimize): Document.
2193
2194 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2195
2196 * real.c (eiisneg): Move outside #ifdef NANS.
2197
2198 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
2199
2200 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2201 frequencies match; avoid match on different loop depths.
2202 (try_crossjump_to_bb): Kill tests that no longer brings time
2203 savings.
2204 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2205 updating code.
2206 (split_edge): Likewise.
2207
2208 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2209 variable.
2210
2211 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2212 * cfgrtl.c: Include insn-config.h
2213 (split_block) Dirtify block in presence of conditional execution
2214
2215 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2216
2217 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2218 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2219 (function_arg): Constify CUMULATIVE_ARGS.
2220 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2221 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2222 (UNITS_PER_DOUBLE): New macro.
2223 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
2224 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
2225 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
2226 fp_regs and stack_words.
2227 (EABI_FLOAT_VARARGS_P): New macro.
2228 * config/mips/mips.c (struct mips_arg_info): New.
2229 (mips_arg_info): New function.
2230 (function_arg_advance): Use it. Add adjustment instructions here
2231 rather than in function_arg.
2232 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
2233 for VOIDmode at the beginning of the function.
2234 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
2235 (function_arg_pass_by_reference): Likewise.
2236 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2237 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2238 (mips_va_start): Likewise. Use the new stack_words field of
2239 CUMULATIVE_ARGS to set up overflow area. Reformat.
2240 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
2241 doubles and other types, aligning the overflow pointer for non-doubles
2242 too. Remove some code duplication. Replace hard-coded constants.
2243
2244 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2245
2246 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2247 (CLASS_UNITS): Undefine.
2248 (CLASS_MAX_NREGS): Use FP_INC.
2249 * config/mips/mips.c (compute_frame_size): Likewise.
2250 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2251
2252 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2253
2254 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2255 prototype, and handle lexing numbers and identifiers.
2256 (parse_identifier): Update to new form of parse_slow.
2257 (parse_number): Fast path only, use parse_slow otherwise.
2258 (_cpp_lex_direct): Update calls to parse_number.
2259
2260 2002-03-21 DJ Delorie <dj@redhat.com>
2261
2262 * bb-reorder.c (make_reorder_chain_1): Protect against
2263 when redundant edges are omitted.
2264 * predict.c (dump_prediction): Likewise.
2265
2266 2002-03-21 Richard Henderson <rth@redhat.com>
2267
2268 PR target/5996
2269 * fixinc/inclhack.def (solaris_stdio_tag): New.
2270 * fixinc/fixincl.x: Regenerate.
2271
2272 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2273
2274 PR c/5597
2275 * c-typeck.c (process_init_element): Flag non-static
2276 initialization of a flexible array member as illegal.
2277
2278 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2279
2280 * config/rs6000/t-linux64: New.
2281 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2282 t-ppccomm. Use t-rs6000 and t-linux64.
2283 (powerpc64-*-gnu* <tmake_file>): Likewise.
2284 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2285 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2286 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2287
2288 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
2289
2290 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2291 flag_really_no_inline instead of optimize == 0.
2292
2293 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2294
2295 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2296
2297 * flags.h (flag_really_no_inline): New.
2298
2299 * c-common.c (c_common_post_options): Initialize
2300 flag_really_no_inline.
2301
2302 * toplev.c (flag_really_no_inline): New.
2303
2304 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2305
2306 * config/avr/avr.md (length): Fix length computation for
2307 conditional branches.
2308
2309 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
2310
2311 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2312 sdbout.o, profile.o): Update.
2313 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2314 langhook.
2315 * c-common.h (gettags): Move here from tree.h.
2316 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2317 insert_block, getdecls, kept_level_p, global_bindings_p): New.
2318 * dbxout.c (dbxout_init): Use getdecls langhook.
2319 * expr.c (expand_expr): Use insert_block langhook.
2320 * fold-const.c: Include langhooks.h.
2321 (fold_range_test, fold_binary_op_with_conditional_arg,
2322 fold): Use global_bindings_p langhook.
2323 * integrate.c (expand_inline_function): Use insert_block langhook.
2324 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2325 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2326 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2327 LANG_HOOKS_GETDECLS): New.
2328 (LANG_HOOKS_INITIALIZER): Update.
2329 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2330 langhook.
2331 * langhooks.h (struct lang_hooks_for_decls): New.
2332 (struct lang_hooks): Update.
2333 * profile.c: Include langhooks.h.
2334 (output_func_start_profiler): Use new langhooks.
2335 * sdbout.c: Include langhooks.h.
2336 (sdbout_init, sdbout_finish): Use getdecls langhook.
2337 * stmt.c: Include langhooks.h.
2338 (expand_fixup, fixup_gotos): Use new langhooks.
2339 * stor-layout.c: Include langhooks.h.
2340 (variable_size): Use global_bindings_p langhook.
2341 * toplev.c (compile_file): Use getdecls langhook.
2342 * tree-inline.c (remap_block): Use insert_block langhook.
2343 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2344 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2345
2346 2002-03-21 Richard Henderson <rth@redhat.com>
2347
2348 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2349 constants in .data when -fpic.
2350
2351 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2352
2353 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2354 where appropriate.
2355
2356 2002-03-21 Tom Tromey <tromey@redhat.com>
2357
2358 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
2359
2360 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2361
2362 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2363
2364 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2365
2366 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2367 Richard Henderson <rth@redhat.com>
2368
2369 PR c/5354
2370 * c-common.c (c_expand_expr): Preserve result of a statement
2371 expression if needed.
2372
2373 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2374
2375 PR bootstrap/4195
2376 * genrecog.c (maybe_both_true_mode): Remove.
2377 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2378 * machmode.def (Pmode): Likewise.
2379
2380 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
2381
2382 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2383 (nonlocal_mentioned_p_1): New function.
2384 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2385 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2386 (mark_constant_function): Recognize pure functions.
2387 * rtl.h (global_reg_mentioned_p): New prototype.
2388 * rtlanal.c (global_reg_mentioned_p,
2389 global_reg_mentioned_p_1): New function.
2390
2391 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2392
2393 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2394 UNIX assert.h.
2395 * fixinc/fixincl.x: Regenerate.
2396
2397 2002-03-20 Jason Merrill <jason@redhat.com>
2398
2399 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2400
2401 2002-03-20 Michael Meissner <meissner@redhat.com>
2402
2403 * doc/invoke.texi (Optimize Options): Document that -O2 sets
2404 -fstrict-aliasing.
2405
2406 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2407
2408 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2409 ".literal_position" directive before the constant pool.
2410
2411 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2412
2413 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2414 Add Craig Rodrigues.
2415 Add Brad Lucier to testers.
2416
2417 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2418
2419 PR target/4792
2420 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2421 to if_then_else.
2422 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2423 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2424 instead of insn_extract.
2425
2426 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2427
2428 PR bootstrap/4192
2429 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2430
2431 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2432 stmt if some case has been output.
2433
2434 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2435
2436 PR c/5972
2437 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2438 movsfcc_1, movdfcc_1): Add %O2.
2439 * config/i386/i386.c (print_operand): Handle %ON.
2440 Print . before float condition codes in Sun as cmov syntax.
2441 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2442 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2443 no longer true.
2444
2445 2002-03-20 Philip Blundell <pb@nexus.co.uk>
2446
2447 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2448 return instruction if PC was popped.
2449
2450 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2451
2452 * config/xtensa/xtensa.md: Remove unused type attributes.
2453 (adddi_carry, subddi_carry): Change type attribute to "multi".
2454
2455 2002-03-19 Dale Johannesen <dalej@apple.com>
2456
2457 PR optimization/5999, middle-end/5731
2458 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2459 multiplications by reciprocals.
2460
2461 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
2462
2463 * Makefile.in: Update.
2464 * c-common.c: Include langhooks.h.
2465 (inline_forbidden_p): Use new hook.
2466 * diagnostic.c: Include langhooks.h.
2467 (format_with_decl, announce_function,
2468 default_print_error_function): Use new hook.
2469 * dwarf2out.c (dwarf2_name): Use new hook.
2470 * function.c: Include langhooks.h.
2471 (init_function_start): Use new hook.
2472 * langhooks-def.h (lhd_decl_printable_name): New.
2473 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2474 (LANGHOOKS_INITIALIZER): Update.
2475 * langhooks.c (lhd_decl_printable_name): New.
2476 * langhooks.h (struct lang_hooks): New hook.
2477 * toplev.c (decl_name, decl_printable_name): Remove.
2478 (open_dump_file): Use new hook.
2479 (process_options): Remove old hook.
2480 * tree.h (decl_printable_name): Remove.
2481 objc:
2482 * objc-act.c (objc_init): Remove old hook.
2483 (objc_printable_name): Export.
2484 * objc-act.h (objc_printable_name): New.
2485 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2486
2487 2002-03-19 Jim Blandy <jimb@redhat.com>
2488
2489 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2490 the start_source_file debug hook, not the current line number.
2491
2492 2002-03-19 Richard Henderson <rth@redhat.com>
2493
2494 * flow.c (EH_USES): Provide default.
2495 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2496 * doc/tm.texi (EH_USES): New.
2497
2498 * config/ia64/ia64.c (ia64_eh_uses): New.
2499 * config/ia64/ia64-protos.h: Update.
2500 * config/ia64/ia64.h (EH_USES): New.
2501
2502 2002-03-19 Richard Henderson <rth@redhat.com>
2503
2504 * varasm.c (output_constant_def): Fix stupid typo.
2505
2506 2002-03-19 Richard Henderson <rth@redhat.com>
2507
2508 PR 5879
2509 * except.c (current_function_has_exception_handlers): New.
2510 * except.h: Declare it.
2511 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2512 Combine tests that disable all sibcalls for the function.
2513
2514 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
2515
2516 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2517 for INTEGER_CST.
2518
2519 2002-03-19 Richard Henderson <rth@redhat.com>
2520
2521 PR 5977, 5991
2522 * config/ia64/ia64.c: Revert 2002-03-01 patch.
2523 * config/ia64/ia64.h (INIT_EXPANDERS): New.
2524
2525 2002-03-19 Jim Blandy <jimb@redhat.com>
2526
2527 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2528 name, even if the replacement list contains no tokens, as required
2529 by Dwarf.
2530
2531 2002-03-19 Jason Merrill <jason@redhat.com>
2532
2533 * varasm.c (globalize_decl): Get the name from the RTL, not
2534 DECL_ASSEMBLER_NAME.
2535
2536 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2537
2538 2002-03-19 Bob Wilson <bob.wilson@acm.org>
2539
2540 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2541 subdi_carry): Define.
2542
2543 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2544
2545 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2546 about -fpic/-fPIC if extra_warnings set.
2547
2548 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2549
2550 * expr.c (expand_expr): Sign-extend CONST_INT generated from
2551 TREE_STRING_POINTER.
2552 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2553
2554 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2555
2556 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2557 in favor of SP if FRAME_POINTER_REQUIRED is false.
2558
2559 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
2560
2561 * emit-rtl.c (gen_int_mode): New function.
2562 * rtl.h: Prototype for it.
2563 * combine.c (make_extraction, simplify_comparison), expmed.c
2564 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2565 (convert_modes, store_field), optabs.c (expand_fix),
2566 simplify-rtx.c (neg_const_int, simplify_unary_real),
2567
2568 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2569 Use it instead of GEN_INT (trunc_int_for_mode (...)).
2570
2571 2002-03-19 Jakub Jelinek <jakub@redhat.com>
2572
2573 PR c/5656
2574 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2575 convert_parm_for_inlining.
2576 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2577 Define.
2578 * langhooks-def.h: Likewise.
2579 * objc/objc-lang.c: Likewise.
2580 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2581 function.
2582 * tree-inline.c (initialize_inlined_parameters):
2583 Call convert_parm_for_inlining lang hook if needed.
2584 * c-typeck.c (c_convert_parm_for_inlining): New function.
2585 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2586
2587 2002-03-18 Mark Mitchell <mark@codesourcery.com>
2588
2589 * calls.c (precompute_arguments): Do not assume that temporaries
2590 can be destroyed after expanding the argument.
2591 (expand_call): Likewise.
2592
2593 2002-03-15 Eric Christopher <echristo@redhat.com>
2594
2595 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2596 Fix register preference on last change.
2597 * config/mips/mips.c (mips_return_in_memory): New function.
2598 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2599 * config/mips/mips-protos.h: Declare.
2600 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2601 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2602
2603 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2604
2605 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2606 a register too.
2607 (anddi3, iorsi3): Likewise.
2608
2609 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2610 use %gprel for symbols that are going to be placed in linkonce
2611 sections.
2612
2613 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2614 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2615 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2616 not needed. Disregard leaf_function_p().
2617 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2618 mips16 frame pointer.
2619 * config/mips/mips.md (store ra): Only to small SP offsets.
2620 2001-08-22 Graham Stott <grahams@redhat.com>
2621 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2622 return a REG rtx for the return address register.
2623
2624 2002-03-18 Bob Wilson <bob.wilson@acm.org>
2625
2626 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2627 constant-pool addresses as "mode-dependent".
2628 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2629
2630 2002-03-18 Jakub Jelinek <jakub@redhat.com>
2631
2632 PR target/5740
2633 * expr.c (emit_group_load): Use extract_bit_field if
2634 needed for CONCAT arguments.
2635
2636 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
2637
2638 PR target/4863
2639 * arm.md (tablejump): Make this a define_expand. For PIC add the
2640 offset to the base of the table.
2641 (thumb_tablejump): Matcher for Thumb tablejump insn.
2642 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2643 as the difference of two labels.
2644 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2645 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2646 tables in the code.
2647 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2648 * arm.c (get_jump_table_size): If the table is not in the text
2649 section, return zero.
2650
2651 2002-03-18 Bernd Schmidt <bernds@redhat.com>
2652
2653 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2654 of gen_rtx_SUBREG.
2655 (arm_reload_out_hi): Use gen_lowpart instead of
2656 gen_rtx_SUBREG to access QImode components.
2657 * config/arm/arm.md: Disable zero_extend split for QImode
2658 subregs in BIG_ENDIAN mode.
2659 (storehi_bigend): Match use of least significant byte.
2660 (storeinthi): Remove extraneous SUBREG.
2661 Add missing construction of operands[2].
2662 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2663 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2664 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2665
2666 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
2667
2668 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2669 any_operand.
2670
2671 2002-03-17 Richard Henderson <rth@redhat.com>
2672
2673 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2674 explicitly.
2675
2676 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2677
2678 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2679 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2680
2681 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2682
2683 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2684
2685 * predict.c (estimate_bb_frequencies): Delete unused variables.
2686
2687 2002-03-17 Richard Henderson <rth@redhat.com>
2688
2689 * config/ia64/ia64.c (ia64_attribute_table): Move before
2690 targetm definition. Make static.
2691
2692 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
2693
2694 * c-common.h (yyparse, c_common_parse_file): New.
2695 * c-lang.c: Include c-common.h.
2696 (LANG_HOOKS_PARSE_FILE): Redefine.
2697 * c-lex.c: Include c-common.h.
2698 (yyparse): Rename c_common_parse_file. Call yyparse.
2699 * c-parse.in (yyparse): Remove macro.
2700 * c-tree.h (yyparse_1): Remove.
2701 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2702 (LANG_HOOKS_INITIALIZER): Update.
2703 * langhooks.h (struct lang_hoooks): New hook parse_file.
2704 * toplev.c (compile_file): Use parse_file hook.
2705 * tree.h (yyparse): Remove.
2706 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2707
2708 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2709
2710 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2711 float_truncate, not fix.
2712 ("*truncdfsf2_real"): Ditto.
2713 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2714
2715 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2716
2717 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
2718
2719 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2720 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2721 where appropriate. Make the second reference to
2722 leaf_function_p a function call, as intended. Reindented.
2723
2724 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2725 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2726
2727 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2728 add register to non-constant into sp.
2729
2730 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2731 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2732 (mips16_gp_pseudo_rtx): Lose.
2733 (INIT_EXPANDERS): Deleted.
2734 * config/mips/mips.c (mips_init_machine_status): New.
2735 (mips_free_machine_status): New.
2736 (mips_mark_machine_status): New.
2737 (override_options): Set them.
2738 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2739 (struct machine_function): ... new. Replaced all references.
2740 (mips_add_gc_roots): Don't mark them.
2741 (embedded_pic_fnaddr_reg): New, extracted from...
2742 (embedded_pic_offset): ... here.
2743 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2744 (movsi): Likewise.
2745
2746 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2747
2748 * cppinit.c: Revert -MD removal.
2749
2750 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2751
2752 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2753 soft registers by default for 68HC12.
2754 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2755 when compiling with -fomit-frame-pointer.
2756 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2757 (expand_epilogue): Likewise.
2758 (m68hc11_gen_rotate): Use exg when rotating by 8.
2759
2760 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2761
2762 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2763 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2764 (splits): Remove unused add splits.
2765 ("*addhi3_68hc12"): Tune constraints.
2766 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2767 constant fits in 8-bits and D is dead use abx/aby instructions.
2768 ("*addhi3"): Remove extern declaration of ix_reg.
2769 ("*subsi3"): Optimize and provide new split.
2770 ("subhi3"): Cleanup.
2771 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2772 (arith splits): For 68hc12 save the address register on the stack
2773 and do the arithmetic operation with a pop.
2774
2775 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2776
2777 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2778 allocating QImode in address registers.
2779 ("*movqi_m68hc11"): Likewise.
2780
2781 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2782
2783 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2784
2785 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2786
2787 * cppinit.c (print_help): Display -MD and -MMD.
2788 Don't display usage string. Update assertion syntax and
2789 typo.
2790 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2791 (cpp_handle_option): Update.
2792
2793 2002-03-15 Chris Demetriou <cgd@broadcom.com>
2794
2795 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2796 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2797 and define it so that regardless of target CPU size,
2798 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2799 of "int" rather than "long."
2800
2801 2002-03-15 Richard Henderson <rth@redhat.com>
2802
2803 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2804 size as a tree.
2805
2806 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2807
2808 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2809 ("tstqi" split): Avoid using memory for tstqi on address register.
2810 (splits): Remove constraints.
2811 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2812 ("cmpdf", "cmpsf"): Remove since not used.
2813 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2814 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2815
2816 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2817
2818 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2819 ("neghi2"): Tighten constraints.
2820 ("one_cmplsi2"): Optimize and simplify split.
2821 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2822
2823 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2824
2825 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2826 and split of AND operation to clear the upper bits.
2827 ("*logicalsi3_zextqi"): Likewise.
2828 ("*logicallhi3_zexthi_ashift8"): Likewise.
2829 ("*logicalsi3_silshr16"): Likewise.
2830 ("logicalsi3_silshl16"): Likewise.
2831 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2832
2833 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2834
2835 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2836 (m68hc11_indirect_p): New function.
2837 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2838 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2839 TARGET_M6812.
2840 (asm_print_register): Likewise.
2841 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2842 (m68hc11_indirect_p): Declare.
2843 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2844 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2845 (TARGET_SWITCHES): New option -mrelax.
2846 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2847 destination.
2848 ("iorsi3", "xorsi3"): Likewise.
2849 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2850 ("*andhi3_mem"): New to handle destination in memory with bclr
2851 and a scratch register.
2852 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2853 ("*andhi3_const"): New when operand2 is constant.
2854 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2855 ("*andhi3_gen"): Cleanup of the old "andhi3".
2856 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2857 ("xorqi3"): Update constraints.
2858
2859 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2860
2861 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2862 for reg_equiv_memory_loc when the operand is a register that does
2863 not get a hard register (stack location).
2864 (tst_operand): After reload, accept all memory operand.
2865 (symbolic_memory_operand): Fix detection of symbolic references.
2866 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2867 accept symbols and any constant.
2868
2869 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2870
2871 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2872 note on the insn that sets the soft frame register.
2873 (must_parenthesize): ix and iy are also reserved names.
2874 (print_operand_address): One more place where parenthesis are required
2875 to avoid confusion with register names.
2876 (m68hc11_gen_movhi): Allow push of stack pointer.
2877 (m68hc11_check_z_replacement): Fix handling of parallel with a
2878 clobber.
2879 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2880 the replacement register is.
2881 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2882 and D8_REGS classes.
2883 (MODES_TIEABLE_P): All modes are tieable except QImode.
2884
2885 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2886
2887 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2888 (___subdi3): Likewise.
2889 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2890 (__map_data_section): Optimize 68hc11 case.
2891
2892 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2893
2894 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2895 than a shift to avoid adding a register with itself.
2896 (m68hc11_memory_move_cost): Take into account NO_REGS.
2897 (m68hc11_register_move_cost): Update and use memory move cost
2898 for soft registers.
2899 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2900 it gives more opportunities to cse to optimize.
2901 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2902 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2903
2904 2002-03-15 Mark Mitchell <mark@codesourcery.com>
2905
2906 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2907 * c-common.def (CLEANUP_STMT): New tree node.
2908 * c-common.h (CLEANUP_DECL): New macro.
2909 (CLEANUP_EXPR): Likewise.
2910 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2911 * expr.c (expand_expr): Tidy.
2912 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2913 * tree-inline.c (initialize_inlined_parameters): Clean up
2914 new local variables.
2915
2916 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR bootstrap/4128
2919 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2920 before movrXX only, use reg_overlap_mentioned_p.
2921 Only special case NE if just one insn can be generated.
2922
2923 2002-03-15 Jason Merrill <jason@redhat.com>
2924
2925 * varasm.c (assemble_variable): Call resolve_unique_section before
2926 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2927 of error_mark_node.
2928
2929 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2930
2931 PR target/5170
2932 * arm.md (split pattern for thumb shiftable immediates): Add comment
2933 explaining non-obvious test.
2934
2935 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2936
2937 PR target/5712
2938 * arm.md (movaddr, movaddr_insn): Delete.
2939
2940 2002-03-15 Jason Merrill <jason@redhat.com>
2941
2942 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2943 -fkeep-static-consts doesn't apply to comdats.
2944
2945 2002-03-14 Richard Henderson <rth@redhat.com>
2946
2947 * c-decl.c: Include c-pragma.h.
2948 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2949 (finish_function): Tidy.
2950 * c-pragma.c: Include c-common.h.
2951 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2952 (handle_pragma_weak): Use them.
2953 (init_pragma): Register pending_weaks.
2954 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2955 * print-tree.c (print_node): Print DECL_WEAK.
2956 * varasm.c (mark_weak_decls): Remove.
2957 (remove_from_pending_weak_list): Remove.
2958 (add_weak): Remove.
2959 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2960 (weak_decls): Make a tree_list.
2961 (declare_weak): Cons weak_decls directly.
2962 (globalize_decl): Remove weak_decls elements directly.
2963 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2964 symbols. Don't pretend to handle aliases.
2965 (init_varasm_once): Update weak_decls registry.
2966 * Makefile.in: Update dependencies.
2967
2968 2002-03-14 Richard Henderson <rth@redhat.com>
2969
2970 PR target/5312
2971 * config/ia64/ia64.c: Include tm_p.h last.
2972 (gen_nop_type): Remove duplicate definition.
2973 (cycle_end_fill_slots): Set sched_data for second L slot.
2974 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2975 (nop_cycles_until): Fix typos.
2976
2977 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2978
2979 PR optimization/5891
2980 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2981
2982 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2983
2984 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2985 descriptors correctly.
2986
2987 2002-03-14 Michael Meissner <meissner@redhat.com>
2988
2989 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2990 100, allowing MAX_UNROLLED_INSNS to be overridden.
2991
2992 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2993 --param.
2994
2995 * unroll.c (params.h): Include.
2996 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2997
2998 * doc/invoke.texi (--param max-unroll-insns): Document.
2999
3000 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3001
3002 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3003
3004 * arm.md: Fix warnings about constraints in peepholes and splits.
3005
3006 2002-03-14 Zack Weinberg <zack@codesourcery.com>
3007
3008 * cpphash.h (struct lexer_state): Remove line_extension member.
3009 * cpplib.c (dequote_string, do_linemarker): New functions.
3010 (linemarker_dir): New data object.
3011 (DIRECTIVE_TABLE): No longer need to interpret #line in
3012 preprocessed source. Delete obsolete comment about return
3013 values of handlers.
3014 (end_directive, directive_diagnostics, _cpp_handle_directive):
3015 Don't muck with line_extension.
3016 (directive_diagnostics): No need to issue warnings for
3017 linemarkers here.
3018 (_cpp_handle_directive): Issue warnings for linemarkers here,
3019 when appropriate. Dispatch linemarkers to do_linemarker, not
3020 do_line.
3021 (do_line): Code to handle linemarkers split out to do_linemarker.
3022 Convert escape sequences in filename argument, both places.
3023
3024 * cppmacro.c (quote_string): Rename cpp_quote_string and
3025 export. All callers changed.
3026 * cpplib.h (cpp_quote_string): Prototype.
3027 * cppmain.c (print_line): Call cpp_quote_string on to_file
3028 before printing it.
3029
3030 * doc/cpp.texi: Document that escapes are now interpreted in
3031 #line and in linemarkers, and that non-printing characters are
3032 converted to octal escapes when linemarkers are generated.
3033
3034 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
3035
3036 * emit-rtl.c (try_split): Use delete_insns.
3037 * recog.c (split_all_insns): Fix terminating condition.
3038
3039 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3040 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3041
3042 PR target/5828
3043 * arm.c (arm_output_epilogue): Fix floating-point register save
3044 adjustment when using a frame pointer.
3045
3046 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
3047
3048 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3049 * config/mips/mips.c (compute_frame_size): Retrofit them here.
3050 (save_restore_insns, mips_expand_epilogue): And here.
3051 (build_mips16_call_stub): And here.
3052 (mips_function_value): Use the new macros to decide whether a single
3053 or complex float can be returned in floating-point registers. Return
3054 a parallel rtx in the complex case.
3055
3056 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
3057
3058 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3059 call after liveness analysis.
3060
3061 * recog.c (split_insn): Use delete_insn_and_edges.
3062
3063 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3064 instructions to have branch prediction notes.
3065 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3066
3067 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
3068
3069 * configure.in: Don't pass -Wno-long-long to a ADA compiler
3070 that doesn't support it.
3071 * configure: Regenerate.
3072
3073 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3074
3075 PR target/5626
3076 * config/sparc/sparc.md (normal_branch, inverted_branch,
3077 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3078 inverted_fp_branch): Adjust calls to output_cbranch.
3079 Set length attribute.
3080 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3081 output_v9branch. Set length attribute.
3082 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3083 predicates.
3084 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3085 (output_cbranch): Likewise. Handle far branches.
3086 (output_v9branch): Handle far branches.
3087 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3088 Adjust prototypes.
3089 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3090 noov_compare64_op predicates.
3091
3092 2002-03-13 Jason Merrill <jason@redhat.com>
3093
3094 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3095 into the function and constify it.
3096 * gthr-dce.h, gthr-solaris.h: Likewise.
3097
3098 2002-03-13 David Edelsohn <edelsohn@gnu.org>
3099
3100 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3101 * config/rs6000/rs6000.c (rs6000_va_arg): Use
3102 std_expand_builtin_va_arg if not ABI_V4.
3103
3104 2002-03-13 Jason Merrill <jason@redhat.com>
3105
3106 * varasm.c (globalize_decl): New fn.
3107 (assemble_start_function): Use it.
3108 (asm_emit_uninitialized): Use it.
3109 (assemble_alias): Use it.
3110 (assemble_variable): Use it.
3111
3112 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
3113
3114 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3115 2002-03-12 internal visibility change.
3116 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3117 visibility into SYMBOL_REF_FLAG.
3118
3119 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
3120
3121 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3122 VOIDmode operand. Add compile-time optimization for constant results.
3123
3124 2002-03-12 Jason Merrill <jason@redhat.com>
3125
3126 * c-typeck.c (convert_for_assignment): Don't allow conversions
3127 between pointers and references. Only allow lvalues to convert to
3128 reference.
3129
3130 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
3131
3132 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3133 before prologue, to avoid scheduling problems.
3134
3135 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3136
3137 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3138 (ELIMINABLE_REGS): Add sfp->sp.
3139 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3140
3141 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3142
3143 PR optimization/5892
3144 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3145
3146 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3147
3148 * loop.c (basic_induction_var): Don't call convert_modes if mode
3149 classes are different.
3150
3151 2002-03-12 Richard Henderson <rth@redhat.com>
3152
3153 PR optimization/5901
3154 * function.c (reposition_prologue_and_epilogue_notes): Position
3155 the markers after/before the last/first insn not deleted.
3156
3157 2002-03-12 Richard Henderson <rth@redhat.com>
3158
3159 PR optimization/5878
3160 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3161 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3162 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3163
3164 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3165 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3166 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3167
3168 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3169 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3170 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3171 also. Don't set it if not flag_pic.
3172 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3173 to be INVALID_REGNUM when not used.
3174
3175 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
3176
3177 * expmed.c (store_bit_field): Reset alias set for memory.
3178 (extract_bit_field): Same.
3179
3180 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3181
3182 * c-common.c (c_tree_code_type, c_tree_code_length,
3183 c_tree_code_name, add_c_tree_codes): Delete.
3184 * c-common.h (add_c_tree_codes): Delete.
3185 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3186 Define.
3187 * c-objc-common.c (c_objc_common_init): Don't call
3188 add_c_tree_codes, instead set lang_unsafe_for_reeval.
3189 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3190 objc_tree_code_name, add_objc_tree_codes): Delete.
3191 (objc_init): Don't call add_objc_tree_codes.
3192 * objc/objc-lang.c (tree_code_type, tree_code_length,
3193 tree_code_name): Define.
3194 * toplev.c (lang_independent_init): Don't set
3195 tree_code_length[IDENTIFIER_NODE].
3196 * tree.c (tree_code_type, tree_code_length, tree_code_name):
3197 Delete definitions, moved to language front-ends.
3198 * tree.def (IDENTIFIER_NODE): Hardwire the length.
3199 * tree.h (tree_code_type, tree_code_length, tree_code_name):
3200 Const-ify.
3201 (tree_code_length): Change type to unsigned char.
3202
3203 2002-03-12 Richard Henderson <rth@redhat.com>
3204
3205 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3206 internal visibility change.
3207
3208 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3209
3210 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3211 validize_mem() instead of change_address to avoid clobbering
3212 memory attributes.
3213
3214 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
3215
3216 * c-lex.h (position_after_whitespace): Remove.
3217
3218 2002-03-12 Jakub Jelinek <jakub@redhat.com>
3219
3220 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3221 (lex_string): Use unsigned char pointers.
3222
3223 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3224
3225 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3226 is not a valid memory_operand.
3227
3228 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3229
3230 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3231 * config/xtensa/lib1funcs.asm: Fix copyright to include
3232 special case for libgcc files.
3233 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3234 (__divsi3): Likewise.
3235 (__umodsi3): Likewise.
3236 (__modsi3): Likewise.
3237 * config/xtensa/lib2funcs.S: Fix copyright to include
3238 special case for libgcc files.
3239
3240 2002-03-12 Tom Rix <trix@redhat.com>
3241
3242 * collect2.c (resolve_lib_name): Move outside of
3243 OBJECT_FORMAT_COFF ifdef.
3244 (ignore_library): Same.
3245
3246 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3247
3248 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3249
3250 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3251
3252 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3253 to function_section before writing out the constant pool.
3254
3255 2002-03-12 David Edelsohn <edelsohn@gnu.org>
3256
3257 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3258 zero_constant.
3259 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3260
3261 2002-03-12 Alan Modra <amodra@bigpond.net.au>
3262
3263 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3264 (adddi3): Likewise.
3265 (movdf): Likewise.
3266 (movdi): Likewise.
3267 (cmpsi splitter): Likewise.
3268 (modsi3): Fail if <= 0.
3269 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3270 redundant test when HOST_BITS_PER_WIDE_INT != 32.
3271 (reg_or_sub_cint64_operand): Likewise.
3272 (num_insns_constant_wide): Optimize sign extension.
3273 (rs6000_legitimize_address): Likewise.
3274
3275 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3276
3277 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3278 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3279
3280 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3281
3282 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3283 address calculation.
3284
3285 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3286
3287 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3288 scratch register to DImode / TImode.
3289 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3290 register used does not overlap the target.
3291
3292 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3293
3294 * Makefile.in (debug.o): Depend on debug.h.
3295 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3296 * debug.c (do_nothing_debug_hooks): Likewise.
3297 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3298 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3299 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3300 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3301 * dwarfout.c (dwarf_debug_hooks): Likewise.
3302 * integrate.c (output_inline_function): Likewise.
3303 * objc/objc-act.c (synth_module_prologue): Likewise.
3304 * sdbout.c (sdb_debug_hooks): Likewise.
3305 * toplev.c (debug_hooks): Likewise.
3306 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3307
3308 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3309
3310 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3311 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3312 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3313 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3314 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3315 * defaults.h (POINTER_SIZE): Define.
3316 * doc/tm.texi (POINTER_SIZE): Document default.
3317
3318 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3319
3320 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3321
3322 2002-03-11 Richard Henderson <rth@redhat.com>
3323
3324 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3325 if rebuild_label_notes_after_reload.
3326
3327 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
3328
3329 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
3330 emit pic register load if "internal" visibility.
3331 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3332 (cris_expand_builtin_va_arg): Do all computations on trees.
3333
3334 2002-03-11 Richard Henderson <rth@redhat.com>
3335
3336 * rtlanal.c: Include recog.h.
3337 (keep_with_call_p): Fix thinko.
3338 * Makefile.in (rtlanal.o): Update dependencies.
3339
3340 2002-03-11 Chris Meyer <cmeyer@gatan.com>
3341
3342 * genflags.c (gen_insn): Use IS_VSPACE.
3343 * genoutput.c (output_insn_data): Likewise.
3344 (process_template): Likewise.
3345
3346 2002-03-11 Richard Henderson <rth@redhat.com>
3347
3348 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3349
3350 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
3351
3352 * Makefile.in: Update.
3353 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3354 Update documentation.
3355 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3356 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3357
3358 2002-03-11 Zack Weinberg <zack@codesourcery.com>
3359
3360 * Makefile.in: Give texi2pod its input file as a command line
3361 argument, not on stdin.
3362
3363 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
3364 Daniel Berlin <dan@dberlin.org>
3365
3366 C++ alias analysis improvement.
3367 * alias.c (record_component_aliases): Record aliases for base
3368 classes too.
3369
3370 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3371
3372 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3373
3374 2002-03-11 Douglas B Rupp <rupp@gnat.com>
3375
3376 * toplev.c (vms_fopen): Remove, not needed.
3377
3378 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3379
3380 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3381
3382 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3383 for FP, already done later.
3384
3385 * toplev.c (debug_args): Add entry for VMS_DEBUG.
3386 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3387
3388 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
3389
3390 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3391 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3392 LARGEST_EXPONENT_IS_NORMAL for the given mode.
3393 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3394 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3395 (ediv, emul, eldexp, esqrt): Likewise.
3396 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3397 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3398 (saturate): New function.
3399 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3400 (make_nan): Use a saturation value instead of a NaN if
3401 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
3402 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3403 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
3404 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
3405 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3406 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3407 !ROUND_TOWARDS_ZERO.
3408 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3409 (ROUND_TOWARDS_ZERO): Document.
3410
3411 2002-03-11 Andreas Jaeger <aj@suse.de>
3412
3413 * cfg.c (dump_flow_info): Remove unused variable.
3414
3415 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
3416
3417 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3418 computations on trees.
3419
3420 2002-03-10 Richard Henderson <rth@redhat.com>
3421
3422 PR 5693:
3423 * reload.c (copy_replacements_1): New.
3424 (copy_replacements): Use it to recurse through the rtx.
3425
3426 2002-03-10 Richard Henderson <rth@redhat.com>
3427
3428 * loop.c (strength_reduce): Compute number of iterations as
3429 unsigned HOST_WIDE_INT.
3430
3431 2002-03-10 Richard Henderson <rth@redhat.com>
3432
3433 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3434 to move away from the end of the block.
3435
3436 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3437
3438 PR preprocessor/5899
3439 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3440
3441 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3442
3443 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3444
3445 * attribs.c (decl_attributes): Fix signed/unsigned warning.
3446
3447 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
3448
3449 * config/mmix/mmix.c: Improve comments.
3450 (mmix_target_asm_function_prologue): Drop variable
3451 empty_stack_frame. Don't allocate unused slot above fp.
3452 (mmix_target_asm_function_epilogue): Mirror prologue changes.
3453 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3454 brace in first column.
3455 (enum reg_class): Ditto.
3456 (FIRST_PARM_OFFSET): Now 0.
3457 (USER_LABEL_PREFIX): Remove #if 0:d definition.
3458
3459 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3460
3461 * combine.c (make_extraction): Fix error in last change.
3462
3463 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3464
3465 * c4x.c (c4x_fp_reglist): Const-ify.
3466 * cris.c (cris_print_operand): Likewise.
3467 * i386.c (ix86_va_arg): Likewise.
3468 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3469 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3470 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3471 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3472 * mcore.h (regno_reg_class): Likewise.
3473 * mips.c (gen_int_relational): Likewise.
3474 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3475 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3476 * pdp11.c (move_costs): Likewise.
3477 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3478 * s390.c (s390_branch_condition_mnemonic, regclass_map):
3479 Likewise.
3480 * s390.h (regclass_map): Likewise.
3481 * sh.c (shift_amounts): Likewise.
3482 * sh.md (rotlsi3): Likewise.
3483
3484 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3485
3486 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3487 (ne0+5): Use new clobber to generate proper shift pattern.
3488 Patch by Michael Matz <matz@kde.org>.
3489
3490 2002-03-09 Andreas Schwab <schwab@suse.de>
3491
3492 * gcc.c (validate_all_switches): Also handle `%W{...}'.
3493
3494 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3495
3496 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3497
3498 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3499
3500 PR middle-end/5877
3501 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3502 even for non-representable constants.
3503
3504 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3505
3506 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3507 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3508 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3509 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3510 (pop_function_context): Compute MAY_SHARE parameter for
3511 fixup_var_refs.
3512 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3513 (gen_mem_addressof): Call fixup_var_refs with new parm.
3514
3515 * combine.c (make_extraction): Don't make extension of CONST_INT.
3516
3517 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3518
3519 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3520 in o32 and o64 ABIs.
3521 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3522 but getting fixed-size structs passed in registers regardless of
3523 padding in o32 and o64 ABIs.
3524
3525 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3526 offset before loading address of argument passed by transparent
3527 reference.
3528
3529 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3530
3531 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3532
3533 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3534
3535 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3536 marker such that registers after it are saved.
3537
3538 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3539
3540 * sparc.c (arith_4096_operand): Fix error in last change.
3541
3542 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3543
3544 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3545 defaults for MEABI.
3546
3547 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3548
3549 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3550 vectors.
3551
3552 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3553
3554 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3555
3556 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
3557
3558 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3559 removed; fix return value.
3560 * combine.c (combine_instructions): Dirtify blocks where we failed to
3561 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3562 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3563
3564 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3565
3566 * gcse.c (insert_insn_end_bb): Fix typo in last change.
3567
3568 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
3569
3570 * recog.c (peephole2_optimize): Re-distribute EH edges.
3571
3572 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
3573
3574 * expr.c (expand_expr): Use unsave lang hook.
3575 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3576 (LANG_HOOKS_INITIALIZER): Update.
3577 * langhooks.h (struct lang_hooks): New hook unsave.
3578 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3579 (unsave_expr_1): Remove unused lang_unsave_expr_now.
3580 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
3581 (unsave_expr_now): Remove.
3582 * tree.h (unsave_expr_now, lang_unsave,
3583 lang_unsave_expr_now): Remove.
3584 (lhd_unsave): New.
3585
3586 2002-03-08 Andreas Jaeger <aj@suse.de>
3587
3588 * flow.c (propagate_block_delete_insn): Remove unused variable.
3589
3590 2002-03-08 Kazu Hirata <kazu@hxi.com>
3591
3592 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3593 insn length for memory load/store.
3594
3595 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
3596
3597 * doc/install.texi (--with-libiconv-prefix): Document.
3598
3599 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3600
3601 * doc/sourcebuild.texi: Fix typo.
3602
3603 2002-03-08 Jakub Jelinek <jakub@redhat.com>
3604
3605 PR c/3711
3606 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3607 trees.
3608
3609 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3610
3611 * rtl.c (copy_most_rtx): Move from here ...
3612 * emit-rtl.c (copy_most_rtx): ... to here.
3613
3614 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3615
3616 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3617 SUBTARGET_CPP_SIZE_SPEC.
3618 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3619
3620 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3621
3622 2002-03-07 Matt Hiller <hiller@redhat.com>
3623
3624 * gensupport.c (first_dir_md_include): Renamed from include;
3625 change all references.
3626 (last_dir_md_include): Renamed from last_include; change all
3627 references.
3628 (init_md_reader): Unconditionally initialize base_dir whether or
3629 not filename is a relative path.
3630
3631 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
3632
3633 * config/fp-bit.c (_unord_f2): Compile it in even if
3634 US_SOFTWARE_GOFAST is enabled.
3635
3636 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3637 NULL_RTX. Set all HFmode operations as NULL_RTX.
3638 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3639 NULL_RTX, try reversing the comparison and the operands.
3640
3641 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3642
3643 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3644 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3645 and MATCH_OP_DUP.
3646
3647 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
3648
3649 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3650
3651 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3652
3653 * basic-block.h (fixup_abnormal_edges): Declare.
3654 * reload1.c (fixup_abnormal_edges): New function.
3655 * reg-stack.c (convert_regs): Use it.
3656
3657 * gcse.c (insert_insn_end_bb): Handle trapping insns.
3658
3659 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3660
3661 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
3662
3663 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3664 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3665 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3666 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3667 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3668 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3669 unless x and y could be infinite.
3670 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3671 Check that the common type of both arguments is a real, even for
3672 targets without unordered comparisons. Allow an integer argument
3673 to be compared against a real.
3674 (expand_tree_builtin): Use expand_unordered_cmp.
3675 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3676 * cse.c (fold_rtx): Likewise. Fix indentation.
3677 * fold-const.c (fold_real_zero_addition_p): New.
3678 (fold): Use it, and the new HONOR_... macros.
3679 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3680 * jump.c (reversed_comparison_code_parts): After searching for
3681 the true comparison mode, use HONOR_NANS to decide whether it
3682 can be safely reversed.
3683 (reverse_condition_maybe_unordered): Remove IEEE check.
3684 * simplify-rtx.c (simplify_binary_operation): Use the new macros
3685 to decide which simplifications are valid. Allow the following
3686 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3687 and (a - -b) to (a + b).
3688 (simplify_relational_operation): Use HONOR_NANS.
3689 * doc/tm.texi: Document the MODE_HAS_... macros.
3690
3691 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3692
3693 * combine.c (simplify_comparison): If simplifying a logical shift
3694 right and compare with constant, force the comparison to unsigned.
3695
3696 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
3697
3698 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3699
3700 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3701 -mabi=no-altivec
3702 (alt_reg_names): Remove % for vrsave.
3703
3704 2002-03-06 Richard Henderson <rth@redhat.com>
3705
3706 PR optimization/5844
3707 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3708 if used indicates we've already emitted one copy of an operand.
3709 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3710 (gen_split): Supply a non-null used.
3711
3712 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3713
3714 * reload1.c (reload): Unshare all rtl after reload is done.
3715
3716 * simplify-rtx.c (simplify_plus_minus): Do not abort,
3717 but simply fail if the expression is too complex to simplify.
3718 (simplify_gen_binary): Handle simplify_plus_minus failures.
3719
3720 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3721
3722 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3723 consistently call delete_trivially_dead_insns after CSE and GCSE;
3724 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3725 after liveness2; update comment in last crossjumping.
3726 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3727
3728 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3729
3730 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3731 after completing fast dead code elimination.
3732
3733 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3734 COMPARE operator.
3735
3736 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3737
3738 * version.c: Fix misplaced leading blanks on first line.
3739
3740 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3741
3742 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3743
3744 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3745
3746 * cfgcleanup.c (mentions_nonequal_regs): New function.
3747 (thread_jump): Use it.
3748 * toplev.c (rest_of_compilation): Run jump threading after
3749 liveness.
3750
3751 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3752
3753 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3754 patch.
3755
3756 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3757
3758 * predict.c (estimate_bb_frequencies): Do not reload the
3759 frequencies from notes.
3760
3761 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3762
3763 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3764 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3765
3766 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3767 delete_noop_moves): Return indeger.
3768 * flow.c (ndead): New variable.
3769 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3770 BB argument; update callers.
3771 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3772 (life_analysis): Do not call purge_all_dead_edges.
3773 (update_life_info): Return number of deleted insns; print statistics.
3774 (update_life_info_in_dirty_blocks): likewise.
3775 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3776 return number of insns deleted.
3777
3778 * cse.c: Include timevar.h
3779 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3780 iterate until stabilizes; print statistics; return number of killed
3781 insns.
3782 * Makefile.in: (cse.o): Add timevar.h dependency
3783 * rtl.h (delete_trivially_dead_insns): New.
3784 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3785 * toplev.c (rest_of_compilation): Update callers.
3786
3787 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3788 (try_optimize_cfg): Do not update liveness.
3789 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3790 removal stabilizes; use delete_trivially_dead_insns.
3791
3792 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3793
3794 2002-03-05 Zack Weinberg <zack@codesourcery.com>
3795
3796 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3797 callbacks when processing assembly language.
3798
3799 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3800
3801 * pa.h (ASM_FILE_END): Define.
3802 * som.h (ASM_FILE_END): Delete.
3803
3804 * pa.c (function_arg): Don't pass floats in general registers in
3805 indirect calls if TARGET_ELF32.
3806
3807 2002-03-05 Richard Henderson <rth@redhat.com>
3808
3809 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3810
3811 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3812
3813 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3814
3815 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3816
3817 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3818 -r command line. Don't hide any symbols if not building
3819 shared libgcc.
3820
3821 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3822
3823 * cfg.c (dump_flow_info): Warn about profile mismatches.
3824 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3825 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3826
3827 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3828
3829 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3830 wide volatile memory by parts.
3831
3832 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3833
3834 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3835 is NULL.
3836
3837 2002-03-05 Richard Henderson <rth@redhat.com>
3838
3839 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3840
3841 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3842
3843 * toplev.c (documented_lang_options): Document more
3844 language-specific options.
3845 * doc/invoke.texi (Warning Options): Correct documentation for
3846 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3847 * c-decl.c (c_decode_option): Use a table to handle warning options.
3848
3849 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3850
3851 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3852 parameter to mmix_encode_section_info.
3853 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3854 relocatably. Always produce ELF, not mmo if linking relocatably.
3855 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3856 first is non-zero, don't add symbol prefix.
3857 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3858 prototype accordingly.
3859
3860 2002-03-04 Krister Walfridsson <cato@df.lth.se>
3861
3862 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3863
3864 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3865
3866 * configure.in: Increase required makeinfo version to 4.1.
3867 * configure: Regenerate.
3868
3869 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3870
3871 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3872 elsewhere now.
3873
3874 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3875
3876 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3877 * doc/invoke.texi: Fix @math uses.
3878
3879 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3880
3881 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3882 removal
3883
3884 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
3885
3886 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3887 (powerpc-*-eabisimaltivec*): Same.
3888
3889 * config/rs6000/t-ppcendian: New.
3890
3891 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3892
3893 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3894 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3895 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3896
3897 2002-03-03 Richard Henderson <rth@redhat.com>
3898
3899 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3900
3901 2002-03-03 Zack Weinberg <zack@codesourcery.com>
3902
3903 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3904 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3905 tree.c, config/m68k/m68k.c:
3906 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3907 REAL_ARITHMETIC blocks unconditional. Delete some further
3908 #ifdef blocks predicated on REAL_ARITHMETIC.
3909 * flags.h, toplev.c: Delete remaining references to
3910 flag_pretend_float.
3911
3912 * doc/invoke.texi: Remove documentation of -fpretend-float.
3913 * doc/tm.texi: Describe the various REAL_* macros as provided by
3914 real.h, not by the target configuration files.
3915
3916 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3917 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3918 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3919 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3920 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3921 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3922 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3923 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3924 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3925 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3926 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3927 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3928 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3929 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3930 config/xtensa/xtensa.h:
3931 Do not define, undefine, or mention in comments any of
3932 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3933 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3934 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3935 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3936 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3937 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3938 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3939 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3940 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3941
3942 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3943
3944 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3945 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3946 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3947 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3948 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3949 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3950 Delete.
3951 * defaults.h (BITS_PER_WORD): Define.
3952 * doc/tm.texi (BITS_PER_WORD): Document default value.
3953
3954 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3955 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3956 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3957
3958 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3959
3960 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3961 lieu of explicit sizeof/sizeof.
3962 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3963 ix86_expand_builtin): Likewise.
3964 * mips.c (mips_add_gc_roots): Likewise.
3965 * mmix.c (mmix_output_condition): Likewise.
3966 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3967 altivec_init_builtins): Likewise.
3968 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3969 * cppexp.c (Nsuff, parse_number): Likewise.
3970 * cppinit.c (builtin_array_end): Likewise.
3971 * gcc.c (n_default_compilers, process_command): Likewise.
3972 * genpreds.c (output_predicate_decls): Likewise.
3973 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3974 * lcm.c (N_ENTITIES): Likewise.
3975 * stor-layout.c (set_sizetype): Likewise.
3976
3977 2002-03-03 Richard Henderson <rth@redhat.com>
3978
3979 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3980 for types or labels.
3981
3982 2002-03-03 Richard Henderson <rth@redhat.com>
3983
3984 * c-decl.c (start_decl): Initialized variables are not common.
3985
3986 2002-03-02 Per Bothner <per@bothner.com>
3987
3988 * gcc.c (option_map): Suport new --bootclasspath option.
3989 --CLASSPATH is now just an alias for --classpath.
3990
3991 2002-03-02 Richard Henderson <rth@redhat.com>
3992
3993 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3994 load if "internal" visibility.
3995 * doc/extend.texi: Document visibility meanings.
3996
3997 2002-03-02 Richard Henderson <rth@redhat.com>
3998
3999 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4000 to functions as well.
4001
4002 2002-03-02 Richard Henderson <rth@redhat.com>
4003
4004 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4005 (handle_visibility_attribute): Don't call assemble_visibility.
4006 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4007 without asmspec. Invoke assemble_alias when needed.
4008 * varasm.c (maybe_assemble_visibility): New.
4009 (assemble_start_function, assemble_variable, assemble_alias): Use it.
4010
4011 2002-03-02 Richard Henderson <rth@redhat.com>
4012
4013 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4014 invoke ENCODE_SECTION_INFO with first call flag.
4015
4016 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4017 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4018 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4019 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4020 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4021 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4022 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4023 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4024 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4025 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4026 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4027 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4028 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4029 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4030 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4031 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4032 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4033 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4034 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4035 config/sh/sh.h, config/sparc/sparc.h,
4036 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4037 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4038 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4039 FIRST argument. As needed, examine it and do nothing.
4040
4041 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4042 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4043 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4044
4045 * config/arm/t-pe (pe.o): Add dependencies.
4046
4047 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4048
4049 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4050 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4051 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4052 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4053 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4054 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4055 * defaults.h (BITS_PER_UNIT): Define.
4056 * doc/tm.texi (BITS_PER_UNIT): Document default value.
4057
4058 2002-03-02 Kazu Hirata <kazu@hxi.com>
4059
4060 * config/h8300/h8300-protos.h: Add a prototype for
4061 compute_a_shift_length.
4062 * config/h8300/h8300.c (h8300_asm_insn_count): New.
4063 (compute_a_shift_length): Likewise.
4064 (h8300_adjust_insn_length): Do not adjust insn length of shift
4065 insns.
4066 * config/h8300/h8300.md (anonymous shift patterns): Use
4067 compute_a_shift_length.
4068
4069 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4070
4071 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4072 trunc_int_for_mode.
4073
4074 * emit-rtl.c (offset_address): Call update_temp_slot_address.
4075
4076 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4077
4078 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4079 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4080 * flags.h (flag_zero_initialized_in_bss): Declare.
4081 * toplev.c (flag_zero_initialized_in_bss): New flag.
4082 (lang_independent_options): Add flag_zero_initialized_in_bss.
4083 * tree.c (initializer_zerop): New function.
4084 * tree.h (initializer_zerop): Declare.
4085 * varasm.c (assemble_variable): If we can emit bss, put zero
4086 initializers in the bss section.
4087
4088 2002-03-02 Alan Modra <amodra@bigpond.net.au>
4089
4090 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4091 like more than one symbol per .weak directive.
4092
4093 2002-03-01 Richard Henderson <rth@redhat.com>
4094
4095 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4096 adjust argument_pointer by pretend_args_size.
4097 (ia64_va_start): Adjust va_start address by -pretend_args_size.
4098
4099 2002-03-01 Kazu Hirata <kazu@hxi.com>
4100
4101 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4102
4103 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
4104
4105 * toplev.c (rest_of_compilation): Delete dead jumptables before
4106 loop.
4107 * flow.c (delete_dead_jumptables): Make global.
4108 * rtl.h (delete_dead_jumptables): Declare.
4109
4110 2002-03-01 David Edelsohn <edelsohn@gnu.org>
4111
4112 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4113 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4114 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4115
4116 2002-03-01 Kazu Hirata <kazu@hxi.com>
4117
4118 * config/h8300/h8300-protos.h: Fix formatting.
4119 * config/h8300/h8300.c: Likewise.
4120 * config/h8300/h8300.h: Likewise.
4121
4122 2002-03-01 Kazu Hirata <kazu@hxi.com>
4123
4124 * config/h8300/h8300.c (print_operand): Support 16-bit
4125 constant addresses.
4126 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4127
4128 2002-02-28 Richard Henderson <rth@redhat.com>
4129
4130 * expmed.c (store_bit_field): Prevent generation of CONCATs;
4131 pun complex values as integers; use gen_lowpart instead of
4132 gen_rtx_SUBREG.
4133 (extract_bit_field): Likewise.
4134
4135 2002-03-01 Alan Modra <amodra@bigpond.net.au>
4136 David Edelsohn <edelsohn@gnu.org>
4137
4138 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4139 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4140 (SUPPORTS_WEAK): Likewise.
4141 * output.h (add_weak): Add tree param.
4142 * varasm.c (add_weak): Likewise. Save decl.
4143 (struct weak_syms): Add decl field.
4144 (mark_weak_decls): New function.
4145 (init_varasm_once): ggc_add_root mark_weak_decls.
4146 (assemble_start_function): Use ASM_WEAKEN_DECL.
4147 (assemble_variable): Likewise.
4148 (assemble_alias): Likewise.
4149 (declare_weak): Pass decl to add_weak.
4150 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4151 (remove_from_pending_weak_list): Declare and define for
4152 ASM_WEAKEN_DECL.
4153 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4154 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4155 * defaults.h (SUPPORTS_WEAK): Likewise.
4156 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4157 .weak for code sym. Do emit .size for descriptor sym.
4158 (ASM_DECLARE_FUNCTION_SIZE): Define.
4159 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4160 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
4161 .lglobl unless TARGET_XCOFF. Formatting fixes.
4162 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4163 .weak for code sym.
4164 (HANDLE_PRAGMA_WEAK): Remove.
4165 (ASM_WEAKEN_LABEL): Remove.
4166 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4167
4168 2002-03-01 Jason Merrill <jason@redhat.com>
4169
4170 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4171 (TARGET_EXPR_CLEANUP): New macro.
4172
4173 2002-02-28 Steve Ellcey <sje@cup.hp.com>
4174
4175 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4176 to take ptr_extend into account as third type of extension.
4177 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4178 fields used by SUBREG_PROMOTED_UNSIGNED_P.
4179 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4180 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4181 * calls.c (precompute_arguments): Use new macro.
4182 (expand_call): Ditto.
4183 * combine.c (nonzero_bits): Ditto.
4184 (record_promoted_value): Ditto.
4185 * expr.c (store_expr): Ditto.
4186 (expand_expr): Ditto.
4187 * function.c (assign_parms): Ditto.
4188
4189 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
4190
4191 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4192 override -shared and -shared-libgcc.
4193
4194 2002-02-28 David O'Brien <obrien@FreeBSD.org>
4195
4196 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4197 of "ultrasparc".
4198 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
4199 to be broken.
4200
4201 2002-02-28 Richard Henderson <rth@redhat.com>
4202
4203 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4204 4 cycle latency from MM producers.
4205 (ia64_internal_sched_reorder): Likewise with pipeline flush.
4206
4207 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4208
4209 * mklibgcc.in: Don't use GNU make extension.
4210
4211 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4212
4213 * c-parse.in (STATIC): New terminal.
4214 (scspec): New non-terminal. Update productions accordingly.
4215 (program): Remove bogus ifc / end ifc.
4216 (array_declarator): Simplify production using STATIC.
4217
4218 2002-02-28 Jim Meyering <meyering@lucent.com>
4219
4220 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4221 \a still means TARGET_BELL.
4222
4223 2002-02-28 Richard Henderson <rth@redhat.com>
4224
4225 * haifa-sched.c (sched_emit_insn): New.
4226 (schedule_block): Use last_scheduled_insn to track last insn.
4227 * sched-int.h (sched_emit_insn): Prototype.
4228 * config/ia64/ia64.c (last_issued): Remove.
4229 (ia64_variable_issue): Don't set it.
4230 (nop_cycles_until): Use sched_emit_insn.
4231
4232 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
4233
4234 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4235 extended constants.
4236
4237 2002-02-28 Kazu Hirata <kazu@hxi.com>
4238
4239 * config/h8300/h8300.c: Fix formatting.
4240 * config/h8300/h8300.h: Likewise.
4241
4242 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
4243
4244 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4245 which may overwrite the high byte of the frame pointer.
4246
4247 2002-02-28 Bo Thorsen <bo@suse.de>
4248
4249 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4250 (STARTFILE_SPEC): Add 64 bit files.
4251 (ENDFILE_SPEC): Likewise.
4252
4253 2002-02-28 Jason Merrill <jason@redhat.com>
4254
4255 * c-decl.c (finish_function): Only warn about missing return
4256 statement with -Wreturn-type.
4257
4258 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
4259
4260 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4261
4262 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4263 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4264
4265 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
4266
4267 * basic-block.h (BB_REACHABLE): Renumber.
4268 (BB_DIRTY, BB_NEW): New flags.
4269 (clear_bb_flags): Declare.
4270 (update_life_info_in_dirty_blocks): Declare.
4271 * cfg.c (clear_bb_flags): New function.
4272 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4273 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4274 reorder_insns, emit_insn_after): Mark block as dirty.
4275 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4276 (update_life_info_in_dirty_blocks): New function.
4277 * recog.c (apply_change_group): Dirtify block.
4278
4279 * cse.c (cse_insn): Reorder emitting of jump insn to keep
4280 cfg consistent.
4281 * gcse.c (delete_null_pointer_checks): Likewise.
4282
4283 * toplev.c (dump_file_index): Move cse2 after bp,
4284 add DFI_null
4285 (dump_file_info): Similary.
4286 (rest_of_compilation): Avoid most of CFG rebuilds;
4287 do first if converision after null pointer checks, do cse2
4288 after branch prediction; avoid full liveness rebuild after
4289 initializing subregs.
4290 * invoke.texi (-d options): Document -du, renumber.
4291
4292 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4293 (notice_new_block): Do not set BB_UPDATE_LIFE.
4294 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4295 merge_blocks_move_successor_nojumps, merge_blocks,
4296 try_crossjump_to_edge): Likewise.
4297 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4298 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4299 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4300 (merge_of_block): Do not use life_data_ok.
4301 (find_if_case_1): Do not use SET_UPDATE_LIFE.
4302 (if_convert): Use BB_DIRTY mechanizm to update life.
4303 * lcm.c (optimize_mode_switching): Update
4304 update_life_info_in_dirty_blocks
4305
4306 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4307
4308 * Makefile.in (integrate.o): Update.
4309 * c-decl.c (copy_lang_decl): Rename.
4310 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4311 * integrate.c: Include langhooks.h.
4312 (copy_decl_for_inlining): Update to use langhook.
4313 * langhooks-def.h (lhd_do_nothing_t,
4314 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4315 (LANG_HOOKS_INITIALIZER): Update.
4316 * langhooks.c (lhd_do_nothing_t): New.
4317 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4318 * tree.h (copy_lang_decl): Remove.
4319 objc:
4320 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4321
4322 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
4323
4324 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4325 POST_DEC, and POST_MODIFY.
4326
4327 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4328
4329 * c-typeck.c (digest_init): Remove unused parameter; all
4330 callers changed.
4331
4332 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
4333
4334 * expmed.c (expand_shift): Correctly test for low part of a
4335 subreg.
4336
4337 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4338
4339 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4340 insn UIDs with insn addresses.
4341
4342 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4343
4344 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4345 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4346 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4347 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4348 gcc.c, toplev.c: Delete code implementing -traditional mode.
4349
4350 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4351 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4352 Document removal of -traditional mode for compilation, and
4353 remove documentation only relevant to that mode.
4354
4355 * config/nextstep.h, config/ptx4.h, config/svr4.h,
4356 config/convex/convex.h, config/d30v/d30v.h,
4357 config/i386/dgux.h, config/i386/osf1elf.h,
4358 config/i386/osfelf.h, config/i386/osfrose.h,
4359 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4360 config/m68k/hp310.h, config/m88k/dgux.h,
4361 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4362 config/m88k/m88k.h, config/m88k/openbsd.h,
4363 config/mips/abi64.h, config/mips/osfrose.h,
4364 config/mips/svr4-5.h, config/mips/svr4-t.h,
4365 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4366 config/stormy16/stormy16.h: Remove all references to
4367 -traditional from target specs. Delete all mention of the
4368 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
4369 delete a couple of commented-out definitions of
4370 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4371 to -traditional.
4372
4373 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4374 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4375
4376 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4377
4378 * mklibgcc.in: Don't use \n in a line subject to
4379 interpretation by echo.
4380
4381 2002-02-27 Graham Stott <grahams@redhat.com>
4382
4383 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4384 Constify NAME.
4385
4386 * loop.c (prescan_loop): Handle PARALLEL.
4387
4388 * unroll.c (loop_iterations): Return 0 if the add_val for
4389 a BIV is REG.
4390
4391 * final.c (output_operand_lossage): Constify PFX_STR.
4392
4393 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4394
4395 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
4396
4397 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4398 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4399
4400 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
4401
4402 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4403
4404 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
4405
4406 * cpplex.c (_cpp_lex_token): Handle directives in macro
4407 arguments.
4408 * cpplib.c (_cpp_handle_directive): Save and restore state
4409 if parsing macro args when entering a directive.
4410 * cppmacro.c (collect_args): No need to handle directives
4411 in macro arguments.
4412 (enter_macro_context, replace_args): Use the original macro
4413 definition in case it was redefined whilst collecting arguments.
4414 doc:
4415 * cpp.texi: Update.
4416
4417 2002-02-26 David Edelsohn <edelsohn@gnu.org>
4418
4419 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4420 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4421 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4422 method on AIX.
4423 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4424 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4425 (load_toc_v4_PIC_2): Same.
4426
4427 2002-02-26 Alan Modra <amodra@bigpond.net.au>
4428
4429 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4430
4431 2002-02-26 Richard Henderson <rth@redhat.com>
4432
4433 * config/alpha/alpha.md (ashldi_se): Re-enable.
4434
4435 2002-02-26 Richard Henderson <rth@redhat.com>
4436
4437 * config/alpha/alpha.c (alpha_encode_section_info): Examine
4438 MODULE_LOCAL_P; improve commentary.
4439
4440 2002-02-26 Zack Weinberg <zack@codesourcery.com>
4441
4442 * doc/cpp.texi: Clarify documentation of relationship between
4443 #line and #include.
4444
4445 2002-02-26 Kazu Hirata <kazu@hxi.com>
4446
4447 * config/h8300/h8300-protos.h: Update the prototype for
4448 compute_logical_op_length. Add the prototype for
4449 compute_logical_op_cc.
4450 * config/h8300/h8300.c (compute_logical_op_length): Figure out
4451 code from operands.
4452 (compute_logical_op_cc): New.
4453 * config/h8300/h8300.md: Combine all the logical op patterns
4454 in HImode and SImode. Use compute_logical_op_cc.
4455
4456 2002-02-26 Kelley Cook <kelleycook@comcast.net>
4457
4458 * config/i386/i386.c (print_operand): Don't append ATT-style
4459 length suffixs to x87 opcodes when in Intel mode.
4460
4461 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
4462
4463 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4464 (init_emit_once): Update calls.
4465 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4466 (init_syntax_once): Prototype.
4467
4468 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4469
4470 * pa-linux.h (LIB_SPEC): Update definition.
4471 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4472
4473 2002-02-26 Richard Henderson <rth@redhat.com>
4474
4475 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4476 if we emitted a stop bit.
4477
4478 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4479
4480 * configure.in (libgcc_visibility): Substitute.
4481 * configure: Rebuilt.
4482 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4483 defined symbols .hidden.
4484
4485 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4486
4487 * attribs.c (c_common_attribute_table): Add visibility.
4488 (handle_visibility_attribute): New function.
4489 * varasm.c (assemble_visibility): New function.
4490 * output.h (assemble_visibility): Add prototype.
4491 * tree.h (MODULE_LOCAL_P): Define.
4492 * crtstuff.c (__dso_handle): Use visibility attribute.
4493 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4494 for MODULE_LOCAL_P symbols too.
4495 * config/ia64/ia64.c (ia64_encode_section_info): Handle
4496 MODULE_LOCAL_P symbols the same way as local symbols.
4497 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4498 into .sdata/.sbss by the user.
4499 * doc/extend.texi (Function Attributes): Document visibility
4500 attribute.
4501
4502 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4503
4504 PR debug/5770
4505 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4506 STRING_CST initializer spanning the whole variable without
4507 embedded zeros.
4508 If expand_expr returned MEM, don't use it.
4509
4510 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
4511
4512 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4513 generate a die for the lexical block.
4514
4515 2002-02-26 Kazu Hirata <kazu@hxi.com>
4516
4517 * config/h8300/h8300-protos.h: Add a prototype for
4518 compute_logical_op_length.
4519 * config/h8300/h8300.c (compute_logical_op_length): New.
4520 * config/h8300/h8300.md (anonymous logical patterns): Use
4521 compute_logical_op_length for length.
4522
4523 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4524
4525 * dwarf2out.c (modified_type_die): Do not call type_main_variant
4526 for vectors.
4527 (gen_type_die): Same.
4528
4529 * attribs.c (handle_vector_size_attribute): Set debug information.
4530
4531 2002-02-26 Daniel Egger <degger@fhm.edu>
4532
4533 * config/rs6000/rs6000.md: Swap define_insn attributes to
4534 fix incorrect generation of merge high instructions instead
4535 of merge low.
4536
4537 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4538
4539 * c-typeck.c (really_start_incremental_init): Use
4540 bitsize_zero_node for vectors.
4541
4542 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4543
4544 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4545 ("*set_vrsave_internal"): Same.
4546
4547 2002-02-25 Richard Henderson <rth@redhat.com>
4548
4549 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4550 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
4551
4552 2002-02-25 Jakub Jelinek <jakub@redhat.com>
4553
4554 PR target/5755
4555 * config/i386/i386.c (ix86_return_pops_args): Only pop
4556 fake structure return argument if it was passed on the stack.
4557
4558 2002-02-25 Jason Merrill <jason@redhat.com>
4559
4560 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4561 RESULT_DECL.
4562
4563 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4564
4565 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4566 link with shared_name only.
4567 * doc/invoke.texi (Link Options): Document new behavior.
4568
4569 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4570
4571 * c-typeck.c (push_init_level): Handle vectors.
4572
4573 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4574
4575 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4576 operands of SPARC_SETHI_P.
4577 (input_operand): Likewise.
4578 (sparc_emit_set_const32): Likewise.
4579 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4580 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4581 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
4582 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4583 (movdi_insn_sp64_vis): Likewise.
4584 (movdi split, movdf split): Use SETHI32.
4585 * doc/md.texi: Document SPARC constraints L, M and N.
4586
4587 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4588
4589 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4590 ("*set_vrsave_internal"): use mfspr for Darwin.
4591
4592 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4593 gen_get_vrsave_internal.
4594
4595 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4596
4597 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4598
4599 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4600
4601 * cpplex.c (cpp_interpret_charconst): Get signedness or
4602 otherwise of wide character constants correct.
4603 * cppexp.c (lex): Get signedness of wide charconsts correct.
4604
4605 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4606
4607 * optabs.c (widen_operand): Only call convert_modes for
4608 promoted SUBREG if signedness matches.
4609 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4610
4611 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4612
4613 * cpplib.c (glue_header_name): Use local buffer to build up
4614 header name.
4615
4616 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4617
4618 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4619
4620 2002-02-23 Kazu Hirata <kazu@hxi.com>
4621
4622 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4623 H8/300[HS] separately.
4624 * config/h8300/h8300.md: Remove the early clobber constraint
4625 from bit field patterns.
4626
4627 2002-02-23 Kazu Hirata <kazu@hxi.com>
4628
4629 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4630 register_operand.
4631 (mulhisi3): Likewise.
4632 (umulqisi3): Likewise.
4633 (umulhisi3): Likewise.
4634
4635 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4636
4637 * cppinit.c (output_deps): Correct test for stdout output.
4638 (init_dependency_output): Cure warning.
4639
4640 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4641
4642 * expr.c (store_expr): When converting expression to promoted
4643 equivalent type, allow using SUBREG_REG of TARGET as the target
4644 of the expansion of EXP.
4645 * loop.c (basic_induction_var, case SUBREG): Always look inside.
4646 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4647 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4648 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4649 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4650
4651 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
4652
4653 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4654 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4655 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4656
4657 2002-02-23 Jakub Jelinek <jakub@redhat.com>
4658
4659 PR optimization/5747
4660 * loop.c (scan_loop): Update reg info if move_movables created new
4661 pseudos.
4662
4663 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4664
4665 * gcc.c (init_gcc_spec): Revert last change.
4666
4667 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4668
4669 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4670 gpc_reg_operand constraint.
4671
4672 2002-02-23 Alan Modra <amodra@bigpond.net.au>
4673
4674 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4675 Simplify comparison of `low'.
4676 (add_operand): Fix formatting.
4677 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4678 (mask_operand): Disallow mask to wrap in 64-bit mode.
4679 (rs6000_stack_info): Remove redundant test setting push_p.
4680 (output_toc): Fix formatting.
4681 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4682 cc_reg_not_cr0_operand constraint.
4683 (booldi3, boolcdi3 splitters): Same.
4684
4685 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
4686
4687 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4688
4689 2002-02-22 David Edelsohn <edelsohn@gnu.org>
4690
4691 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4692 gcc invoked with -shared-libgcc.
4693
4694 2002-02-22 Jakub Jelinek <jakub@redhat.com>
4695
4696 PR c++/5748
4697 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4698 decl if any of elements was TREE_USED.
4699
4700 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
4701
4702 * config/sparc/sol2.h: Don't include sys/mman.h.
4703 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4704 (arith_4096_operand): Don't throw high bits away.
4705 (const64_operand): Take sign extension of CONST_INTs into account.
4706 (const64_high_operand, sparc_emit_set_const32): Likewise.
4707 (GEN_HIGHINT64): Likewise.
4708 (sparc_emit_set_const64_quick1): Likewise.
4709 (const64_is_2insns): Likewise.
4710 (print_operand): Use trunc_int_for_mode for sign extension.
4711 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4712 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4713 chars. Assume CONST_INT is already properly sign-extended.
4714 (movdi split): Sign-extend each SImode part.
4715 (andsi3 split): Don't mask high bits off, so that result
4716 remains properly sign-extend.
4717 (iorsi3 split): Likewise.
4718 (xorsi3 split): Likewise.
4719
4720 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
4721
4722 * fold-const.c (fold): Fix typo in comments.
4723
4724 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4725
4726 * Makefile.in (langhooks.o): Update dependencies.
4727
4728 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4729
4730 * langhooks.c: Include flags.h.
4731
4732 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
4733
4734 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4735
4736 * c-common.c (c_common_post_options): Set inline trees by
4737 default.
4738
4739 * doc/extend.texi (Function Attributes): Document always_inline
4740 attribute.
4741 Update documentation about inlining when not optimizing.
4742
4743 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4744
4745 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4746 unless DECL_ALWAYS_INLINE.
4747
4748 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4749 unless DECL_ALWAYS_INLINE.
4750 (c_disregard_inline_limits): Disregard if always_inline set.
4751
4752 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4753 Disregard if always_inline set.
4754 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4755 unless DECL_ALWAYS_INLINE.
4756
4757 * attribs.c (handle_always_inline_attribute): New.
4758 (c_common_attribute_table): Add always_inline.
4759
4760 * config/rs6000/altivec.h: Add prototypes for builtins
4761 requiring the always_inline attribute.
4762
4763 2002-02-21 Eric Christopher <echristo@redhat.com>
4764
4765 * expmed.c (store_bit_field): Try to simplify the subreg
4766 before generating a new one when when the mode size of
4767 value is less than maxmode.
4768
4769 2002-02-21 Richard Henderson <rth@redhat.com>
4770
4771 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4772 than gen_rtx_PLUS to form the sum.
4773 * explow.c (force_reg): Rearrange to not allocate new pseudo
4774 when force_operand returns a register.
4775 * expr.c (expand_assignment): Allow offset_rtx expansion to
4776 return a sum. Do not force addresses into registers.
4777 (expand_expr): Likewise.
4778 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4779 to canonicalize arithmetic that didn't simpify.
4780 (simplify_plus_minus): New argument force; update
4781 all callers. Don't split CONST unless we can do something with it,
4782 and wouldn't lose the constness of the operands.
4783
4784 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4785 that we generated earlier.
4786
4787 2002-02-21 Tom Tromey <tromey@redhat.com>
4788
4789 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4790 (output_line_info): Use constant `1', with a long explanatory
4791 comment.
4792 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4793
4794 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4795
4796 * jump.c (redirect_jump): If old label has no UID, don't try to
4797 delete it.
4798
4799 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4800
4801 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4802 If input is constant, do shifts at compile time.
4803
4804 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4805
4806 * doc/extend.texi: Fix some more overfull hboxes.
4807
4808 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4809
4810 PR optimization/4994
4811 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4812 register moves.
4813
4814 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4815
4816 PR c++/4574
4817 * expr.h (expand_and): Add mode argument.
4818 * expmed.c (expand_and): Add mode argument.
4819 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4820 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4821 * except.c (expand_builtin_extract_return_addr): Likewise.
4822 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4823 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4824 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4825 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4826 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4827 gen_rtx (CONST_INT, VOIDmode, x).
4828
4829 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4830
4831 PR c/4697:
4832 * stmt.c (warn_if_unused_value): Move side effects test once more.
4833
4834 2002-02-20 Torbjorn Granlund <tege@swox.com>
4835
4836 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4837 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4838
4839 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4840
4841 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4842 SUBREG or ZERO_EXTEND.
4843
4844 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4845
4846 * sh.h (current_function_anonymous_args): Remove.
4847 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4848 of current_function_varargs and current_function_stdarg is set.
4849 * sh.c (sh_expand_prologue): Check current_function_varargs /
4850 current_function_stdarg / TARGET_SH5 instead of
4851 current_function_anonymous_args.
4852
4853 * sh64.h (TARGET_VERSION): Define.
4854
4855 2002-02-20 David Edelsohn <edelsohn@gnu.org>
4856
4857 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4858 VRSAVE_REGNO on TARGET_ALTIVEC.
4859
4860 2002-02-20 Alan Modra <amodra@bigpond.net.au>
4861
4862 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4863 bits of SImode const_int.
4864 (includes_rshift_p): Likewise.
4865 (print_operand): Call mask_operand and mask64_operand with correct
4866 mode.
4867 (rs6000_output_function_epilogue): Pad traceback table to word.
4868 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4869 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4870 mask64_operand with correct mode.
4871 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4872
4873 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4874
4875 PR debug/4461
4876 * varasm.c (get_pool_constant_mark): New.
4877 * rtl.h (get_pool_constant_mark): Add prototype.
4878 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4879 be represented if it has not been output.
4880
4881 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4882
4883 * combine.c (do_SUBST): Sanity check substitutions of
4884 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4885 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4886 CONST_INT into its operand.
4887 (known_cond): Likewise, for ZERO_EXTEND.
4888 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4889 allow for simplification of wide modes. Reject CONST_INTs in
4890 ZERO_EXTEND when their actual mode is not given.
4891
4892 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4893
4894 * c-decl.c (pushdecl): If no global declaration is found for an
4895 extern declaration in block scope, try a limbo one.
4896
4897 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4898
4899 PR c++/4401
4900 * c-common.c (pointer_int_sum): Moved from...
4901 * c-typeck.c (pointer_int_sum): ...here.
4902 * c-common.h (pointer_int_sum): Add prototype.
4903
4904 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4905
4906 PR c++/5713
4907 * c-decl.c (duplicate_decls): Return 0 if issued error about
4908 redeclaration.
4909
4910 2002-02-20 Roger Sayle <roger@eyesopen.com>
4911 Jakub Jelinek <jakub@redhat.com>
4912
4913 PR c/4389
4914 * tree.c (host_integerp): Ensure that the constant integer is
4915 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4916 when pos is zero or non-zero respectively. Clarify comment.
4917 * c-format.c (check_format_info_recurse): Fix host_integerp
4918 usage; the pos argument should be zero when assigning to a
4919 signed HOST_WIDE_INT.
4920
4921 2002-02-20 Richard Henderson <rth@redhat.com>
4922
4923 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4924 of the operand, rather than assuming TImode.
4925 (ix86_expand_binop_builtin): Cope with commutative patterns
4926 using nonimmediate_operand for both operands.
4927 (ix86_expand_timode_binop_builtin): Likewise.
4928 (ix86_expand_store_builtin): Validate operand 1.
4929 (ix86_expand_unop1_builtin): Likewise.
4930
4931 2002-02-20 Philip Blundell <philb@gnu.org>
4932
4933 PR 5705
4934 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4935
4936 2002-02-20 Richard Henderson <rth@redhat.com>
4937
4938 PR c/5615
4939 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4940
4941 2002-02-20 Tom Tromey <tromey@redhat.com>
4942
4943 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4944 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4945 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4946 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4947 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4948 unconditionally.
4949
4950 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4951
4952 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4953 for (const_int 0) in X not just INTVAL.
4954
4955 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4956
4957 * doc/extend.texi: Avoid or reduce overfull hboxes.
4958
4959 2002-02-20 Diego Novillo <dnovillo@redhat.com>
4960
4961 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4962 operations if the field does not start at a mode boundary.
4963
4964 2001-02-20 Joel Sherrill <joel@OARcorp.com>
4965
4966 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4967 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4968 Also done for -Acpu and -Amachine.
4969
4970 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4971
4972 * cppinit.c (init_dependency_output): Take deps output file
4973 from -o if none given with -MF. Suppress normal output.
4974 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
4975 * doc/cpp.texi, doc/invoke.texi: Update.
4976
4977 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4978
4979 * toplev.c (output_quoted_string): Write unprintable
4980 characters with octal escapes.
4981
4982 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4983
4984 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4985 really_call_used[VRSAVE_REGNO] if not Altivec.
4986
4987 2002-02-19 Alan Modra <amodra@bigpond.net.au>
4988
4989 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4990 MODE_MASK.
4991 (constant_pool_expr_1): Fix formatting.
4992 (rs6000_legitimize_reload_address): Likewise.
4993
4994 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4995
4996 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4997 now that we have one.
4998
4999 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5000
5001 * tree.h (struct tree_common): Remove aux. Add unused_0 at
5002 end of first block of bitfields (which was only seven bits);
5003 rename dummy to unused_1; remove comment which is no longer true.
5004
5005 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5006
5007 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5008
5009 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5010
5011 PR 5399
5012 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5013 if generating PIC.
5014
5015 PR 5054
5016 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5017 arm_is_longcall_p rather than inspecting call-type cookie
5018 directly.
5019 (call_value_insn) [TARGET_THUMB]: Likewise.
5020
5021 2002-02-19 Graham Stott <grahams@redhat.com>
5022
5023 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5024
5025 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5026
5027 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5028 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5029 (FP_SAVE_INLINE): Delete.
5030
5031 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5032 * config/rs6000/eabi.asm: Remove ABI save restore routines.
5033 * config/rs6000/t-ppccomm: Build crtsavres.o.
5034 * config/rs6000/crtsavres.asm: New file.
5035
5036 2002-02-19 Philip Blundell <philb@gnu.org>
5037
5038 * config/arm/arm.c (use_return_insn): Don't reject interrupt
5039 functions.
5040 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5041 (output_return_instruction): Allow interrupt functions to return with
5042 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
5043 (arm_expand_prologue): Subtract 4 before stacking LR in an
5044 interrupt function.
5045
5046 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5047
5048 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5049 decl, not just FUNCTION_DECL.
5050 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5051 (arm_assemble_integer): Likewise.
5052 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5053 marked local.
5054
5055 2002-02-19 matthew green <mrg@eterna.com.au>
5056
5057 * config.gcc (sparc-*-netbsdelf*): Enable target.
5058 (sparc64-*-netbsd*): New target.
5059 * config/sparc/netbsd-elf.h: New file.
5060 * config/sparc/t-netbsd64: New file.
5061
5062 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5063
5064 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5065
5066 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
5067
5068 * doc/invoke.texi: explicitly list the style guidelines that
5069 -Weffc++ checks for.
5070
5071 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
5072
5073 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5074
5075 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
5076
5077 PR other/5718
5078 * gcc.c (cpp_unique_options): Treat -o as indicating object file
5079 only if not -E. If -E, pass -o through to the preprocessor.
5080
5081 2002-02-19 Kazu Hirata <kazu@hxi.com>
5082
5083 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5084 register number with an appropriate macro.
5085
5086 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5087
5088 * doc/rtl.texi (Constants): Close @code tag.
5089
5090 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
5091
5092 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5093 ("mmx_uavgv4hi3"): Same.
5094 ("pmulhrwv4hi3"): Same.
5095
5096 * tree-inline.c (walk_tree): Handle vectors.
5097
5098 * c-common.c (constant_expression_warning): Handle vectors.
5099 (overflow_warning): Same.
5100
5101 * sched-deps.c (sched_analyze_2): Handle vectors.
5102
5103 * rtlanal.c (rtx_unstable_p): Handle vectors.
5104 (rtx_varies_p): Same.
5105 (count_occurrences): Same.
5106 (regs_set_between_p): Same.
5107 (modified_between_p): Same.
5108 (modified_in_p): Same.
5109 (volatile_insn_p): Same.
5110 (volatile_refs_p): Same.
5111 (side_effects_p): Same.
5112 (may_trap_p): Same.
5113 (inequality_comparisons_p): Same.
5114 (replace_regs): Same.
5115 (computed_jump_p_1): Same.
5116
5117 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5118 argument.
5119 (inner_mode_array): New.
5120 (copy_rtx): Handle vectors.
5121 (copy_most_rtx): Same.
5122 (rtx_equal_p): Same.
5123 (get_mode_alignment): Adjust for vectors.
5124
5125 * resource.c (mark_referenced_resources): Handle vectors.
5126 (mark_set_resources): Same.
5127
5128 * reload1.c (eliminate_regs): Handle vectors.
5129 (elimination_effects): Same.
5130 (scan_paradoxical_subregs): Same.
5131
5132 * reload.c (subst_reg_equivs): Handle vectors.
5133
5134 * regrename.c (scan_rtx): Handle vectors.
5135
5136 * regclass.c (reg_scan_mark_refs): Handle vectors.
5137
5138 * recog.c (find_single_use_1): Handle vectors.
5139
5140 * local-alloc.c (equiv_init_varies_p): Handle vectors.
5141 (contains_replace_regs): Same.
5142 (memref_referenced_p): Same.
5143
5144 * integrate.c (copy_rtx_and_substitute): Handle vectors.
5145 (subst_constants): Same.
5146
5147 * genattrtab.c (attr_copy_rtx): Handle vectors.
5148 (encode_units_mask): Same.
5149 (clear_struct_flag): Same.
5150 (count_sub_rtxs): Same.
5151
5152 * gcse.c (want_to_gcse_p): Handle vectors.
5153 (oprs_unchanged_p): Same.
5154 (hash_expr_1): Same.
5155 (oprs_not_set_p): Same.
5156 (expr_killed_p): Same.
5157 (compute_transp): Same.
5158 (store_ops_ok): Same.
5159
5160 * function.c (purge_addressof_1): Do not allow paradoxical subregs
5161 of vectors.
5162 (fixup_var_refs_1): Same.
5163 (instantiate_virtual_regs_1): Same.
5164
5165 * fold-const.c (operand_equal_p): Handle vectors.
5166 (fold): Same.
5167 (rtl_expr_nonnegative_p): Same.
5168
5169 * flow.c (mark_used_regs): Handle vectors.
5170
5171 * df.c (df_uses_record): Handle vectors.
5172
5173 * cselib.c (cselib_subst_to_values): Handle vectors.
5174 (cselib_mem_conflict_p): Same.
5175 (hash_rtx): Same.
5176
5177 * cse.c (canon_reg): Handle vectors.
5178 (fold_rt): Same.
5179 (cse_process_notes): Same.
5180 (count_reg_usage): Same.
5181 (canon_hash): Same.
5182
5183 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5184
5185 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5186
5187 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5188 (gen_rtx): Handle CONST_VECTOR.
5189 (gen_const_vector_0): New.
5190 (copy_rtx_if_shared): CONST_VECTORs can be shared.
5191 (reset_used_flags): Same.
5192 (copy_insn_1): Same.
5193 (initializer_constant_valid_p): Handle VECTOR_CST.
5194
5195 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5196
5197 * doc/rtl.texi (Constants): Document const_vector.
5198 (CONST0_RTX): Update for vectors.
5199 (RTL sharing): Same.
5200
5201 * print-tree.c (print_node): Add case for VECTOR_CST.
5202
5203 * tree.h (TREE_VECTOR_CST_ELTS): New.
5204 (struct tree_vector): New.
5205 (union tree_node): Add vector node.
5206 (build_vector): Add prototype.
5207
5208 * tree.def (VECTOR_CST): New.
5209
5210 * tree.c (build_vector): New.
5211
5212 * expmed.c (make_tree): Handle CONST_VECTOR.
5213
5214 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5215 (CONST_VECTOR_ELT): New.
5216 (CONST_VECTOR_NUNITS): New.
5217
5218 * machmode.h (GET_MODE_INNER): New.
5219 (DEF_MACHMODE): Accept 8th arg.
5220
5221 * machmode.def: Add 8th argument for vector inner mode.
5222 Add inner vector modes for vectors.
5223
5224 * rtl.def (VEC_CONST): Remove.
5225 (CONST_VECTOR): New.
5226
5227 * expr.c (clear_storage): Allow vectors.
5228 (is_zeros_p): Handle VECTOR_CST.
5229
5230 * varasm.c (output_constant_pool): Handle vectors.
5231 (rtx_const): Add veclo and vechi fields.
5232 (kind): Add RTX_VECTOR.
5233 (decode_rtx_const): Add case for vector.
5234
5235 * config/rs6000/rs6000-protos.h: Add zero_constant.
5236
5237 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5238 constants. Force easy vector constants into memory.
5239 (easy_vector_constant): New.
5240 (emit_easy_vector_constant): New.
5241 (rs6000_legitimize_reload_address): Do not generate bad reloads on
5242 darwin.
5243
5244 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5245 instruction does.
5246 ("altivec_lvxl"): Same.
5247 (altivec_lvebx): Same.
5248 (altivec_lvehx): Same.
5249 (altivec_lvewx): Same.
5250 ("*movv4si_const0"): New.
5251 ("*movv4sf_const0"): New.
5252 ("*movv8hi_const0"): New.
5253 ("*movv16qi_const0"): New.
5254
5255 2002-02-18 Kazu Hirata <kazu@hxi.com>
5256
5257 * config/h8300/h8300.c (notice_update_cc): Use
5258 cc_status.value2.
5259
5260 2002-02-18 Kazu Hirata <kazu@hxi.com>
5261
5262 * config/h8300/h8300.md (divmod patterns): Change the
5263 constraints for operands[1] to register_operand.
5264
5265 2002-02-18 Kazu Hirata <kazu@hxi.com>
5266
5267 * config/h8300/h8300-protos.h: Remove the prototype for
5268 p_operand.
5269 * config/h8300/h8300.c (p_operand): Remove.
5270 * config/h8300/h8300.md: Replace p_operand with
5271 const_int_operand.
5272
5273 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5274
5275 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5276 comment.
5277 (output_return_instruction): Allow use of LDR to unstack
5278 return addresss even for interrupt handlers or when
5279 interworking. If compiling for ARMv5, use interworking-safe
5280 return instructions by default. Remove duplicated code and
5281 lengthy "strcat" sequences.
5282
5283 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5284
5285 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5286 (LINK_EH_SPEC): Define.
5287 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5288
5289 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5290
5291 * config/s390/s390.c (s390_emit_prologue): Do not set the
5292 frame_related flag for call-clobbered registers.
5293
5294 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
5295
5296 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5297 (construct_container): Fix handling of SSE operands.
5298 (ix86_expand_builtin): Fix handling of 64bit pointers.
5299 (mmx_maskmovq_rex): New pattern.
5300
5301 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
5302
5303 * regrename.c (kill_set_value): Handle subregs properly.
5304
5305 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
5306
5307 * objc/objc-act.c (handle_impent): Remove leading '*'
5308 from objc_class_name.
5309
5310 2002-02-17 Richard Henderson <rth@redhat.com>
5311
5312 * config/alpha/alpha.c (some_small_symbolic_operand,
5313 some_small_symbolic_operand_1, split_small_symbolic_operand,
5314 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5315 Handle small SYMBOL_REFs anywhere, not just inside memories.
5316 * config/alpha/alpha-protos.h: Update.
5317 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5318 * config/alpha/alpha.md (small symbolic operand splitter): Update.
5319
5320 2002-02-17 Roland McGrath <roland@frob.com>
5321
5322 * config.gcc (powerpc-*-gnu-gnualtivec*,
5323 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5324 * config/rs6000/gnu.h: New file.
5325 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5326 Grok "gnu" in rs6000_abi_name.
5327 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5328 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5329 Grok -mcall-gnu analogous to -mcall-linux et al.
5330 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5331 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5332 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5333
5334 2002-02-17 Jakub Jelinek <jakub@redhat.com>
5335
5336 PR c/3444:
5337 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5338 shortening.
5339
5340 2002-02-17 Philipp Thomas <pthomas@suse.de>
5341
5342 * config/cris/cris.h: Undefine STARTFILE_SPEC and
5343 ENDFILE_SPEC before (re)defining them.
5344
5345 2002-02-17 Kazu Hirata <kazu@hxi.com>
5346
5347 * config/h8300/h8300.c: Fix formatting.
5348 * config/h8300/h8300.h: Likewise.
5349
5350 2002-02-17 Philipp Thomas <pthomas@suse.de>
5351
5352 * doc/tm.texi: Explain why empty strings should not be
5353 marked for translation.
5354
5355 2002-02-17 Philipp Thomas <pthomas@suse.de>
5356
5357 * final.c (output_operand_lossage): Changed to accept
5358 printf style arguments. Change calls where necessary.
5359 * output.h (output_operand_lossage): Change declaration
5360 accordingly. Update copyright.
5361 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5362 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5363 Update copyright date where necessary.
5364
5365 * config/i386/i386.c (print_operand): Likewise. Remove use of
5366 sprintf.
5367
5368 * config/cris/cris.c (cris_operand_lossage): Likewise.
5369 Rename parameter so that exgettext recognizes it as
5370 translatable message.
5371 (LOSE_AND_RETURN): Rename parameter to msgid.
5372
5373 2002-02-17 Kazu Hirata <kazu@hxi.com>
5374
5375 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5376 hard coded register number with an appropriate macro.
5377 (HARD_REGNO_MODE_OK): Likewise.
5378 (ARG_POINTER_REGNUM): Likewise.
5379 (STATIC_CHAIN_REGNUM): Likewise.
5380 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5381 * config/h8300/h8300.md (define_constants): Define more
5382 register numbers.
5383
5384 2002-02-17 Philipp Thomas <pthomas@suse.de>
5385
5386 * config/i386/i386.h: Don't mark empty strings for translation.
5387
5388 2002-02-16 H.J. Lu <hjl@gnu.org>
5389
5390 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5391
5392 2002-02-16 Zack Weinberg <zack@codesourcery.com>
5393
5394 * cppinit.c (merge_include_chains): Check for brack being
5395 NULL before attempting to merge it with qtail.
5396
5397 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5398
5399 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5400 DBX_DEBUG.
5401
5402 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5403
5404 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5405
5406 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5407
5408 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5409 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5410 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5411
5412 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5413
5414 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5415 now only if !TARGET_FIX.
5416 (*movsi_nt_vms_fix): New pattern.
5417
5418 2002-02-16 Douglas B Rupp <rupp@gnat.com>
5419
5420 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5421 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5422 (alpha_sa_mask, alpha_sa_size): Reflect above change.
5423 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5424 (alpha_start_function, alpha_expand_epilogue): Likewise.
5425 (unicosmk_gen_dsib): Likewise.
5426
5427 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5428
5429 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5430
5431 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
5432
5433 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5434 check_and_change_labels, s390_final_chunkify): Delete.
5435 (s390_split_branches, s390_chunkify_pool): New functions.
5436 (s390_function_prologue): Call them.
5437
5438 * config/s390/s390.h (S390_REL_MAX): Delete.
5439 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5440
5441 * config/s390/s390.md (cjump, icjump, jump): Fix length
5442 attribute calculation.
5443
5444
5445 2002-02-15 David Edelsohn <edelsohn@gnu.org>
5446
5447 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5448 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5449
5450 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5451
5452 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5453 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5454 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5455
5456 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5457
5458 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5459
5460 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5461
5462 * reload.c (find_dummy_reload): Check that an output register
5463 is valid for its mode.
5464
5465 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
5466
5467 * combine.c (known_cond): After replacing the REG of a SUBREG, try
5468 to simplify it.
5469
5470 * function.c (assign_parms): Demote promoted argument passed by
5471 transparent reference.
5472
5473 2001-02-14 Joel Sherrill <joel@OARcorp.com>
5474
5475 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5476 -Acpu() and -Amachine() to eliminate warnings.
5477
5478 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
5479
5480 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5481
5482 2002-02-14 Kazu Hirata <kazu@hxi.com>
5483
5484 * config/h8300/h8300-protos.h: Update the prototype for
5485 const_costs.
5486 * config/h8300/h8300.c (const_costs): Treat SET as a little
5487 more expensive operation.
5488 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5489 reference to const_costs.
5490
5491 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
5492
5493 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5494
5495 2002-02-14 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR c/5503:
5498 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5499 use arguments from newtype.
5500
5501 2002-02-13 Eric Christopher <echristo@redhat.com>
5502
5503 * config/mips/mips.c (override_options): Add check for march/mipsX
5504 on the same command line. Fix error message in cpu processing.
5505 Remove architecture and ISA checks.
5506
5507 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5508
5509 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5510
5511 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5512
5513 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5514
5515 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5516 alternatives.
5517 ("*movv8hi_internal1"): Same.
5518 ("*movv16qi_internal1"): Same.
5519 ("*movv4sf_internal1"): Same.
5520
5521 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5522 not push_reload for altivec modes.
5523
5524 2002-02-13 Joel Sherrill <joel@OARcorp.com>
5525
5526 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5527 all RTEMS targets including removal of #includes from config/*/rtems*.h
5528 file and adding them to tm_file setting. Added xm_defines=POSIX to
5529 many targets.
5530 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5531 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5532 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5533 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5534 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5535 config/m68k/rtemself.h: Ditto.
5536 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5537 config/mips/rtems64.h: Ditto.
5538 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5539 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5540 Ditto.
5541 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5542 config/sparc/rtemself.h: Ditto.
5543 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5544 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5545 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5546 more like arm-elf.
5547 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5548 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5549 target made more similar to i386-elf.
5550 * config/i386/t-rtems-i386: Added soft float support and multilibs.
5551 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5552 be similar to config/m68k/t-m68kelf.
5553 * gthr-rtems.h: Encapsulate with extern "C" for C++.
5554
5555 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
5556
5557 * regmove.c (kill_value): Handle subregs.
5558
5559 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
5560
5561 * i386.md (mul patterns): Allow memory operand to be first;
5562 add expanders where needed; fix constraints.
5563 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5564 Allow memory operand to be the first.
5565
5566 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5567 operands.
5568
5569 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5570
5571 PR c/5681:
5572 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5573 GET_MODE (x).
5574
5575 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR optimization/5547:
5578 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5579 all valid IA-32 address modes involving non-scaled %ebx and
5580 GOT/GOTOFF as displacement.
5581
5582 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5583
5584 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5585 after emitting ltorg insns.
5586
5587 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5588 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5589 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5590 *abssf2): Fix "op_type" attribute.
5591
5592 2002-02-13 Douglas B Rupp <rupp@gnat.com>
5593
5594 * mkconfig.sh: Avoid using a subshell redirect.
5595 ($output.T): Change to $(output)T.
5596 (ENABLE_NLS): Remove unneeded undef.
5597
5598 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5599 * config/alpha/x-vms (libsubdir): Define.
5600
5601 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5602 register frame procedures. Optimize retrieving context.
5603
5604 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5605 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5606 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5607
5608 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5609
5610 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5611 Make same change as for find_base_value.
5612
5613 2002-02-13 Kazu Hirata <kazu@hxi.com>
5614
5615 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5616 of QImode and SImode.
5617
5618 2002-02-13 Kazu Hirata <kazu@hxi.com>
5619
5620 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5621 length computation of movsi.
5622 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5623
5624 2002-02-13 Kazu Hirata <kazu@hxi.com>
5625
5626 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5627 operands[2] to register_operand.
5628
5629 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5630
5631 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5632
5633 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
5634
5635 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5636 for altivec_lvx* and altivec_stvx*.
5637 ("*movv4si_internal"): Add constraint for loading from GPRs.
5638 ("*movv8hi_internal1"): Same.
5639 ("*movv16qi_internal1"): Same.
5640 ("*movv4sf_internal1"): Same.
5641
5642 * config/rs6000/rs6000.c (altivec_register_operand): New.
5643
5644 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5645 altivec_register_operand.
5646
5647 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
5648
5649 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5650 handle SYMBOL_REF.
5651
5652 2002-02-13 Stan Shebs <shebs@apple.com>
5653
5654 * c-typeck.c (digest_init): Handle vectors.
5655 (really_start_incremental_init): Same.
5656 (pop_init_level): Same.
5657 (process_init_element): Same.
5658
5659 * varasm.c (output_constant): Same.
5660
5661 * expr.c (clear_storage): Same.
5662 (store_constructor): Same.
5663
5664 2002-02-12 Eric Christopher <echristo@redhat.com>
5665
5666 * explow.c (hard_function_value): Add comment explaining
5667 signed/unsigned comparison.
5668
5669 2002-02-12 Jakub Jelinek <jakub@redhat.com>
5670
5671 * jump.c (never_reached_warning): Add finish argument.
5672 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5673 real insn after end.
5674 * rtl.h (never_reached_warning): Adjust prototype.
5675 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5676 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5677 never_reached_warning.
5678
5679 2002-02-12 Graham Stott <grahams@redhat.com>
5680
5681 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5682
5683 2002-02-12 Kazu Hirata <kazu@hxi.com>
5684
5685 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5686 logical shifts on H8/300.
5687 (shift_alg_si): Improve several shifts on H8/300.
5688 (get_shift_alg): Likewise.
5689
5690 2002-02-12 Graham Stott <grahams@redhat.com>
5691
5692 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5693
5694 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5695
5696 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5697 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5698
5699 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5700
5701 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5702 non-CONST_INT through default_assemble_integer.
5703 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5704 <case 8>: Abort for CONST_DOUBLE.
5705
5706 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5707
5708 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5709 is specified.
5710 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5711 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5712
5713 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5714
5715 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5716
5717 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5718
5719 * regrename.c (regrename_optimize): Don't accept a
5720 part-clobbered register if the replaced register is not part
5721 clobbered.
5722
5723 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5724 take padding into account when computing the argument value.
5725
5726 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5727
5728 * combine.c (try_combine): Apply substitutions in
5729 CALL_INSN_FUNCTION_USAGE too.
5730
5731 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
5732
5733 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5734 __builtin_altivec_abs*.
5735 (bdesc_abs): New.
5736
5737 * config/rs6000/rs6000.h (rs6000_builtins): Add
5738 ALTIVEC_BUILTIN_ABS*.
5739
5740 * config/rs6000/altivec.h: Use const char for builtins expecting
5741 literals.
5742 (vec_abs): New versions for C and C++.
5743 (vec_abss): Same.
5744
5745 2002-02-10 Kazu Hirata <kazu@hxi.com>
5746
5747 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5748 using Pmode.
5749
5750 2002-02-10 Kazu Hirata <kazu@hxi.com>
5751
5752 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5753 constant definition from h8300.md.
5754 (FRAME_POINTER_REGNUM): Likewise.
5755 * config/h8300/h8300.md (define_constants): Add FP_REG.
5756
5757 2002-02-10 Kazu Hirata <kazu@hxi.com>
5758
5759 * config/h8300/h8300.c (print_operand): Remove redundant code.
5760
5761 2002-02-10 Kazu Hirata <kazu@hxi.com>
5762
5763 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5764 * config/h8300/h8300.c (byte_reg): Make it static.
5765
5766 2002-02-10 Richard Henderson <rth@redhat.com>
5767
5768 PR c/5623
5769 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5770
5771 2002-02-10 Richard Henderson <rth@redhat.com>
5772
5773 PR c++/5624
5774 * tree.c (append_random_chars): Don't abort if main_input_filename
5775 does not exist.
5776
5777 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5778
5779 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5780
5781 2002-02-10 Kazu Hirata <kazu@hxi.com>
5782
5783 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5784 (pushhi1): Likewise.
5785
5786 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5787
5788 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5789 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5790
5791 2002-02-09 David O'Brien <obrien@FreeBSD.org>
5792
5793 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5794 remove MASK_VIS.
5795 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5796
5797 2002-02-09 Kazu Hirata <kazu@hxi.com>
5798
5799 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5800 a half of an SImode register on H8/300.
5801
5802 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5803
5804 * i386.md (movdi_2): Add missing '!'.
5805
5806 2002-02-09 Kazu Hirata <kazu@hxi.com>
5807
5808 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5809 definitions.
5810
5811 2002-02-09 Kazu Hirata <kazu@hxi.com>
5812
5813 * config/h8300/h8300.md (length): Correct the distance valid
5814 for the short branch.
5815
5816 2002-02-09 Kazu Hirata <kazu@hxi.com>
5817
5818 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5819
5820 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5821
5822 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5823 registers in SImode.
5824 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5825 part-clobbered.
5826
5827 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5828 patch.
5829
5830 Contribute sh64-elf.
5831 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5832 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5833 (sh_cannot_modify_jumps_p): New function.
5834 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5835 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5836 (sh_ms_bitfield_layout_p): New function.
5837 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5838 Zack Weinberg <zack@codesourcery.com>
5839 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5840 expand_simple_binop instead of expand_binop.
5841 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5842 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5843 use of .quad and .uaquad.
5844 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5845 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5846 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5847 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5848 movdi_const_16bit): Make sure all CONSTs have modes.
5849 (sym2PIC): Ditto, but by adjusting all callers.
5850 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5851 if the prologue calls the SHmedia argument decoder or register
5852 saver.
5853 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5854 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5855 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5856 (sh_expand_epilogue): Don't emit USE of return target register.
5857 (prepare_move_operands): Legitimize DImode PIC addresses.
5858 (sh_media_register_for_return): Skip tr0, used to initialize the
5859 PIC register.
5860 (sh_expand_prologue): Remove explicit USE of return register.
5861 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5862 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5863 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5864 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5865 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5866 EXTRA_CONSTRAINT_T.
5867 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5868 (MOVI_SHORI_BASE_OPERAND_P): New.
5869 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5870 (EXTRA_CONSTRAINT_T): Define in terms of them.
5871 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5872 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5873 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5874 alternatives supporting TARGET_REGS.
5875 (UNSPEC_GOTPLT): New constant.
5876 (movdi split): Move incrementing of LABEL_NUSES...
5877 (movdi_const, movdi_const_32bit): Here. Use
5878 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5879 (movdi_const_16bit): New.
5880 (call, call_value) [flag_pic]: Use GOTPLT.
5881 (call_pop, call_value_pop): New expands.
5882 (call_pop_compact, call_pop_rettramp): New insns.
5883 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5884 (sibcall) [flag_pic]: Use GOT.
5885 (builtint_setjmp_receiver): Remove bogus, unused expand.
5886 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5887 (*pt, *ptb, ptrel): New insns.
5888 (sym2GOT): Handle DImode GOT.
5889 (sym2GOTPLT, symGOTPLT2reg): New expands.
5890 (sym2PIC): New expand.
5891 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5892 (shcompact_return_tramp_i): Use return register explicitly.
5893 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5894 disable flag_reorder_blocks.
5895 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5896 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5897 clobbers, for clarity.
5898 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5899 restoring of r0 in macl as MAYBE_DEAD.
5900 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5901 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5902 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5903 alter_subreg all over.
5904 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5905 reload, instead of emitting instructions that would require
5906 reloading.
5907 (casesi_load_media): Add missing modes.
5908 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5909 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5910 as used if the argument decoder is called.
5911 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5912 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5913 Pmode, then extend it to DImode if necessary.
5914 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5915 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5916 constants in FPU-enabled SHmedia, let them be loaded from memory.
5917 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5918 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5919 Adjust whitespace in assembly output templates.
5920 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5921 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5922 mode of if_then_else.
5923 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5924 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5925 sh.h.
5926 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5927 Joern Rennecke <amylaar@redhat.com>
5928 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5929 (SUBTARGET_CPP_PTR_SPEC): New.
5930 (SUBTARGET_CPP_SPEC): Remove.
5931 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5932 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5933 Fix typo in previous checkin.
5934 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5935 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5936 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5937 Alexandre Oliva <aoliva@redhat.com>
5938 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5939 what single FP register can hold for SHmedia target.
5940 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5941 Alexandre Oliva <aoliva@redhat.com>
5942 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5943 Do not split into SUBREG.
5944 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5945 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5946 and added new functions as specified in SH5 ABI r9.
5947 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5948 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5949 8-byte boundary.
5950 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5951 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5952 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5953 and consttable_window_ends.
5954 2001-06-03 Graham Stott <grahams@redhat,com>
5955 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5956 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5957 * config/sh/sh.c (print_operand): Handle floating-point pair,
5958 vector and matrix registers.
5959 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5960 vector modes into account.
5961 * config/sh/sh.md (movv2sf): Split move between registers into
5962 movdf.
5963 (movv4sf, movv16sf): Introduce insns that get split only after
5964 reload.
5965 * config/sh/shmedia.h: Fix Copyright dates.
5966 * config/sh/ushmedia.h: Likewise. Move loop counter
5967 declarations into conditionals that uses them.
5968 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5969 loop boundary.
5970 * config/sh/sshmedia.h: Fix Copyright dates.
5971 (sh_media_PUTCFG): Fix constraints.
5972 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5973 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5974 ptrmemfunc_vbit_in_delta for SH5.
5975 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5976 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5977 * invoke.texi: Likewise.
5978 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5979 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5980 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5981 GCC_pop_shmedia_regs_nofpu): New global symbols.
5982 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5983 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5984 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5985 compact function with nonlocal labels.
5986 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5987 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5988 (initial_elimination_offset): Account for their stack space.
5989 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5990 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5991 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5992 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5993 least one of the operands to be a register.
5994 (movv2sf): Likewise. Renamed to movv2sf_i.
5995 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5996 prepare_move_operands() before emitting SHmedia insns.
5997 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5998 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5999 Don't save nor initialize r12. Don't mis-align the stack.
6000 Pad the code with a nop.
6001 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
6002 stack.
6003 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
6004 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6005 [__SHMEDIA__]: Implement.
6006 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
6007 * config/sh/sh.md: Set latency of `pt' closer to reality.
6008 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6009 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6010 Set move, load and store type attributes.
6011 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6012 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6013 profiling.
6014 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6015 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6016 * config/sh/sh.c (sh_media_register_for_return): New function.
6017 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6018 branch-target register.
6019 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6020 * config/sh/sh.md (return_media_i): Use any call-clobbered
6021 branch-target register.
6022 (return_media): If r18 wasn't copied in the prologue, copy it
6023 here.
6024 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6025 Clear class FP0_REGS.
6026 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6027 from elf.h.
6028 2001-03-08 DJ Delorie <dj@redhat.com>
6029 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6030 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
6031 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6032 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
6033 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6034 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
6035 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6036 return value correctly for call_cookie.
6037 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
6038 * config/sh/crt1.asm (start): Modified so as to call
6039 ___setup_argv_and_call_main.
6040 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
6041 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6042 SHmedia mode.
6043 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
6044 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6045 (STRIP_NAME_ENCODING): Use it.
6046 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
6047 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
6048 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6049 prepare_scc_operands().
6050 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6051 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6052 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
6053 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6054 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
6055 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6056 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6057 used in shcompact_incoming_args.
6058 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6059 change.
6060 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6061 mode.
6062 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6063 Adjust accordingly.
6064 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6065 Simplify. Adjust. Add sanity check.
6066 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6067 FPU_SINGLE_BIT.
6068 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6069 TARGET_SHCOMPACT.
6070 (udivsi3, divsi3): Use them.
6071 (force_mode_for_call): New insn.
6072 (call, call_value, sibcall_value): Emit it before SHcompact
6073 calls.
6074 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
6075 * config/sh/sh.md (call, call_value, sibcall): Make sure the
6076 call cookie is non-NULL before taking its value.
6077 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
6078 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6079 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
6080 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6081 block.
6082 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6083 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6084 temporary for stack adjusts. Use MACL and MACH to pass
6085 arguments to shcompact_incoming_args.
6086 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
6087 clobber r1.
6088 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6089 (nested_trampoline): Load static chain address into r1.
6090 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6091 2001-01-07 Alexandre Oliva <aoliva@redhat.com
6092 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6093 fp_arith_reg_operand().
6094 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
6095 * config/sh/sh.md (casesi): Sign-extend the first two operands,
6096 and use signed compares for them.
6097 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6098 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
6099 ones properly aligned.
6100 (find_barrier): Account for extra alignment needed for 8-byte wide
6101 constants.
6102 (machine_dependent_reorg): Require a label for the second 4-byte
6103 constant after an 8-byte one.
6104 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6105 change.
6106 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6107 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6108 last_float when switching float modes.
6109 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6110 auto-increment for general-purpose registers.
6111 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6112 result.
6113 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6114 for stack adjust.
6115 * config/sh/sh.c (sh_builtin_saveregs): Support using all
6116 registers for varargs.
6117 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
6118 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6119 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6120 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6121 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6122 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
6123 call_cookie accordingly.
6124 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6125 (SHCOMPACT_BYREF): Likewise.
6126 (SHCOMPACT_FORCE_ON_STACK): New macro.
6127 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6128 (sh_builtin_saveregs): Likewise.
6129 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6130 shcompact_incoming_args): Use new shift values. Support
6131 sequences of consecutive and non-consecutive pushes/pops.
6132 * config/sh/sh.md (return): Don't explicitly use PR_REG.
6133 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6134 * config/sh/sh.h (TEXT_SECTION): Define.
6135 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6136 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6137 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6138 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6139 return values on FPU-enabled SHmedia.
6140 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6141 FPU-enabled SHmedia.
6142 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6143 value is returned in a non-FP reg and is not returned by
6144 reference.
6145 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6146 jump_ind.
6147 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
6148 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6149 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6150 quad-aligned to be passed by callee-copy reference.
6151 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
6152 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6153 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6154 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
6155 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6156 copying low-numbered FP regs to r7 and r8.
6157 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6158 FP regs to general-purpose regs only if the copy was passed on the
6159 stack.
6160 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6161 copying FP reg to r9.
6162 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6163 copy FP regs to general-purpose regs only in outgoing calls.
6164 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6165 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
6166 HOST_WIDE_INT.
6167 * config/sh/sh.h (struct sh_args): Document all fields.
6168 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6169 passed partially on the stack should not consider making
6170 sibcalls.
6171 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6172 stack_regs only for incoming calls. When passing FP args,
6173 make sure there are FP regs available before modifying
6174 call_cookie.
6175 (SHCOMPACT_BYREF): Pass double args in general-purpose
6176 registers by reference.
6177 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
6178 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6179 attempt to generate sibcalls if the caller got any arguments
6180 by reference.
6181 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6182 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6183 to 8-byte boundaries.
6184 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6185 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6186 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6187 stored in the stack.
6188 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6189 for the offsets to have the ISA bit set.
6190 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
6191 invocation. Use beq instead of bgt to mark end of sequence of
6192 loads.
6193 (shcompact_incoming_args): Fix store of r2. Use beq instead of
6194 bgt to mark end of sequence of stores.
6195 * config/sh/sh.c (arith_operand): Don't check whether
6196 CONST_OK_FOR_J for now.
6197 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6198 instead of long for conversion.
6199 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
6200 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6201 before passing it to fprintf.
6202 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
6203 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6204 Call set_fpscr before reading/writing SR.
6205 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6206 Call set_fpscr.
6207 * config/sh/lib1funcs.asm: Add `.align 2' directives before
6208 SHmedia code.
6209 (FMOVD_WORKS): Define on SH5 with FPU.
6210 (set_fpscr): Define on SH5. Remove separate _fpscr_values
6211 setting.
6212 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6213 _fpscr_values.
6214 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
6215 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6216 address.
6217 (ia_main_table): Ditto.
6218 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
6219 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6220 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6221 the definitions from sh.h.
6222 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6223 TARGET_SH5.
6224 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6225 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6226 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6227 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
6228 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6229 Increment LABEL_NUSES.
6230
6231 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6232 TARGET_SH5.
6233 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6234 defined.
6235 * config/sh/elf.h (SIZE_TYPE): Likewise.
6236 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6237 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6238 shcompact_incoming_args): Load switch table addresses using
6239 datalabel.
6240 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6241 (NO_BUILTIN_SIZE_TYPE): Define.
6242 (SIZE_TYPE): Don't define.
6243 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6244 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6245 definition of __SH5__=32 for -m5-compact-nofpu.
6246 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6247 ADDR_DIFF_VEC.
6248 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
6249 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6250 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
6251 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6252 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6253 (INSN_LENGTH_ALIGNMENT): Likewise.
6254 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6255 * config/sh/sh.md (call, call_value, sibcall): Simplify
6256 copying of non-branch-target register.
6257 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6258 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
6259 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6260 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6261 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6262 floating-point values as structs.
6263 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6264 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6265 general-purpose register.
6266 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6267 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6268 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6269 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6270 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6271 (ENCODE_SECTION_INFO): Enclose variables and constants in
6272 DATALABEL unspecs.
6273 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6274 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6275 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6276 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6277 only for LABEL_REFs. For SYMBOL_REFs, prepend
6278 SH_DATALABEL_ENCODING to the symbol name.
6279 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6280 convert_mode().
6281 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6282 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6283 UNSPEC_DATALABEL.
6284 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6285 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6286 (DATALABEL_REF_P): Don't require CONST.
6287 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6288 REL label.
6289 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
6290 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6291 right.
6292 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6293 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6294 Use shallow_copy_rtx and PUT_MODE to change the mode of
6295 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6296 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6297 on SHmedia using GENERAL_REGs.
6298 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6299 bltu_media_i): Fix reversion of conditions.
6300 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6301 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6302 * config/sh/sh.c (output_far_jump): Save r13 in macl.
6303 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
6304 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6305 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
6306 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6307 (GCC_nested_trampoline): Likewise.
6308 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6309 * config/sh/sh.c (gen_datalabel_ref): Define.
6310 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6311 (INITIALIZE_TRAMPOLINE): Likewise.
6312 (TRAMPOLINE_ADJUST_ADDRESS): Define.
6313 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6314 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6315 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6316 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6317 (ic_invalidate): Adjust for SH5.
6318 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6319 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6320 _nested_trampoline.
6321 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
6322 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6323 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6324 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6325 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6326 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6327 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6328 * config/sh/sh.c (target_reg_operand): Match only target-branch
6329 registers and pseudos that aren't virtual registers.
6330 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6331 Copy operands that don't match target_reg_operand to pseudos.
6332 (call_media, call_value_media, sibcall_media): Use
6333 target_reg_operand instead of target_operand.
6334 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
6335 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6336 * config/sh/sh.c (target_reg_operand): Match hardware registers
6337 other than branch-target registers.
6338 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6339 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6340 (fpscr_values) [SH5 == 32]: Define.
6341 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6342 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6343 Handle function addresses coming in SUBREGs.
6344 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
6345 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6346 shcompact_return_trampoline): Use datalabel where appropriate.
6347 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
6348 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6349 general-purpose register to copy one branch-target register to
6350 another.
6351 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6352 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6353 SYMBOL_REFs with VOIDmode.
6354 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6355 bltu_media_i): New insns.
6356 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6357 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6358 (INIT_CUMULATIVE_ARGS): Likewise.
6359 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
6360 * machmode.def (V16SFmode): New mode.
6361 * c-common.c (type_for_mode): Support V2SF and V16SF.
6362 * tree.c (build_common_tree_nodes_2): Likewise.
6363 * tree.h (tree_index): Likewise.
6364 * calls.c (emit_call_1): Take args_so_far. Adjust all
6365 callers. Introduce CALL_POPS_ARGS.
6366 * tm.texi (CALL_POPS_ARGS): Document.
6367 * config/sh/crt1.asm: Implement in SHmedia mode.
6368 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6369 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6370 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6371 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6372 Implement divsi and udivsi in SHmedia mode. Introduce
6373 SHcompact trampolines.
6374 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6375 only in SHmedia64.
6376 (regno_reg_class): Rewrite.
6377 (fp_reg_names): Remove.
6378 (sh_register_names, sh_additional_register_names): New.
6379 (print_operand): Added `u'. Support SUBREGs in addresses.
6380 Add parentheses around shifted CONSTs.
6381 (output_file_start): Output .mode and .abi directives.
6382 (shiftcosts, addsubcosts, multcosts): Adjust.
6383 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
6384 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
6385 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
6386 bytes, not registers. Take into account the need for the
6387 SHcompact incoming args trampoline. Adjust all callers.
6388 (sh_expand_prologue): Take stack_regs into account. Call
6389 incoming args trampoline. Keep stack aligned as per SH5 ABI.
6390 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
6391 stack aligned as per SH5 ABI.
6392 (sh_builtin_saveregs): Support SH5 ABI.
6393 (sh_build_va_list, sh_va_start): Likewise.
6394 (initial_elimination_offset): Take alignment into account.
6395 Compute location of PR according to the SH5 stack frame.
6396 (arith_reg_operand): Reject branch-target registers.
6397 (shmedia_6bit_operand): New.
6398 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6399 (target_reg_operand): Match DImode only. Accept SUBREGs.
6400 (target_operand): New.
6401 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6402 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
6403 SIBCALL_REGS for SHmedia.
6404 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6405 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6406 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6407 (TARGET_SWITCHES): New SH5 flags.
6408 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
6409 VALID_REGISTER_P to disable unsupported registers.
6410 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6411 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6412 (FUNCTION_ARG_PADDING): Define.
6413 (FASTEST_ALIGNMENT): Adjust.
6414 (SH_REGISTER_NAMES_INITIALIZER): New.
6415 (sh_register_names): Declare.
6416 (DEBUG_REGISTER_NAMES): Define.
6417 (REGISTER_NAMES): Define based on sh_register_names.
6418 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6419 (sh_additional_register_names): Declare.
6420 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6421 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6422 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6423 (REGISTER_NATURAL_MODE): Define.
6424 (FIRST_PSEUDO_REGISTER): Adjust.
6425 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6426 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6427 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6428 (VECTOR_MODE_SUPPORTED_P): Define.
6429 (REG_CLASS_CONTENTS): Adjust.
6430 (SMALL_REGISTER_CLASSES): Adjust.
6431 (REG_ALLOC_ORDER): Adjust.
6432 (INDEX_REG_CLASS): Adjust.
6433 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6434 (CONST_OK_FOR_LETTER_P): Adjust.
6435 (PREFERRED_RELOAD_CLASS): Adjust.
6436 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6437 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6438 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6439 (FIRST_FP_PARM_REG): Adjust.
6440 (CALL_POPS_ARGS): Define.
6441 (FUNCTION_ARG_REGNO_P): Adjust.
6442 (struct sh_args): New fields.
6443 (GET_SH_ARG_CLASS): Adjust.
6444 (INIT_CUMULATIVE_ARGS): Adjust.
6445 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6446 (FUNCTION_ARG_ADVANCE): Adjust.
6447 (FUNCTION_ARG): Adjust.
6448 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6449 (FUNCTION_ARG_CALLEE_COPIES): Define.
6450 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6451 (STRICT_ARGUMENT_NAMING): Define.
6452 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6453 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6454 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6455 (SETUP_INCOMING_VARARGS): Adjust.
6456 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6457 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6458 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6459 (SUBREG_OK_FOR_INDEX_P): Adjust.
6460 (EXTRA_CONSTRAINT_S): Update.
6461 (EXTRA_CONSTRAINT_T): New.
6462 (EXTRA_CONSTRAINT): Adjust.
6463 (GO_IF_LEGITIMATE_INDEX): Adjust.
6464 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6465 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6466 (MOVE_MAX): Adjust.
6467 (MAX_MOVE_MAX): Define.
6468 (Pmode): Adjust.
6469 (CONST_COSTS): Adjust.
6470 (REGISTER_MOVE_COST): Adjust.
6471 (BRANCH_COST): Adjust.
6472 (TEXT_SECTION_ASM_OP): Adjust.
6473 (DBX_REGISTER_NUMBER): Adjust.
6474 (ASM_OUTPUT_DOUBLE_INT): New.
6475 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6476 (PREDICATE_CODES): Adjust.
6477 (PROMOTE_MODE): Adjust.
6478 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6479 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6480 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6481 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6482 (DR0_REG, DR2_REG, DR4_REG): Renumber.
6483 (TR0_REG, TR1_REG, TR2_REG): New.
6484 (XD0_REG): Renumber.
6485 (UNSPEC_COMPACT_ARGS): New.
6486 (type): Added pt and ptabs.
6487 (length): Default to 4 on SHmedia. Default pt length to 12
6488 and 20 on SHmedia32 and SHmedia64, respectively.
6489 (pt): New function unit.
6490 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
6491 Add whitespace between operands of SHmedia instructions.
6492 (movdicc): Fix.
6493 (adddi3_media, addsi3_media): Adjust constraints.
6494 (subsi3) [SHmedia]: Force operand 1 into a register.
6495 (udivsi3_i1_media, udivsi3_i4_media): New.
6496 (udivsi3): Support SHmedia.
6497 (divsi3_i1_media, divsi3_i4_media): New.
6498 (divsi3): Support SHmedia.
6499 (anddi3, iordi3, xordi3): Adjust constraints.
6500 (zero_extendhidi2, zero_extendqidi2): New.
6501 (extendsidi2, extendhidi2, extendqidi2): New.
6502 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6503 (pop_e, pop_fpul, pop_4): Likewise.
6504 (movsi_media): Support FP and BT registers.
6505 (movsi_media_nofpu): New. Adjust splits to DImode.
6506 (lduw, ldub): Renamed to zero_extend* above.
6507 (movqi_media): Fix typo.
6508 (movdi_media): Support FP and BT registers.
6509 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
6510 (movdi_const_32bit): New.
6511 (shori_media): Require immediate operand. Use `u' for output.
6512 (movdf_media, movsf_media): Simplified.
6513 (movdf_media_nofpu, movsf_media_nofpu): New.
6514 (movdf, movsf): Adjust
6515 (movv2sf, movv2sf, movv16sf): New.
6516 (beq_media, beq_media_i): Adjust constraints. Don't use
6517 scratch BT register.
6518 (bne_media, bne_media_i): Likewise.
6519 (bgt_media, bgt_media_i): Likewise.
6520 (bge_media, bge_media_i): Likewise.
6521 (bgtu_media, bgtu_media_i): Likewise.
6522 (bgeu_media, bgeu_media_i): Likewise.
6523 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6524 bunordered): Emit jump insn. Force operands to registers when
6525 needed.
6526 (jump_media, jump): Simplify.
6527 (call_compact, call_compact_rettramp): New.
6528 (call_value_compact, call_value_compact_rettramp): New.
6529 (call_media, call_value_media): Simplify.
6530 (sibcall_compact, sibcall_media): New.
6531 (call, call_value): Adjust for SHmedia and SHcompact.
6532 (sibcall, sibcall_value, untyped_call): Likewise.
6533 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6534 (indirect_jump): Adjust for SHmedia.
6535 (casesi_jump_media): New.
6536 (nop): Re-enable for SHmedia.
6537 (call_site): Restrict to SH1.
6538 (casesi): Adjust for SHmedia.
6539 (casesi_shift_media, casesi_load_media): New.
6540 (return): Explicitly use PR register. Call return trampoline
6541 on SHcompact.
6542 (return_i): Explicitly use PR register.
6543 (shcompact_return_tramp, shcompact_return_tramp_i): New.
6544 (return_media): Adjust.
6545 (shcompact_incoming_args): New.
6546 (epilogue): Adjust.
6547 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6548 (movstrsi): Disable on SH5.
6549 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6550 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6551 (subsf3, subsf3_media): Likewise.
6552 (mulsf3, mulsf3_media, mac_media): Likewise.
6553 (divsf3, divsf3_media): Likewise.
6554 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
6555 (floatsisf2, fux_truncsfsi2): Likewise.
6556 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
6557 constraints.
6558 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6559 (cmpunsf_media, cmpsf): Likewise.
6560 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6561 (abssf2, abssf2_media): Likewise.
6562 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6563 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6564 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
6565 (floatsidf2, fix_truncdfsi2): Likewise.
6566 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
6567 constraints.
6568 (cmpeqdf_media, cmpgtdf_media): Likewise.
6569 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6570 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6571 (absdf2, absdf2_media): Likewise.
6572 (extendsfdf2, extendsfdf2_media): Likewise.
6573 (truncsfdf2, truncsfdf2_media): Likewise.
6574 * config/sh/sh64.h: New file.
6575 * config/sh/t-sh64: New file.
6576 * config/sh/shmedia.h: New file.
6577 * config/sh/ushmedia.h: New file.
6578 * config/sh/sshmedia.h: New file.
6579 * configure.in: Added sh64-*-elf.
6580 * configure: Rebuilt.
6581 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
6582 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6583 (reg_class_from_letter): Use `b' for TARGET_REGS.
6584 (print_operand): Support `%M', `%m', `AND' and
6585 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
6586 (andcosts): Adjust for SHmedia.
6587 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6588 Likewise.
6589 (target_reg_operand): New function.
6590 * config/sh/sh-protos.h (target_reg_operand): Declare.
6591 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6592 FP registers on SH5.
6593 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6594 on SH4.
6595 (TARGET_REGISTER_P): New macro.
6596 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6597 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6598 (EXTRA_CONSTRAINT_S): New macro.
6599 (EXTRA_CONSTRAINT): Adjust.
6600 (FLOAT_TYPE_SIZE): Define to 32.
6601 (Pmode): DImode on SHmedia.
6602 (CONST_COSTS): Adjust for SHmedia literals.
6603 (PREDICATE_CODES): Added target_reg_operand.
6604 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6605 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6606 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6607 (cmpdi): Accept SHmedia.
6608 (movdicc_false, movdicc_true): New insns.
6609 (movdicc): New expand.
6610 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6611 no_new_pseudos.
6612 (addsi3_media): Match `S' constraint.
6613 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6614 (negdi2): Expand for SHmedia.
6615 (one_cmpldi2): New expand.
6616 (zero_extendsidi2): Change from expand to insn.
6617 (extendsidi2): Add constraints.
6618 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6619 LD/ST address. Fix SI immediate loading split.
6620 (movhi_media, movqi_media, lduw, ldub): New insns.
6621 (movhi, movqi): Accept SHmedia.
6622 (shori_media, movdi_media): Relax input constraints. Split
6623 symbolic constants.
6624 (movdf_media, movsf_media): New insn. New split to movdi.
6625 (movdf, movsf): Match on SHmedia.
6626 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6627 bgeu_media): New insns and splits. New insns with `_i' suffix.
6628 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6629 (bunordered): New expand.
6630 (jump_compact): Renamed from `jump'.
6631 (jump_media): New insn.
6632 (jump): New expand.
6633 (call_media, call_value_media): New insns.
6634 (call, call_value): Adjust.
6635 (indirect_jump_compact): Renamed from `indirect_jump'.
6636 (indirect_jump_media): New insn.
6637 (indirect_jump): New expand.
6638 (untyped_call, return): Accept SHmedia.
6639 (return_media): New insn.
6640 (prologue, epilogue, blockage): Accept SHmedia.
6641 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6642 (sunordered): New expand.
6643 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6644 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6645 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6646 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6647 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6648 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6649 abssf2_media): New insns.
6650 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6651 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6652 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6653 floatdidf2, floatsidf2_media, fix_truncdfdi2,
6654 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6655 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6656 absdf2_media): New insns.
6657 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6658 (extendsfdf2_media, truncdfsf2_media): New insns.
6659 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6660 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6661 * config/sh/sh.h (CONST_OK_FOR_J): Document.
6662 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6663 * config/sh/sh.md (adddi3): New expand.
6664 (adddi3_media, adddi3z_media): New insns.
6665 (adddi3_compact): Renamed from adddi3.
6666 (addsi3_media): Use add.l r63 to add constant zero.
6667 (subdi3): New expand.
6668 (subdi3_media): New insn.
6669 (subdi3_compact): Renamed from subdi3.
6670 (mulsidi3): New expand.
6671 (mulsidi3_media): New insn.
6672 (mulsidi3_compact): Renamed from mulsidi3.
6673 (umulsidi3): New expand.
6674 (umulsidi3_media): New insn.
6675 (umulsidi3_compact): Renamed from umulsidi3.
6676 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6677 (ashlsi3, ashrsi3, lshrsi3): Use them.
6678 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6679 (ashldi3, ashrdi3, lshrdi3): Use them.
6680 (zero_extendsidi2): New expand.
6681 (extendsidi2): New insn.
6682 (movsi_media): New insn. Split to movdi to load constants.
6683 (movsi): Enable for shmedia.
6684 (movdi_media): New insn. Use shori_media to load wide constants.
6685 (short_media): New insn.
6686 (movdi): Enable for shmedia.
6687 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6688 * config/sh/sh.h (CPP_SPEC): Added `m5'.
6689 (SUBTARGET_CPP_SPEC): Added `!m5'.
6690 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6691 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
6692 to all other SH variants.
6693 (TARGET_DEFAULT): Set to SH1_BIT.
6694 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6695 (BITS_PER_WORD): Raise to 64 on shmedia.
6696 (MAX_BITS_PER_WORD): Change to 64.
6697 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6698 (INT_TYPE_SIZE): Keep as 32.
6699 (UNITS_PER_WORD): Raise to 8 on shmedia.
6700 (MIN_UNITS_PER_WORD): Keep as 4.
6701 (POINTER_SIZE): Raise to 64 on shmedia.
6702 (CONST_OK_FOR_J): New macro.
6703 (CONST_OK_FOR_LETTER_P): Use it.
6704 (processor_type): Add PROCESSOR_SH5.
6705 * config/sh/sh.md: Conditionalize all expands, insns and
6706 splits to TARGET_SH1.
6707 (cpu): Added sh5.
6708 (addsi3_compact): Renamed from...
6709 (addsi3): Now an expand.
6710 (addsi3_media, subsi3_media): New insns.
6711 (subsi3): Don't negate constants with SHmedia.
6712
6713 * hooks.c: New file.
6714 * hooks.h: New file.
6715 * Makefile.in (HOOKS_H): New.
6716 (TARGET_DEF_H): Added $(HOOKS_H).
6717 (OBJS): Added hooks.o.
6718 (cfgcleanup.o, bb-reorder.o): Added target.h.
6719 (hooks.o): Added dependencies.
6720 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6721 (TARGET_INITIALIZER): this.
6722 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6723 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6724 * bb-reorder.c: Include target.h.
6725 (reorder_basic_blocks): Skip if cannot modify jumps.
6726 * cfgcleanup.c: Include target.h.
6727 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6728
6729 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6730
6731 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6732 Protect jump delay slot instructions with .set noreorder and
6733 .set nomacro.
6734
6735 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6736
6737 * config/mips/mips.md (casesi_internal_di): Calculate
6738 the index into the target offset table correctly.
6739
6740 2002-02-08 Richard Henderson <rth@redhat.com>
6741
6742 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6743 * final.c (output_addr_const): Accept and discard SUBREG.
6744 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6745 mark them unknown instead.
6746 (simplify_subtraction): Handle RTX_UNKNOWN.
6747 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6748
6749 2002-02-08 David Edelsohn <edelsohn@gnu.org>
6750
6751 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6752
6753 2002-02-08 Richard Henderson <rth@redhat.com>
6754
6755 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6756
6757 2002-02-08 Andreas Jaeger <aj@suse.de>
6758
6759 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6760 * config/i386/t-linux64: New file.
6761
6762 2002-02-08 Jakub Jelinek <jakub@redhat.com>
6763
6764 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6765 * c-parse.in (compstmt): Clear last_expr_type.
6766
6767 2002-02-07 Richard Henderson <rth@redhat.com>
6768
6769 * loop.c (strength_reduce): Sink final_value when not
6770 eliminating a biv.
6771
6772 2002-02-07 David O'Brien <obrien@FreeBSD.org>
6773
6774 * config/sparc/freebsd.h: Fix mismatched spec {.
6775
6776 2002-02-07 Richard Henderson <rth@redhat.com>
6777
6778 * cfgrtl.c: Include recog.h and insn-config.h.
6779 (keep_with_call_p): Fix general_operand invocation.
6780 * Makefile.in (cfgrtl.o): Update dependencies.
6781
6782 2002-02-07 Kazu Hirata <kazu@hxi.com>
6783
6784 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6785 comment. Accept HImode only if TARGET_H8300.
6786
6787 2002-02-07 Eric Christopher <echristo@redhat.com>
6788
6789 * config/mips/crtn.asm: Cleanup #ifdefs.
6790
6791 2002-02-07 Eric Christopher <echristo@redhat.com>
6792
6793 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6794 register 7 as RA instead of $31.
6795 * config/mips/crtn.asm: Ditto.
6796 * config/mips/mips.c (mips_move_2words): Add case for
6797 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6798 (compute_frame_size): Fix typo.
6799 (save_restore_insns): Ditto. Make documentation about using
6800 register $7 as return register more precise.
6801 (mips_expand_epilogue): Fix comment. Add code to work around not
6802 being able to add to the stack pointer directly.
6803 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6804 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6805 epilogue.
6806
6807 2002-02-07 Tom Rix <trix@redhat.com>
6808
6809 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6810 immediates in ldu and stdu DS opcode field.
6811 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6812 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6813 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6814
6815 2002-02-07 Jeff Sturm <jsturm@one-point.com>
6816
6817 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6818 offset for stack bias.
6819
6820 2002-02-07 H.J. Lu <hjl@gnu.org>
6821
6822 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6823
6824 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6825
6826 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6827
6828 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6829
6830 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6831 * i386.c (x86_order_regs_for_local_alloc): New global function.
6832 * i386.h (REG_ALLOC_ORDER): CLeanup.
6833 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6834
6835 2002-02-07 Richard Henderson <rth@redhat.com>
6836
6837 PR optimization/2463
6838 * alias.c (find_base_value): Recall base values for fixed hard regs.
6839 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6840
6841 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
6842
6843 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6844 length.
6845
6846 2002-02-06 Richard Henderson <rth@redhat.com>
6847
6848 PR c/5609
6849 * stmt.c (resolve_operand_name_1): Take more care with mixed
6850 named and unnamed operands.
6851
6852 2002-02-06 Janis Johnson <janis187@us.ibm.com>
6853 Jan Hubicka <jh@suse.cz>
6854
6855 * loop.c (remove_constant_addition): Avoid clobbering a shared
6856 CONST expression.
6857
6858 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6859
6860 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6861 * config/s390/t-linux64: New file.
6862 * config/s390/libgcc-glibc.ver: New file.
6863
6864 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6865
6866 * config/s390/linux64.h: Delete file.
6867 * config/s390/s390x.h: New file.
6868 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6869 as target header file.
6870 * config/s390/linux.h (TARGET_VERSION): Define depending on
6871 DEFAULT_TARGET_64BIT.
6872 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6873 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6874 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6875 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6876 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6877 (EXTRA_SPEC): New define.
6878 * config/s390/s390.h (TARGET_VERSION): Define depending on
6879 DEFAULT_TARGET_64BIT.
6880 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6881
6882 2002-02-06 Jason Merrill <jason@redhat.com>
6883
6884 * c-decl.c (finish_function): Warn about a non-void function with
6885 no return statement and no abnormal exit.
6886 (current_function_returns_abnormally): New variable.
6887 (start_function): Clear it.
6888 (struct c_language_function): Add returns_abnormally.
6889 (push_c_function_context): Save it.
6890 (pop_c_function_context): Restore it.
6891 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6892 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6893 an explicit return type.
6894 * c-tree.h: Declare current_function_returns_abnormally.
6895 (C_FUNCTION_IMPLICIT_INT): New macro.
6896 * c-typeck.c (build_function_call): Set it.
6897 (c_expand_return): Set current_function_returns_value even if the
6898 value is erroneous.
6899
6900 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6901
6902 PR c/5420:
6903 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6904 unsafe for reevaluation.
6905
6906 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6907
6908 PR c/5482:
6909 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6910 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6911
6912 2002-02-06 Richard Henderson <rth@redhat.com>
6913
6914 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6915 be a general_operand. Dest for function value must be a pseudo.
6916
6917 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6918
6919 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6920 as SYMBOL_REFs from the constant pool.
6921
6922 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6923
6924 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6925 passed by invisible reference.
6926
6927 2002-02-05 Richard Henderson <rth@redhat.com>
6928
6929 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6930
6931 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6932
6933 Implement using "base addresses" in insn operands as default.
6934 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6935 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6936 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6937 used to read the rtx value.
6938 (mmix_target_asm_function_epilogue): Fix spacing.
6939 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6940 (mmix_legitimate_address): Ditto.
6941 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6942 should be loaded with a GETA insn. Don't allocate needless extra
6943 char for nul termination and fix misleading comment.
6944 (mmix_print_operand_address): Handle constants if
6945 TARGET_BASE_ADDRESSES.
6946 (mmix_output_register_setting): Use base addressing if
6947 TARGET_BASE_ADDRESSES and the number of insns is 3.
6948 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6949 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6950 to use R as constraint, add LDA to match s.
6951 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6952 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6953 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6954 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6955 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6956 order with other fixed registers.
6957 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6958 other parameter/call-clobbered registers.
6959 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6960 -mbase-addresses, -mno-base-addresses.
6961 (MMIX Options): Ditto.
6962
6963 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6964
6965 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6966
6967 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
6968
6969 * config/rs6000/altivec.h: Change elem to _S_elem.
6970
6971 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6972
6973 * config/netbsd.h (WCHAR_TYPE): Define.
6974 (WCHAR_TYPE_SIZE): Ditto.
6975 (WINT_TYPE): Ditto.
6976 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6977 (WCHAR_UNSIGNED): Ditto.
6978 (WCHAR_TYPE_SIZE): Ditto.
6979 (WINT_TYPE): Ditto.
6980 * config/arm/netbsd.h: Likewise.
6981 * config/i386/netbsd-elf.h: Likewise.
6982 * config/i386/netbsd.h: Likewise.
6983 * config/m68k/netbsd-elf.h: Likewise.
6984 * config/m68k/netbsd.h: Likewise.
6985 * config/ns32k/netbsd.h: Likewise.
6986 * config/sparc/netbsd.h: Likewise.
6987 * config/vax/netbsd.: Likewise.
6988
6989 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6990
6991 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6992 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6993 (TARGET_INITIALIZER): this.
6994 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6995 (BITFIELD_NBYTES_LIMITED): Markup fix.
6996 * tree.h (default_ms_bitfield_layout_p): Declare.
6997 (record_layout_info): Added prev_field.
6998 * tree.c (default_ms_bitfield_layout_p): New fn.
6999 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7000 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7001 * stor-layout.c: Include target.h.
7002 (start_record_layout): Initialize prev_field.
7003 (place_field): Handle MS bit-field layout, and disregard
7004 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7005 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
7006 * Makefile.in (stor-layout.o): Adjust dependencies.
7007
7008 2002-02-05 Jason Merrill <jason@redhat.com>
7009
7010 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7011
7012 2002-02-05 Andreas Jaeger <aj@suse.de>
7013
7014 * crtstuff.c: Fix comments.
7015
7016 2002-02-05 Richard Henderson <rth@redhat.com>
7017
7018 PR fortran/3393
7019 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7020 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7021
7022 PR fortran/3392
7023 * config/mips/mips.c (function_arg): Handle TImode.
7024 (function_arg_advance): Likewise.
7025
7026 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7027
7028 * config/rs6000/altivec.h (vec_step_help): Rename to
7029 __vec_step_help.
7030
7031 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7032
7033 * config/rs6000/altivec.h: Fix typos.
7034
7035 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7036
7037 * config/arm/netbsd.h: Correct a comment.
7038
7039 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7040
7041 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7042 building void typed builtins.
7043
7044 * config/rs6000/altivec.h (vec_ld*): Fix typos.
7045 (vec_step): Implement for C++.
7046
7047 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7048
7049 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7050
7051 2002-02-04 Richard Henderson <rth@redhat.com>
7052
7053 * combine.c (nonzero_bits): Re-introduce special case for
7054 sp/fp/ap wrt REGNO_POINTER_ALIGN.
7055
7056 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7057
7058 * doc/extend.texi: Warn about unsupported usage of altivec
7059 builtins.
7060
7061 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7062 (altivec_predicate_*): New.
7063
7064 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7065 Add C++ version of vec_*() functions.
7066
7067 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7068 (bdesc_2arg): Remove altivec predicates.
7069 (altivec_expand_builtin): Handle predicates.
7070 (altivec_init_builtins): Handle predicates.
7071 (altivec_expand_predicate_builtin): New.
7072
7073 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7074
7075 * pa.c (DO_FRAME_NOTES): Move forward.
7076 (store_reg): Revise handling of frame notes.
7077 (load_reg): Likewise.
7078 (set_reg_plus_d): Likewise.
7079 (hppa_expand_prologue): Likewise.
7080 (hppa_expand_epilogue): Likewise.
7081
7082 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7083
7084 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7085
7086 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7087
7088 PR c/4475, c++/3780:
7089 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7090 * c-common.h (SWITCH_TYPE): Define.
7091 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7092 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7093 Rename spareness variable to sparseness.
7094 (expand_end_case_type): Renamed from expand_end_case, use orig_type
7095 if non-NULL instead of TREE_TYPE (orig_index).
7096 * tree.h (expand_end_case_type): Renamed from expand_end_case.
7097 (expand_end_case): Define using expand_end_case_type.
7098 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7099 to expand_end_case_type.
7100 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7101
7102 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7103
7104 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7105 (BIGGEST_ALIGNMENT): Change to 128.
7106
7107 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7108
7109 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7110
7111 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7112
7113 * pa.md (call_internal_reg_64bit): Remove unused variable.
7114
7115 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
7116
7117 * config/arm/arm.h (machine_function): Add uses_anonymous_args
7118 field.
7119 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7120 * config/arm/arm.c (current_function_anonymous_args): Delete,
7121 replace uses with cfun->machine->uses_anonymous_args.
7122 (arm_reorg): Do not reset uses_anonymous_args.
7123
7124 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7125 any geenral register.
7126
7127 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
7128
7129 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7130 the entry block.
7131
7132 2002-02-04 Richard Henderson <rth@redhat.com>
7133
7134 * combine.c (force_to_mode): Remove STACK_BIAS code.
7135 (nonzero_bits): Likewise. Replace sp/fp special case with
7136 REGNO_POINTER_ALIGN.
7137
7138 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7139 (HARD_FRAME_POINTER_REGNUM): New.
7140 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7141 (FIXED_REGS, CALL_USED_REGS): Update.
7142 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7143 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7144 (HARD_REGNO_NREGS): Update for SFP.
7145 (STACK_POINTER_OFFSET): Include bias here ...
7146 (FIRST_PARM_OFFSET): ... not here.
7147 (STACK_BIAS): Remove.
7148 (INIT_EXPANDERS): New.
7149 (STARTING_FRAME_OFFSET): Do not include bias.
7150 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7151 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7152 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7153 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7154 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7155 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7156 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7157 (MUST_SAVE_REGISTER): Likewise.
7158 (sparc_flat_function_prologue): Likewise.
7159 (sparc_flat_function_epilogue): Likewise.
7160 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7161 (sparc_init_modes): SFP is GENERAL_REGS.
7162 (sparc_builtin_saveregs): SFP does not have bias applied.
7163
7164 2002-02-04 Richard Henderson <rth@redhat.com>
7165
7166 * config/alpha/alpha.c (current_function_is_thunk): Don't check
7167 current_function_is_thunk.
7168 (alpha_sa_mask): Distinguish between current_function_is_thunk
7169 called from ASM_OUTPUT_MI_THUNK and not.
7170 (alpha_does_function_need_gp): Thunks always need gp.
7171 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7172 (alpha_output_mi_thunk_osf): New.
7173 * config/alpha/alpha-protos.h: Update.
7174 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7175
7176 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
7177
7178 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7179 function types, not when they're taken away.
7180
7181 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
7182
7183 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7184 CODE_LABEL and jump table when replacing a table jump with a
7185 simple jump.
7186
7187 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7188
7189 * config/s390/s390-protos.h (legitimize_la_operand,
7190 s390_secondary_input_reload_class, s390_plus_operand,
7191 s390_expand_plus_operand): Add prototypes.
7192
7193 config/s390/s390.c (s390_secondary_input_reload_class,
7194 s390_plus_operand, s390_expand_plus_operand): New functions.
7195
7196 (struct s390_address): New member 'pointer'.
7197 (s390_decompose_address): Compute it.
7198 (legitimate_la_operand_p): Use it.
7199 (legitimize_la_operand): New function.
7200 (movti, movdi, movdf splitters): Call it.
7201
7202 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7203 (PREDICATE_CODES): Add s390_plus_operand.
7204
7205 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7206 (la_ccclobber): Allow GENERAL_REGS as output operand.
7207
7208 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7209 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7210 (*la_64, *la_31, reload_indi, reload_insi): ... these.
7211
7212 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7213
7214 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7215 register names for regular asm () construct.
7216
7217 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7218
7219 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7220 registers.
7221
7222 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7223
7224 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7225 pat for recog.
7226
7227 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
7228
7229 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7230 constant pool to be identical by string address and index.
7231
7232 2002-02-04 Anthony Green <green@redhat.com>
7233
7234 * output.h (SECTION_OVERRIDE): Define.
7235 * varasm.c (named_section): Obey SECTION_OVERRIDE.
7236
7237 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7238
7239 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7240 by existing arm*-*-netbsd* (a.out) target.
7241 (ns32k-*-netbsdelf*): Likewise.
7242 (sparc-*-netbsdelf*): Likewise.
7243 (vax-*-netbsdelf*): Likewise.
7244
7245 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
7246
7247 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7248 headers and libobjc headers.
7249
7250 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
7251
7252 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7253 (_mingw.h): Remove duplicate include.
7254
7255 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7256
7257 * config.gcc: Set cpu_type to m68k for 68010, as well.
7258 (m68010-*-netbsdelf*): New...
7259 (m68k*-*-netbsdelf*): ...targets.
7260 * config/m68k/netbsd-elf.h: New file.
7261
7262 2002-02-02 Kazu Hirata <kazu@hxi.com>
7263
7264 * config/h8300/h8300.c (hand_list): Move inside function_arg.
7265
7266 2002-02-02 Kazu Hirata <kazu@hxi.com>
7267
7268 * config/h8300/h8300.c (h8_push_ops): Move inside
7269 h8300_init_once.
7270 (h8_pop_ops): Likewise.
7271 (h8_move_ops): Likewise.
7272
7273 2002-02-02 Kazu Hirata <kazu@hxi.com>
7274
7275 * config/h8300/h8300.c (os_task): Make it static.
7276 (monitor): Likewise.
7277 (pragma_saveall): Likewise.
7278
7279 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
7280
7281 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7282 constant is a valid sign-extension for Pmode.
7283
7284 2002-02-02 Kazu Hirata <kazu@hxi.com>
7285
7286 * config/h8300/h8300.c: Fix formatting.
7287
7288 2002-02-02 Kazu Hirata <kazu@hxi.com>
7289
7290 * config/h8300/h8300.md: Fix formatting.
7291
7292 2002-02-02 Kazu Hirata <kazu@hxi.com>
7293
7294 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7295 predicates of operands[1]. Split the patterns for each
7296 processor variant.
7297
7298 2002-02-02 Kazu Hirata <kazu@hxi.com>
7299
7300 * config/h8300/h8300.md (xor patterns): Tighten the predicates
7301 of operands[1] to register_operand.
7302
7303 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7304
7305 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7306 * cpphash.c (_cpp_init_hashtable): Similarly.
7307 * cppinit.c (cpp_create_reader): Default the signed_char flag.
7308 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7309 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7310 (cpp_handle_option): Handle the new options.
7311 * cpplex.c (cpp_interpret_charconst): Use new flag.
7312 * cpplib.h (struct cpp_options): New member signed_char.
7313 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7314 (cpp_options): Handle -fsigned-char and -funsigned-char.
7315 (static_specs): Remove signed_char_spec.
7316 (do_spec1): Don't handle %c.
7317 * system.h: Poison SIGNED_CHAR_SPEC.
7318 * tradcif.y (yylex): Use flag_signed_char.
7319 * tradcpp.h (flag_signed_char): New.
7320 * tradcpp.c (flag_signed_char): New.
7321 (main): Handle new command-line options.
7322 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7323 config:
7324 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7325 * avr/avr.h: Remove old comments.
7326 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7327 (CC1_SPEC): Pass -fsigned-char if -mic*.
7328 (SIGNED_CHAR_SPEC): Remove.
7329 doc:
7330 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7331
7332 2002-02-01 Eric Christopher <echristo@redhat.com>
7333
7334 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7335 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7336 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7337 (ASM_OUTPUT_REG_POP): Ditto.
7338
7339 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7340
7341 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7342 patch.
7343
7344 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7345
7346 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7347
7348 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7349
7350 PR c/5304:
7351 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7352 unconditionally.
7353
7354 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7355
7356 * cfganal.c: Include tm_p.h.
7357 (keep_with_call_p): Fix the test that determines if a register holds
7358 the return value of a call.
7359
7360 2002-02-01 DJ Delorie <dj@redhat.com>
7361
7362 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7363 we are given conflicting registers, switch to the other one we
7364 had allocated for us.
7365 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7366 as TImode so we know when the "other" register is available.
7367
7368 2002-02-01 David O'Brien <obrien@FreeBSD.org>
7369
7370 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7371 sparc/sparc_bi.h.
7372
7373 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7374
7375 * cfganal.c (keep_with_call_p): New function.
7376 (flow_call_edges_add): Prevent splitting a block between a call and
7377 a single-set instruction that should be kept in the same block.
7378
7379 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7380
7381 * doc/install.texi (avr): Update outdated URL.
7382
7383 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
7384
7385 * config/stormy16/stormy16.md (pushqi): New.
7386 (popqi): New.
7387 (pushhi): New.
7388 (pophi): New.
7389 (movhi): Remove stack operands.
7390 (movqi): Likewise.
7391 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7392 nonimmediate_nonstack_operand.
7393 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7394 New.
7395 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7396 New.
7397
7398 2002-01-31 Jason Merrill <jason@redhat.com>
7399
7400 * Makefile.in (c-parse.c): Handle .output file.
7401 * objc/Make-lang.in (objc-parse.c): Likewise.
7402
7403 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
7404
7405 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7406 the -me[lb] option is given. Don't output the default flag
7407 twice.
7408
7409 2002-01-31 Zack Weinberg <zack@codesourcery.com>
7410
7411 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7412 the primary source file; this has not been done yet.
7413 * c-decl.c (c_expand_body): Reset input_filename from
7414 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7415
7416 2002-01-31 Kazu Hirata <kazu@hxi.com>
7417
7418 * rtlanal.c (subreg_regno_offset): Do not use
7419 SUBREG_REGNO_OFFSET.
7420 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7421 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7422
7423 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7424
7425 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
7426 version rather than GNATS version in --version output.
7427
7428 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
7429
7430 * ifcvt.c (noce_process_if_block): Make a copy of the destination
7431 when copying back from a temporary.
7432
7433 2002-01-30 Richard Henderson <rth@redhat.com>
7434
7435 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7436 and new_dest are the same.
7437
7438 2002-01-30 Richard Henderson <rth@redhat.com>
7439
7440 PR opt/5076
7441 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7442 * rtl.c (note_insn_name): Update.
7443 * emit-rtl.c (remove_unnecessary_notes): Kill it.
7444 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
7445 to perform loop rotation.
7446 (expand_exit_loop_top_cond): New.
7447 * tree.h (expand_exit_loop_top_cond): Declare it.
7448 * c-semantics.c (genrtl_while_stmt): Use it.
7449 (genrtl_for_stmt): Likewise.
7450
7451 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
7452
7453 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7454 arguments to 64-bit boundaries on 64-bit ABIs.
7455
7456 2002-01-30 Steve Ellcey <sje@cup.hp.com>
7457
7458 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7459
7460 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7461
7462 * c-decl.c (grokdeclarator): Handle type being a typedef for an
7463 invalid type.
7464
7465 2002-01-30 David O'Brien <obrien@FreeBSD.org>
7466
7467 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7468 * config/sparc/sparc_bi.h: Remove file.
7469 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7470
7471 2002-01-30 Richard Henderson <rth@redhat.com>
7472
7473 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7474
7475 2002-01-30 Zack Weinberg <zack@codesourcery.com>
7476
7477 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7478
7479 2002-01-30 Jason Merrill <jason@redhat.com>
7480
7481 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7482 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7483 (reg_save): Use DW_CFA_offset_extended_sf instead.
7484
7485 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7486
7487 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7488
7489 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7490 in cselib_lookup.
7491
7492 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
7493
7494 * rs6000.md ("*call_value_local32"): Remove constraints.
7495 ("*call_value_local64"): Same.
7496 ("*call_value_indirect_nonlocal_aix32"): Same.
7497 ("*call_value_nonlocal_aix32"): Same.
7498 ("*call_value_indirect_nonlocal_aix64"): Same.
7499 ("*call_value_nonlocal_aix64"): Same.
7500 ("*call_value_nonlocal_sysv"): Same.
7501
7502 2002-01-29 Richard Henderson <rth@redhat.com>
7503
7504 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7505
7506 2002-01-29 Richard Henderson <rth@redhat.com>
7507
7508 * expr.c (force_operand): Ignore flag_pic for detecting pic
7509 address loads.
7510 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7511 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7512 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7513 instead of open-coded loop.
7514 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7515 be fixed when in use.
7516
7517 2002-01-29 Richard Henderson <rth@redhat.com>
7518
7519 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7520 * sched-rgn.c (propagate_deps): Update them.
7521 * sched-deps.c (sched_analyze_insn): Update them. Flush the
7522 clobbers list when either gets too long.
7523
7524 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7525
7526 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7527 and INDEX_REGS the same as GENERAL_REGS.
7528 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7529
7530 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7531
7532 * tree.c (build_nonstandard_integer_type): Correct prototype.
7533
7534 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
7535
7536 * config/s390/s390.md (movstrsico, movstrdix_64,
7537 movstrsix_31): Remove, replace by ...
7538 (movstrdi_short, movstrsi_short, movstrdi_long,
7539 movstrsi_long): ... these. New.
7540 (movstrdi, movstrsi): Adapt.
7541
7542 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7543 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7544 Remove unnecessary CC clobber.
7545 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7546 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7547
7548 (divmoddi4): Don't partially initialize TImode register.
7549
7550 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
7551
7552 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7553
7554 2002-01-29 Richard Henderson <rth@redhat.com>
7555
7556 * flow.c (print_rtl_and_abort): Remove.
7557 (print_rtl_and_abort_fcn): Remove.
7558 (verify_local_live_at_start): Use dump_bb instead.
7559 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7560 (verify_wide_reg_1): Return 2 on mode test failure.
7561
7562 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7563
7564 PR c/3325, c/3326, c/2511, c/3347
7565 * c-decl.c (enum_decl_context): Remove BITFIELD.
7566 (grokdeclarator): Take bitfield width as an input.
7567 Ensure bitfields are given the correct type. Perform
7568 bitfield width validation with build_bitfield_integer_type
7569 rather than waiting for finish_struct.
7570 (grok_typename, grok_typename_in_parm_context, start_decl,
7571 push_parmdecl, grokfield, start_function): Update calls to
7572 grokdeclarator.
7573 (build_bitfield_integer_type): New function.
7574 (finish_struct): Move bitfield validation to grokdeclarator
7575 and build_bitfield_integer_type.
7576 * tree.c (build_nonstandard_integer_type): New function.
7577 * tree.h (build_nonstandard_integer_type): New prototype.
7578 objc:
7579 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7580
7581 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7582
7583 PR other/1502:
7584 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7585 don't ignore unrecognized -W* options.
7586 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7587 * cpplib.h (cpp_handle_option): Adjust prototype.
7588 * c-decl.c (c_decode_options): Pass 0 as last argument to
7589 cpp_handle_option.
7590
7591 PR c/2896:
7592 * gcc.c (cpp_unique_options): Split from cpp_options.
7593 (cpp_options): Source cpp_unique_options.
7594 (default_compilers): Use cpp_unique_options instead of cpp_options
7595 when used together with cc1_options.
7596 (static_specs): Add cpp_unique_options.
7597 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7598 when used together with cc1_options.
7599
7600 2002-01-29 Kazu Hirata <kazu@hxi.com>
7601
7602 * config/h8300/h8300-protos.h: Update the prototype of
7603 output_a_shift.
7604 * config/h8300/h8300.c (output_a_shift): Remove an unused
7605 argument 'insn'. Remove redundant code.
7606 * config/h8300/h8300.md: Adust to the new prototype of
7607 output_a_shift.
7608
7609 2002-01-29 Kazu Hirata <kazu@hxi.com>
7610
7611 * config/h8300/h8300-protos.h: Update the prototypes of
7612 emit_a_rotate and expand_a_rotate.
7613 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7614 first argument to 'enum rtx_code'.
7615 (expand_a_rotate): Likewise.
7616
7617 2002-01-28 Kazu Hirata <kazu@hxi.com>
7618
7619 * config/h8300/h8300-protos.h: Update the prototype of
7620 output_simode_bld.
7621 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7622 'log2'.
7623 * config/h8300/h8300.md: Adjust to the new prototype.
7624
7625 2002-01-28 Kazu Hirata <kazu@hxi.com>
7626
7627 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7628 redundant code.
7629
7630 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7631
7632 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7633 is a fixed register before returning pic_offset_table_rtx.
7634 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7635 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7636
7637 2002-01-28 Jason Merrill <jason@redhat.com>
7638
7639 * dwarf2.h: Sync with src version.
7640
7641 2002-01-28 Paul Koning <pkoning@equallogic.com>
7642
7643 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7644 BT_FN_VOID_PTR_VAR.
7645 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7646 * doc/extend.texi (__builtin_prefetch): Update documentation:
7647 first argument is now const void ptr.
7648
7649 2002-01-28 Kazu Hirata <kazu@hxi.com>
7650
7651 * config/h8300/h8300-protos.h: Remove an unused prototype.
7652
7653 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
7654
7655 * toplev.c (lang_independent_init): Round up identifier size.
7656
7657 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7658
7659 * config.gcc: Revert previous change.
7660
7661 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
7662
7663 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7664
7665 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7666
7667 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7668 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
7669 other non-elf netbsd config frags.
7670 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7671 collect2 will does that.
7672 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7673 shared-lib frobbing will work.
7674
7675 2002-01-28 Kazu Hirata <kazu@hxi.com>
7676
7677 * config/h8300/h8300.h: Fix formatting.
7678 * config/h8300/h8300.md: Likewise.
7679
7680 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
7681
7682 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7683 the old, removed AAA_standards fix.
7684 * fixinc/fixincl.x: Rebuilt.
7685
7686 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
7687
7688 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7689 atexit call in crtbegin, hooked in after call to frame_dummy;
7690 register EH before registering __fini__start.
7691
7692 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
7693
7694 * config/rs6000/altivec.h: Remove spurious semicolons.
7695
7696 2002-01-27 Kazu Hirata <kazu@hxi.com>
7697
7698 * config/h8300/h8300.md: Replace dead bit extraction patterns
7699 with ones that work.
7700
7701 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7702
7703 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7704 if not STRICT_ALIGNMENT.
7705 * rtl.h (MEM_ALIGN): Likewise.
7706
7707 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7708
7709 * doc/invoke.texi (-fdump-translation-unit): Revert this
7710 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7711
7712 2002-01-27 Kazu Hirata <kazu@hxi.com>
7713
7714 * config/h8300/h8300.md (define_constants): New.
7715 (anonymous patterns) Use defined constants appropriately.
7716
7717 2002-01-27 Kazu Hirata <kazu@hxi.com>
7718
7719 * config/h8300/h8300.c (function_arg): Remove redundant code.
7720
7721 2002-01-26 Richard Henderson <rth@redhat.com>
7722
7723 * sched-deps.c (reg_pending_uses_head): New.
7724 (reg_pending_barrier): Rename from reg_pending_sets_all.
7725 (find_insn_list): Don't mark inline.
7726 (find_insn_mem_list): Remove.
7727 (add_dependence_list, add_dependence_list_and_free): New.
7728 (flush_pending_lists): Replace only_write param with separate
7729 for_read and for_write parameters. Update all callers. Use
7730 add_dependence_list_and_free.
7731 (sched_analyze_1): Do not add reg dependencies here; just set
7732 the pending bits. Use add_dependence_list.
7733 (sched_analyze_2): Likewise.
7734 (sched_analyze_insn): Replace schedule_barrier_found with
7735 reg_pending_barrier. Add all dependencies for pending reg
7736 uses, sets, and clobbers.
7737 (sched_analyze): Don't add reg dependencies for calls, just
7738 set pending bits. Use regs_invalidated_by_call. Treat
7739 sched_before_next_call as a normal list, not a fake insn.
7740 (init_deps): No funny init for sched_before_next_call.
7741 (free_deps): Free pending mems lists. Don't zero reg_last.
7742 (init_deps_global): Init reg_pending_uses.
7743 (finish_deps_global): Free it.
7744 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7745 (find_insn_mem_list): Remove.
7746 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7747 (propagate_deps): Use them. Zero temp mem lists.
7748
7749 2002-01-26 Richard Henderson <rth@redhat.com>
7750
7751 * Makefile.in (CRTSTUFF_CFLAGS): New.
7752 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7753 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7754 crtstuff.c instead of alpha assembly version.
7755 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7756 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7757 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7758 (__do_global_dtors_aux): Mark used.
7759 (frame_dummy, __do_global_ctors_aux): Mark used.
7760 (fini_dummy, init_dummy): Remove.
7761
7762 * config/alpha/crtbegin.asm: Remove file.
7763 * config/alpha/crtend.asm: Remove file.
7764 * config/alpha/t-crtbe: Remove file.
7765 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7766 (LINK_EH_SPEC): New.
7767
7768 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7769 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7770 calling constructors.
7771 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7772
7773 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7774 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7775 CRT_END_INIT_DUMMY hack.
7776 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7777 FORCE_{INIT,FINI}_SECTION_ALIGN.
7778
7779 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7780 FORCE_{INIT,FINI}_SECTION_ALIGN.
7781
7782 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7783 invocation sequence.
7784 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7785
7786 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7787 (FORCE_CODE_SECTION_ALIGN): New.
7788
7789 2002-01-26 Richard Henderson <rth@redhat.com>
7790
7791 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7792
7793 2002-01-26 Richard Henderson <rth@redhat.com>
7794
7795 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7796 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7797
7798 2002-01-26 Kazu Hirata <kazu@hxi.com>
7799
7800 * config/h8300/h8300.md: Remove bit extraction patterns that
7801 cannot be triggered.
7802 Restrict each bit extraction pattern to a variant on which the
7803 pattern is tested.
7804
7805 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7806
7807 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7808
7809 2002-01-26 Kazu Hirata <kazu@hxi.com>
7810
7811 * config/h8300/h8300.md: Remove bit test patterns that cannot
7812 be triggered.
7813 Restrict each bit test pattern to a variant on which the
7814 pattern is tested.
7815
7816 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7817
7818 * builtins.c (expand_builtin_strncat): Remove redundant check for
7819 INTEGER_CST.
7820
7821 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7822
7823 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7824 default setting.
7825 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7826 existing setting.
7827
7828 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7829
7830 * dbxout.c (dbxout_init): Use assemble_name rather than just
7831 stripping off the first character.
7832 (dbxout_source_file): Likewise.
7833
7834 2002-01-25 DJ Delorie <dj@redhat.com>
7835
7836 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7837 using rtx_equal_p, not by comparing pointers.
7838
7839 2002-01-25 Steve Ellcey <sje@cup.hp.com>
7840
7841 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7842 for PIC_OFFSET_TABLE_REGNUM.
7843 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7844
7845 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7846
7847 * config.gcc (x86_64-*-freebsd*): New target.
7848 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7849 value.
7850 (i[34567]86-*-freebsd*): Don't include svr4.h.
7851 * config/i386/freebsd64.h: New file.
7852
7853 2002-01-25 Douglas B Rupp <rupp@gnat.com>
7854
7855 * config/alpha/x-vms (version): Make static.
7856
7857 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7858 in previous checkin.
7859
7860 * Makefile.in (install-headers-cp): New target.
7861 * config.gcc (alpha-dec-*vms*): Install headers with
7862 install-headers-cp
7863
7864 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7865
7866 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7867 avoid it's copies.
7868
7869 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7870
7871 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7872 of compare_tree_int.
7873 (expand_builtin_strncat): Likewise.
7874 * c-decl.c (finish_struct): Use tree_low_cst.
7875 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7876 * tree.c (compare_tree_int): Likewise.
7877
7878 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7879
7880 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7881 adjustments even if they are implemented by more than two insns.
7882
7883 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7884
7885 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
7886 * df.h (struct ref): Kill B.
7887 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7888
7889 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7890 * flow.c (propagate_one_insn): Use it.
7891 (mark_used_regs): Handle NIL.
7892
7893 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7894
7895 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7896 to help folding.
7897
7898 2002-01-25 David Edelsohn <edelsohn@gnu.org>
7899
7900 * rs6000.md (prefetch): Make address V4SI mode so that the address
7901 is restricted to legitimate form for instruction.
7902
7903 2002-01-25 Bob Wilson <bob.wilson@acm.org>
7904
7905 * doc/install.texi (xtensa-*-elf): New target.
7906 (xtensa-*-linux*): New target.
7907 * doc/contrib.texi: Add myself.
7908
7909 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7910
7911 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7912 purpose register to hold an SImode (or smaller) value.
7913
7914 2002-01-25 Jakub Jelinek <jakub@redhat.com>
7915
7916 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7917 registry only.
7918 * crtstuff.c: Likewise.
7919
7920 2002-01-25 Kazu Hirata <kazu@hxi.com>
7921
7922 * config/h8300/h8300.md (negation patterns): Tighten
7923 predicates to register_operand.
7924
7925 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
7926
7927 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7928 mode, not Pmode.
7929
7930 * builtins.c (expand_builtin_prefetch): Same.
7931
7932 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7933
7934 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7935 modes.
7936
7937 2002-01-24 Kazu Hirata <kazu@hxi.com>
7938
7939 * config/h8300/h8300.c (print_operand): Remove support for
7940 operand character 'A'.
7941 * config/h8300/h8300.md (three anonymous patterns): Replace
7942 operand character 'A' with either 'T' or 'S'.
7943
7944 2002-01-24 Kazu Hirata <kazu@hxi.com>
7945
7946 * config/h8300/h8300.c (print_operand): Remove support for
7947 operand character 'U'.
7948
7949 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
7950
7951 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7952
7953 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7954
7955 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7956 values to be assigned to the stack pointer.
7957
7958 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7959
7960 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
7961 to const_double needs to be done right for big-endian systems.
7962
7963 2002-01-24 Jason Merrill <jason@redhat.com>
7964
7965 PR c++/2432
7966 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7967 to can_throw_internal.
7968
7969 2002-01-23 Richard Henderson <rth@redhat.com>
7970
7971 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7972 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7973
7974 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7975
7976 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7977 (symGOT2reg): Use them, then set as GOT value as unchanging.
7978 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7979 as a temporary, if possible.
7980 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7981 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7982
7983 2002-01-23 Kazu Hirata <kazu@hxi.com>
7984
7985 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7986 accept to accept 0x80 as operands[2].
7987
7988 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7989
7990 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7991
7992 2002-01-23 Richard Henderson <rth@redhat.com>
7993
7994 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7995
7996 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
7997
7998 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7999 (parmlist_or_identifiers_1): Verify that only a parmlist follows
8000 an attribute.
8001
8002 2002-01-23 Richard Henderson <rth@redhat.com>
8003
8004 * expr.c (move_by_pieces_1): Extend size before negation.
8005
8006 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8007 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8008 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8009 * config/m68k/t-m68kelf: Likewise.
8010
8011 2002-01-23 Bob Wilson <bob.wilson@acm.org>
8012
8013 * config/xtensa/elf.h: New file.
8014 * config/xtensa/lib1funcs.asm: New file.
8015 * config/xtensa/lib2funcs.S: New file.
8016 * config/xtensa/linux.h: New file.
8017 * config/xtensa/t-xtensa: New file.
8018 * config/xtensa/xtensa-config.h: New file.
8019 * config/xtensa/xtensa-protos.h: New file.
8020 * config/xtensa/xtensa.c: New file.
8021 * config/xtensa/xtensa.h: New file.
8022 * config/xtensa/xtensa.md: New file.
8023 * config.gcc (xtensa-*-elf*): New target.
8024 (xtensa-*-linux*): New target.
8025 * cse.c (canon_hash): Compare rtx pointers instead of register
8026 numbers. This is required for the Xtensa port.
8027 * integrate.c (copy_insn_list): Handle case where the static
8028 chain is in memory and the memory address has to be copied to
8029 a register.
8030 * doc/invoke.texi (Option Summary): Add Xtensa options.
8031 (Xtensa Options): New node.
8032 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8033
8034 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8035
8036 * diagnostic.c (internal_error): Do ICE suppression only
8037 when ENABLE_CHECKING is not defined.
8038
8039 * c-typeck.c (require_complete_type): Return error_mark_node
8040 if type is error_mark_node.
8041
8042 2002-01-23 Janis Johnson <janis187@us.ibm.com>
8043
8044 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8045 -Os and issue a warning.
8046
8047 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8048
8049 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8050 current (lack of) need for host configuration by hand.
8051
8052 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8053 references. Documentation of some target macros moved from
8054 hostconfig.texi to tm.texi.
8055
8056 2002-01-23 Will Cohen <wcohen@redhat.com>
8057
8058 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8059 defined.
8060
8061 2002-01-23 Kazu Hirata <kazu@hxi.com>
8062
8063 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8064 operand[3].
8065
8066 2002-01-23 Jason Merrill <jason@redhat.com>
8067
8068 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8069
8070 * function.c (assign_parms): Don't put args of inline functions
8071 into registers when not optimizing.
8072
8073 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
8074
8075 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8076 (prologue_use): New pattern.
8077 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8078 preference to gen_rtx_USE.
8079 (thumb_expand_prologue): Use gen_prologue_use in preference to
8080 gen_rtx_USE.
8081 (thumb_expand_epilogue): Use gen_prologue_use in preference to
8082 gen_rtx_USE.
8083
8084 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
8085
8086 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8087
8088 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
8089
8090 PR c/3504
8091 * doc/extend.texi: Correct documentation of __alignof__.
8092
8093 2002-01-22 Zack Weinberg <zack@codesourcery.com>
8094
8095 * params.h: Rename arguments of DEFPARAM so that it will be
8096 recognized as a translation keyword.
8097
8098 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8099
8100 * extend.texi: Document altivec functions.
8101 Fix N-bit adjectives in X86 builtin documentation.
8102
8103 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8104
8105 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8106 auto_inc_dec values.
8107
8108 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
8109
8110 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8111 after backslash.
8112 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8113
8114 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8115
8116 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8117
8118 2002-01-22 Richard Henderson <rth@redhat.com>
8119
8120 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8121 copy_insn not copy_rtx.
8122
8123 2002-01-23 Alan Modra <amodra@bigpond.net.au>
8124
8125 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8126 "nonzero" as that might add "1" bits. Ensure "constop" is
8127 properly sign extened.
8128 (force_to_mode): Tweak for sign extended constop.
8129
8130 2002-01-22 Richard Henderson <rth@redhat.com>
8131
8132 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8133 for_each_rtx instead of assuming we're already looking at the MEM.
8134 (split_small_symbolic_mem_operand): Likewise.
8135 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8136 * config/alpha/alpha.md (small symbolic memory splitters): Update.
8137
8138 2002-01-22 Richard Henderson <rth@redhat.com>
8139
8140 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8141 sequence number for the literal.
8142 (divmoddi_internal_er): Likewise.
8143
8144 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8145
8146 PR java/4972
8147 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8148 in LIBICONV variable.
8149 * configure: Regenerated.
8150
8151 2002-01-22 Krister Walfridsson <cato@df.lth.se>
8152
8153 * dependence.c (build_def_use): Remove array_idx.
8154
8155 * dwarfout.c (last_filename): Remove.
8156 (output_compile_unit_die): Remove last_filename.
8157
8158 2002-01-22 Roger Sayle <roger@eyesopen.com>
8159 Richard Henderson <rth@redhat.com>
8160
8161 PR opt/3640
8162 * fold-const.c (fold): Optimize unsigned comparisons against
8163 UINT_MAX (and similar unsigned constants).
8164
8165 2002-01-22 Janis Johnson <janis187@us.ibm.com>
8166
8167 * Makefile.in (loop.o): Depend on OPTABS_H.
8168 * loop.c (emit_prefetch_instructions): Check the prefetch operand
8169 against the predicate.
8170
8171 PR target/5379
8172 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8173 for the address operand.
8174
8175 2002-01-22 Richard Henderson <rth@redhat.com>
8176
8177 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8178
8179 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8180
8181 PR other/5450
8182 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8183 preprocessor flags.
8184
8185 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
8186
8187 * config.gcc (x86_64-*-netbsd*): New target.
8188 * config/i386/netbsd64.h: New file.
8189
8190 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8191
8192 * regrename.c (kill_value): Fix typo.
8193
8194 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8195
8196 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8197
8198 * config/rs6000/rs6000.h: Same.
8199
8200 * function.c (instantiate_virtual_regs): Remove
8201 STARTING_FRAME_PHASE.
8202 (assign_stack_local_1): Same.
8203 Calculate frame phase.
8204
8205 2002-01-22 Nick Clifton <nickc@redhat.com>
8206
8207 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8208 variable declaration to outer scope in order to simplify
8209 future extensions.
8210 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8211 arm_hard_regno_mode_ok.
8212 * config/arm/arm-protos.h: Add a prototype for
8213 arm_hard_regno_mode_ok.
8214 * config/arm/arm.c (soft_df_operand): Remove now redundant
8215 check for DImode values using IP_REGNUM.
8216 (nonimmediate_soft_df_operand): Remove now redundant check for
8217 DImode values using IP_REGNUM.
8218 (arm_hard_regno_mode_ok): New function. New check: make sure
8219 that DImode values are not stored in IP_REGNUM.
8220
8221 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8222 note with a USE.
8223 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8224
8225 2002-01-22 Jason Merrill <jason@redhat.com>
8226
8227 * c-semantics.c (genrtl_compound_stmt): Only check nesting
8228 consistency if this COMPOUND_STMT is scoped.
8229
8230 2002-01-22 Kazu Hirata <kazu@hxi.com>
8231
8232 * predict.c: Fix formatting.
8233 * print-tree.c: Likewise.
8234 * protoize.c: Likewise.
8235 * real.h: Likewise.
8236 * rtl.h: Likewise.
8237 * sbitmap.h: Likewise.
8238 * scan.c: Likewise.
8239 * sched-deps.c: Likewise.
8240 * sched-vis.c: Likewise.
8241 * sdbout.c: Likewise.
8242 * sibcall.c: Likewise.
8243 * ssa.c: Likewise.
8244 * ssa-ccp.c: Likewise.
8245 * ssa-dce.c: Likewise.
8246 * stmt.c: Likewise.
8247 * stor-layout.c: Likewise.
8248 * system.h: Likewise.
8249
8250 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8251
8252 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8253 if fits in bounds of base type.
8254
8255 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8256 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8257 (add_bound_info, default): If can't find a context, make a
8258 SAVE_EXPR.
8259 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8260
8261 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
8262
8263 * c-typeck.c (parser_build_binary_op): If result from
8264 build_binary_op is ERROR_MARK just return error_mark_node without
8265 further processing.
8266
8267 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
8268
8269 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8270 Split a.out-specific bits into...
8271 * config/netbsd-aout.h: ...this.
8272 * config/netbsd-elf.h: New file.
8273 * config/alpha/netbsd-elf.h: Remove.
8274 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8275 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8276 (STARTFILE_SPEC): Remove redundant definition.
8277 (ENDFILE_SPEC): Likewise.
8278 (LINK_SPEC): Likewise.
8279 (CPP_SPEC): Likewise.
8280 (ASM_SPEC): Likewise.
8281 (LIB_SPEC): Likewise.
8282 (SWITCH_TAKES_ARG): Likewise.
8283 (TARGET_MEM_FUNCTIONS): Likewise.
8284 (CPP_PREDEFINES): Redefine.
8285 (ASM_FINAL_SPEC): Remove redefinition.
8286 (ASM_COMMENT_START): Redefine.
8287 (FUNCTION_PROFILER): Define.
8288 (TARGET_VERSION): Redefine.
8289 Comment and formatting cleanup.
8290 * config/i386/netbsd.h: Include <netbsd-aout.h>.
8291 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8292 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8293 big- or little-endian.
8294 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8295 * config.gcc (*-*-netbsd*): Add definitions common to all
8296 NetBSD configs.
8297 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8298 gnu_ld definitions. Add netbsd-elf.h to and remove
8299 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
8300 tmake_file, and don't lose previous tmake_file contents.
8301 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8302 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8303 gnu_ld definitions. Add netbsd-elf.h to tm_file.
8304 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8305 (mipsel-*-netbsd*): Rename this to...
8306 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
8307 mips/little.h to tm_file for mips*el-*.
8308 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8309 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8310 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8311
8312 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8313
8314 * pa-protos.h (reg_before_reload_operand): New function prototype.
8315 * pa.c (reg_before_reload_operand): New function implementation.
8316 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
8317 contraints to "*m".
8318
8319 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8320
8321 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8322
8323 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8324
8325 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8326 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8327 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8328 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8329 (ENDFILE_SPEC): Undefine.
8330 (STARTFILE_SPEC): Redefine for PA.
8331
8332 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8333
8334 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8335
8336 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * config.gcc: Add entries to supported PowerPC --with-cpu
8339 types.
8340
8341 2002-01-21 Jakub Jelinek <jakub@redhat.com>
8342
8343 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8344 true for 64-bit mode only SSE registers in 32-bit mode.
8345
8346 2002-01-21 Kazu Hirata <kazu@hxi.com>
8347
8348 * unwind-dw2.c: Fix formatting.
8349 * unwind-dw2-fde.c: Likewise.
8350 * unwind-dw2-fde.h: Likewise.
8351 * unwind-pe.h: Likewise.
8352 * varasm.c: Likewise.
8353 * varray.h: Likewise.
8354
8355 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
8356
8357 Remove workaround for register stack overwrite bug in mmix.
8358 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8359 support for TARGET_REG_STACK_FILL_BUG.
8360 * config/mmix/mmix.h: Remove member has_call_without_parameters.
8361 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8362 Delete.
8363 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8364 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8365 -mno-reg-stack-fill-bug-workaround.
8366 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8367 machine member has_call_without_parameters.
8368 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8369 -mreg-stack-fill-bug-workaround and
8370 -mno-reg-stack-fill-bug-workaround.
8371 (MMIX Options): Ditto.
8372
8373 2002-01-21 Kazu Hirata <kazu@hxi.com>
8374
8375 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8376 as appropriate.
8377 Remove redundant code.
8378
8379 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
8380
8381 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8382 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8383 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8384 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8385 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8386 out target macro definitions and non-target-specific comments
8387 mostly taken from old versions of the manual.
8388
8389 2002-01-20 Kazu Hirata <kazu@hxi.com>
8390
8391 * config/h8300/h8300.h: Fix comment formatting.
8392 * config/ia64/aix.h: Likewise.
8393 * config/ia64/ia64-protos.h: Likewise.
8394 * config/ia64/ia64.c: Likewise.
8395 * config/ia64/ia64.h: Likewise.
8396 * config/ia64/ia64intrin.h: Likewise.
8397 * config/ia64/linux.h: Likewise.
8398 * config/ia64/unwind-aix.c: Likewise.
8399 * config/ia64/unwind-ia64.c: Likewise.
8400
8401 2002-01-20 Kazu Hirata <kazu@hxi.com>
8402
8403 * config/h8300/h8300.c: Revise comments about shift code.
8404
8405 2002-01-20 Kazu Hirata <kazu@hxi.com>
8406
8407 * config/h8300/h8300.c (function_arg): Update a comment.
8408
8409 2002-01-20 Kazu Hirata <kazu@hxi.com>
8410
8411 * config/h8300/h8300.md: Update the comments at the beginning
8412 of the file.
8413
8414 2002-01-20 Kazu Hirata <kazu@hxi.com>
8415
8416 * config/i370/i370.c: Fix comment formatting.
8417 * config/i370/i370.h: Likewise.
8418 * config/i370/i370.md: Likewise.
8419 * config/i370/linux.h: Likewise.
8420
8421 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8422
8423 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8424
8425 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8426 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8427 in incomplete case.
8428
8429 2002-01-20 Graham Stott <grahams@redhat.com>
8430
8431 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8432
8433 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
8434
8435 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8436
8437 2002-01-19 Tom Rix <trix@redhat.com>
8438
8439 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8440
8441 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
8442
8443 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8444
8445 * function.c (assign_stack_local_1): Adjust x_frame_offset with
8446 STARTING_FRAME_PHASE.
8447 (STARTING_FRAME_PHASE): New.
8448 (instantiate_virtual_regs): Check saneness of
8449 STARTING_FRAME_PHASE.
8450
8451 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8452
8453 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8454
8455 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8456
8457 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
8458
8459 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8460 be used for bootstrapping GCC 3.0.
8461
8462 2002-01-18 Kazu Hirata <kazu@hxi.com>
8463
8464 * config/h8300/h8300.md: Fix an insn length.
8465
8466 2002-01-18 Kazu Hirata <kazu@hxi.com>
8467
8468 * bitmap.h: Fix comment formatting.
8469 * combine.c: Likewise.
8470 * cppfiles.c: Likewise.
8471 * c-pragma.h: Likewise.
8472 * c-typeck.c: Likewise.
8473 * df.c: Likewise.
8474 * dwarf2out.c: Likewise.
8475 * function.c: Likewise.
8476 * gcc.c: Likewise.
8477 * genattrtab.c: Likewise.
8478 * gthr-win32.h: Likewise.
8479 * haifa-sched.c: Likewise.
8480 * predict.c: Likewise.
8481 * rtlanal.c: Likewise.
8482 * rtl.h: Likewise.
8483 * unwind-dw2-fde.h: Likewise.
8484 * unwind-pe.h: Likewise.
8485 * vmsdbgout.c: Likewise.
8486
8487 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8488
8489 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8490 if type_required and passed decl.
8491
8492 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
8493
8494 * config.gcc (cpu_type): Include altivec.h in powerpc
8495 extra_headers.
8496 Same for darwin.
8497
8498 * config/rs6000/altivec.h: New.
8499
8500 2002-01-17 David Edelsohn <edelsohn@gnu.org>
8501
8502 * doc/install.texi (*-ibm-aix*): Update assembler and exception
8503 handling information.
8504 * doc/trouble.texi (Interoperation): Add libstdc++ information
8505 for AIX.
8506 (Misunderstandings): Add template instantiation and static template
8507 member information for AIX.
8508
8509 2002-01-17 Jason Merrill <jason@redhat.com>
8510
8511 * dbxout.c (dbxout_type): Support const and volatile.
8512
8513 * except.c (add_partial_entry): Remove backwards compatibility code.
8514 (end_protect_partials): Likewise.
8515
8516 2002-01-17 Jakub Jelinek <jakub@redhat.com>
8517
8518 * config/ia64/ia64.md (prologue_use): New.
8519 * config/ia64/ia64.c (ia64_expand_prologue): Use
8520 gen_prologue_use instead of gen_rtx_USE.
8521 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8522 as CODE_FOR_pred_rel_mutex.
8523 (ia64_sched_reorder2): Likewise.
8524
8525 2002-01-16 Eric Christopher <echristo@redhat.com>
8526
8527 * config/mips/r3900.h: Reformat.
8528 (SUBTARGET_CPP_SIZE_SPEC): Remove.
8529 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8530 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8531 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8532 * config/mips/t-elf: Remove mips3 multilib.
8533
8534 2002-01-16 H.J. Lu <hjl@gnu.org>
8535
8536 * config/mips/linux.h: Include "mips/abi64.h".
8537
8538 2002-01-16 H.J. Lu <hjl@gnu.org>
8539
8540 * config/mips/t-linux: New.
8541
8542 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8543
8544 * config/mips/linux.h: Don't include "gofast.h".
8545 (INIT_SUBTARGET_OPTABS): Removed.
8546
8547 2002-01-16 Kazu Hirata <kazu@hxi.com>
8548
8549 * config/h8300/h8300-protos.h: Replace emit_a_shift with
8550 output_a_shift.
8551 * config/h8300/h8300.c: Likewise.
8552 * config/h8300/h8300.md: Likewise.
8553
8554 2002-01-16 Kazu Hirata <kazu@hxi.com>
8555
8556 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8557 spaces after an opcode name.
8558 (pushqi1_h8300hs): Likewise.
8559 (pushhi1_h8300hs): Likewise.
8560
8561 2002-01-16 Kazu Hirata <kazu@hxi.com>
8562
8563 * doc/extend.texi: Replace "option" with "attribute"
8564 appropriately.
8565
8566 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8567
8568 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8569 (and:DI () (const_int -8)).
8570 (split_small_symbolic_mem_operand): Split
8571 (mem (and:DI () (const_int -8)).
8572
8573 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8574
8575 PR target/5309:
8576 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8577 same way as TYPE_IMUL.
8578 (ultrasparc_sched_reorder): Likewise.
8579 * config/sparc/sparc.md (type): Add comment to update
8580 ultrasparc_sched_reorder when making changes.
8581
8582 2002-01-16 Kazu Hirata <kazu@hxi.com>
8583
8584 * doc/invoke.texi: Change the dump file name of block
8585 reordering pass from 28.bbro to 29.bbro.
8586 Mention -dk option.
8587
8588 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8589
8590 * i386.md (minsf splitter): Fix pasto.
8591
8592 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8593
8594 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8595 to frame pointer initialisation instruction.
8596 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8597 initialisation instruction.
8598 (soft_df_operand): Do not accept the IP register.
8599 (nonimmediate_soft_df_operand): Do not accept the IP register.
8600
8601 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8602
8603 PR target/5357:
8604 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8605 MASK_V8 being both set.
8606
8607 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8608
8609 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8610 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8611 config/s390/s390.md (call, call_value): Add GOT register to
8612 CALL_INSN_FUNCTION_USAGE where needed.
8613 (call_exp, call_value_exp): New.
8614
8615 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8616
8617 * config/arm/arm.c: General formatting tidy up.
8618
8619 2002-01-16 Graham Stott <grahams@redhat.com>
8620
8621 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8622 cast and when casting an integer literal to "rtx" pointer.
8623 (expand_call): Likewise.
8624 * flow.c (try_pre_increment): Likewise.
8625 (find_use_as_address): Likewise.
8626 * integrate.c (expand_iline_function): Likewise.
8627 * regmove.c (try_auto_increment): Likewise.
8628
8629 2002-01-16 Graham Stott <grahams@redhat.com>
8630
8631 * sched-rgn.c (passed): Use sbitmap_free.
8632 (header): Likewise.
8633 (inner): Likewise.
8634 (in_queue): Likewise.
8635 (in_stack): Likewise.
8636
8637 2002-01-15 Eric Christopher <echristo@redhat.com>
8638
8639 * flow.c (propagate_one_insn): Change to use fatal_insn.
8640
8641 2002-01-15 Kazu Hirata <kazu@hxi.com>
8642
8643 * expmed.c (extract_fixed_bit_field): Remove unused code.
8644 * system.h: Poison SLOW_ZERO_EXTEND.
8645 * doc/tm.texi: Remove.
8646 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8647 * config/arm/arm.h: Likewise.
8648 * config/avr/avr.h: Likewise.
8649 * config/clipper/clipper.h: Likewise.
8650 * config/convex/convex.h: Likewise.
8651 * config/d30v/d30v.h: Likewise.
8652 * config/dsp16xx/dsp16xx.h: Likewise.
8653 * config/elxsi/elxsi.h: Likewise.
8654 * config/fr30/fr30.h: Likewise.
8655 * config/h8300/h8300.h: Likewise.
8656 * config/i370/i370.h: Likewise.
8657 * config/i386/i386.h: Likewise.
8658 * config/m68k/m68k.h: Likewise.
8659 * config/mips/mips.h: Likewise.
8660 * config/ns32k/ns32k.h: Likewise.
8661 * config/pdp11/pdp11.h: Likewise.
8662 * config/pj/pj.h: Likewise.
8663 * config/s390/s390.h: Likewise.
8664 * config/sh/sh.h: Likewise.
8665 * config/stormy16/stormy16.h: Likewise.
8666 * config/v850/v850.h: Likewise.
8667 * config/vax/vax.h: Likewise.
8668 * config/we32k/we32k.h: Likewise.
8669
8670 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8671
8672 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8673 (altivec_lvsl): Change constraint to b.
8674 (altivec_lvsr): Same.
8675 (altivec_lvebx): Same.
8676 (altivec_lvehx): Same.
8677 (altivec_lvewx): Same.
8678 (altivec_lvxl): Same.
8679 (altivec_lvx): Same.
8680 (altivec_stvx): Add parallel.
8681 (altivec_stvxl): Same.
8682 (altivec_stvehx): Same.
8683 (altivec_stvebx): Same.
8684 (altivec_stvebx): Same.
8685
8686 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8687
8688 * config.gcc: Change altivec.h to altivec-defs.h.
8689
8690 * config/rs6000/altivec.h: Delete.
8691
8692 * config/rs6000/altivec-defs.h: Add.
8693
8694 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8695
8696 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8697 and UMOD modes.
8698
8699 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8700 less than or equal to eight bytes.
8701
8702 * vax.md (andsi3): Remove constraints and change SET destination
8703 operand type to nonimmediate_operand.
8704 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8705 when it is a CONST_INT.
8706
8707 2002-01-15 Jason Merrill <jason@redhat.com>
8708
8709 * c-common.def (FILE_STMT): New code.
8710 * c-common.c (statement_code_p): It's a statement.
8711 * c-common.h (stmt_tree_s): Add x_last_filename.
8712 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8713 (last_expr_filename): New macro.
8714 * c-semantics.c (begin_stmt_tree): Initialize it.
8715 (add_stmt): If the filename changed, also insert a
8716 FILE_STMT.
8717 (expand_stmt): Handle seeing one.
8718
8719 2002-01-15 Eric Christopher <echristo@redhat.com>
8720
8721 * flow.c (propagate_one_insn): Add error message and print out
8722 insn for debugging.
8723
8724 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8725
8726 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8727 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8728 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8729 TRAMPOLINE_ALIGNMENT.
8730 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8731 to be in bits.
8732 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8733 PCC_BITFIELD_TYPE_MATTERS.
8734 * config/interix.h (STDC_VALUE): Remove. Use
8735 STDC_0_IN_SYSTEM_HEADERS.
8736 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8737 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8738 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8739
8740 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8741
8742 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8743 not work on this platform currently.
8744
8745 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8746
8747 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8748 readonly_warning in _().
8749
8750 2002-01-15 Douglas B Rupp <rupp@gnat.com>
8751
8752 * gcc.c (delete_if_ordinary): Backout previous change.
8753
8754 2002-01-15 Kazu Hirata <kazu@hxi.com>
8755
8756 * config/h8300/h8300.c (print_operand): Remove support for
8757 unused operand characters.
8758
8759 * read-rtl.c: Fix formatting.
8760 * real.c: Likewise.
8761 * recog.c: Likewise.
8762 * regclass.c: Likewise.
8763 * regmove.c: Likewise.
8764 * reg-stack.c: Likewise.
8765 * reload1.c: Likewise.
8766 * rtlanal.c: Likewise.
8767
8768 2002-01-15 Kazu Hirata <kazu@hxi.com>
8769
8770 * config/i386/i386.c: Fix formatting.
8771
8772 2002-01-15 Jakub Jelinek <jakub@redhat.com>
8773
8774 * c-typeck.c (process_init_element): Don't save_expr
8775 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8776
8777 2002-01-15 David Edelsohn <edelsohn@gnu.org>
8778
8779 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8780 emit optional traceback table if optimize_size or TARGET_ELF.
8781 * config/rs6000/rs6000.md (prefetch): New.
8782
8783 2002-01-15 Andreas Jaeger <aj@suse.de>
8784
8785 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8786
8787 2002-01-15 Kazu Hirata <kazu@hxi.com>
8788
8789 * mips-tfile.c: Fix formatting.
8790
8791 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8792
8793 * unroll.c (final_reg_note_copy): Fix previous commit.
8794
8795 2002-01-14 Kazu Hirata <kazu@hxi.com>
8796
8797 * config/h8300/h8300-protos.h: Remove the prototype for
8798 eq_operator.
8799 * config/h8300/h8300.c (eq_operator): Remove.
8800
8801 2002-01-14 Richard Henderson <rth@redhat.com>
8802
8803 * config/i386/i386.md (prefetch): Tidy.
8804 (prefetch_3dnow): Fix locality operand.
8805
8806 2002-01-14 Richard Henderson <rth@redhat.com>
8807
8808 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8809 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8810
8811 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8812
8813 * reload1.c (reload_combine): Pass reg_sum replacement through
8814 copy_rtx in loop performing multiple changes.
8815
8816 2002-01-14 Jakub Jelinek <jakub@redhat.com>
8817
8818 * except.c (remove_unreachable_regions): New.
8819 (free_eh_status): Clear exception_handler_labels.
8820 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8821 (find_exception_handler_labels): Don't add the same label more than
8822 once.
8823 (remove_exception_handler_label): Don't die if
8824 find_exception_handler_labels hasn't been called for the current
8825 function yet.
8826
8827 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8828
8829 * toplev.c (rest_of_compilation): Rebuild jump labels after
8830 gcse.
8831
8832 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8833
8834 * doc/extend.texi: Move documentation of X86 built-in functions
8835 here.
8836 * doc/invoke.texi: From here.
8837 * doc/sourcebuild.texi: Document location of documentation for
8838 machine built-in functions.
8839
8840 2002-01-13 Christopher Faylor <cgf@redhat.com>
8841
8842 * cppfiles.c (TEST_THRESHOLD): New macro.
8843 (SHOULD_MMAP): Ditto.
8844 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8845 be used.
8846
8847 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8848
8849 * unroll.c (final_reg_note_copy): Properly handle
8850 REG_LABEL
8851 (unroll_loops): Fix LOOP_CONDITION heuristics.
8852
8853 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
8854
8855 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8856 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8857
8858 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8859
8860 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8861 threaded loop.
8862
8863 2002-01-14 Tom Rix <trix@redhat.com>
8864
8865 * config/rs6000/rs6000.md: Fix typo with sradi.
8866
8867 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8868
8869 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8870 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8871 (clrstrdi, clrstrsi): Adapt callers.
8872
8873 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8874
8875 (movti splitter): Never use register 0 as base register.
8876
8877 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8878
8879 * combine.c (simplify_shift_const): Always generate new rtx
8880 for shift expression instead of reusing given expression.
8881
8882 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8883
8884 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8885 alpha_legitimize_address unless mode is Pmode.
8886
8887 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
8888
8889 * doc/md.texi (Modifiers): Document the '*' constraint for the
8890 user.
8891
8892 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8893 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8894 for xstormy16 too.
8895
8896 2002-01-13 Richard Henderson <rth@redhat.com>
8897
8898 * reload.c (find_reloads): Use a hard reg destination as reload reg
8899 for an input reload of the source.
8900
8901 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8902
8903 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8904 more generic.
8905
8906 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8907
8908 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8909 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8910
8911 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8912
8913 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8914
8915 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8916
8917 2002-01-12 Tom Rix <trix@redhat.com>
8918
8919 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
8920 TARGET_POWERPC64.
8921
8922 2002-01-12 Richard Henderson <rth@redhat.com>
8923
8924 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8925
8926 * doc/invoke.texi: Update Alpha options.
8927
8928 * doc/invoke.texi: Update i386 built-in function lists.
8929
8930 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8931
8932 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8933 referencing outside.
8934
8935 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8936
8937 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8938 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8939 offsets, and change line folding.
8940 * optabs.c (expand_binop): Remove warnings.
8941 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8942
8943 2002-01-12 Graham Stott <grahams@redhat.com>
8944
8945 * attribs.c (handle_deprecated_attribute): constify WHAT.
8946 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8947 dangling else warning and constify WHAT.
8948 * except.h (struct function, struct inline_remap): Move
8949 struct tag forward defs before all prototypes.
8950 (duplicate_eh_regions): Whitespace.
8951
8952 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8953
8954 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8955 MODE_BASE_REG_CLASS.
8956 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8957
8958 2002-01-12 Richard Henderson <rth@redhat.com>
8959
8960 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8961 (ix86_expand_vector_move): New.
8962 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8963 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8964 Remove old prefetch builtins. Special case the logicals removed above.
8965 (ix86_expand_builtin): Likewise.
8966 (safe_vector_operand): Use V4SFmode, not TImode.
8967 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8968 (ix86_expand_timode_binop_builtin): New.
8969 * config/i386/i386-protos.h: Update.
8970 * config/i386/i386.h (enum ix86_builtins): Update.
8971 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8972 Use ix86_expand_vector_move in vector move expanders.
8973 (movti_internal, movti_rex64): Add xorps alternative.
8974 (sse_clrv4sf): Rename and adjust from sse_clrti.
8975 (prefetch): Don't work so hard.
8976 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8977 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8978 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8979
8980 2002-01-11 Richard Henderson <rth@redhat.com>
8981
8982 * config/i386/mmintrin.h: New file.
8983 * config/i386/xmmintrin.h: New file.
8984 * config.gcc (i?86-*-*): Add extra_headers.
8985 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8986 truncation codes.
8987 (simplify_binary_operation): Handle saturating arithmetic codes.
8988 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8989 not the lowpart subreg.
8990 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8991 on error.
8992 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8993
8994 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8995
8996 * conflict.c (conflict_graph_compute): Free regsets when finished.
8997 * ssa.c (compute_coalesced_reg_partition): Likewise.
8998
8999 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9000
9001 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9002 every where we allocate a register.
9003
9004 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9005
9006 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9007 * lcm.c (compute_earliest, compute_farthest): Likewise.
9008
9009 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9010
9011 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9012
9013 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9014
9015 * doc/rtl.texi (Insns): Fix 2 typos.
9016
9017 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
9018
9019 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
9020 options. Use @table @gcctabopt for MMIX options. Add index
9021 entries for MMIX options. Start new paragraph with first
9022 heading of the machine-dependent options.
9023
9024 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
9025
9026 PR other/5299
9027 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9028 * combine.c (force_to_mode): Same.
9029 * reload1.c (clear_reload_reg_in_use): Same.
9030
9031 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
9032
9033 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9034 and 'subtargets'.
9035
9036 2002-01-11 Andreas Jaeger <aj@suse.de>,
9037 Brad Lucier <lucier@math.purdue.edu>
9038
9039 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9040 mcpu.
9041
9042 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
9043
9044 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9045 Protect with IN_LIBGCC.
9046 (LINK_EH_SPEC): Add required trailing space.
9047
9048 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
9049
9050 * c-tree.h: Move function declarations so that they are listed
9051 under the filename which contains them.
9052 (check_identifier, finish_decl_top_level,
9053 lookup_name_current_level_global, shadow_record_fields): Remove.
9054
9055 2002-01-11 Andreas Jaeger <aj@suse.de>
9056
9057 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9058 march.
9059
9060 2002-01-10 Richard Henderson <rth@redhat.com>
9061
9062 * config/alpha/alpha.c (print_operand): Add 'J'.
9063 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9064 new operand with the sequence number for the lituse. When splitting
9065 the insns, use gen_movdi_er_high_g and generate a sequence number.
9066 (gen_movdi_er_high_g): Print the sequence number if non-zero.
9067
9068 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
9069
9070 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9071 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9072 stvxl.
9073 (altivec_expand_builtin): Same.
9074 (altivec_expand_stv_builtin): New.
9075
9076 * config/rs6000/rs6000.h (rs6000_builtins): Same.
9077
9078 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9079 ("altivec_lvehx"): New.
9080 ("altivec_lvewx"): New.
9081 ("altivec_lvxl"): New.
9082 ("altivec_lvx"): New.
9083 ("altivec_stvx"): New.
9084 ("altivec_stvebx"): New.
9085 ("altivec_stvehx"): New.
9086 ("altivec_stvewx"): New.
9087 ("altivec_stvxl"): New.
9088
9089 2002-01-10 Richard Henderson <rth@redhat.com>
9090
9091 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9092 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
9093 care not to delete instructions twice.
9094
9095 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9096
9097 * toplev.c: Don't declare environ (it's not used anywhere).
9098 * configure.in: Don't check for declaration of environ.
9099 * config/i386/xm-mingw32.h: Don't #define environ.
9100 * config.in, configure: Regenerate.
9101
9102 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9103
9104 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9105 * configure: Regenerate.
9106
9107 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9108 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9109 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9110 alpha/xm-vms.h.
9111 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9112 LIMITS_H_TEST here, not in m68k/x-next.
9113 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9114 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9115
9116 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9117 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9118 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
9119
9120 * config/i386/x-djgpp: Renamed i386/t-djgpp.
9121 * config/m88k/x-dolph: Renamed m88k/t-dolph.
9122 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9123 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
9124 replacement of quadlib.asm with quadlib.c.
9125
9126 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9127 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9128 config/rs6000/xm-beos.h: Delete file.
9129
9130 * config.gcc: Update to match above changes.
9131
9132 2002-01-10 Kazu Hirata <kazu@hxi.com>
9133
9134 * config/h8300/h8300.h: Fix comment typos.
9135 * config/h8300/h8300.md: Likewise.
9136 * config/h8300/lib1funcs.asm: Likewise.
9137
9138 2002-01-10 Dale Johannesen <dalej@apple.com>
9139
9140 PR optimization/5269
9141 * unroll.c (precondition_loop_p): Make *increment be the correct
9142 sign when n_iterations known, to avoid confusing caller.
9143
9144 2002-01-10 Kazu Hirata <kazu@hxi.com>
9145
9146 * doc/extend.texi (deprecated): Fix a typo.
9147
9148 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
9149
9150 * basic-block.h (update_br_prob_note): Declare.
9151 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9152 (try_forward_edges): Care negative frequencies and update note.
9153 (outgoing_edges_match): Tweek conditional merging heuristics.
9154 (try_crossjump_to_edge): use update_br_prob_note.
9155 * cfglayout.c (fixup_reorder_chain): Likewise.
9156 * cfrtl.c (update_br_prob_note): New.
9157 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9158
9159 * i386.c (ix86_decompose_address): Return -1 if address contains
9160 shift.
9161 (legitimate_address_p): Require ix86_decompose_address to return 1.
9162
9163 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9164 (cprop_insn): Likewise.
9165
9166 2002-01-10 Kazu Hirata <kazu@hxi.com>
9167
9168 * toplev.c: Fix formatting.
9169 * tree.c: Likewise.
9170 * tree-dump.c: Likewise.
9171 * unroll.c: Likewise.
9172 * unwind-dw2.c: Likewise.
9173 * unwind-dw2-fde.c: Likewise.
9174 * unwind-dw2-fde-glibc.c: Likewise.
9175 * unwind-sjlj.c: Likewise.
9176
9177 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9178
9179 * doc/invoke.texi: Document PDP-11 options.
9180
9181 2002-01-10 Kazu Hirata <kazu@hxi.com>
9182
9183 * config/h8300/h8300.h: Fix formatting.
9184
9185 2002-01-10 Ira Ruben <ira@apple.com>
9186
9187 Add __attribute__ ((deprecated)).
9188 * extend.texi: Document __attribute__ ((deprecated)).
9189 * invoke.texi: Document -Wno-deprecated-declarations.
9190 * testsuite/g++.dg/other/deprecated.C: New C++ test.
9191 * testsuite/gcc.dg/deprecated.c: New C test.
9192 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9193 (c_common_attribute_table): Add "deprecated" entry.
9194 (handle_deprecated_attribute): New function.
9195 * c-decl.c (deprecated_states): New enum.
9196 deprecated_state: State of "deprecated" handling.
9197 (start_decl): Set deprecated_state based on attributes.
9198 (grokdeclarator): Test for deprecated uses, propagate attribute.
9199 * c-typeck.c (build_component_ref): Test for deprecated fields.
9200 (build_external_ref): Test for deprecated primaries.
9201 * diagnostic.c (warn_deprecated_use) New function to issue
9202 warnings about __attribute__ ((depricated)) references.
9203 * flags.h (warn_deprecated_decl): Extern declared for
9204 -W[no-]deprecated-declarations option.
9205 * print-tree.c (print_node): Show deprecated flag status.
9206 * toplev.c (warn_deprecated_decl): Defined.
9207 (W_options): Added "deprecated-declaration".
9208 * toplev.h (warn_deprecated_use): Extern declared.
9209 * tree.h (struct tree_common): Define deprecated_flag.
9210 (TREE_DEPRECATED): New macro to access flag.
9211 * cp/call.c (build_call): Test for deprecated calls.
9212 * cp/class.c (add_implicitly_declared_members): Set global
9213 flag to tell grokdeclarator to not issue deprecated warnings.
9214 * cp/cp-tree.h: Add extern for adding_implicit_members.
9215 * cp/decl.c (deprecated_states): New enum.
9216 (start_decl): Set deprecated_state based on attributes.
9217 (grokdeclarator): Test for deprecated uses, propagate attribute.
9218 * cp/lex.c (do_identifier): Test for deprecated primaries.
9219 * cp/typeck.c (build_component_ref): Test for deprecated fields.
9220
9221 2002-01-10 Ira Ruben <ira@apple.com>
9222
9223 Fix to assign attributes to inline member functions.
9224 * cp/decl.c (start_method): Handle attrlist.
9225
9226 2002-01-10 Kazu Hirata <kazu@hxi.com>
9227
9228 * combine.c (expand_field_assignment): Use subreg_lsb().
9229
9230 2002-01-10 David Edelsohn <edelsohn@gnu.org>
9231
9232 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9233 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9234 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9235 Recurse for any operand of AND as long as constant is non-zero.
9236
9237 2002-01-10 Kazu Hirata <kazu@hxi.com>
9238
9239 * config/h8300/h8300.md: Remove constraints from expanders.
9240
9241 2002-01-10 Kazu Hirata <kazu@hxi.com>
9242
9243 * varasm.c: Fix formatting.
9244 * varray.c: Likewise.
9245 * vmsdbgout.c: Likewise.
9246 * xcoffout.c: Likewise.
9247
9248 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
9249
9250 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9251 update edge probabilities to match.
9252
9253 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9254
9255 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9256 dependencies.
9257 * doc/languages.texi, doc/sourcebuild.texi: New files.
9258 * doc/configfiles.texi: Make a subsubsection. Update.
9259 * doc/configterms.texi: Add @node. Remove warning that this isn't
9260 instructions for building GCC.
9261 * doc/makefile.texi: Make a subsection.
9262 * doc/gccint.texi: Update.
9263
9264 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
9265
9266 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9267
9268 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
9269
9270 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9271
9272 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
9273
9274 * optabs.c (expand_fix): Look for wider integer modes first.
9275
9276 * i386.md (mov?f): Avoid the fake const double trick for medium
9277 memory model.
9278 (min?f*/max?f*): Prohibit memory operands for i387 variant.
9279 (fop_df_4): Disable for SSE compilation.
9280
9281 2002-01-10 Graham Stott <grahams@redhat.com>
9282
9283 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9284 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9285
9286 2002-01-10 Richard Henderson <rth@redhat.com>
9287
9288 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9289
9290 2002-01-10 Richard Henderson <rth@redhat.com>
9291
9292 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9293 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
9294
9295 2002-01-10 Kazu Hirata <kazu@hxi.com>
9296
9297 * combine.c (can_combine_p): Fix a comment typo.
9298
9299 2002-01-09 Zack Weinberg <zack@codesourcery.com>
9300
9301 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9302 empty list correctly. Change loop index $t to $f for
9303 consistency with rest of Makefile.
9304
9305 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
9306
9307 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9308 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9309
9310 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9311 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9312 (altivec_init_builtins): Same.
9313 (altivec_expand_unop_builtin): Return NULL_RTX on error.
9314 (altivec_expand_binop_builtin): Same.
9315 (altivec_expand_ternop_builtin): Same.
9316 (bdesc_dst): New.
9317
9318 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9319 ("altivec_vctuxs"): Fix typo.
9320 ("altivec_vnmsubfp"): Same.
9321 ("altivec_dssall"): New.
9322 ("altivec_mfvscr"): New.
9323 ("altivec_dss"): New.
9324 ("altivec_lvsl"): New.
9325 ("altivec_lvsr"): New.
9326 ("altivec_dstt"): New.
9327 ("altivec_dstst"): New.
9328 ("altivec_dststt"): New.
9329 ("altivec_dst"): New.
9330
9331 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9332 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9333
9334 2002-01-09 Richard Henderson <rth@redhat.com>
9335
9336 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9337
9338 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
9339
9340 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9341 function.
9342 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9343 prototype.
9344 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9345
9346 2002-01-09 Kazu Hirata <kazu@hxi.com>
9347
9348 * read-rtl.c: Fix formatting.
9349 * real.c: Likewise.
9350 * regclass.c: Likewise.
9351 * regrename.c: Likewise.
9352 * reg-stack.c: Likewise.
9353 * reload1.c: Likewise.
9354 * reload.c: Likewise.
9355 * rtl.c: Likewise.
9356
9357 2002-01-09 Kazu Hirata <kazu@hxi.com>
9358
9359 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9360 to extract items in the expr_list chain.
9361
9362 2002-01-09 Richard Henderson <rth@redhat.com>
9363
9364 * config/vax/vax.c (vax_rtx_cost): Never abort.
9365
9366 * config/vax/vax.h (REAL_ARITHMETIC): Define.
9367
9368 2002-01-09 Jan Hubicka <jh@suse.cz>
9369
9370 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9371
9372 2002-01-09 Richard Henderson <rth@redhat.com>
9373
9374 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9375 Unify code from various alternatives.
9376
9377 2002-01-09 Richard Henderson <rth@redhat.com>
9378
9379 * regrename.c (copy_value): Ignore the copy if the source register
9380 is present in the value chain with a narrower mode.
9381
9382 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9383
9384 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9385 for the c4x target. Also improve layout.
9386
9387 2002-01-09 Richard Henderson <rth@redhat.com>
9388
9389 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9390 * config/m32r/m32r.md (and ior xor splitters): Swap operands
9391 to match insn patterns.
9392
9393 2002-01-09 Richard Henderson <rth@redhat.com>
9394
9395 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9396 (copyprop_hardreg_forward_1): Likewise.
9397
9398 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9399
9400 * pa.md (decrement_and_branch_until_zero): Change predicate for
9401 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9402
9403 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9404
9405 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9406 gets undefined. For Darwin.
9407
9408 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9409
9410 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9411
9412 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9413
9414 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9415
9416 2002-01-08 Richard Henderson <rth@redhat.com>
9417
9418 * regrename.c (copy_value): Ignore overlapping copies.
9419
9420 2002-01-08 Richard Henderson <rth@redhat.com>
9421
9422 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9423 as needed to avoid shared structure.
9424
9425 2002-01-08 Kazu Hirata <kazu@hxi.com>
9426
9427 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9428 H8/300H and H8/S.
9429
9430 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9431
9432 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9433 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9434 documentation of obsolete macros.
9435 * system.h: Poison these macros.
9436 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9437 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9438 config/c4x/c4x.h, config/clipper/clipper.h,
9439 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9440 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9441 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9442 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9443 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9444 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9445 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9446 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9447 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9448 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9449 config/sparc/sparc.h, config/stormy16/stormy16.h,
9450 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9451 definitions and commented out definitions of obsolete macros.
9452 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9453 of MAX_INT_TYPE_SIZE.
9454
9455 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9456
9457 * config/s390/s390.c (s390_preferred_reload_class): Never
9458 return ADDR_REGS if it isn't a subset of the given class.
9459 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9460 FP_REGS, but all superclasses as well.
9461
9462 * config/s390/s390.c (s390_function_profiler): Fix thinko.
9463
9464 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9465 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9466 must not be a const_int.
9467
9468 2002-01-08 Richard Henderson <rth@redhat.com>
9469
9470 * Makefile.in (toplev.o): Depend on options.h.
9471 (gcc.o): Depend on specs.h.
9472
9473 2002-01-08 Jakub Jelinek <jakub@redhat.com>
9474
9475 * expr.c (store_expr): Convert VOIDmode constants back to target's
9476 mode.
9477
9478 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9479
9480 * doc/invoke.texi: Markup gcc as @command. Refer to
9481 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9482 of http://gcc.gnu.org/thanks.html.
9483
9484 2002-01-08 Dale Johannesen <dalej@apple.com>
9485
9486 * config/rs6000/rs6000.md: Add missing int register
9487 target case to movdf_low.
9488
9489 2002-01-08 Zack Weinberg <zack@codesourcery.com>
9490
9491 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9492 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
9493 (cppinit.o): Depend on except.h.
9494 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9495 s-specs): New rules.
9496
9497 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9498 Don't create specs.h/options.h/gencheck.h here. Remove
9499 unnecessary variable settings from last argument of AC_OUTPUT.
9500 * config.in, configure: Regenerate.
9501 * intl.c: Hardcode package name as "gcc".
9502
9503 * cppinit.c: Include except.h.
9504 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9505 appropriate.
9506 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9507 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9508 (!)USING_SJLJ_EXCEPTIONS.
9509 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9510
9511 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9512
9513 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9514 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9515 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9516 documentation of obsolete macros.
9517 * system.h: Poison these macros.
9518 * config/d30v/d30v.h, config/ns32k/encore.h,
9519 config/stormy16/stormy16.h: Remove definitions and commented out
9520 definitions of obsolete macros.
9521
9522 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
9523
9524 * objc/objc-act.c (handle_class_ref): Mark the declaration of
9525 %sobjc_class_ref_%s as used - to prevent unwanted compiler
9526 warnings.
9527
9528 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9529
9530 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9531 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9532 to insn adjusting stack/frame pointer.
9533 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9534 accept operands that cause the insn to be non-splittable.
9535
9536 2002-01-08 Graham Stott <grahams@redhat.com>
9537
9538 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9539 (C_TYPE_FIELDS_VOLATILE): Likewise.
9540 (C_TYPE_BEING_DEFINED): Likewise.
9541 (C_IS_RESERVED_WORD): Likewise.
9542 (C_TYPE_VARIABLE_SIZE): Likewise.
9543 (C_DECL_VARIABLE_SIZE): Likewise.
9544 (C_MISSING_PROTOTYPE_WARNED): Likewise.
9545 (C_SET_EXP_ORIGINAL_CODE): Likewise.
9546 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9547 parenthesis.
9548 (C_DECL_ANTICIPATED): Likewise.
9549 (c_build_type_variant): Add parenthesis.
9550
9551 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9552
9553 * gcc.c (option_map): Remove --version.
9554 (process_command): Handle -fversion following the GNU Coding
9555 Standards. Partially addresses PR other/704.
9556
9557 2002-01-08 Graham Stott <grahams@redhat.com>
9558
9559 * combine.c (combine_instructions): Fix typo.
9560
9561 2002-01-08 Graham Stott <grahams@redhat.com>
9562
9563 * debug.h: Use "tree" and "rtx" throughout.
9564
9565 * debug.c: Likewise.
9566
9567 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
9568
9569 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9570 constant pool, use the pool's version of the symbol instead.
9571
9572 2002-01-07 Richard Henderson <rth@redhat.com>
9573
9574 * regrename.c (find_oldest_value_reg): Ignore the value chain if
9575 the original register was copied in a mode with a fewer number of
9576 hard registers than the desired mode.
9577 (copyprop_hardreg_forward_1): Likewise.
9578 (debug_value_data): Fix loop test.
9579 * toplev.c (parse_options_and_default_flags): Reenable
9580 -fcprop-registers at -O1.
9581
9582 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9583
9584 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9585 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9586
9587 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9588 predicates.
9589
9590 * config/rs6000/rs6000.md: Add altivec predicate patterns.
9591
9592 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9593
9594 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9595 (pa_output_function_prologue): Output local label at the beginning of
9596 the prologue when profiling.
9597 (hppa_profile_hook): Use the local label rather than the function label.
9598 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9599
9600 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9601
9602 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9603 (altivec_expand_unop_builtin): Fix thinko.
9604 (altivec_expand_binop_builtin): Same.
9605 (altivec_expand_ternop_builtin): Same.
9606 (altivec_expand_builtin): Same.
9607
9608 2002-01-07 Richard Henderson <rth@redhat.com>
9609
9610 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9611
9612 2002-01-07 Jason Merrill <jason@redhat.com>
9613
9614 * unwind-dw2.c (execute_cfa_program): Use < again.
9615
9616 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9617
9618 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9619
9620 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9621
9622 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9623 Don't allow -1 - x -> ~x simplifications in the first pass.
9624
9625 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9626
9627 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9628 arguments.
9629 (altivec_expand_binop_builtin): Same.
9630 (altivec_expand_unop_builtin): Same.
9631 (print_operand): Fix typo.
9632 (bdesc_1arg): Add vupk* variants.
9633
9634 * rs6000.h (rs6000_builtins): Add vupk* enums.
9635
9636 * rs6000.md: Add altivec_vupk* variants.
9637
9638 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
9639
9640 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9641 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9642 and last update dates.
9643
9644 2002-01-07 Janis Johnson <janis187@us.ibm.com>
9645
9646 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9647
9648 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
9649
9650 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9651 * config/avr/avr.h (CPP_SPEC): Likewise.
9652 (LINK_SPEC): Likewise.
9653 (CRT_BINUTILS_SPECS): Likewise.
9654 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9655 * doc/invoke.texi (AVR Options): Document them.
9656
9657 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
9658
9659 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9660 LABEL_NUSES.
9661
9662 2002-01-07 Graham Stott <grahams@redhat.com>
9663
9664 * config/i386/i386.h: Update copyright date.
9665 (HALF_PIC_PTR): Add parenthesis.
9666 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9667 (CONSTANT_ALIGNMENT): Add parenthesis.
9668 (DATA_ALIGNMENT): Likewise.
9669 (LOCAL_ALIGNMENT): Likewise.
9670 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9671 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9672 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9673 (HARD_REGNO_NREGS): Add paranethesis.
9674 (VALID_SSE_REG_MODE): Whitespace.
9675 (VALID_MMX_REG_MODE): Whitespace.
9676 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9677 (ix86_hard_regno_mode_ok): Add parenthesis.
9678 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9679 (RETURN_IN_MEMORY): Whitespace.
9680 (N_REG_CLASSES): Add parenthesis.
9681 (INTEGER_CLASS_P): Add parenthesis and wrap.
9682 (FLOAT_CLASS_P): Likewise.
9683 (SSE_CLASS_P): Likewise.
9684 (MMX_CLASS_P): Likewise.
9685 (MAYBE_INTEGER_CLASS_P): Likewise.
9686 (MAYBE_FLOAT_CLASS_P): Likewise.
9687 (MAYBE_SSE_CLASS_P): Likewise.
9688 (MAYBE_MMX_CLASS_P): Likewise.
9689 (Q_CLASS_P): Likewise.
9690 (GENERAL_REGNO_P): Uppercase macro parameter.
9691 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9692 (FP_REGNO_P): Likewise.
9693 (ANY_FP_REGNO_P): Uppercase macro parameter.
9694 (SSE_REGNO_P): Likewise.
9695 (SSE_REGNO): Likewise.
9696 (SSE_REG_P): Likewise.
9697 (SSE_FLOAT_MODE_P): Likewise.
9698 (MMX_REGNO_P): Likewise.
9699 (MMX_REG_P):Likewise.
9700 (STACK_REG_P): Likewise.
9701 (NON_STACK_REG_P): Likewise.
9702 (STACK_TOP_P): Likewise.
9703 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9704 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9705 (SECONDARY_MEMORY_NEEDED): Likewise.
9706 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9707 (MD_ASM_CLOBBERS): Whitespace and wrap.
9708 (MUST_PASS_IN_STACK): Whitespace and wrap.
9709 (RETURN_POPS_ARGS): Add parenthesis.
9710 (INIT_CUMULATIVE_ARGS): Likewise.
9711 (FUNCTION_ARG): Likewise.
9712 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9713 (SETUP_INCOMING_VARARGS): Likewise.
9714 (BUILD_VA_LIST_TYPE): Add parenthesis.
9715 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9716 parenthsis.
9717 (EXPAND_BUILTIN_VA_ARG): Likewise.
9718 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9719 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9720 (INITIAL_ELIMINATION_OFFSET): Likewise.
9721 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9722 (REGNO_OK_FOR_BASE_P): Likewise.
9723 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9724 (REGNO_OK_FOR_DIREG_P): Likewise.
9725 (REG_OK_FOR_INDEX_P): Whitespace.
9726 (REG_OK_FOR_BASE_P): Whitespace.
9727 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9728 parenthesis.
9729 (FIND_BASE_TERM): Fix typo.
9730 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9731 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9732 (SYMBOLIC_CONST; Whitespace.
9733 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9734 (ENCODE_SECTION_INFO): Whitespace.
9735 (FINALIZE_PIC): Remove do { ... } while (0).
9736 (PROMOTE_MODE): Wrap in do { ... } while (0).
9737 (CONST_COSTS): Whitespace.
9738 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9739 (REGISTER_MOVE_COST): Add parenthesis.
9740 (MEMORY_MOVE_COST): Likewise.
9741 (EXTRA_CC_MODES): Whitespace.
9742 (SELECT_CC_MODE): Add parenthesis and whitespace.
9743 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9744 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9745 (ASM_OUTPUT_LABEL): Add paramethesis.
9746 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9747 (ASM_OUTPUT_REG_POP): Likewise.
9748 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9749 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9750
9751 * config/i386/i386.c: Update copyright.
9752 (CHECK_STACK_LIMIT): Add parenthesis.
9753 (AT_BP): Uppercase macro parameter.
9754 (x86_64_int_parameter_registers): Constify.
9755 (x86_64_int_return_registers): Likewise.
9756 (ix86_compare_op0): Use rtx.
9757 (construct_container): Constify INTREG parameter.
9758 (function_arg): Use rtx.
9759
9760 * diagnostic.h: Update copyright date.
9761 (output_buffer_state): Add parenthesis.
9762 (output_buffer_format_args): Likewise.
9763
9764 * combine.c (combine_instructions): Replace XEXP (links, 0)
9765 with link.
9766
9767 2002-01-06 H.J. Lu <hjl@gnu.org>
9768
9769 * cfgcleanup.c (thread_jump): Fix 2 typos.
9770
9771 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
9772
9773 * config.gcc: Add support for --enable-altivec.
9774
9775 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9776
9777 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9778
9779 2002-01-06 Jakub Jelinek <jakub@redhat.com>
9780
9781 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9782 __objc_class_name_*.
9783
9784 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9785
9786 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9787
9788 2002-01-06 Richard Henderson <rth@redhat.com>
9789
9790 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9791 nop them out. Increment label reference count for REG_LABEL.
9792 (fill_slots_from_thread): Frob label reference count around
9793 delete_related_insns.
9794
9795 2002-01-05 Richard Henderson <rth@redhat.com>
9796
9797 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9798 jump threading.
9799
9800 2002-01-05 Richard Henderson <rth@redhat.com>
9801
9802 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9803 * integrate.c (output_inline_function): Likewise.
9804 * toplev.c (rest_of_compilation): Do it here instead. Move call
9805 to remove_unnecessary_notes after emitting abstract instance.
9806 Force an emitted nested function to have its parent emited as well.
9807 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9808 for null.
9809 (rtl_for_decl_location): Do not look at reload data structures
9810 before reload has run.
9811
9812 2002-01-05 Kazu Hirata <kazu@hxi.com>
9813
9814 * cse.c: Fix formatting.
9815 * dwarf2asm.c: Likewise.
9816 * dwarf2out.c: Likewise.
9817 * explow.c: Likewise.
9818 * expmed.c: Likewise.
9819 * function.c: Likewise.
9820 * gcov.c: Likewise.
9821 * gencheck.c: Likewise.
9822 * genrecog.c: Likewise.
9823 * ggc-common.c: Likewise.
9824 * ggc-page.c: Likewise.
9825 * global.c: Likewise.
9826
9827 2002-01-05 Kazu Hirata <kazu@hxi.com>
9828
9829 * combine.c: Fix formatting.
9830
9831 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9832
9833 PR middle-end/1557
9834 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9835
9836 2002-01-05 David Edelsohn <edelsohn@gnu.org>
9837
9838 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9839 as 1 for __powerpc64__ as well.
9840
9841 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9842
9843 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9844 return it.
9845
9846 2002-01-05 Daniel Berlin <dan@dberlin.org>
9847
9848 * lcm.c: Revert change, due to performance regression it causes on
9849 SPEC because it's slightly more conservative (sigh, I hate
9850 edge-based LCM).
9851
9852 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9853
9854 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9855
9856 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9857
9858 * doc/cppinternals.texi: Update.
9859
9860 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9861
9862 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9863 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9864 negatives.
9865 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9866 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9867 kludge for pre-october-14th mmix versions to handle new-found bug
9868 with PUSHJ/PUSHGO and the register stack.
9869 * config/mmix/mmix.h (struct machine_function): Rename member
9870 has_call_value_without_parameters to has_call_without_parameters.
9871 All referers changed.
9872 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9873 TARGET_MASK_BRANCH_PREDICT): New macros.
9874 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9875 -mno-reg-stack-fill-bug-workaround.
9876 * config/mmix/mmix.md ("call"): Set struct machine member
9877 has_call_without_parameters.
9878
9879 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9880
9881 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9882
9883 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9884
9885 * cfgcleanup.c: Include tm_p.h
9886 (mark_effect): Fix handling of hard register; fix handling of SET
9887
9888 2002-01-04 Kazu Hirata <kazu@hxi.com>
9889
9890 * config/h8300/h8300.md (anonymous patterns): Check that
9891 operands are registers before using REGNO on them.
9892
9893 2002-01-03 Roland McGrath <roland@frob.com>
9894
9895 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9896
9897 2002-01-04 Jakub Jelinek <jakub@redhat.com>
9898
9899 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9900 * c-common.h (genrtl_expr_stmt_value): Likewise.
9901 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9902 (expand_expr_stmt_value): Add maybe_last argument.
9903 Don't warn about statement with no effect if it is the last statement
9904 in expression statement.
9905 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9906 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9907 expand_expr_stmt_value.
9908 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9909 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9910 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9911 as maybe_last to expand_expr_stmt_value.
9912
9913 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9914
9915 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9916 be passed in, do not build it.
9917 (c_begin_if_stmt): New function.
9918 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9919 * c-common.h (c_expand_start_cond): Update prototype.
9920 (c_begin_if_stmt): Prototype new function.
9921 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9922 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9923 c_begin_while_stmt and c_finish_while_stmt_cond.
9924
9925 2002-01-04 William Cohen <wcohen@redhat.com>
9926
9927 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9928 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9929 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9930 * config/pa/som.h (ASM_FILE_START): Likewise.
9931
9932 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
9933
9934 * lcm.c: Include df.h.
9935 Add available_transfer_function prototype.
9936 (compute_available): Rework to use iterative dataflow framework.
9937 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9938 with bb_info in df.h
9939 (available_transfer_function): New function.
9940
9941 * Makefile.in (lcm.o): add df.h to dependencies.
9942
9943 2002-01-04 Richard Henderson <rth@redhat.com>
9944
9945 * config/alpha/alpha.c (some_operand): Accept HIGH.
9946 (input_operand): Likewise; accept simple references to globals.
9947 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9948 (alpha_const_double_ok_for_letter_p): Likewise.
9949 (alpha_extra_constraint): Likewise.
9950 (alpha_preferred_reload_class): Likewise. Do not force
9951 symbolic constants to memory.
9952 (alpha_legitimate_address_p): Accept simple references
9953 to small_symbolic_operand.
9954 (alpha_legitimize_address): New arg scratch. Be prepared to be
9955 called when no_new_pseudos. Emit simple symbolic references.
9956 Split integers into low, high, and rest.
9957 (alpha_expand_mov): Use alpha_legitimize_address.
9958 (some_small_symbolic_mem_operand): New.
9959 (split_small_symbolic_mem_operand): New.
9960 * config/alpha/alpha-protos.h: Update.
9961 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9962 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9963 (EXTRA_CONSTRAINT): Likewise.
9964 (PREFERRED_RELOAD_CLASS): Likewise.
9965 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9966 (PREDICATE_CODES): Update.
9967 * config/alpha/alpha.md: New post-reload splitters to convert
9968 simplfied symbolic operands to the form that references $29.
9969 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9970 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9971
9972 2002-01-03 Richard Henderson <rth@redhat.com>
9973
9974 * local-alloc.c (function_invariant_p): Update commentary.
9975
9976 2002-01-04 H.J. Lu <hjl@gnu.org>
9977
9978 * toplev.c (rest_of_compilation): Fix a typo when calling
9979 cleanup_cfg.
9980
9981 2002-01-03 Kazu Hirata <kazu@hxi.com>
9982
9983 * c-common.c: Fix formatting.
9984 * diagnostic.c: Likewise.
9985 * doloop.c: Likewise.
9986 * dwarf2out.c: Likewise.
9987
9988 2002-01-03 Kazu Hirata <kazu@hxi.com>
9989
9990 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9991 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9992
9993 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9994
9995 * cpperror.c: Update comments and copyright.
9996 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9997 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9998
9999 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10000
10001 * collect2.c (main): Use strcmp when testing for "-shared".
10002
10003 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10004
10005 * cppmacro.c: Don't include intl.h. Update comments.
10006 (new_number_token): Allocate enough buffer for 64-bit unsigned
10007 integers; update prototype.
10008 * cppmain.c: Update comments.
10009
10010 2002-01-03 William Cohen <wcohen@redhat.com>
10011
10012 * function.h (struct function): Add profile.
10013 (current_function_profile): New.
10014 doc/extend.texi: Update documentation.
10015 * final.c (final_start_function): Use current_function_profile
10016 instead of profile_flag.
10017 (profile_after_prologue): Likewise.
10018 * function.c (expand_function_start): Likewise.
10019 (expand_function_start): Likewise.
10020 * config/alpha/alpha.c (direct_call_operand):
10021 (alpha_does_function_need_gp): Likewise.
10022 (alpha_expand_prologue): Likewise.
10023 * config/arm/arm.c (arm_expand_prologue): Likewise.
10024 thumb_expand_prologue: Likewise.
10025 * config/d30v/d30v.c (d30v_stack_info): Likewise.
10026 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10027 (fr30_expand_prologue): Likewise.
10028 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10029 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10030 * config/i386/i386.h (FINALIZE_PIC): Likewise.
10031 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10032 * config/i960/i960.c (i960_output_function_prologue): Likewise.
10033 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10034 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10035 (m32r_expand_prologue): Likewise.
10036 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10037 (m88k_expand_prologue): Likewise.
10038 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10039 * config/mips/mips.c (compute_frame_size): Likewise.
10040 (mips_expand_prologue): Likewise.
10041 (mips_can_use_return_insn): Likewise.
10042 * config/pa/elf.h (ASM_FILE_START): Likewise.
10043 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10044 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10045 * config/pa/som.h (ASM_FILE_START): Likewise.
10046 * config/romp/romp.c (romp_using_r14): Likewise.
10047 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10048 (rs6000_stack_info): Likewise.
10049 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10050 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10051 * config/v850/v850.c (compute_register_save_size): Likewise.
10052
10053 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10054
10055 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10056 gen_lowpart_common fails, use gen_lowpart_SUBREG.
10057
10058 2002-01-03 Turly O'Connor <turly@apple.com>
10059
10060 * darwin.c (machopic_output_possible_stub_label): Don't generate
10061 stub routines for pseudo-stubs which we've just defined.
10062
10063 2002-01-03 Kazu Hirata <kazu@hxi.com>
10064
10065 * builtins.c: Fix formatting.
10066 * c-typeck.c: Likewise.
10067 * combine.c: Likewise.
10068 * expr.c: Likewise.
10069 * loop.c: Likewise.
10070
10071 2002-01-03 Andreas Schwab <schwab@suse.de>
10072
10073 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10074 and return true if _cpp_push_next_buffer pushed a new include
10075 file.
10076 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10077 _cpp_pop_file_buffer did not push a new file.
10078 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10079
10080 2002-01-02 Eric Christopher <echristo@redhat.com>
10081
10082 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10083 FIND_REG_INC_NOTE call. Update copyright.
10084 * loop.c (canonicalize_condition): Ditto.
10085 * reorg.c (delete_scheduled_jump): Ditto.
10086
10087 2002-01-03 Kazu Hirata <kazu@hxi.com>
10088
10089 * gcse.c: Fix formatting.
10090
10091 2002-01-03 Graham Stott <grahams@redhat.com>
10092
10093 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10094 forward defs for struct tags rtx_def, union_tree, rtvec_def
10095 also output corresponding typedefs for rtx, tree, and rtvec.
10096
10097 * system.h: Move forward defs for struct tags rtx_def, union_tree,
10098 rtvec_def along with corresponding typedefs for rtx, tree, and
10099 rtvec to config.h, hconfig.h, tconfig.h.
10100
10101 2002-01-03 Graham Stott <grahams@redhat.com>
10102
10103 * tree.h: Update copyright date.
10104 (IS_EXPR_CODE_CLASS): Add parenthesis.
10105 (TREE_SET_CODE): Add whitespace.
10106 (TREE_CHECK): Add parenthesis.
10107 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10108 (CST_OR_CONSTRUCTOR_CHECK):
10109 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10110 (TREE_SYMBOL_REFERENCED): Whitespace.
10111 (INT_CST_LT): Likewise.
10112 (INT_CST_LT_UNSIGNED): Likewise.
10113 (tree_real_cst): Unwrap comment.
10114 (tree_string): Likewise.
10115 (tree_complex): Likewise.
10116 (IDENTIFIER_POINTER): correct cast.
10117 (SAVE_EXPR_CONTEXT): Whitespace.
10118 (EXPR_WFL_FILENAME_NODE): Likewise.
10119 (EXPR_WFL_FILENAME): Remove parenthesis.
10120 (DECL_ORIGIN): Add parenthesis.
10121 (DECL_FROM_INLINE): Use NULL_TREE.
10122 (build_int_2): Whitespace.
10123 (build_type_variant): Add parenthesis.
10124
10125 * gcc/jcf-parse.c: Update copyright date.
10126 (yyparse): Constify resource_filename.
10127
10128 2002-01-03 Graham Stott <grahams@redhat.com>
10129
10130 * rtl.h: Update copyright date.
10131 (RTL_CHECK1): Wrap long line.
10132 (RTL_CHECK2): Likewise.
10133 (RTL_CHECKC1): Wrap long line and whitespace.
10134 (RTL_CHECKC2): Likewise.
10135 (XWINT): Whitespace.
10136 (XINT): Likewise.
10137 (XSTR): Likewise.
10138 (XEXP): Likewise.
10139 (XVEC): Likewise.
10140 (XMODE): Likewise.
10141 (XBITMAP): Likewise.
10142 (XTREE): Likewise.
10143 (XBBDEF): Likewise.
10144 (XTMPL): Likewise.
10145 (X0WINT): Likewise.
10146 (X0INT):Likewise.
10147 (X0UINT): Likewise.
10148 (X0STR): Likewise.
10149 (X0EXP): Likewise.
10150 (X0VEC): Likewise.
10151 (X0MODE): Likewise.
10152 (X0BITMAP): Likewise.
10153 (X0TREE): Likewise.
10154 (X0BBDEF): Likewise.
10155 (X0ADVFLAGS): Likewise.
10156 (X0CSELIB): Likewise.
10157 (X0MEMATTR): Likewise.
10158 (XCWINT): Likewise.
10159 (XCINT): Likewise.
10160 (XCUINT): Likewise.
10161 (XCSTR): Likewise.
10162 (XCEXP): Likewise.
10163 (XCVEC): Likewise.
10164 (XCMODE): Likewise.
10165 (XCBITMAP): Likewise.
10166 (XCTREE): Likewise.
10167 (XCBBDEF): Likewise.
10168 (XCADVFLAGS): Likewise.
10169 (XCCSELIB): Likewise.
10170 (XC2EXP): Likewise.
10171 (INSN_UID): Likewise.
10172 (PREV_INSN): Likewise.
10173 (PATTERN): Likewise.
10174 (INSN_CODE): Likewise.
10175 (PUT_REG_NOTE_KIND): Likewise.
10176 (CODE_LABEL_NUMBER): Likewise.
10177 (NOTE_SOURCE_FILE): Likewise.
10178 (NOTE_BLOCK): Likewise.
10179 (NOTE_EH_HANDLER): Likewise.
10180 (NOTE_RANGE_INFO): Likewise.
10181 (NOTE_LIVE_INFO): Likewise.
10182 (NOTE_BASIC_BLOCK): Likewise.
10183 (NOTE_EXPECTED_VALUE): Likewise.
10184 (NOTE_LINE_NUMBER): Likewise.
10185 (LABEL_NAME): Likewise.
10186 (LABEL_NUSES): Likewise.
10187 (LABEL_ALTERNATE_NAME): Likewise.
10188 (ADDRESSOF_DECL): Likewise.
10189 (JUMP_LABEL): Likewise.
10190 (LABEL_NEXTREF): Likewise.
10191 (REGNO): Likewise.
10192 (ORIGINAL_REGNO: Likewise.
10193 (HARD_REGISTER_NUM_P): Add parenthesis.
10194 (SUBREG_REG): Whitespace.
10195 (SUBREG_BYTE): Likewise.
10196 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10197 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10198 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10199 (ASM_OPERANDS_INPUT_VEC): Likewise.
10200 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10201 (ASM_OPERANDS_INPUT): Likewise.
10202 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10203 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10204 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10205 (ASM_OPERANDS_INPUT_MODE): Likewise.
10206 (ASM_OPERANDS_SOURCE_FILE): Likewise.
10207 (ASM_OPERANDS_SOURCE_LINE): Likewise.
10208 (MEM_SET_IN_STRUCT_P): Minor reformat.
10209 (TRAP_CONDITION): Whitespace.
10210 (TRAP_CODE): Likewise.
10211 (COND_EXEC_TEST): Likewise.
10212 (COND_EXEC_CODE): Likewise.
10213 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10214 (PHI_NODE_P): Add parenthesis.
10215 (plus_constant): Whitespace and add parenthesis.
10216
10217 2002-01-03 Kazu Hirata <kazu@hxi.com>
10218
10219 * config/avr/avr.c: Fix comment typos.
10220 * config/c4x/c4x.md: Likewise.
10221 * config/dsp16xx/dsp16xx.h: Likewise.
10222 * config/dsp16xx/dsp16xx.md: Likewise.
10223 * config/i386/i386.md: Likewise.
10224 * config/ia64/ia64.c: Likewise.
10225 * config/m32r/m32r.h: Likewise.
10226 * config/m68hc11/m68hc11.md: Likewise.
10227 * config/mmix/mmix.c: Likewise.
10228 * config/mn10200/mn10200.c: Likewise.
10229 * config/romp/romp.c: Likewise.
10230 * config/sh/sh.c: Likewise.
10231 * config/stormy16/stormy16.c: Likewise.
10232 * config/stormy16/stormy16.h: Likewise.
10233 * config/stormy16/stormy16.md: Likewise.
10234
10235 2002-01-03 Graham Stott <grahams@redhat.com>
10236
10237 * loop.h: Update copyright date.
10238 (LOOP_MOVABLES): Fix typo.
10239 (LOOP_REGS): Likewise.
10240 (LOOP_IVS): Likewise.
10241
10242 2002-01-03 Graham Stott <grahams@redhat.com>
10243
10244 * cppinit.c: Update copyright date.
10245 Don't include output.h
10246 * Makefile.in: Update copyright date.
10247 Update dependency.
10248
10249 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
10250
10251 PR c/5226
10252 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10253 (-pthread) Add to RS/6000 options.
10254
10255 2002-01-02 Kazu Hirata <kazu@hxi.com>
10256
10257 * except.c: Fix comment typos.
10258 * loop.c: Likewise.
10259 * varasm.c: Likewise.
10260 * doc/tm.texi: Fix a typo.
10261
10262 2002-01-02 Jakub Jelinek <jakub@redhat.com>
10263
10264 * c-typeck.c (output_init_element): Allow initializing static storage
10265 duration objects with compound literals.
10266
10267 2002-01-02 Richard Henderson <rth@redhat.com>
10268
10269 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10270 after abusing it.
10271
10272 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10273
10274 * gcc.c (default_compilers): Const-ify.
10275 * mips-tdump.c (stab_names): Likewise.
10276 * mips-tfile.c (map_coff_types, map_coff_storage,
10277 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10278 pseudo_ops_t, pseudo_ops): Likewise.
10279 * protoize.c (default_include): Likewise
10280
10281 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10282 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10283 Add array size in declaration.
10284 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10285 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10286 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10287 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10288 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10289 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10290 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10291 emtens, make_nan): Const-ify.
10292 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10293 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10294
10295 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
10296
10297 * config.gcc (ia64-*-*): Set extra_headers.
10298 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
10299 * config/alpha/t-osf: Remove.
10300 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10301
10302 2002-01-02 David Edelsohn <edelsohn@gnu.org>
10303
10304 * config/rs6000/t-aix43: Revert previous change.
10305
10306 2002-01-02 Jason Merrill <jason@redhat.com>
10307
10308 * c-decl.c (c_expand_body): Call outlining_inline_function when
10309 emitting an inline function out of line.
10310
10311 2002-01-02 Richard Henderson <rth@redhat.com>
10312
10313 * dwarf2out.c (limbo_die_node): Add created_for member.
10314 (new_die): New argument created_for. Update all callers.
10315 (mark_limbo_die_list): New.
10316 (dwarf2out_init): Register limbo_die_list as a root.
10317 (dwarf2out_finish): Force insert limbo dies into their function
10318 context.
10319
10320 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
10321
10322 PR c++/5089
10323 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10324
10325 2002-01-02 Kazu Hirata <kazu@hxi.com>
10326
10327 * config/h8300/fixunssfsi.c: Update copyright.
10328 Fix comment typos.
10329 Fix formatting.
10330 * config/h8300/h8300.c: Update copyright.
10331 Eliminate warnings.
10332
10333 2002-01-02 Kazu Hirata <kazu@hxi.com>
10334
10335 * config/romp/romp.c: Fix comment formatting.
10336 * config/romp/romp.h: Likewise.
10337 * config/romp/romp.md: Likewise.
10338 * config/s390/s390.c: Likewise.
10339 * config/stormy16/stormy16.c: Likewise.
10340 * config/stormy16/stormy16.h: Likewise.
10341
10342 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
10343
10344 * c-common.h (genrtl_expr_stmt_value): Declare.
10345 * c-semantics.c (genrtl_goto_stmt): Redirect to...
10346 (genrtl_goto_stmt_value): ... this new function. Pass new
10347 argument down to expand_expr_stmt_value, taking
10348 TREE_ADDRESSABLE into account.
10349 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10350 STMT_EXPR as addressable, i.e., one whose result we want.
10351 * expr.c (expand_expr): Don't save expression statement value
10352 of labeled_blocks or loop_exprs.
10353 * stmt.c (expand_expr_stmt): Redirect to...
10354 (expand_expr_stmt_value): ... this new function. Use new
10355 argument to tell whether to save expression value.
10356 (expand_end_stmt_expr): Reset last_expr_type and
10357 last_expr_value if we don't have either.
10358 * tree-inline.c (declare_return_variable): Mark its use
10359 statement as addressable.
10360 * tree.h: Document new use of TREE_ADDRESSABLE.
10361 (expand_expr_stmt_value): Declare.
10362
10363 2002-01-01 Tom Rix <trix@redhat.com>
10364
10365 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10366 rs6000_emit_allocate_stack.
10367
10368 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
10369
10370 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10371 ${srcdir}/ginclude/ to every entry in extra_headers.
10372 * configure: Regenerate.
10373 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10374 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10375 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10376 * ginclude/proto.h: Rename to config/convex/proto.h.
10377
10378 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10379
10380 * attribs.c (handle_vector_size_attribute): Use host_integerp
10381 and tree_int_cst; remove warnings.
10382 * caller-save.c (insert_restore): Add cast to get rid of warning.
10383 (insert_save): Likewise.
10384 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10385 * regmove.c (find_matches): Add temporary var to kill a warning.
10386
10387 2002-01-01 Douglas B Rupp <rupp@gnat.com>
10388
10389 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10390 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10391 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10392 (vms-dwarf2eh.o): Add Makefile rule.
10393 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10394 * config/alpha/vms-dwarf2eh.asm: New file.
10395
10396 * gcc.c (delete_if_ordinary): Delete all versions.
10397
10398 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10399
10400 * config/mmix/mmix.md: Update FIXME to not mention
10401 define_constants.
10402 (MMIX_rJ_REGNUM): New define_constants constant.
10403 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10404 "*movdicc_real"): Adjust contraints formatting.
10405 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10406 for branch prediction.
10407 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10408 output template.
10409 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10410 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10411 number. Delete related FIXMEs.
10412 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10413 from number to MMIX_rJ_REGNUM.
10414 (TARGET_MASK_BRANCH_PREDICT): New.
10415 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10416 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
10417 value. Add -mbranch-predict and -mno-branch-predict.
10418 (TARGET_VERSION): Drop date.
10419 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10420 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10421 for finding out global symbols.
10422 (mmix_asm_output_labelref): Revert condition for global symbol.
10423 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10424 (mmix_print_operand_punct_valid_p): A '+' is valid.
10425
10426 See ChangeLog.6 for earlier changes.