David S. Miller
2acf0fa92e
expmed.c (init_expmed): Remove duplicate init of 'reg'.
...
2002-06-13 David S. Miller <davem@redhat.com>
* expmed.c (init_expmed): Remove duplicate init of 'reg'.
From-SVN: r54580
2002-06-13 02:37:19 -07:00
GCC Administrator
e4c3fb49fd
Daily bump.
...
From-SVN: r54578
2002-06-13 07:17:30 +00:00
Neil Booth
974c43f1e3
cpplib.c (end_directive): Handle line skipping.
...
* cpplib.c (end_directive): Handle line skipping. Only remove
the rest of the line if the directive was valid.
* cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
expanding a traditional macro.
* cpptrad.c (recursive_macro): New.
(read_logical_line_trad): Handle skipping.
(scan_out_logical_line): Continue after a successful directive.
Don't expand macros whilst skipping, or if recursing.
(_cpp_create_trad_definition): scan_out_logical_line now sets
the output current position.
From-SVN: r54573
2002-06-13 06:25:28 +00:00
Stan Shebs
e4dadd2ad0
mpw-config.in: Remove file, no longer used.
...
* mpw-config.in: Remove file, no longer used.
* mpw-make.sed: Ditto.
From-SVN: r54572
2002-06-13 04:58:57 +00:00
Eric Christopher
12bf26b660
2002-06-12 Eric Christopher <echristo@redhat.com>
...
From Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
comment.
(ISA_HAS_MADD_MSUB): Ditto.
(ISA_HAS_NMADD_NMSUB): Ditto.
From-SVN: r54569
2002-06-12 23:26:44 +00:00
Eric Christopher
74826b0f9f
Missed a file from previous check-in.
...
From-SVN: r54568
2002-06-12 23:24:04 +00:00
Eric Christopher
be95b8a529
config.gcc: Consolidate little endian handling and little/big endian targets.
...
2002-06-12 Eric Christopher <echristo@redhat.com>
* config.gcc: Consolidate little endian handling and
little/big endian targets.
* config/mips/elfl.h: Remove file.
* config/mips/elfl64.h: Ditto.
* config/mips/ecoffl.h: Ditto.
* config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
From-SVN: r54567
2002-06-12 23:12:25 +00:00
Geoffrey Keating
e03856fe95
gengtype.h (xvasprintf): New prototype.
...
* gengtype.h (xvasprintf): New prototype.
(xasprintf): New prototype.
(struct outf): New.
(get_output_file): Return an outf_p.
(header_file): Is now an outf_p.
(base_files): Now are outf_p.
(oprintf): New.
* gengtype.c: Replace all output FILE * with outf_p; use oprintf
rather than stdio operations. Use xasprintf in a few places,
when appropriate.
(xvasprintf): New.
(xasprintf): New.
(struct filemap): Delete.
(files): Delete.
(output_files): New.
(oprintf): New.
(create_file): Create an outf_p. Add parameter to indicate output
file name, change all callers.
(open_base_files): Create gtype-desc.c here.
(get_output_file_with_visibility): Rewrite.
(get_output_file_name): Just look at 'name' field in struct outf.
(close_output_files): Rewrite.
From-SVN: r54566
2002-06-12 22:57:45 +00:00
Phil Edwards
83144cfcfa
Makefile.am: Add new files.
...
2002-06-12 Phil Edwards <pme@gcc.gnu.org>
* include/Makefile.am: Add new files.
* include/Makefile.in: Regenerate.
* include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_vector.h: Clean up, reformat. Move definitions...
* include/bits/deque.tcc, include/bits/list.tcc,
include/bits/vector.tcc: ...to here. New files.
* include/ext/stl_hashtable.h: Inclide correct full headers.
* include/std/std_deque.h: Include .tcc files for now.
* include/std/std_list.h: Likewise.
* include/std/std_vector.h: Likewise.
From-SVN: r54562
2002-06-12 22:07:53 +00:00
Jason Thorpe
ec01703c82
* config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
...
(MASK_G_FLOAT): Define.
(TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
(TARGET_SWITCHES): Likewise.
(TARGET_DEFAULT): Likewise.
From-SVN: r54561
2002-06-12 18:17:53 +00:00
Daniel Jacobowitz
8b0397a68a
elf.h (DWARF2_DEBUG_INFO): Define.
...
* config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
* config/mips/mips.c (mips_output_filename): Don't print a
".file" directive if we are using DWARF-2.
(mips_output_function_prologue): Do not emit source file
name for TARGET_GAS.
From-SVN: r54560
2002-06-12 11:07:32 -07:00
Tom Tromey
6e32abbfc2
re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)
...
* java/io/natFilePosix.cc (getCanonicalPath): Treat "" like ".".
Fixes PR libgcj/6652.
From-SVN: r54558
2002-06-12 17:01:02 +00:00
Kriang Lerdsuwanakij
d65cb654ad
* g++.dg/template/typename2.C: Update error message.
...
From-SVN: r54553
2002-06-12 15:36:55 +00:00
Jan Hubicka
495333a652
i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to decide whether emit the short opcode.
...
* i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
decide whether emit the short opcode.
* i386.h (x86_shift1): Declare.
(TARGET_SHIFT1): New macro.
* i386.c (x86_shift1): New global variable.
* toplev.c (rest_of_compilation): Call find_basic_block pre-loop unconditionally;
make loop to rebuild CFG; kill unnecesary find_basic_block calls;
kill compute_bb_for_insn call.
* cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
* haifa-sched.c (sched_init): Likewise.
* ssa-ccp.c (ssa_const_prop): Likewise.
* ssa-dce.c (ssa_eliminate_dead_code): Likewise.
From-SVN: r54552
2002-06-12 14:51:09 +00:00
Daniel Jacobowitz
8ddfd7e562
Makefile.am: Add FLAGS_TO_PASS.
...
* Makefile.am: Add FLAGS_TO_PASS.
* Makefile.in: Regenerated.
From-SVN: r54551
2002-06-12 11:29:14 +00:00
GCC Administrator
0774918c95
Daily bump.
...
From-SVN: r54550
2002-06-12 07:18:32 +00:00
David S. Miller
d11cea133f
emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if active_insn_p.
...
2002-06-11 David S. Miller <davem@redhat.com>
* emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
active_insn_p.
From-SVN: r54545
2002-06-11 23:14:03 -07:00
Richard Henderson
676997cfd2
c-common.c (builtin_define_type_max): New.
...
* c-common.c (builtin_define_type_max): New.
(cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
__INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
From Joseph S. Myers:
* glimits.h: Rewrite to expect the double underscore definitions
from the compiler.
* config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
__INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
From-SVN: r54544
2002-06-11 20:06:30 -07:00
Richard Henderson
116b7a5ea8
alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
...
* config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
(ALPHA_BUILTIN_SET_THREAD_POINTER): New.
(code_for_builtns): Update.
(alpha_init_builtins): Add __builtin_thread_pointer and
__builtin_set_thread_pointer.
(alpha_expand_builtin): Handle void builtins.
* doc/extend.texi (Alpha Built-in Functions): Update.
From-SVN: r54543
2002-06-11 19:57:02 -07:00
Hans-Peter Nilsson
0cec6af13c
re PR target/6997 (CRIS: compare result incorrect -- sleu pattern in cris.md at fault)
...
PR target/6997
* config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
From-SVN: r54542
2002-06-12 02:04:52 +00:00
Hans-Peter Nilsson
6debb0064e
* gcc.c-torture/execute/20020611-1.c: New test.
...
From-SVN: r54541
2002-06-12 01:59:00 +00:00
Zack Weinberg
1c0ca89ddb
config.gcc: Make the name of the extra-modes file adjustable by target stanzas.
...
* config.gcc: Make the name of the extra-modes file adjustable
by target stanzas.
(s390x, strongarm, xscale stanzas): Use this facility.
* configure.in: Update to match.
* configure: Regenerate.
From-SVN: r54540
2002-06-12 01:36:13 +00:00
Aldy Hernandez
5dc8d53616
rs6000.c (rs6000_emit_minmax): Treat unsigned max/mins as unsigned GE compares.
...
2002-06-11 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
max/mins as unsigned GE compares.
From-SVN: r54539
2002-06-12 00:27:03 +00:00
Jason Thorpe
169274cd2e
config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
...
* config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
* config/vax/bsd.h: New file.
* config/vax/netbsd.h: Add missing notice.
(CPP_PREDEFINES): Remove.
(TARGET_OS_CPP_BUILTINS): Define.
(CPP_SPEC): Use NETBSD_CPP_SPEC.
* config/vax/openbsd.h: Update copyright years.
(CPP_PREDEFINES): Remove.
(TARGET_OS_CPP_BUILTINS): Define.
* config/vax/ultrix.h: Likewise.
* config/vax/vaxv.h: Likewise.
* config/vax/vms.h: Likewise.
* config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
(CPP_PREDEFINES, CPP_SPEC): Remove.
From-SVN: r54538
2002-06-12 00:02:07 +00:00
Jan Hubicka
2f41793e07
* i386.md (addqi_1_slp, subqi_1_slp
...
(andqi_ext0, testqi_ext0): Remove unnecesary check.
(addhi*, addqi*): Simplify "dec" condition.
(testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
(and, or, xor to QImode splitters): New.
(iorqi_ext*): New.
(xorqi_ext_0): New.
(xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
(andqi_ext_1_rex64): New.
(ashrqi*_slp): New.
(ashlqi*_slp): New.
(lshlqi*_slp): New.
(rotrqi3*_slp): New.
(rotlqi3*_slp): New.
From-SVN: r54537
2002-06-11 23:57:10 +00:00
Kaveh R. Ghazi
c8eb2bc070
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
...
From-SVN: r54536
2002-06-11 23:53:11 +00:00
Jeff Law
c6a3fcf029
emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the last insn created by the splitter.
...
* emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
last insn created by the splitter.
From-SVN: r54535
2002-06-11 17:51:24 -06:00
Geoffrey Keating
4c4eb375f3
config.gcc (powerpc*-*-*, [...]): Don't bother including softfloat.h.
...
* config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
softfloat.h.
* config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
(CPP_ENDIAN_LITTLE_SPEC): Delete.
* config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
* config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
__LONG_DOUBLE_128__ setting, _CALL_* setting.
(CPP_DEFAULT_SPEC): Delete.
(CPP_FLOAT_DEFAULT_SPEC): Delete.
(CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
(CPP_SYSV_DEFAULT_SPEC): Delete.
(CPP_ENDIAN_BIG_SPEC): Delete.
(CPP_ENDIAN_LITTLE_SPEC): Delete.
(CPP_ENDIAN_SPEC): Delete.
(CPP_SPEC): Don't include cpp_endian, cpp_cpu.
(SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
cpp_longdouble_default.
* config/rs6000/softfloat.h: Delete.
* config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
(EXTRA_SPECS): Delete cpp_cpu.
(TARGET_CPU_CPP_BUILTINS): New.
* config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
prototype.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
* config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
* config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
* config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
(CPLUSPLUS_CPP_SPEC): Likewise.
(CPP_CPU_SPEC): Delete.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
(CPLUSPLUS_CPP_SPEC): Likewise.
(CPP_CPU_SPEC): Delete.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.
* config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
(CPP_DEFAULT_SPEC): Delete.
From-SVN: r54534
2002-06-11 23:14:47 +00:00
Geoffrey Keating
fc5c400a9a
* doc/gty.texi: Small updates.
...
From-SVN: r54533
2002-06-11 23:13:20 +00:00
Gabriel Dos Reis
13f0d49cdf
objc-act.c (warn_with_ivar): Adjust calls to diagnostic_count_error.
...
* objc/objc-act.c (warn_with_ivar): Adjust calls to
diagnostic_count_error.
(warn_with_method): Likewise.
* diagnostic.h (warnings_are_errors_message): New field of
diagnostic_context.
(diagnostic_count_error): Rename to
diagnostic_count_diagnostic to
match semantics.
* diagnostic.c: Adjust calls to diagnostic_count_error through
out.
(diagnostic_count_diagnostic): Make aware of other kinds of
diagnostics.
(diagnostic_initialize): Initialize
warnings_are_errors_message field.
f/
2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
* bad.c (ffebad_start_): Adjust calls to
diagnostic_count_error.
From-SVN: r54532
2002-06-11 23:11:34 +00:00
Jeff Law
0db79a6b35
caller-save.c (init_caller_save): Move creation of SAVEINSN and RESTINSN into into the scope of the sequence.
...
* caller-save.c (init_caller_save): Move creation of SAVEINSN
and RESTINSN into into the scope of the sequence.
From-SVN: r54530
2002-06-11 17:04:15 -06:00
Tom Tromey
0797e4720f
For PR java/6520:
...
* fold-const.c (fold_convert): Don't modify existing tree's type.
From-SVN: r54529
2002-06-11 22:36:53 +00:00
Geoffrey Keating
f288d4aa2c
* config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
...
From-SVN: r54528
2002-06-11 22:24:49 +00:00
Richard Henderson
d27bab4c02
* caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
...
From-SVN: r54527
2002-06-11 15:16:51 -07:00
Richard Henderson
bc2a8f0842
defaults.h (EH_FRAME_SECTION_NAME): Don't define if DWARF2_UNWIND_INFO is false.
...
* defaults.h (EH_FRAME_SECTION_NAME): Don't define if
DWARF2_UNWIND_INFO is false.
From-SVN: r54526
2002-06-11 14:34:30 -07:00
Bob Wilson
b217ec1ba2
* config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
...
From-SVN: r54525
2002-06-11 20:56:48 +00:00
Jeff Law
47eb2ca8f8
mips.c (mips_expand_prologue): Use emit_jump_insn for trivial RETURN insns.
...
* mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
RETURN insns.
From-SVN: r54524
2002-06-11 14:25:27 -06:00
Ulrich Weigand
11819f8028
s390.c (emit_prologue): gen_store_multiple returns an insn now, not a pattern.
...
* config/s390/s390.c (emit_prologue): gen_store_multiple
returns an insn now, not a pattern.
From-SVN: r54523
2002-06-11 20:15:31 +00:00
Rainer Orth
c2727579c1
Makefile.in (gccinstall.dvi): Pass absolute pathnames to $(TEXI2DVI) -o.
...
* Makefile.in (gccinstall.dvi): Pass absolute pathnames to
$(TEXI2DVI) -o.
From-SVN: r54522
2002-06-11 20:06:04 +00:00
Jan Hubicka
285464d088
i386.c (x86_promote_QImode): Set for Athlon
...
* i386.c (x86_promote_QImode): Set for Athlon
(x86_fast_prefix): New global variable.
(x86_arch_always_fancy_math_387): Fix formating.
* i386.h (x86_fast_prefix): Declare
(TARGET_FAST_PREFIX): define.
* i386.md (and to strict_low_part, HI to SI
promoting splitter): Use new macro.
* i386.h (RTX_COSTS): float_extend is not for free for SSE.
From-SVN: r54521
2002-06-11 19:58:12 +00:00
J.T. Conklin
f62bef4832
configure.target: Set os_include_dir to config/os/qnx/qnx6.1 under *-qnx6.[12]*.
...
2002-06-11 J.T. Conklin <jtc@acorntoolworks.com>
Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Set os_include_dir to config/os/qnx/qnx6.1
under *-qnx6.[12]*.
* configure.in: Add support for *-qnx6.[12]*.
* configure: Regenerate.
* config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
New directories.
* config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
ctype_noninline.h, os_defines.h: New files.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r54518
2002-06-11 17:54:27 +00:00
Tom Tromey
419831367f
Class.h (Class::desiredAssertionStatus): Declare.
...
* java/lang/Class.h (Class::desiredAssertionStatus): Declare.
(Class::getPackagePortion): Likewise.
* java/lang/Class.java (desiredAssertionStatus): New method from
Classpath.
(getPackagePortion): Likewise.
* java/lang/VMClassLoader.java (defaultAssertionStatus,
packageAssertionStatus, classAssertionStatus): New methods from
Classpath.
* java/lang/ClassLoader.java (defaultAssertionStatus,
systemPackageAssertionStatus, packageAssertionStatus,
systemClassAssertionStatus, classAssertionStatus): New fields from
Classpath.
(setDefaultAssertionStatus, setPackageAssertionStatus,
setClassAssertionStatus, clearAssertionStatus): New methods from
Classpath.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added AssertionError.java.
* java/lang/AssertionError.java: New from Classpath.
From-SVN: r54517
2002-06-11 17:33:22 +00:00
Tom Tromey
c6226a7e2a
jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.
...
* jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.
* parse-scan.y (statement_without_trailing_substatement): Added
assert_statement.
(assert_statement): New rule.
* java-tree.h (struct lang_type) [assertions]: New field.
(TYPE_USES_ASSERTIONS): New macro.
(CLASS_USES_ASSERTIONS): Likewise.
(FIELD_SYNTHETIC): New define.
* lex.c (java_lval;): Added ASSERT_TK.
* parse.y (ASSERT_TK): Added.
(statement_without_trailing_substatement): Added assert_statement.
(assert_statement): New rule.
(build_assertion): New function.
(maybe_generate_pre_expand_clinit): Create and initialize
$assertionsDisabled.
(lookup_package_type): Removed decl.
* keyword.h: Rebuilt.
* keyword.gperf (assert): New token.
From-SVN: r54516
2002-06-11 17:31:11 +00:00
Bob Wilson
9da754bd5e
static11.C: Add xtensa-*-elf* to the list of targets to skip.
...
* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
list of targets to skip.
From-SVN: r54514
2002-06-11 16:59:00 +00:00
Jeff Law
603b4b9210
* loop.c (loop_regs_scan): Avoid useless generation of REG objects.
...
From-SVN: r54513
2002-06-11 10:49:14 -06:00
Zack Weinberg
1bb1f121fe
Makefile.in (distclean): Delete junk left in testsuite directory, too.
...
* Makefile.in (distclean): Delete junk left in testsuite
directory, too.
From-SVN: r54512
2002-06-11 16:42:36 +00:00
Jeff Law
88c6578603
mips.c (function_arg_advance): gen_ashldi3 returns an INSN now, not the pattern.
...
* mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
not the pattern. So extract the pattern from the insn.
From-SVN: r54511
2002-06-11 10:14:54 -06:00
Akim Demaille
e35b68b01a
2002-06-10 Akim Demaille <akim@epita.fr>
...
* parse.y (interface_type_list, class_member_declaration)
(unary_expression_not_plus_minus): Remove duplicate %type.
Whitespace changes.
From-SVN: r54510
2002-06-11 15:32:44 +00:00
Jeff Law
882c7223c9
* mips.c (embedded_pic_fnaddr_reg): Fix typo.
...
From-SVN: r54509
2002-06-11 09:04:39 -06:00
Tom Tromey
ac57655a39
* Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H.
...
From-SVN: r54508
2002-06-11 14:58:09 +00:00