aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-06mips.c (override_options): Set MASK_SOFT_FLOAT for VR4111 too.Momchil Velikov2-1/+3
* config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT for VR4111 too. From-SVN: r73300
2003-11-06*** empty log message ***Momchil Velikov1-0/+4
From-SVN: r73299
2003-11-06builtins.c (simplify_builtin_strrchr, [...]): Add missing casts.Jan Hubicka2-4/+13
* builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add missing casts. From-SVN: r73296
2003-11-06genmodes.c: Change the word "bitsize" to "precision" throughout.Zack Weinberg7-81/+97
* genmodes.c: Change the word "bitsize" to "precision" throughout. * machmode.def: Likewise. * machmode.h (GET_MODE_SIZE): Cast value to unsigned short. (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT. (GET_MODE_PRECISION): New macro. (mode_bitsize): Renamed mode_precision. * stor-layout.c (mode_for_size, smallest_mode_for_size): Use GET_MODE_PRECISION; clarify comments. ada: * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION and update for changed meaning of GET_MODE_BITSIZE. From-SVN: r73295
2003-11-06Daily bump.GCC Administrator1-1/+1
From-SVN: r73289
2003-11-05install-old.texi: Remove old documentation of building cross-compilers.Joseph Myers3-268/+58
* doc/install-old.texi: Remove old documentation of building cross-compilers. * doc/install.texi: Move some of it to here. From-SVN: r73283
2003-11-05Add PR preprocessor/12891 to Per's last patch.Andrew Pinski1-0/+1
From-SVN: r73282
2003-11-05c-opts.c (finish_options): Set include_cursor to disable premature calls to ↵Per Bothner2-1/+11
push_command_line_include from... * c-opts.c (finish_options): Set include_cursor to disable premature calls to push_command_line_include from cpp_scan_nooutput. Fixes bug reported by DJ Delorie. From-SVN: r73281
2003-11-0520031023-4.c: XFAIL on SPARC64Eric Botcazou6-5/+44
* gcc.c-torture/compile/20031023-4.c: XFAIL on SPARC64 * gcc.c-torture/compile/simd-5.c: XFAIL on SPARC64 at -O0 and -O1. * gcc.c-torture/execute/simd-4.x: New file. XFAIL on SPARC at -O0. * gcc.c-torture/execute/va-arg-25.x: New file. XFAIL on SPARC. * gcc.dg/uninit-C.c: XFAIL on non 64-bit Solaris versions. From-SVN: r73280
2003-11-05Add PR optimization/10080 to Zdenek Dvorak's last commit.Andrew Pinski1-0/+1
From-SVN: r73279
2003-11-05rs6000.c (setup_incoming_varargs): Remove code supporting old-style varargs.Geoffrey Keating2-11/+5
* config/rs6000/rs6000.c (setup_incoming_varargs): Remove code supporting old-style varargs. From-SVN: r73278
2003-11-05rs6000.c (rs6000_machopic_legitimize_pic_address): Use an intermediate ↵Geoffrey Keating2-1/+10
register for better optimisation. * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use an intermediate register for better optimisation. From-SVN: r73277
2003-11-05rs6000.c (compute_vrsave_mask): Correct off-by-one error.Geoffrey Keating2-1/+4
* config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one error. From-SVN: r73276
2003-11-05cfgloopanal.c (variable_initial_value, [...]): Record the fact that initial ↵Zdenek Dvorak3-49/+284
value is extended from inner mode. * cfgloopanal.c (variable_initial_value, variable_initial_values, simple_loop_exit_p): Record the fact that initial value is extended from inner mode. (count_strange_loop_iterations, count_loop_iterations): Handle ivs that iterate in a narrower mode. Fix handling of overflows. Improve handling of NE conditions. (inverse, fits_in_mode_p): New static functions. (simple_increment): Detect variables that iterate in a narrower mode. * cfgloop.h (struct loop_desc): Fields inner_mode and extend added. From-SVN: r73275
2003-11-05darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin needs VRSAVE.Geoffrey Keating2-0/+6
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin needs VRSAVE. From-SVN: r73274
2003-11-05c-typeck.c (pedantic_lvalue_warning): Deprecate use of conditional ↵Joseph Myers4-2/+22
expressions as lvalues. * c-typeck.c (pedantic_lvalue_warning): Deprecate use of conditional expressions as lvalues. testsuite: * gcc.dg/cond-lvalue-1.c: New test. From-SVN: r73273
2003-11-05Fix date.Andreas Jaeger1-1/+1
From-SVN: r73272
2003-11-05asm1.C: Enable for e.g.Gernot Hillier2-20/+24
2003-11-03 Gernot Hillier <gernot.hillier@siemens.com> * g++.old-deja/g++.pt/asm1.C: Enable for e.g. x86_64-*-linux-gnu. From-SVN: r73271
2003-11-05re PR c++/11616 (Error message "instantiated from here" gives wrong location)Kriang Lerdsuwanakij4-0/+37
PR c++/11616 * pt.c (instantiate_pending_templates): Save and restore input_location. * g++.dg/template/instantiate5.C: New test. From-SVN: r73269
2003-11-05re PR c++/2019 (Wrong line number warning listing the previous declaration ↵Kriang Lerdsuwanakij2-6/+8
of a befriended function) PR c++/2019 * friend.c (add_friend): Don't display previous declaration in case of duplicate friend warning. From-SVN: r73268
2003-11-05Resync Ada changes.Arnaud Charlet1-0/+125
From-SVN: r73267
2003-11-05tsystem.h: Add the prototype of strlen.Kazu Hirata3-1/+12
* tsystem.h: Add the prototype of strlen. * unwind-pe.h (read_encoded_value_with_base): Add an appropriate cast to handle a case where the pointer size is smaller than sizeof (int). From-SVN: r73265
2003-11-05Daily bump.GCC Administrator1-1/+1
From-SVN: r73261
2003-11-04mips-protos.h (mips_global_pic_constant_p): Delete.Richard Sandiford5-727/+921
* config/mips/mips-protos.h (mips_global_pic_constant_p): Delete. (mips_delegitimize_address): Delete. (mips_gotoff_global, mips_load_got_page): Declare. (mips_load_got_global, mips_rewrite_small_data): Declare. * config/mips/mips.h (FIND_BASE_TERM): Remove definition. (DANGEROUS_FOR_LA25_P): Use global_got_operand. (PREDICATE_CODES): Add global_got_operand, local_got_operand and small_data_pattern. Remove CONST from const_arith_operand's entry. * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros. (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise. (mips_constant_type): Delete. (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL, SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP. (NUM_SYMBOL_TYPES): New macro. (mips_address_type): Remove ADDRESS_INVALID. (machine_function): Add has_gp_insn_p. (mips_constant_info): Delete. (mips_address_info): Add the address type as an extra field. Replace the c field with symbol_type. (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays. (TARGET_DELEGITIMIZE_ADDRESS): Remove definition. (mips_reloc_offset_ok_p, mips_classify_constant): Delete. (mips_split_const, mips_symbolic_constant_p): New functions. (mips_symbolic_address_p): Take the symbol type and mode as arguments. (mips_classify_address): Return true if the address is valid, storing its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[] to test whether a LO_SUM address is allowed. (mips_symbol_insns): Return 0 for general mips16 symbols. Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition. Handle the new SYMBOL_GOTOFF_*s. (mips_address_insns): Update call to mips_classify_address. (mips_const_insns): Be more fussy about HIGH constants. Remove use of mips_classify_constant. Be more accurate about CONSTs. (mips_global_pic_constant_p): Delete. (const_arith_operand): Only accept CONST_INTs. (call_insn_operand): Remove call to mips_classify_constant. Let mips_symbolic_constant_p check for invalid offsets. (move_operand): Check for general_operands first. Only accept symbolic constants if they satisfy mips_symbolic_constant_p and cannot be split. (symbolic_constant): Use mips_symbolic_constant_p. (global_got_operand, local_got_operand): New predicates. (stack_operand): Update call to mips_classify_address. (mips_legitimate_address_p): Likewise. (mips_reloc, mips_lui_reloc): Delete. (mips_force_temporary): Only use the given temporary if no_new_pseudos. Use emit_move_insn. (mips_split_symbol, mips_unspec_address): New functions. (mips_unspec_offset_high): New function. (mips_load_got): Replace reloc argument with a symbol_type. Use mips_unspec_address to create the address and put it in a LO_SUM with the base register. (mips_load_got16, mips_load_got32): Delete. (mips_emit_high, mips_legitimize_symbol): Delete. (mips_gotoff_global): New function. (mips_load_got_page, mips_load_got_global): New functions. (mips_legitimize_symbol): Inline handling of LO_SUM splits. (mips_legitimize_const_move): Likewise. Remove HIGH handling. Inline code to handle constants plus invalid offsets. Use mips_split_symbol to legitimize constant pool addresses. (mips_delegitimize_address): Delete. (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS. (mips_subword): Pass memrefs through mips_rewrite_small_data. (mips_output_move): Remove use of mips_classify_constant. (mips_expand_call): Use mips_unspec_offset_high to calculate the high part of the GOT address for calls to global functions. (override_options): Initialize mips_split_p[], mips_lo_relocs[] and mips_hi_relocs[]. (print_operand): Use print_operand_reloc to handle '%h' and '%R'. Remove use of mips_classify_constant. (mips_reloc_string): Delete. (print_operand_reloc): New function. (print_operand_address): Update call to mips_classify_address. (mips_rewrite_small_data_p, small_data_pattern_1): New functions. (small_data_pattern): New predicate. (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions. (mips_function_has_gp_insn): New function. (mips_global_pointer): Use it. (mips_gp_insn): Delete. (mips_expand_prologue): When compiling for n32/n64 abicalls, use a single loadgp pattern to initialize $gp. Pass it the offset of _gp from the start of the current function. (mips16_gp_pseudo_reg): Revert last patch. * config/mips/mips.md (RELOC_*): Delete. (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants. (got): New insn attribute. (type): Set to "load" if got == load. (length): Set to 4 if got == load, 8 if got == xgot_high. (lui[sd]i): Delete. (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns. (*got_disp[sd]i, *got_page[sd]i): Likewise. (*low[sd]i): Change constraints to "d". Add a new define_split to rewrite small data constants into LO_SUMs. (loadgp): New insns. From-SVN: r73259
2003-11-04* Makefile.in: Remove many duplicate variables.Rainer Orth2-18/+4
From-SVN: r73258
2003-11-04* config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.Rainer Orth2-1/+5
From-SVN: r73257
2003-11-04v850.md (mulhisi3): Expand the const_int case separately to avoid trying to ↵DJ Delorie2-5/+12
sign extend the const. * config/v850/v850.md (mulhisi3): Expand the const_int case separately to avoid trying to sign extend the const. From-SVN: r73256
2003-11-04Remove extra ^M characters introduced in previous commit.Arnaud Charlet2-2409/+2409
From-SVN: r73251
2003-11-04re PR ada/12806 (Program_Error sinput.adb:397)Arnaud Charlet39-2584/+3147
* sysdep.c: Problem discovered during IA64 VMS port. [VMS] #include <unixio.h> to get proper prototypes. * adaint.c: Issues discovered/problems fixed during IA64 VMS port. [VMS] #define _POSIX_EXIT for proper semantics. [VMS] #include <unixio.h> for proper prototypes. [VMS] (fork): #define IA64 version. (__gnat_os_exit): Remove unnecessary VMS specific code. * 3vtrasym.adb: Minor reformatting Use terminology encoded/decoded name, rather than C++ specific notion of mangling (this is the terminology used throughout GNAT). * einfo.h: Regenerated * einfo.ads, einfo.adb: Add new flag Is_Thread_Body * exp_ch6.adb: (Expand_N_Subprogram_Body): Handle expansion of thread body procedure * par-prag.adb: Add dummy entry for Thread_Body pragma * rtsfind.ads: Add entries for System.Threads entities for thread body processing * sem_attr.adb: (Analyze_Pragma, Access attributes): Check these are not applied to a thread body, since this is not permitted * sem_prag.adb: Add processing for Thread_Body pragma. Minor comment fix. * sem_res.adb: (Resolve_Call): Check for incorrect attempt to call a thread body procedure with a direct call. * snames.ads, snames.adb: Add entry for Thread_Body pragma Add names associated with thread body expansion * snames.h: Add entry for Thread_Body pragma * s-thread.adb: Add entries for thread body processing These are dummy bodies so far * s-thread.ads: Add documentation on thread body handling. Add entries for thread body processing. * sem_ch10.adb: (Build_Limited_Views): Return after posting an error in case of limited with_clause on subprograms, generics, instances or generic renamings (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause on subprograms, generics, instances or generic renamings * raise.c (setup_to_install): Correct mistake in last revision; two arguments out of order. * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c, gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright notice, missed in previous change. Remove trailing blanks and other style errors introduced in previous change. * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get rid of the wrapper for a LJM type, ensuring we don't do that if the field is addressable. This avoids potential low level type view mismatches later on, for instance in a by-reference argument passing process. * decl.c (gnat_to_gnu_field): No longer check for BLKmode being aligned at byte boundary. * decl.c (components_to_record): Do not delete the empty variants from the end of the union type. * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive operation for a derived type, an explicit declaration may use a local subtype of Boolean. * make.adb (Gnatmake): Allow main sources on the command line with a library project when it is only for compilation (no binding or linking). Part of PR ada/12806: * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as tree, not integer. * decl.c: (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree, not integer. * targtyps.c, decl.c, misc.c, gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary routines to work around change in FP sizing semantics in GCC. * utils.c: (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer. * gigi.h: (enumerate_modes): New function. * Make-lang.in: (ada/misc.o): Add real.h. * misc.c: (enumerate_modes): New function. From-SVN: r73250
2003-11-04emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant addresses to ↵Richard Sandiford3-16/+8
be shared. * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant addresses to be shared. (force_const_mem): Return a copy of the pool entry. From-SVN: r73248
2003-11-04Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.Andreas Jaeger2-2/+6
* Makefile.in (GCC_CFLAGS): Remove @WERROR@ again. Change previous ChangeLog entry to point to me as asked for by Kaveh. From-SVN: r73246
2003-11-04Makefile.in (cpp.dvi): New target split from cpp.info.Kelley Cook10-134/+164
2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (cpp.dvi): New target split from cpp.info. (gcc.dvi): New target split from gcc.info. (gccint.dvi): New target split from gccint.info. (cppinternals.dvi): New target split from cppinternals.info (gccinstall.info): New specific rule. (gccinstall.dvi): Likewise. (dvi): Move targets to $(docobjdir). ($(docobjdir)/%.dvi): New implicit rule. ada/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (gnat_ug_vms.dvi): Simplify rule and adjust target. (gnat_ug_wnt.dvi): Likewise. (gnat_ug_unx.dvi): Likewise. (gnat_ug_vxw.dvi): Likewise. (gnat_rm.dvi): Likewise. (gnat-style.dvi): Likewise. f/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (g77.dvi): Simplify rule. (g77.info): Sinplify rule. (g77.1): Delete. (g77.pod): New intermediate rule. java/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (gcj.dvi): Simplify rule and adjust target. (gcj.info): Simplify rule. (gcj.pod): New intermediate rule. (gcjh.pod): Likewise. (jv-scan.pod): Likewise. (jcf-dump.pod): Likewise. (gij.pod): Likewise. (jv-convert.pod): Likewise. (rmic.pod): Likewise. (rmiregistry.pod): Likewise. (gcj.1): Delete. (gcjh.1): Delete. (jv-scan.1): Delete. (jcf-dump.1): Delete. (gij.1): Delete. (jv-convert.1): Delete. (rmic.1): Delete. (rmiregistry.1): Delete. treelang/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (treelang.dvi): Simplify rule and adjust target. (treelang.info): Simplify rule. (parse.o): Correct dependencies. (TREE_EXE): Delete doubled suffix append. From-SVN: r73238
2003-11-04Daily bump.GCC Administrator1-1/+1
From-SVN: r73236
2003-11-03gty.texi (tag, desc): Say more about role of desc values in selecting ↵Richard Kenner2-11/+23
between tags. * doc/gty.texi (tag, desc): Say more about role of desc values in selecting between tags. From-SVN: r73233
2003-11-03* real.c (encode_ieee_single): Ensure proper promotion.Alexander Kabaev2-1/+6
From-SVN: r73232
2003-11-03contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner, and Andrew Pinski.Volker Reichelt2-0/+17
* doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner, and Andrew Pinski. From-SVN: r73230
2003-11-03rs6000.c (rs6000_override_options): Add G3, G4, and G5 marketing names to ↵Syd Polk5-4/+30
the list of supported processors. 2003-10-28 Syd Polk <spolk@apple.com> * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5 marketing names to the list of supported processors. * config/rs6000/rs6000.h: Ditto. * doc/invoke.texi: Ditto. * config.gcc: Ditto. From-SVN: r73228
2003-11-03re PR c++/12726 (ICE (segfault) on trivial code)Volker Reichelt2-10/+26
PR c++/12726 * g++.dg/ext/complit2.C: Replace test with self-contained version. * ChangeLog: Add missing first entry for above test. From-SVN: r73227
2003-11-03re PR bootstrap/12666 (fixincludes problem on IRIX 6.5.19m)Rainer Orth3-6/+11
* fixinc/inclhack.def (stdio_va_list): Allow tab before va_list. Merge two substitutions. * fixinc/fixincl.x: Regenerate. Fixes PR bootstrap/12666. From-SVN: r73226
2003-11-03* doc/install-old.texi: Remove VMS documentation.Joseph Myers2-255/+5
From-SVN: r73223
2003-11-03i386.c (override_options): Remove hack enabling 128bit long double commited ↵Jan Hubicka2-1/+5
by accident. * i386.c (override_options): Remove hack enabling 128bit long double commited by accident. From-SVN: r73213
2003-11-02c-opts.c (needValue): Do cpp_find_main_file before processing any imacros ↵Per Bothner2-3/+9
flags... * c-opts.c (needValue): Do cpp_find_main_file before processing any imacros flags, so pfile->main_file is set for the latter. From-SVN: r73212
2003-11-03Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.Andreas Jaeger2-1/+9
2003-11-03 Andreas Jaeger <aj@suse.de> Zack Weinberg <zack@codesourcery.com> * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings. (SYSCALLS.c.X-warn): Suppress warnings. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r73211
2003-11-03re PR java/12866 (gcj checks `throws' clause on artificial method)Jeff Sturm2-4/+12
Fixes PR java/12866. * parse.y (resolve_qualified_expression_name): Move test for outer field access methods from here... (check_thrown_exceptions) ...to here. From-SVN: r73210
2003-11-03Daily bump.GCC Administrator1-1/+1
From-SVN: r73208
2003-11-02re PR rtl-optimization/12845 (missed jump optimization)John David Anglin2-0/+11
PR optimization/12845 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0. From-SVN: r73205
2003-11-02print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.Zack Weinberg4-102/+50
* print-rtl.c (print_rtx): Call PRINT_REG with second argument -1. * config/i386/i386.c (print_reg): Abort on a virtual register if code != -1; not if file == asm_out_file. * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1. (DEBUG_PRINT_REG): Delete, unused. From-SVN: r73203
2003-11-02fde-glibc.c (_GNU_SOURCE): Define to 1 instead of empty to avoid conflict ↵Andreas Schwab2-2/+7
with the definition from configure. * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of empty to avoid conflict with the definition from configure. From-SVN: r73202
2003-11-02re PR c++/9810 (Using-declaration for template functions does not work)Kriang Lerdsuwanakij5-3/+69
PR c++/9810 * call.c (build_over_call): Check access using primary template if FN is a member function template. * g++.dg/template/using8.C: New test. * g++.old-deja/g++.other/access11.C: Adjust expected error location. From-SVN: r73201
2003-11-02re PR rtl-optimization/10817 (gcc does not optimize ↵Roger Sayle5-12/+105
result=0;if(t!=0)result=t; to result=t;) PR optimization/10817 * ifcvt.c (noce_emit_move_insn): Improve documentation comment. (noce_try_move): New function to optimize an if-the-else into an unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a". (noce_process_if_block): Attempt simplification with noce_try_move. * simplify-rtx.c (simplify_ternary_operation): Some minor fixes and improvements to the optimizations of IF_THEN_ELSE expressions. (simplify_subreg): Silence signed/unsigned comparison warning. * gcc.c-torture/compile/20031102-1.c: New test case. From-SVN: r73200