Alan Modra
957e9e48fa
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
...
From-SVN: r56113
2002-08-08 09:27:10 +09:30
Jakub Jelinek
daf0604921
stor-layout.c (place_union_field): For bitfields if PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN...
...
* stor-layout.c (place_union_field): For bitfields if
PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
TYPE_USER_ALIGN.
* gcc.dg/bitfld-3.c: New test.
From-SVN: r56112
2002-08-08 01:20:35 +02:00
John David Anglin
043d39a683
* pa.c (struct deferred_plabel): Constify name field.
...
From-SVN: r56110
2002-08-07 22:03:58 +00:00
Neil Booth
34bb92e3f0
* cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
...
From-SVN: r56109
2002-08-07 21:47:47 +00:00
John David Anglin
3ec5d64d3d
configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and local_prefix are the same.
...
* configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
local_prefix are the same.
* configure: Rebuilt.
From-SVN: r56108
2002-08-07 21:38:47 +00:00
Jakub Jelinek
ad9335eb67
stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to type_align when PCC_BITFIELD_TYPE_MATTERS.
...
* stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
(place_field): Likewise.
* config/i386/i386.c (x86_field_alignment): Don't check
DECL_USER_ALIGN here.
* config/rs6000/rs6000.c (rs6000_field_alignment): New.
* config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
prototype.
* config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
* config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
* config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
* config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
* config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
* doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
* gcc.dg/i386-bitfield1.c: New test.
* g++.dg/abi/bitfield3.C: Update.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r56107
2002-08-07 23:05:16 +02:00
DJ Delorie
65b91091db
regex.c (re_error_msgid): Just use a simple array of strings.
...
* regex.c (re_error_msgid): Just use a simple array of strings.
(re_compile_pattern): Compensate.
(re_comp): Likewise.
(re_comp): Likewise.
(regerror): Likewise.
From-SVN: r56106
2002-08-07 16:57:22 -04:00
Neil Booth
0b6f2917cf
Makefile.in (c-opts.o, [...]): Update.
...
* Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
* c-common.c: Don't include tree-inline.h.
(c_common_init_options, c_common_post_options): Move to c-opts.c.
* c-common.h (c_common_decode_option): New.
* c-decl.c (c_decode_option): Remove.
* c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
* c-opts.c: New file.
* c-tree.h (c_decode_option): Remove.
* doc/passes.texi: Update.
* objc/objc-act.c (objc_decode_option): Remove.
* objc/objc-act.h (objc_decode_option): Remove.
* objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
c_common_decode_option.
cp:
* Make-lang.in (CXX_C_OBJS): Update.
* cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
* cp-tree.h (cxx_decode_option): Remove.
* decl2.c (compare_options, lang_f_options, unsupported_options,
cxx_decode_option): Remove.
testsuite:
* objc.dg/const-str-2.m: Update.
* gcc.dg/cpp/c++98.c: Change to C extension.
* gcc.dg/cpp/c++98-pedantic.c: Similarly.
* gcc.dg/cpp/cpp.exp: Process .C extensions too.
From-SVN: r56105
2002-08-07 18:32:13 +00:00
Chris Demetriou
e49ec17d55
mips.md (sunlt_sf, [...]): Remove dependency on TARGET_DOUBLE_FLOAT.
...
2002-08-07 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
dependency on TARGET_DOUBLE_FLOAT.
From-SVN: r56102
2002-08-07 10:42:56 -07:00
Stephen Clarke
ac1ca4515f
lib1funcs.asm (GCC_shcompact_incoming_args): Don't overwrite callee-save registers.
...
* config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
overwrite callee-save registers. Fix comment.
From-SVN: r56101
2002-08-07 17:53:25 +01:00
John David Anglin
a98b7b289a
Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
...
* libsupc++/Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
* libsupc++/Makefile.in: Regenerate.
From-SVN: r56099
2002-08-07 15:56:11 +00:00
GCC Administrator
7971aec773
Daily bump.
...
From-SVN: r56098
2002-08-07 07:17:51 +00:00
Bryce McKinlay
6ee4402c61
ClassLoader.java (getSystemClassLoader, [...]): Add javadoc from classpath.
...
2002-08-07 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/lang/ClassLoader.java (getSystemClassLoader, findClass,
defineClass, setSigners, getSystemResource, getSystemResourceAsStream,
findResource, getResources, findResources): Add javadoc from classpath.
(getSystemResources): Implemented.
From-SVN: r56092
2002-08-07 06:28:24 +01:00
Chris Demetriou
af34e51e35
mips.c (override_options): Set MASK_BRANCHLIKELY in target_flags based on ISA...
...
2002-08-06 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
in target_flags based on ISA, if it was not set on the command
line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
support Branch Likely instructions.
* config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
(TARGET_BRANCHLIKELY): Likewise.
(TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
(GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
ISA_HAS_BRANCHLIKELY.
(ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
* doc/invoke.texi: Document new MIPS -mbranch-likely and
-mno-branch-likely options.
From-SVN: r56088
2002-08-06 19:57:53 -07:00
Kaveh R. Ghazi
f538618eff
* ip2k.c (ip2k_set_compare): Add missing iteration variable.
...
From-SVN: r56086
2002-08-07 01:58:49 +00:00
Kaveh R. Ghazi
2631af958d
Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not $(GCONFIG_H).
...
* Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
$(GCONFIG_H).
From-SVN: r56085
2002-08-07 01:57:38 +00:00
Aldy Hernandez
1ae0ccb63f
c-decl.c (duplicate_decls): Error out for incompatible TLS declarations.
...
* c-decl.c (duplicate_decls): Error out for incompatible TLS
declarations.
* testsuite/gcc.dg/tls/diag-3.c: New.
From-SVN: r56084
2002-08-07 01:25:01 +00:00
Jason Merrill
f1a044c7da
c-common.c (c_expand_expr): If the last expression is a VAR_DECL with RTL that matches the target...
...
* c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
a VAR_DECL with RTL that matches the target, just return that RTL.
From-SVN: r56083
2002-08-06 20:52:24 -04:00
Gabriel Dos Reis
1e14c7f083
typeck.c (build_x_unary_op): Handle pointer-to-member.
...
cp/
* typeck.c (build_x_unary_op): Handle pointer-to-member.
testsuite/
* g++.dg/README (Subdirectories): Document new subdir expr.
* g++.dg/expr/pmf-1.C: New test.
From-SVN: r56082
2002-08-07 00:38:00 +00:00
Dale Johannesen
8d3e27d16b
Mark __func__ with line number 0, to avoid confusing debuggers.
...
From-SVN: r56081
2002-08-06 23:36:22 +00:00
Nathan Sidwell
8b219a762a
gcov.c: Tidy.
...
* gcov.c: Tidy.
(struct line_info, struct coverage): New structures.
(gcov_file_name, gcov_file): Remove globals.
(output_data): Take source file parameter. Fix memory leak. Break
up into ...
(init_line_info, output_line_info, make_gcov_file_name,
accumulate_branch_counts): ... here.
(calculate_branch_probs, function_summary): Adjust.
(main): Adjust.
(function_*): Remove global variables.
From-SVN: r56080
2002-08-06 23:18:01 +00:00
Neil Booth
317e98c037
* dwarf2out.c: Remove unused macros.
...
From-SVN: r56079
2002-08-06 20:43:46 +00:00
Neil Booth
81d41e749d
* function.c (TRAMPOLINE_ALIGNMENT): Always defined.
...
From-SVN: r56078
2002-08-06 20:39:41 +00:00
Neil Booth
58551c2335
cppinit.c (struct lang_flags): Rename trigraphs std.
...
* cppinit.c (struct lang_flags): Rename trigraphs std.
(set_lang): Update.
* cpplib.h (struct cpp_options): New member std.
* cppmacro.c (_cpp_builtin_macro_text): Use std.
(collect_args): Flag whether to swallow a possible future
comma pasted with varargs.
(replace_args): Use this flag.
* doc/cpp.texi: Update varargs extension documentation.
testsuite:
* gcc.dg/cpp/vararg3.c, gcc.dg/cpp/vararg4.c: New tests.
From-SVN: r56077
2002-08-06 20:35:46 +00:00
Jakub Jelinek
daeabcd06b
* config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
...
From-SVN: r56075
2002-08-06 20:33:21 +02:00
Jakub Jelinek
9812691ec9
Fix ChangeLog entry.
...
From-SVN: r56073
2002-08-06 17:38:10 +02:00
Jakub Jelinek
39e3a681df
i386.c (x86_field_alignment): Apply min for all MODE_INT and MODE_CLASS_INT modes.
...
* config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
and MODE_CLASS_INT modes.
* g++.dg/abi/bitfield3.C: New test.
From-SVN: r56072
2002-08-06 17:36:40 +02:00
Jakub Jelinek
609a87f3b3
config.gcc (*-*-linux*): Default to --enable-threads=posix if no --{enable,disable}-threads is given to...
...
* config.gcc (*-*-linux*): Default to --enable-threads=posix if no
--{enable,disable}-threads is given to configure.
(alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
Remove thread_file setting here.
From-SVN: r56071
2002-08-06 17:29:24 +02:00
David Edelsohn
ff4c5e7b83
* doc/install.texi (Binaries): Update Bull Freeware URL.
...
From-SVN: r56069
2002-08-06 11:08:07 -04:00
Gerald Pfeifer
4aa4fcbadc
* g77.texi (Top): Rename Index to Keyword Index.
...
From-SVN: r56068
2002-08-06 14:00:43 +00:00
Gerald Pfeifer
54f3aa9e15
* doc/gcc.texi (Top): Rename Index to Keyword Index.
...
From-SVN: r56067
2002-08-06 13:10:09 +00:00
Federico G. Schwindt
66350331ee
Add hppa-openbsd target
...
From-SVN: r56066
2002-08-06 09:26:29 +00:00
GCC Administrator
379177405b
Daily bump.
...
From-SVN: r56065
2002-08-06 07:17:24 +00:00
Nathan Sidwell
d19202bab3
gcov.c (output_data): Round to % to nearest, tweak formatting.
...
gcc:
* gcov.c (output_data): Round to % to nearest, tweak formatting.
testsuite:
* lib/gcov.exp: Tweak expected line formats.
* gcc.misc-tests/gcov8.c: New test.
* gcc.misc-tests/gcov8.x: New flags.
From-SVN: r56059
2002-08-05 22:16:51 +00:00
Jakub Jelinek
1bed5ee327
fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands into MINUS_EXPR if...
...
* fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
of the operands into MINUS_EXPR if code is PLUS_EXPR.
* gcc.c-torture/execute/20020805-1.c: New test.
From-SVN: r56058
2002-08-05 21:26:27 +02:00
Jakub Jelinek
5133ad466a
* consistency.vlad/layout/endian.c: Include string.h.
...
From-SVN: r56057
2002-08-05 21:19:32 +02:00
Douglas B Rupp
84512347f7
config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
...
2002-08-05 Douglas B Rupp <rupp@gnat.com>
* config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
* config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
drectve_section): Define.
* config/i386/t-interix: Replace interix.o rule with winnt.o.
* config/i386/interix.c: Remove.
From-SVN: r56056
2002-08-05 18:53:16 +00:00
Geoffrey Keating
b3426eb9e2
Index: ChangeLog
...
2002-08-05 Geoffrey Keating <geoffk@redhat.com>
* attribs.c: Don't include obstack.h.
* builtins.c: Likewise.
* cfganal.c: Likewise.
* cfgbuild.c: Likewise.
* cfgcleanup.c: Likewise.
* emit-rtl.c: Likewise.
* loop.c: Likewise.
* stmt.c: Likewise.
Index: cp/ChangeLog
2002-08-05 Geoffrey Keating <geoffk@redhat.com>
* class.c: Don't include obstack.h.
(popclass):
* decl2.c: Delete bogus comment.
* error.c: Don't include obstack.h.
* except.c: Likewise.
(dump_type): Correct comment.
* method.c: Don't include obstack.h.
* tree.c: Likewise.
Index: java/ChangeLog
2002-08-05 Geoffrey Keating <geoffk@redhat.com>
* mangle_name.c: Don't include obstack.h twice.
* xref.c: Don't include obstack.h.
From-SVN: r56055
2002-08-05 18:46:37 +00:00
Geoffrey Keating
b835f6f145
* Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
...
From-SVN: r56054
2002-08-05 18:45:26 +00:00
Gabriel Dos Reis
fd29139244
* doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
...
From-SVN: r56050
2002-08-05 15:50:10 +00:00
Bernd Schmidt
4c6f7cf15c
Add missing file
...
From-SVN: r56049
2002-08-05 11:41:05 +00:00
Toon Moene
97768ccc14
invoke.texi: Improve description of -fno-finite-math-only flag.
...
2002-08-05 Toon Moene <toon@moene.indiv.nluug.nl>
* invoke.texi: Improve description of
-fno-finite-math-only flag.
From-SVN: r56048
2002-08-05 09:23:43 +00:00
GCC Administrator
f662469ef1
Daily bump.
...
From-SVN: r56047
2002-08-05 07:17:11 +00:00
Chris Demetriou
054b750747
invoke.texi: Remove duplicated paragraph describing TARGET_SWITCHES.
...
2002-08-04 Chris Demetriou <cgd@broadcom.com>
* doc/invoke.texi: Remove duplicated paragraph describing
TARGET_SWITCHES.
From-SVN: r56040
2002-08-04 22:36:20 -07:00
Gabriel Dos Reis
201fbb7f20
Fix PR/2213
...
cp/
Fix PR/2213
* cvt.c (cp_convert_to_pointer): Reject conversions from integral
expressions to pointer-to-data-member of pointer-to-member-functions.
testsuite/
* g++.dg/other/conversion1.C: New test.
From-SVN: r56039
2002-08-05 03:56:16 +00:00
Mark Mitchell
b58bbfbb9b
install.texi (Installing GCC): Refer to buildstat.html, rather than listing version-specific build status files.
...
* doc/install.texi (Installing GCC): Refer to buildstat.html,
rather than listing version-specific build status files.
From-SVN: r56038
2002-08-05 03:40:38 +00:00
Gabriel Dos Reis
00386a9be1
slice_array.h (_DEFINE_VALARRAY_OPERATOR): Instantiate with new function objects.
...
PR/7491
* include/bits/slice_array.h(_DEFINE_VALARRAY_OPERATOR):
Instantiate with new function objects.
* include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR): Likewise.
Reformat. Uglify.
* include/bits/gslice_array.h: Likewise.
* include/bits/indirect_array.h: Likewise.
From-SVN: r56036
2002-08-05 02:09:27 +00:00
Geoffrey Keating
6d9f628e05
Index: ChangeLog
...
2002-08-04 Geoffrey Keating <geoffk@redhat.com>
* Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
* collect2.h (permanent_obstack): Delete declaration.
* collect2.c (permanent_obstack): Delete definition.
(main): Don't initialise permanent_obstack. Use xstrdup instead.
* expr.c: Don't include obstack.h.
(permanent_obstack): Delete declaration.
* function.c: Don't include obstack.h.
(permanent_obstack): Delete declaration.
* integrate.c: Don't include obstack.h.
(function_maybepermanent_obstack): Delete declaration.
* print-tree.c (debug_tree): Use x*alloc not permalloc.
* sdbout.c (gen_fake_label): Use x*alloc not permalloc.
* tlink.c (pfgets): Use xstrdup not permanent_obstack.
* toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
* tree.h: Rename init_obstacks to init_ttree. Remove declarations
of permalloc, expralloc, perm_calloc.
* tree.c (permanent_obstack): Delete definition.
(init_ttree): Rename from init_obstacks.
(permalloc): Delete.
(perm_calloc): Delete.
(dump_tree_statistics): Don't print information about
permanent_obstack.
* varasm.c (assemble_start_function): Use xstrdup instead of
permalloc/strcpy.
(assemble_variable): Likewise.
* config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
permalloc.
(unicosmk_add_extern): Likewise.
* config/c4x/c4x.c (c4x_external_ref): Likewise.
(c4x_global_label): Likewise.
* config/frv/frv.c (frv_encode_section_info): Likewise.
* config/i386/winnt.c (i386_pe_record_external_function): Likewise.
(i386_pe_record_exported_symbol): Likewise.
* config/mips/mips.c (mips_output_external): Likewise.
(mips_output_external_libcall): Likewise.
* config/pa/pa.c: (permanent_obstack): Delete declaration.
(output_call): Use ggc_strdup instead of allocating on
permanent_obstack.
* config/romp/romp.c: Include ggc.h.
(get_symref): Don't declare permanent_obstack, use ggc_strdup
intead of permanent_obstack.
* config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
instead of permalloc.
* config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
instead of permalloc
* config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
instead of permalloc.
* config/vax/vax.c (vms_check_external): Use xmalloc instead of
permalloc.
Index: cp/ChangeLog
2002-08-04 Geoffrey Keating <geoffk@redhat.com>
* cvt.c (ocp_convert): Delete obsolete code.
* parse.y (permanent_obstack): Delete declaration.
* pt.c (permanent_obstack): Delete declaration.
* repo.c (permanent_obstack): Delete declaration.
(open_repo_file): Use xmalloc instead of permanent_obstack.
(init_repo): Use xstrdup instead of permanent_obstack.
Index: java/ChangeLog
2002-08-04 Geoffrey Keating <geoffk@redhat.com>
* class.c: (permanent_obstack): Delete declaration.
* constants.c: (permanent_obstack): Delete declaration.
* except.c: (permanent_obstack): Delete declaration.
* expr.c: (permanent_obstack): Delete declaration.
* jcf-parse.c: (permanent_obstack): Delete declaration.
(saveable_obstack): Delete declaration.
* parse.h: (permanent_obstack): Delete declaration.
* typeck.c: (permanent_obstack): Delete declaration.
From-SVN: r56035
2002-08-04 22:45:31 +00:00
Bernd Schmidt
86a0cbcb9f
Remove one of the files checked in previously
...
From-SVN: r56033
2002-08-04 21:07:49 +00:00
H.J. Lu
2ff3487032
configure.in (mips*-*-linux*): Don't skip target-libffi.
...
2002-08-04 H.J. Lu (hjl@gnu.org )
* configure.in (mips*-*-linux*): Don't skip target-libffi.
From-SVN: r56030
2002-08-04 12:40:07 -07:00