Commit Graph

19981 Commits

Author SHA1 Message Date
Kaveh R. Ghazi e833cb112c Warning fixes:
* Makefile.in (cvt.o): Depend on toplev.h.
        * cp-tree.h (check_template_shadow, pod_type_p): Add prototypes.
        * cvt.c: Include toplev.h.
        * except.c (get_eh_caught, get_eh_handlers): Hide prototypes and
        definitions.
        * init.c (expand_vec_init): Initialize variable `itype'.
        * lex.c (yyerror): Cast the argument passed to a ctype function to
        an unsigned char.
        * method.c (build_mangled_C9x_name): Wrap prototype and definition
        in "HOST_BITS_PER_WIDE_INT >= 64".
        * typeck.c (build_binary_op): Mark parameter `convert_p' with
        ATTRIBUTE_UNUSED.

From-SVN: r24395
1998-12-22 12:18:17 +00:00
Mark Mitchell 193306f7fd cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation.
1998-12-22  Mark Mitchell  <mark@markmitchell.com>
	* cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation.
	* tree.c (build_exception_variant): Don't crash on empty throw
	specs.

From-SVN: r24394
1998-12-22 10:33:17 +00:00
Michael Meissner 2f0d2c99e2 Delete handling of -dM as a preprocessor option
From-SVN: r24393
1998-12-22 10:03:17 +00:00
Kaveh R. Ghazi 087aa39894 Warning fixes:
* argv.c (buildargv): Cast the result of alloca in assignment.
        * choose-temp.c: Include stdlib.h.
        * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
        (snarf_numeric_literal): Constify first parameter.
        (code_for_qualifier): Avoid a gcc extension, make the parameter an
        int, not a char.
        (demangle_qualifier): Likewise.
        (demangle_signature): Cast the argument of a ctype function to
        unsigned char.
        (arm_pt): Add parens around assignment used as truth value.
        (demangle_arm_hp_template): Constify variable `args'.
        (do_hpacc_template_const_value): Cast the argument of a ctype
        function to unsigned char.
        (do_hpacc_template_literal): Remove unused variable `i'.
        (snarf_numeric_literal): Constify parameter `args'.
        Cast the argument of a ctype function to unsigned char.
        * floatformat.c (floatformat_to_double): Add explicit braces to
        avoid ambiguous `else'.
        * fnmatch.c (fnmatch): Change type of variables `c', `c1',
        `cstart' and `cend' to unsigned char.  Cast the argument of macro
        `FOLD', which uses ctype functions, to unsigned char.
        * objalloc.c (free): Add prototype.

From-SVN: r24392
1998-12-22 06:57:17 +00:00
Jeff Law 4510c86d24 Daily bump.
From-SVN: r24391
1998-12-21 17:45:03 -07:00
Michael Meissner b5c7059ba4 Do not give a warning for -dD, -dI, or -dM
From-SVN: r24390
1998-12-21 14:42:07 +00:00
Alexandre Oliva ebc9d4b79c require diagnostic even without -pedantic
From-SVN: r24389
1998-12-21 10:39:08 +00:00
Hans-Peter Nilsson 21f2174d55 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
From-SVN: r24388
1998-12-20 22:57:18 -07:00
Jeff Law c6085c1d68 Daily bump.
From-SVN: r24387
1998-12-20 17:45:03 -07:00
John F. Carr 6248134869 configure.in: Handle Digital UNIX 5.x the same as 4.x.
* configure.in: Handle Digital UNIX 5.x the same as 4.x.
	* i386/sol2.h: Define LOCAL_LABEL_PREFIX as ".".
	* java/Make-lang.in: Comment out control-Ls.

From-SVN: r24386
1998-12-20 13:24:18 +00:00
Alexandre Oliva 7162b45d19 * g++.old-deja/g++.pt/ptrmem5.C: New test.
From-SVN: r24385
1998-12-20 07:45:13 +00:00
Jeffrey A Law 1ead53b31e Bump for snapshot
From-SVN: r24383
1998-12-20 00:39:56 -07:00
Jeff Law d55cd6f8d1 Daily bump.
From-SVN: r24382
1998-12-19 17:45:02 -07:00
Jeffrey A Law 24ccb0328f Bump for snapshot
From-SVN: r24380
1998-12-19 15:24:26 -07:00
Jeffrey A Law a5e3973fb5 Bump for snapshot
From-SVN: r24379
1998-12-19 14:41:36 -07:00
Bernd Schmidt 8f904e4d39 Added myself to "Write after approval" section in MAINTAINERS.
From-SVN: r24378
1998-12-19 12:10:51 +00:00
Kaveh R. Ghazi 85fda1eb7d genattr.c (fatal): Qualify a char* with the `const' keyword.
* genattr.c (fatal): Qualify a char* with the `const' keyword.
        * genattrtab.c (fatal, attr_printf, attr_string, write_attr_set,
        write_unit_name, write_eligible_delay, expand_units,
        make_length_attrs, write_attr_case, find_attr,
        make_internal_attr): Likewise.
        * gencheck.c (tree_codes): Likewise.
        * gencodes.c (fatal): Likewise.
        * genconfig.c (fatal): Likewise.
        * genemit.c (fatal): Likewise.
        * genextract.c (fatal, walk_rtx, copystr): Likewise.
        * genflags.c (fatal): Likewise.
        * genopinit.c (fatal, optabs, gen_insn): Likewise.
        * genoutput.c (fatal, error, predicates): Likewise.
        * genpeep.c (fatal): Likewise.
        * genrecog.c (fatal, decision, pred_table, add_to_sequence,
        write_tree_1, write_tree, change_state, copystr, indents): Likewise.

From-SVN: r24377
1998-12-19 07:04:42 +00:00
Jeff Law 2069dfd8d9 Daily bump.
From-SVN: r24376
1998-12-18 17:45:02 -07:00
Gerald Pfeifer d2237b4f9b Add new entry regarding Pentium optimizations.
From-SVN: r24375
1998-12-18 14:43:01 +00:00
Andrew MacLeod e8fc822288 cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer we read from.
Fri Dec 18 16:11:43 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* cplus-dem.c (demangle_fund_type): Process CV and u codes before
	bumping the pointer we read from. Also prepend these codes,
	as we do in other places.

From-SVN: r24374
1998-12-18 13:16:13 +00:00
DJ Delorie 09ad291704 cvt.c (convert_to_reference): Check for both error_mark_node and NULL_NODE after call to...
* cvt.c (convert_to_reference): Check for both error_mark_node
	and NULL_NODE after call to convert_for_initialization.

From-SVN: r24373
1998-12-18 06:50:30 -05:00
Jason Merrill bbcec10538 error.c (interesting_scope_p): New fn.
* error.c (interesting_scope_p): New fn.
	(dump_simple_decl): Use it.
	(dump_expr, case CONSTRUCTOR): Force a & for a PMF.
	(dump_expr, case OFFSET_REF): Print ->* if appropriate.

From-SVN: r24372
1998-12-18 06:26:57 -05:00
Vladimir Makarov 0197d76bfa [multiple changes]
1998-12-17  Vladimir N. Makarov  <vmakarov@cygnus.com>
	* config/i60/i960.md (extendqihi2): Fix typo (usage ',' instead of
	';').
1998-12-17  Michael Tiemann  <tiemann@axon.cygnus.com>
	* i960.md (extend*, zero_extend*): Don't generate rtl that looks
	like (subreg:SI (reg:SI N) 0), because it's wrong, and it hides
	optimizations from the combiner.

From-SVN: r24371
1998-12-18 10:46:41 +00:00
Tom Tromey 847fe79126 parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently.
* parse.y (check_class_interface_creation): Use DIR_SEPARATOR
	consistently.

From-SVN: r24370
1998-12-18 10:01:34 +00:00
Jeff Law 31f7273860 Daily bump.
From-SVN: r24369
1998-12-17 17:45:03 -07:00
Rainer Orth 94878f1592 configure.in (with-fast-fixincludes): Fix whitespace.
* configure.in (with-fast-fixincludes): Fix whitespace.
        * configure: Rebuilt.

From-SVN: r24368
1998-12-17 14:09:07 -07:00
Tom Tromey fa322ab500 parse.y (DIR_SEPARATOR): New define.
* parse.y (DIR_SEPARATOR): New define.
	(check_class_interface_creation): Use it.

From-SVN: r24367
1998-12-17 20:13:16 +00:00
Rainer Orth 21f891de68 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
        * fixincludes (c_asm.h): Wrap Digital UNIX V4.0B DEC C specific
        asm() etc. function declarations in __DECC.

From-SVN: r24366
1998-12-17 10:22:30 -08:00
Mark Mitchell fc03edb313 pt.c (push_inline_template_parms_recursive): Set it.
* pt.c (push_inline_template_parms_recursive): Set it.
	(decl_template_parm_p): Remove.
	(check_template_shadow): Use DECL_TEMPLATE_PARM_P.
	(process_template_parm): Set it.
Missed in Mark's earlier checkin.

From-SVN: r24365
1998-12-17 10:08:34 -05:00
Nick Clifton b2e7e6fb8a Do not generate CLOBBERs for non-pseudo regs.
From-SVN: r24364
1998-12-17 14:02:32 +00:00
Nick Clifton 3cdbd1f8ac Add: #include "expr.h"
From-SVN: r24363
1998-12-17 13:54:39 +00:00
Kaveh R. Ghazi cce4a9580a * hwint.h: New file to consolidate HOST_WIDE_INT (etc) macros.
From-SVN: r24362
1998-12-17 13:09:00 +00:00
Tom Tromey d5ff227d18 parse-scan.y (report_main_declaration): Recognize `java.lang.String' in argument to main.
* parse-scan.y (report_main_declaration): Recognize
	`java.lang.String' in argument to main.

From-SVN: r24361
1998-12-17 12:50:02 +00:00
Jim Wilson 2df8df36a2 Fix canadian-cross build problem with haifa scheduler.
* Makefile.in (INTERNAL_CFLAGS): Add SCHED_CFLAGS.
	(ALL_CFLAGS): Delete SCHED_CFLAGS.

From-SVN: r24360
1998-12-17 04:35:30 -08:00
Jeff Law 6f7dec6117 Daily bump.
From-SVN: r24352
1998-12-16 17:45:02 -07:00
J"orn Rennecke 86147f4854 * loop.c (combine_givs_used_by_other): Don't depend on n_times_set.
From-SVN: r24351
1998-12-17 00:29:00 +00:00
Jeffrey A Law f8670be1f7 * config.sub: Handle hppa2.0.
From-SVN: r24350
1998-12-16 17:25:11 -07:00
Jeff Law a0d66c8d67 dummy import to prevent merge lossage
From-SVN: r24349
1998-12-16 15:24:51 -07:00
Per Bothner 83a86272a2 * parse.y (create_interface): Remove bogus test.
From-SVN: r24348
1998-12-16 09:44:49 -08:00
Nick Clifton 16b6e12048 Ensure that last optimisation level set overrides any previous levels.
From-SVN: r24347
1998-12-16 17:34:48 +00:00
Per Bothner f868ca8f89 jcf-parse.c (get_constant): Set TREE_TYPE for string constants.
�
	* jcf-parse.c (get_constant):  Set TREE_TYPE for string constants.
	(HANDLE_CONSTANTVALUE):  If flag_emit_class_files, call get_constant.

From-SVN: r24346
1998-12-16 09:01:53 -08:00
Tom Tromey 0252081c1a * parse-scan.y (qualified_name): Use correct sprintf format.
From-SVN: r24345
1998-12-16 15:53:13 +00:00
Mark Mitchell 50714e797c class.c (resolve_address_of_overloaded_function): Do conversion to correct type here, rather than ...
* class.c (resolve_address_of_overloaded_function): Do conversion
	to correct type here, rather than ...
	(instantiate_type): Here.
	* cp-tree.h (DECL_TEMPLATE_PARM_P): New macro.
	(DECL_TEMPLATE_TEMPLATE_PARM_P): Use it.
	(decl_template_parm_p): Remove.
	* decl.c (pushdecl): Don't set DECL_CONTEXT for a template
	paramter.
	* lex.c (do_identifier): Use DECL_TEMPLATE_PARM_P.
	(push_inline_template_parms_recursive): Set it.
	(decl_template_parm_p): Remove.
	(check_template_shadow): Use DECL_TEMPLATE_PARM_P.
	(process_template_parm): Set it.

From-SVN: r24344
1998-12-16 15:51:21 +00:00
Dave Brolley 05c32e169c lang-specs.h: Pass -MD, -MMD and -MG to cc1obj if configured with cpplib.
Wed Dec 16 16:33:04 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/lang-specs.h: Pass -MD, -MMD and -MG to cc1obj if configured with
	cpplib.
	* cpplib.c (cpp_start_read): If in_fname is not initialized, try to
	initialize it using fname.

From-SVN: r24343
1998-12-16 08:38:33 -05:00
Dave Brolley 6163a7b2f2 lang-specs.h (default_compilers): Pass -MD, -MMD and -MG to cc1plus if configured with cpplib.
Wed Dec 16 16:33:58 1998  Dave Brolley  <brolley@cygnus.com>
	* lang-specs.h (default_compilers): Pass -MD, -MMD and -MG to cc1plus
	if configured with cpplib.

From-SVN: r24342
1998-12-16 08:38:14 -05:00
Dave Brolley ed9c93bf44 lang-specs.h: Pass -MD, -MMD and -MG to cc1obj if configured with cpplib.
Wed Dec 16 16:33:04 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/lang-specs.h: Pass -MD, -MMD and -MG to cc1obj if configured with
	cpplib.

From-SVN: r24341
1998-12-16 08:37:08 -05:00
Zack Weinberg 692b872ea0 cpplib.c (do_include): Treat #include_next in the primary source file as #include plus warning.
1998-12-16  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.c (do_include): Treat #include_next in the
	primary source file as #include plus warning.  Treat
	#include_next in a file included by absolute path as an
	error.  fp == CPP_NULL_BUFFER is a fatal inconsistency.

From-SVN: r24340
1998-12-16 08:23:47 -05:00
Kaveh R. Ghazi 36b8337d5c cccp.c: Don't define MIN/MAX anymore.
* cccp.c: Don't define MIN/MAX anymore.
        * cpplib.c: Likewise.
        * machmode.h: Likewise.
        * system.h: Provide definitions for MIN/MAX.

From-SVN: r24339
1998-12-16 09:34:57 +00:00
Jeff Law 93eba43433 Daily bump.
From-SVN: r24338
1998-12-15 17:45:16 -07:00
Zack Weinberg 2d234b4f64 * fix-header.c: Don't define xstrdup here.
From-SVN: r24337
1998-12-15 15:50:27 -07:00