aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
1999-08-03Forgot to check this in yesterday.Richard Henderson1-0/+7
From-SVN: r28481
1999-08-03Makefile.in (c-decl.o): Depends on defaults.h.J"orn Rennecke4-2/+11
* Makefile.in (c-decl.o): Depends on defaults.h. * java/Makefile.in (decl.o): Depends on $(srcdir)/../defaults.h. From-SVN: r28479
1999-08-03pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for PA1.1 and ↵Jeffrey A Law2-3/+12
above. * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for PA1.1 and above. (CLASS_MAX_NREGS): Likewise. From-SVN: r28478
1999-08-03crash63.C: Expect a POD warningNathan Sidwell4-3/+9
* g++.old-deja/g++.brendan/crash63.C: Expect a POD warning * g++.old-deja/g++.brendan/crash64.C: Likewise * g++.old-deja/g++.brendan/overload8.C: Likewise From-SVN: r28476
1999-08-03call.c (convert_arg_to_ellipsis): Use pod_type_p.Nathan Sidwell5-59/+84
* call.c (convert_arg_to_ellipsis): Use pod_type_p. * cp-tree.h (struct lang_type): Added non_pod_class flag. (CLASSTYPE_NON_POD_P): New macro to access it. * class.c (finish_struct_1): Determine non-PODness. Check for arrays of pointers (-Weffc++). Remove array inspection duplicated code. * tree.c (pod_type_p): Detect non-pod non-aggregate types. Use CLASSTYPE_NON_POD_P. From-SVN: r28475
1999-08-03* g++.old-deja/g++.other/struct1.C: New test.Nathan Sidwell2-0/+46
From-SVN: r28474
1999-08-03* class.c (duplicate_tag_error): Preserve template information.Nathan Sidwell2-0/+8
From-SVN: r28473
1999-08-03* g++.old-deja/g++.other/enum2.C: New test.Nathan Sidwell2-0/+20
From-SVN: r28472
1999-08-03decl.c (start_enum): Show location of previous definition.Nathan Sidwell3-12/+19
* decl.c (start_enum): Show location of previous definition. * parse.y (enumlist_opt): New reduction. (structsp): Simplify enum rules to use enumlist_opt. From-SVN: r28471
1999-08-03* ext1.C: New test.Alexandre Oliva2-0/+21
From-SVN: r28470
1999-08-03* dwarf1.C, dwarf2.C, dwarf3.C: New tests.Alexandre Oliva4-0/+57
From-SVN: r28469
1999-08-03newJason Merrill1-0/+18
From-SVN: r28468
1999-08-03lex.c (yyprint): Handle PFUNCNAME.Jason Merrill4-3/+13
* lex.c (yyprint): Handle PFUNCNAME. * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Only build_expr_from_tree on the args of a TEMPLATE_ID_EXPR. From-SVN: r28467
1999-08-03* cse.c (cse_insn): Fix dumb thinko in last change.Jeffrey A Law2-1/+5
From-SVN: r28466
1999-08-03Delete questionable filesJeff Law1-373/+0
From-SVN: r28463
1999-08-03Warning fixBernd Schmidt2-1/+6
From-SVN: r28462
1999-08-03Delete questionable filesJeff Law2-8815/+0
From-SVN: r28460
1999-08-03Delete questionable filesJeff Law3-7435/+0
From-SVN: r28459
1999-08-03Delete questionable filesJeff Law1-136/+0
From-SVN: r28457
1999-08-03Remove questionable filesJeff Law2-3078/+0
From-SVN: r28456
1999-08-03Delete questionable testsJeff Law4-462/+0
From-SVN: r28453
1999-08-03Delete questionable testsJeff Law3-140/+0
From-SVN: r28451
1999-08-03Delete questionable tests.Jeff Law2-253/+0
From-SVN: r28448
1999-08-03Remove copyrighted testcaseJeff Law2-319/+0
From-SVN: r28447
1999-08-03Daily bump.Jeff Law2-2/+2
From-SVN: r28445
1999-08-03* decl.c (start_decl): Set attributes before duplicate_decls call.Mumit Khan2-7/+11
From-SVN: r28442
1999-08-03dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes ↵Hans-Peter Nilsson2-1/+8
of passed and declared parameter types. * dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed and declared parameter types. From-SVN: r28441
1999-08-03fixincludes: Fix the return type of bsearch, char* -> void*.Kaveh R. Ghazi6-1/+11
* fixincludes: Fix the return type of bsearch, char* -> void*. * fixinc/inclhack.def: Likewise. From-SVN: r28440
1999-08-02regenJason Merrill1-0/+6
From-SVN: r28439
1999-08-03invoke.texi (-fdump-translation-unit): New option.Mark Mitchell12-46/+995
* invoke.texi (-fdump-translation-unit): New option. * Make-lang.in (CXX_SRCS): Add dump.c. * Makefile.in (CXX_OBJS): Add dump.o. (dump.o): New target. * cp-tree.h (DECL_CONV_FN_P): Document. (DECL_OVERLOADED_OPERATOR_P): New function. (TYPE_PTRMEM_CLASS_TYPE): New macro. (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise. (PTRMEM_CST_CLASS): Use TYPE_PTRMEM_CLASS_TYPE. (ASM_VOLATILE_P): New macro. (STMT_LINENO): Likewise. (cp_namespace_decls): New function. (dump_node_to_file): New function. * decl.c (cp_namespace_decls): New function. (walk_namespaces_r): Use it. (wrapup_globals_for_namespace): Likewise. * decl2.c (flag_dump_translation_unit): New variable. (lang_decode_option): Handle -fdump-translation-unit. (finish_file): If flag_dump_translation_unit is set, dump the translation unit. * dump.c: New file. * lang-options.h: Add -fdump-translation-unit. * pt.c (tsubst_template_parms): Robustify. (tsubst_decl): Use DECL_OVERLOADED_OPERATOR_P. (tsubst_expr): Use STMT_LINENO. * semantics.c (finish_asm_stmt): Eliminate duplicate code. Check for invalid cv-qualifiers even while building templates. From-SVN: r28434
1999-08-02expr.h (PROMOTE_PROTOTYPES): Move ...Richard Henderson4-6/+7
* expr.h (PROMOTE_PROTOTYPES): Move ... * defaults.h: ... to here. * c-decl.c: Include defaults.h instead of expr.h. * c-typeck.c: Include defaults.h. From-SVN: r28433
1999-08-02call.c: Include defaults.h instead of expr.h.Richard Henderson5-3/+11
* call.c: Include defaults.h instead of expr.h. * decl.c: Likewise. * pt.c: Likewise. * typeck.c: Include defaults.h. From-SVN: r28432
1999-08-02decl.c: Include defaults.h instead of expr.h.Richard Henderson5-594/+665
* decl.c: Include defaults.h instead of expr.h. * parse.y: Likewise. From-SVN: r28431
1999-08-03lex.c (errorcount, sorrycount): Don't declare.Mark Mitchell4-6/+6
* lex.c (errorcount, sorrycount): Don't declare. * repo.c (errorcount, sorrycount): Likewise. * typeck2.c (errorcount, sorrycount): Likewise. From-SVN: r28427
1999-08-03toplev.h (errorcount): Declare.Mark Mitchell4-2/+11
* toplev.h (errorcount): Declare. (warningcount): Likewise. (sorrycount): Likewise. * c-lex.c (errorcount): Don't declare. * dwarf2out.c (errorcount): Don't declare. From-SVN: r28426
1999-08-02libgloss.h: Add a note discouraging use with ELF.Jason Merrill4-225/+236
* config/libgloss.h: Add a note discouraging use with ELF. * configure.in: Don't use libgloss.h for ELF targets. From-SVN: r28425
1999-08-02Optimize duplicate zero_extend operations.Jim Wilson2-2/+10
* combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt. (force_to_mode, case ASHIFTRT): Add shiftrt label. From-SVN: r28424
1999-08-03loop.c (strength_reduce): When doing biv->giv conversion, update reg note of ↵J"orn Rennecke2-2/+13
NEXT->insn. * loop.c (strength_reduce): When doing biv->giv conversion, update reg note of NEXT->insn. From-SVN: r28423
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek2-1/+10
* real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad. From-SVN: r28422
1999-08-02arc.h: Define PROMOTE_PROTOTYPES to 1.Richard Henderson18-26/+20
* config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1. * config/convex/convex.h: Ditto. * config/dsp16xx/dsp16xx.h: Ditto. * config/fx80/fx80.h: Ditto. * config/gmicro/gmicro.h: Ditto. * config/i370/i370.h: Ditto. * config/i386/i386.h: Ditto. * config/m32r/m32r.h: Ditto. * config/m68k/m68k.h: Ditto. * config/m88k/m88k.h: Ditto. * config/mips/mips.h: Ditto. * config/pa/pa.h: Ditto. * config/pyr/pyr.h: Ditto. * config/tahoe/tahoe.h: Ditto. * config/we32k/we32k.h: Ditto. * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES based on arch size. * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0. From-SVN: r28421
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek5-16/+58
* c-decl.c (get_parm_info, store_parm_decls): Change all uses of PROMOTE_PROTOTYPES, so that it tests it as a C expression. Ensure expr.h is included. * c-typecheck.c (convert_arguments): Ditto. * expr.h: Supply default for PROMOTE_PROTOTYPES (0). From-SVN: r28420
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek5-8/+19
* java/decl.c (start_java_method): Change all uses of PROMOTE_PROTOTYPES, so that it tests it as a C expression. Ensure expr.h is included. * java/expr.c (pop_arguments): Ditto. * java/parse.y (expand_start_java_method): Ditto. From-SVN: r28419
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek5-20/+27
* call.c (convert_default_arg, build_over_call): Change all uses of PROMOTE_PROTOTYPES, so that it tests it as a C expression. Ensure expr.h is included. * decl.c (grokparams): Ditto. * pt.c (tsubst_decl): Ditto. * typeck.c (convert_arguments): Ditto. From-SVN: r28418
1999-08-02m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set for the ↵Richard Henderson3-25/+92
register spill block. * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set for the register spill block. (m32r_va_arg): New. * m32r.h (EXPAND_BUILTIN_VA_ARG): New. (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code. * m32r.h (INT8_P): Don't short-cut test with (unsigned). (INT16_P, CMP_INT16_P, UINT16_P): Likewise. (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise. From-SVN: r28417
1999-08-02linux.h: Define WCHAR_TYPE as "int" and undef MAX_WCHAR_TYPE defined in sparc.h.Jakub Jelinek4-8/+24
* config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef MAX_WCHAR_TYPE defined in sparc.h. * config/sparc/linuxaout.h: Likewise. * config/sparc/linux64.h: Likewise. Also default to -mvis if CPU is UltraSPARC. From-SVN: r28416
1999-08-02class.c (mark_overriders): Fix order of args to overrides.Jason Merrill2-24/+27
* class.c (mark_overriders): Fix order of args to overrides. (warn_hidden): Likewise. Fix for having virtual and non-virtual functions with the same name. From-SVN: r28415
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson12-24/+277
* config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro. (RTX_OK_FOR_OLO10): Likewise. (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable %lo(), allow it in addresses... (PRINT_OPERAND_ADDRESS): ... and print it appropriately. * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo() does not make sense. * config/sparc/sparc.c (sparc_hard_reg_printed): New array. (sparc_output_scratch_registers): New function. (output_function_prologue, sparc_flat_output_function_prologue): Use it. * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if defined. * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it. * configure.in: Add check for .register pseudo-op support in as and check for offsetable %lo(). * acconfig.h: Add templates for the above checks. * configure: Regenerate. Richard Henderson <rth@cygnus.com> * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS. * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise. * sparc/sol2.h (TARGET_DEFAULT): Likewise. From-SVN: r28414
1999-08-02loop.c (strength_reduce): When doing biv->giv conversion, fix up reg_biv_class.J"orn Rennecke2-1/+13
* loop.c (strength_reduce): When doing biv->giv conversion, fix up reg_biv_class. From-SVN: r28413
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek4-202/+347
* config/float-sparc.h: New file. * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1, sparc-*-linux-gnu and sparc64-*-linux*. From-SVN: r28412
1999-08-02* cp-tree.h (TYPE_PTRMEMFUNC_P): Check TYPE_LANG_SPECIFIC non-null.Richard Henderson2-2/+9
From-SVN: r28409