aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
AgeCommit message (Collapse)AuthorFilesLines
2007-12-12re PR bootstrap/30589 (C99 extern inline patch broke bootstrap on ↵Jakub Jelinek1-0/+4
i386-pc-mingw32) PR bootstrap/30589 * doc/install.texi: Document that for MinGW only runtime 3.12 and later is supported. From-SVN: r130794
2007-12-07re PR ada/29157 (gnattools fail on cross compilation - Makefile bug?)Samuel Tardieu1-0/+6
gcc/ PR ada/29157 * doc/install.texi: Explain how to check for a clean environment when building GNAT. From-SVN: r130675
2007-12-06SERVICE: Remove.Ben Elliston1-2/+0
* SERVICE: Remove. * doc/sourcebuild.texi (Miscellaneous Docs): Remove SERVICE item. From-SVN: r130640
2007-12-04* doc/tm.texi (Exception Handling): Mention unwind-dw2-xtensa.c.Ben Elliston1-6/+7
From-SVN: r130597
2007-12-03re PR middle-end/33713 (can't find a register in class 'GENERAL_REGS' while ↵Steven Bosscher1-6/+1
reloading 'asm') PR33713 * doc/invoke.texi: Remove -fforce-addr documentation. * expr.c (emit_move_insn): Remove use of flag_force_addr. (expand_expr_real_1): Same. (do_tablejump): Same. Call memory_address instead of memory_address_noforce. * expr.h (memory_address_noforce): Remove prototype. * explow.c (memory_address): Remove support for flag_force_addr. (validize_mem): Same. (memory_address_noforce): Remove. * common.opt: Add dummy documentation for -fforce-addr. * combine.c (can_combine_p): Remove -fforce-addr comment. * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove set of flag_force_addr. * config/m68k/m68k.h (PIC_CASE_VECTOR_ADDRESS): Remove comment relating to memory_address_noforce. * testsuite/gcc.c-torture/compile/20050802-1.c: Remove. * testsuite/gcc.c-torture/compile/20011113-1.c: Remove. From-SVN: r130591
2007-12-03invoke.texi (fipa-cp, [...]): Add documentation.Razya Ladelsky1-1/+25
2007-12-03 Razya Ladelsky <razya@il.ibm.com> * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation. From-SVN: r130580
2007-11-27elf.h (SUBTARGET_DRIVER_SELF_SPECS): New macro.Bernd Schmidt1-0/+4
* config/bfin/elf.h (SUBTARGET_DRIVER_SELF_SPECS): New macro. * doc/invoke.texi (Blackfin Options): Document the effects. From-SVN: r130464
2007-11-22re PR c/14050 ([DR289] c99 restrict doesn't work in abs declarator)Joseph Myers1-3/+5
PR c/14050 * c-decl.c (set_array_declarator_inner): Don't give error for static or type qualifiers in abstract declarator. Remove abstract_p parameter. * c-tree.h (set_array_declarator_inner): Update prototype. * c-parser.c (c_parser_direct_declarator_inner): Update call to set_array_declarator_inner. * doc/standards.texi: Update for C99 TC3. testsuite: * gcc.dg/c99-arraydecl-1.c: Don't expect errors for static or type qualifiers in abstract declarator. From-SVN: r130362
2007-11-19PR debug/29436, c/32326Jason Merrill1-4/+5
PR debug/29436, c/32326 * tree.c (build_type_attribute_qual_variant): Refuse to make a distinct copy of a struct/enum type. Use build_distinct_type_copy. * doc/extend.texi (Type Attributes): Don't encourage people to add attributes to struct/enum types in a typedef. Fix transparent_union example. * tree-inline.c (remap_type_1): Remove code that's redundant with remap_type. (build_duplicate_type): Set id.copy_decl. * c-common.c (handle_transparent_union_attribute): Simplify logic. From-SVN: r130297
2007-11-19re PR tree-optimization/34036 (ICE with control flow in the middle of basic ↵Eric Botcazou1-4/+3
block for -fnon-call-exceptions) PR tree-optimization/34036 * doc/invoke.texi (Optimize Options): Refactor documentation of -ffast-math. From-SVN: r130287
2007-11-19re PR tree-optimization/34036 (ICE with control flow in the middle of basic ↵Eric Botcazou1-6/+8
block for -fnon-call-exceptions) PR tree-optimization/34036 * opts.c (set_fast_math_flags): Do not set flags in common with set_unsafe_math_optimizations_flags, invoke it directly. (set_unsafe_math_optimizations_flags): Unset flag_trapping_math and flag_signed_zeros. * toplev.c (process_options): Force flag_associative_math to 0 and warn, if it is set and either flag_trapping_math or flag_signed_zeros is set too. * doc/invoke.texi (Optimize Options): Document the new behavior of -funsafe-math-optimizations, that -fassociative-math requires both -fno-signed-zeros and -fno-trapping-math and make it clear that -fno-trapping-math requires -fno-signaling-nans. From-SVN: r130286
2007-11-13invoke.texi: Fix description of -fsched-stalled-insns=0, -fsched-stalled-insns.Jakub Jelinek1-5/+6
* doc/invoke.texi: Fix description of -fsched-stalled-insns=0, -fsched-stalled-insns. From-SVN: r130159
2007-11-12extend.texi (dllimport): Document that pointers to dllimport'd functions can ↵Danny Smith1-3/+6
be used as constant. * doc/extend.texi (dllimport): Document that pointers to dllimport'd functions can be used as constant. From-SVN: r130124
2007-11-08common.opt: Add pointer to doc/options.texi.Kenneth Zadeck1-74/+90
2007-11-07 Kenneth Zadeck <zadeck@naturalbridge.com> * common.opt: Add pointer to doc/options.texi. * doc/invoke.texi (-fdse, -fdce, -fauto-inc-dec, -fipa-pure-const, -fipa-reference): Add or correct doc. Sorted options list for -Os -O, -O2. From-SVN: r130000
2007-11-07invoke.texi: Replace rs6000 dfp switches -mdfp/-mno-dfp with ↵Andreas Krebbel1-6/+6
-mhard-dfp/-mno-hard-dfp. 2007-11-07 Andreas Krebbel <krebbel1@de.ibm.com> * doc/invoke.texi: Replace rs6000 dfp switches -mdfp/-mno-dfp with -mhard-dfp/-mno-hard-dfp. From-SVN: r129957
2007-11-05re PR tree-optimization/32540 (Exponential time behavior in PRE)Nick Clifton1-0/+10
2007-11-05 Nick Clifton <nickc@redhat.com> Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/32540 PR tree-optimization/33922 * doc/invoke.texi: Document PARAM_MAX_PARTIAL_ANTIC_LENGTH. * tree-ssa-pre.c: Include params.h. (compute_partial_antic_aux): Use PARAM_MAX_PARTIAL_ANTIC_LENGTH to limit the maximum length of the PA set for a given block. * Makefile.in: Add a dependency upon params.h for tree-ssa-pre.c * params.def (PARAM_MAX_PARTIAL_ANTIC_LENGTH): New parameter. * gcc.dg/tree-ssa/pr32540-1.c: New. * gcc.dg/tree-ssa/pr32540-2.c: New. * gcc.dg/tree-ssa/pr33922.c: New. Co-Authored-By: Sebastian Pop <sebastian.pop@amd.com> From-SVN: r129901
2007-11-04* doc/contrib.texi (Contributors): Add Manuel Lopez-Ibanez.Gerald Pfeifer1-0/+4
From-SVN: r129884
2007-11-01invoke.texi (Optimize Options): Under -fcse-follow-jumps, show that CSE ↵Janis Johnson1-6/+6
means common subexpression elimination. * doc/invoke.texi (Optimize Options): Under -fcse-follow-jumps, show that CSE means common subexpression elimination. Change wording for -fsee and define LCM. Remove capitalization of optimizations for -ftree-reassoc, -ftree-pre, and -ftree-fre. From-SVN: r129824
2007-11-01re PR testsuite/25352 (xfail within dg-do command has no effect)Janis Johnson1-4/+5
gcc/ PR testsuite/25352 * doc/sourcebuild.texi (Test Directives): Document that xfail has no effect for dg-do except when dg-do-what is "run". libstdc++-v3/ PR testsuite/25352 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: Remove xfail from dg-do and add dg-skip-if. gcc/testsuite/ PR testsuite/25352 * gcc.c-torture/compile/20000804-1.c: Remove xfail from dg-do and add dg-skip-if. * gcc.c-torture/compile/20001205-1.c: Ditto. * gcc.c-torture/compile/20001226-1.c: Ditto. * gcc.c-torture/compile/20020312-1.c: Ditto. * gcc.c-torture/compile/20020604-1.c: Ditto. * gcc.c-torture/compile/920501-12.c: Ditto. * gcc.c-torture/compile/920501-4.c: Ditto. * gcc.c-torture/compile/920520-1.c: Ditto. * gcc.c-torture/compile/980506-1.c: Ditto. * gcc.c-torture/compile/990617-1.c: Ditto. * gcc.dg/compare6.c: Ditto. * g++.old-deja/g++.brendan/crash43.C: Ditto. * g++.old-deja/g++.brendan/synth1.C: Ditto. * g++.old-deja/g++.oliva/dwarf2.C: Ditto. * g++.old-deja/g++.oliva/dwarf3.C: Ditto. * g++.old-deja/g++.pt/static6.C: Ditto. * g++.old-deja/g++.pt/crash16.C: Ditto. * g++.old-deja/g++.mike/p10416.C: Ditto. * g++.old-deja/g++.mike/ns15.C: Ditto. * g++.old-deja/g++.mike/eh46.C: Ditto. From-SVN: r129823
2007-10-30invoke.texi (Option Summary): Add -fdce and -fdse to list of optimization ↵Janis Johnson1-2/+14
options. * doc/invoke.texi (Option Summary): Add -fdce and -fdse to list of optimization options. (Optimize Options): Add -fdce and -fdse to the list of optimizations enabled by -O. Document -fdce and -fdse. From-SVN: r129786
2007-10-29re PR testsuite/24841 (dg-require compilation-test trigged on test with ↵Janis Johnson1-2/+4
additional-sources barfs) PR testsuite/24841 * doc/sourcebuild.texi (Test Directives): Document that dg-require directives must come before dg-additional-sources. From-SVN: r129744
2007-10-29passes.c (init_optimization_passes): Exchange store_copy_prop with copy_prop.Richard Guenther1-8/+1
2007-10-29 Richard Guenther <rguenther@suse.de> * passes.c (init_optimization_passes): Exchange store_copy_prop with copy_prop. * tree-pass.h (pass_store_copy_prop): Remove. * tree-ssa-copy.c (do_store_copy_prop): Remove. (stmt_may_generate-copy): Do not handle store_copy_prop. (get_copy_of_val): Likewise. (set_copy_of_val): Likewise. (copy_prop_visit_assignment): Likewise. (copy_prop_visit_stmt): Likewise. (copy_prop_visit_phi_node): Likewise. (init_copy_prop): Likewise. (execute_copy_prop): Likewise. (do_copy_prop): Remove. (gate_store_copy_prop): Likewise. (store_copy_prop): Likewise. (pass_store_copy_prop): Likewise. (pass_copy_prop): Call execute_copy_prop. * opts.c (decode_options): Do not set flag_tree_store_copy_prop. * common.opt (ftree-store-copy-prop): Mark obsolete. * doc/invoke.texi (ftree-store-copy-prop): Remove documentation. * gcc.dg/tree-ssa/ssa-copyprop-1.c: Scan optimized dump. From-SVN: r129734
2007-10-26invoke.texi (Option Summary, [...]): Remove -fbounds-check.Janis Johnson1-19/+16
* doc/invoke.texi (Option Summary, optimizations): Remove -fbounds-check. Add -fassociative-math, -freciprocal-math, -ftree-vrp and -funit-at-a-time. Change -fno-split-wide-types to -fsplit-wide-types to match later entry. Break up a long line. (Option Summary, code gen options) Add -fno-stack-limit. Add missing @gol to the end of a line. (Optimization Options): Remove -fbounds-check, which is also documented under Code Generation Options. Remove =n from index entry for -ftree-parallelize-loops. Change -fno-cprop-registers to -fcprop-registers to match other options, and say when it is enabled rather than disabled. Remove extra index entry for -fno-cx-limited-range. Add index entries for -fstack-protector and -fstack-protector-all. (Code Gen Options): Add index entry for -ftls-model. From-SVN: r129664
2007-10-23rtl.texi (Flags): Fix MEM_SCALAR_P entry.Eric Botcazou1-27/+21
* doc/rtl.texi (Flags): Fix MEM_SCALAR_P entry. Document MEM_POINTER. Replace mentions of "integrated" field with "return_val". Delete outdated stuff. From-SVN: r129584
2007-10-22invoke.texi (Optimization Options): In the summary...Janis Johnson1-13/+50
* doc/invoke.texi (Optimization Options): In the summary, show that the value for options -falign-jumps, -falign-labels, -falign-loops, -falign-functions, -fsched-stalled-insns, and -fsched-stalled-insns-dep is optional. In the summary, show that -fsched-stalled-insns takes an optional argument and that -fparallelize-loops takes an argument. Add opindex for several optimization options, and fix typos in the opindex commands for several others. In the descriptions for -fsched-stalled-insns and -fsched-stalled-insns-dep, show the options with and without values. From-SVN: r129565
2007-10-21invoke.texi (-mpaired-single): Don't say that the option requires 64-bit code.Richard Sandiford1-3/+2
gcc/ * doc/invoke.texi (-mpaired-single): Don't say that the option requires 64-bit code. * config/mips/mips-protos.h (mips_modes_tieable_p): Declare. * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): New macro. (ISA_HAS_NMADD_NMSUB): Add a mode argument. Return true for V2SF if ISA_MIPS32R2. (MODES_TIEABLE_P): Use mips_modes_tieable_p. * config/mips/mips.c (mips_rtx_costs): Pass a mode argument to ISA_HAS_NMADD_NMSUB. (mips_split_doubleword_move): Handle V2SF. (mips_modes_tieable_p): New function. (override_options): Report a warning rather than an error when -mpaired-single is used on ISAs that don't support it; use ISA_HAS_PAIRED_SINGLE to check that case. * config/mips/mips.md (MOVE64): New mode iterator. Replace DI and DF move splitters with a single MOVE64 splitter, thereby adding a V2SF splitter too. (SPLITF): Add TARGET_DOUBLE_FLOAT conditions to DI and DF. Add a TARGET_FLOAT64 condition to TF. Add V2SF to the iterator. (HALFMODE): Add V2SF. (*nmadd<mode>, *nmadd<mode>_fastmath, *nmsub<mode>) (*nmsub<mode>_fastmath): Add a mode argument to ISA_HAS_NMADD_NMSUB. (movv2sf_hardfloat_64bit): Tweak ordering of conditions. (movv2sf_hardfloat_32bit): New pattern. (load_low<mode>, load_high<mode>, store_word<mode>): Remove TARGET_DOUBLE_FLOAT conditions. gcc/testsuite/ * gcc.dg/vect/vect.exp: Extend -mpaired-single handling to all MIPS targets. * g++.dg/vect/vect.exp: Likewise. * lib/fortran-torture.exp: Likewise. * gcc.target/mips/mips-ps-1.c: Use mpaired_single rather than mipsisa64*-*-* as the target selector. Remove -mips64, -mhard-float and -mgp64 from the options list. * gcc.target/mips/mips-ps-2.c: Likewise. * gcc.target/mips/mips-ps-3.c: Likewise. * gcc.target/mips/mips-ps-4.c: Likewise. * gcc.target/mips/mips-ps-6.c: Likewise. * gcc.target/mips/mips-ps-5.c: Remove -mhard-float from the options list. * gcc.target/mips/sb1-1.c: Likewise. * gcc.target/mips/mips-ps-type.c: Likewise. * gcc.target/mips/mips-ps-7.c: New test. * gcc.target/mips/mips-ps-type-2.c: Likewise. * gcc.target/mips/fpr-moves-6.c: Remove XFAIL. * gcc.target/mips/mips.exp (setup_mips_tests): Set mips_fp and mips_gp instead of mips_fp64 and mips_gp64. Treat -mgp32 -mfp64 as forcing an ABI and an architecture. (is_gp32_flag, is_gp64_flag): Fold into... (dg-mips-options): ...here. Make -mpaired-single imply -mfp64, then -mfp64 imply -mhard-float. Apply register rules after the loop. Handle -march=mipsN like -mipsN. From-SVN: r129522
2007-10-20invoke.texi (Warning Options): Move -w, -Werror, -Werror= and -Wfatal-errors ↵Manuel López-Ibáñez1-43/+45
together. 2007-10-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (Warning Options): Move -w, -Werror, -Werror= and -Wfatal-errors together. From-SVN: r129513
2007-10-18Add Niagara-2 support.David S. Miller1-4/+5
2007-10-18 David S. Miller <davem@davemloft.net> Add Niagara-2 support. * doc/invoke.texi: Document -m{cpu,tune}=niagara2. * config.gcc: Add niagara2 to cpu and tune lists for sparc. * config/sparc/sparc.md (sparc_cpu_attr): Add niagara2. (include): Add inclusion of niagara2.md * config/sparc/sparc.c (niagara2_costs): New. (sparc_override_options): Add niagara2 entry to cpu_default[] and cpu_table[]. Set align_functions to 32 on Niagara2. Use niagara2_costs when PROCESSOR_NIAGARA2. Handle Niagara2 for PARAM_SIMULTANEOUS_PREFETCHES and PARAM_L1_CACHE_LINE_SIZE. (sparc_initialize_trampoline): Handle niagara2 like niagara. (sparc64_initialize_trampoline): Likewise. (sparc_use_sched_lookahead): Likewise. (sparc_issue_rate): Likewise. * config/sparc/sol2-bi.h: Handle TARGET_CPU_niagara2 and mcpu=niagara2 * config/sparc/sparc.h (TARGET_CPU_niagara2): Define. ({CPP,ASM}_CPU64_DEFAULT_SPEC): Set appropriately for TARGET_CPU_niagara2. (PROCESSOR_NIAGARA2): New. (REGISTER_MOVE_COST): Handle PROCESSOR_NIAGARA2. (BRANCH_COST): Likewise. * config/sparc/linux64.h: Handle TARGET_CPU_niagara2. * config/sparc/sol2.h: Likewise. * config/sparc/niagara2.md: New file. From-SVN: r129472
2007-10-16target.h (unspec_may_trap_p): New target hook.Paolo Bonzini1-0/+9
2007-10-16 Paolo Bonzini <bonzini@gnu.org> Maxim Kuvyrkov <maxim@codesourcery.com> * target.h (unspec_may_trap_p): New target hook. * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro. * targhooks.c (default_unspec_may_trap_p): Default implementation of the hook. * targhooks.h (default_unspec_may_trap_p): Declare it. * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook. * rtlanal.c (may_trap_p_1): Use new hook. Make global. * rtl.h (may_trap_p_1): Declare. * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to override default hook implementation. (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the hook. * gcc.target/ia64/20040709-2.c: New test. Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com> From-SVN: r129378
2007-10-15invoke.texi (Wextra): Move it just after Wall...Manuel López-Ibáñez1-96/+64
2007-10-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (Wextra): Move it just after Wall, list the options enabled by Wextra and mention Wuninitialized. From-SVN: r129373
2007-10-14fixed-bit.c, [...]: Fix comment typos.Kazu Hirata1-1/+1
* config/fixed-bit.c, config/i386/cpuid.h, config/i386/i386.c, config/i386/i386.md, config/i386/sse.md, function.c, jump.c, modulo-sched.c, ra-conflict.c, toplev.c, tree-eh.c, tree-sra.c, tree-ssa-dse.c, tree-vect-analyze.c, tree-vect-patterns.c, tree-vect-transform.c: Fix comment typos. * doc/extend.texi: Fix a typo. From-SVN: r129291
2007-10-09extend.texi (Deprecated Features): Mention that <?Geoffrey Keating1-2/+2
* doc/extend.texi (Deprecated Features): Mention that <? and >? and friends are removed from G++. From-SVN: r129186
2007-10-09invoke.texi (align-threshold, [...]): Document.Jan Hubicka1-0/+10
* invoke.texi (align-threshold, align-loop-iterations): Document. * final.c: Include cfgloop.h, params.h (compute_alignments): Dump decisions and compare them with loop structure; honor given parameters. (pass_compute_alignments): New dump file. * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New. * Makefile.in (final.o): Add dependency on cfgloop.h and params.h From-SVN: r129162
2007-10-08invoke.texi (Wall): fix formatting issues.Manuel López-Ibáñez1-28/+28
2007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (Wall): fix formatting issues. contrib/ * texi2pod.pl: Handle @asis. (postprocess): Move @gccoptlist{} after all formatting commands. From-SVN: r129125
2007-10-03re PR fortran/26682 (gfortran fails with -fwhole-program optimization)Francois-Xavier Coudert1-0/+1
PR fortran/26682 * options.c (gfc_post_options): Issue an error when -fwhole-program is used. * doc/invoke.texi (-fwhole-program): Document that Fortran doesn't support this option. From-SVN: r128977
2007-09-30invoke.texi (Wall): List the options enabled by Wall.Manuel López-Ibáñez1-9/+40
2007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (Wall): List the options enabled by Wall. (Wstrict-aliasing): Add missing @option. From-SVN: r128895
2007-09-28libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.Chao-ying Fu1-48/+48
* libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section. * doc/libgcc.texi (Fixed-point fractional library routines): Fix typos for neg and cmp functions. From-SVN: r128873
2007-09-23tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to word_mode as well ↵Richard Sandiford1-8/+9
as Pmode. gcc/ * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to word_mode as well as Pmode. From-SVN: r128698
2007-09-23params.def (INLINE_CALL_COST): Set to 12.Jan Hubicka1-1/+1
* params.def (INLINE_CALL_COST): Set to 12. * invoke.texi (inline-call-cost): Update default value. From-SVN: r128692
2007-09-23expr.c (expand_expr_real_1): Use get_callee_fndecl instead of checking ↵Jakub Jelinek1-1/+26
CALL_EXPR_FN directly to test for... * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl instead of checking CALL_EXPR_FN directly to test for builtins. If error or warning attributes are present, print error resp. warning. * c-common.c (handle_error_attribute): New function. (c_common_attribute_table): Add error and warning attributes. * doc/extend.texi: Document error and warning attributes. * gcc.dg/va-arg-pack-len-1.c: Use error and warning attributes. * gcc.dg/va-arg-pack-len-2.c: New test. * g++.dg/ext/va-arg-pack-len-1.C: Use error and warning attributes. * g++.dg/ext/va-arg-pack-len-2.C: New test. From-SVN: r128687
2007-09-23tree.h (block_nonartificial_location): New prototype.Jakub Jelinek1-2/+10
* tree.h (block_nonartificial_location): New prototype. * tree.c (block_nonartificial_location): New function. * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial if artificial attribute is present on abstract inline decl. * c-common.c (handle_artificial_attribute): New function. (c_common_attribute_table): Add artificial attribute. * final.c (override_filename, override_linenum): New variables. (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename and override_linenum if inside of a block inlined from __attribute__((__artificial__)) function. (notice_source_line): Honor override_filename and override_linenum. * doc/extend.texi: Document __attribute__((__artificial__)). * config/i386/emmintrin.h: Add __artificial__ attribute to all __always_inline__ functions. * config/i386/mmintrin.h: Likewise. * config/i386/tmmintrin.h: Likewise. * config/i386/mm3dnow.h: Likewise. * config/i386/pmmintrin.h: Likewise. * config/i386/ammintrin.h: Likewise. * config/i386/xmmintrin.h: Likewise. * config/i386/smmintrin.h: Likewise. * config/i386/bmmintrin.h: Likewise. * config/i386/mmintrin-common.h: Likewise. From-SVN: r128686
2007-09-22sourcebuild.texi: Document dg-add-options mips16_attribute.Richard Sandiford1-0/+4
gcc/ * doc/sourcebuild.texi: Document dg-add-options mips16_attribute. gcc/testsuite/ * lib/target-supports.exp (add_options_for_mips16_attribute) (check_effective_target_mips16_attribute): New functions. * gcc.target/mips/mips.exp: Define MIPS16 and NOMIPS16 on the command line. (dg-mips-options) Remove -mno-mips16 handling. Add options to extra_test_flags. * gcc.target/mips/asm-1.c (NOMIPS16): Delete. * gcc.target/mips/atomic-memory-1.c (NOMIPS16): Likewise. * gcc.target/mips/atomic-memory-2.c (NOMIPS16): Likewise. * gcc.target/mips/branch-1.c (NOMIPS16): Likewise. * gcc.target/mips/dspr2-MULT.c (NOMIPS16): Likewise. * gcc.target/mips/dspr2-MULTU.c (NOMIPS16): Likewise. * gcc.target/mips/fpcmp-1.c (NOMIPS16): Likewise. * gcc.target/mips/fpcmp-2.c (NOMIPS16): Likewise. * gcc.target/mips/ins-1.c (NOMIPS16): Likewise. * gcc.target/mips/madd-3.c (NOMIPS16): Likewise. * gcc.target/mips/maddu-3.c (NOMIPS16): Likewise. * gcc.target/mips/mips32-dsp-run.c (NOMIPS16): Likewise. * gcc.target/mips/mips32-dspr2-type.c (NOMIPS16): Likewise. * gcc.target/mips/msub-3.c (NOMIPS16): Likewise. * gcc.target/mips/msubu-3.c (NOMIPS16): Likewise. * gcc.target/mips/near-far-3.c (NOMIPS16): Likewise. * gcc.target/mips/near-far-4.c (NOMIPS16): Likewise. * gcc.target/mips/neg-abs-1.c (NOMIPS16): Likewise. * gcc.target/mips/smartmips-lwxs.c (NOMIPS16): Likewise. * gcc.target/mips/smartmips-ror-1.c (NOMIPS16): Likewise. * gcc.target/mips/smartmips-ror-2.c (NOMIPS16): Likewise. * gcc.target/mips/smartmips-ror-3.c (NOMIPS16): Likewise. * gcc.target/mips/smartmips-ror-4.c (NOMIPS16): Likewise. * gcc.target/mips/pr26765.c: Use dg-mips-options instead of dg-options. (NOMIPS16): Delete. * gcc.target/mips/20020620-1.c: Use dg-mips-options instead of dg-options. * gcc.target/mips/call-saved-1.c: Remove -mips16 and -mno-abicalls options. Require { target mips16_attribute } and use dg-add-options to add the associated options. (foo): Use MIPS16. * gcc.target/mips/call-saved-2.c: As for call-saved-1.c. * gcc.target/mips/call-saved-3.c: Likewise. * gcc.target/mips/code-readable-1.c: Require { target mips16_attribute } and use dg-add-options to add the associated options. Remove trailing whitespace. (NOMIPS16): Delete. * gcc.target/mips/code-readable-2.c: Likewise. * gcc.target/mips/code-readable-3.c: Likewise. * gcc.target/mips/mips16-attributes-2.c: Likewise. * gcc.target/mips/mips16e-extends.c: Remove -mips16 option. Require { target mips16_attribute } and use dg-add-options to add the associated options. (cksum16, cksum8): Use MIPS16. * gcc.target/mips/save-restore-1.c: Remove -mips16 option. Require { target mips16_attribute } and use dg-add-options to add the associated options. (foo): Use MIPS16. * gcc.target/mips/save-restore-2.c: Likewise. * gcc.target/mips/save-restore-3.c: Likewise. * gcc.target/mips/save-restore-4.c: Likewise. * gcc.target/mips/save-restore-5.c: Likewise. Also remove -mno-abicalls. * gcc.target/mips/mips-sched-madd.c: Remove -mno-mips16. (foo): Use NOMIPS16. From-SVN: r128674
2007-09-22sourcebuild.texi (dg-add-c99-runtime-options): Document.Richard Sandiford1-0/+12
gcc/ * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document. gcc/testsuite/ * lib/target-supports.exp (add_options_for_c99_runtime): New procedure. * lib/target-supports-dg.exp (dg-add-options): Likewise. * gcc.dg/builtins-18.c: Use { dg-add-options c99_runtime } instead of target-specific dg-options. * gcc.dg/builtins-20.c: Likewise. * gcc.dg/builtins-53.c: Likewise. * gcc.dg/builtins-55.c: Likewise. * gcc.dg/single-precision-constant.c: Likewise. * gcc.dg/torture/builtin-convert-1.c: Likewise. * gcc.dg/torture/builtin-convert-2.c: Likewise. * gcc.dg/torture/builtin-convert-3.c: Likewise. * gcc.dg/torture/builtin-convert-4.c: Likewise. * gcc.dg/torture/builtin-power-1.c: Likewise. From-SVN: r128663
2007-09-20configure.ac (mipsisa*-*-elfoabi*): New stanza.Richard Sandiford1-0/+13
* configure.ac (mipsisa*-*-elfoabi*): New stanza. * configure: Regenerate. config/ * mt-mips-elfoabi: New file. gcc/ * doc/invoke.texi (-minterlink-mips16): Document. * config/mips/mips.opt (minterlink-mips16): New option. * config/mips/mips.c (mips_function_ok_for_sibcall): Handle -minterlink-mips16 From-SVN: r128625
2007-09-20extend.texi (Attribute Syntax): Remove old speculative future direction.Joseph Myers1-18/+4
* doc/extend.texi (Attribute Syntax): Remove old speculative future direction. From-SVN: r128622
2007-09-19tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.Bernd Schmidt1-2/+4
* doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument. * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument default definition. (asm_insn_count): Pass template as second argument to it. * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. (sh_insn_length_adjustment): Pass template as second argument to it. * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro. From-SVN: r128599
2007-09-19config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h to tm_file.Jie Zhang1-17/+34
* config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h to tm_file. * config/bfin/print-sysroot-suffix.sh: New. * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove. (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Redefine with new multilibs. * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove. (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Redefine with new multilibs. * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove. (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Redefine with new multilibs. (linux-sysroot-suffix.h): New target. * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask. (mspecld-anomaly): Likewise. * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525, BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542, BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549. (bfin_si_revision): Declare. (bfin_workarounds): Declare. (WA_SPECULATIVE_LOADS): Define. (ENABLE_WA_SPECULATIVE_LOADS): Define. (WA_SPECULATIVE_SYNCS): Define. (ENABLE_WA_SPECULATIVE_SYNCS): Define. * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o. (LIB_SPEC): Add %s to the linker scripts. Use proper linker script for bf522, bf525, bf527, bf538, bf539, bf542, bf544, bf548, and bf549. * config/bfin/bfin.c (bfin_si_revision): Define. (bfin_workarounds): Define. (struct bfin_cpu): New. (bfin_cpus): New. (bfin_handle_option): Handle silicon revision part of -mcpu option. (override_options): Set bfin_workarounds. (length_for_loop): Replace TARGET_CSYNC_ANOMALY with ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with ENABLE_WA_SPECULATIVE_LOADS. (bfin_reorg): Likewise. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define macros for bf522, bf525, bf527, bf538, bf539, bf542, bf544, bf548, and bf549. Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed. Don't define __ID_SHARED_LIB__ when -msep-data. (TARGET_DEFAULT): Define as 0. (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option. * doc/invoke.texi (Blackfin Options): Document silicon revision part of -mcpu option and it now accepts bf522, bf525, bf527, bf538, bf539, bf542, bf544, bf548, and bf549. Neither -mspecld-anomaly nor -mcsync-anomaly is enabled anymore. testsuite/ * gcc.target/bfin/bfin.exp: New. * gcc.target/bfin/{workarounds-any.c, workarounds-none.c, workarounds-1.c, workarounds-2.c, workarounds-3.c, workarounds-4.c, mcpu-bf522.c, mcpu-bf525.c, mcpu-bf527.c, mcpu-bf531.c, mcpu-bf532.c, mcpu-bf533.c, mcpu-bf534.c, mcpu-bf536.c, mcpu-bf537.c, mcpu-bf538.c, mcpu-bf539.c, mcpu-bf542.c, mcpu-bf544.c, mcpu-bf548.c, mcpu-bf549.c, mcpu-bf561.c, mcpu-default.c}: New tests. From-SVN: r128597
2007-09-18m68k-devices.def (51qe): New device.Maxim Kuvyrkov1-1/+2
* config/m68k/m68k-devices.def (51qe): New device. * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit. Add it to all uses of FL_FOR_isa_c for compatibility. (all_microarchs): Add cfv1 microarchitecture. (m68k_handle_option): Handle m51qe option. * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE. (TUNE_CFV1): New macro. (enum uarch_type): Add ucfv1. * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture. From-SVN: r128574
2007-09-17fixed-bit.h: New file.Chao-ying Fu1-2/+1425
* config/fixed-bit.h: New file. * config/fixed-bit.c: New file. * doc/libgcc.texi (Fixed-point fractional library routines): New node. Co-Authored-By: Nigel Stephens <nigel@mips.com> From-SVN: r128556
2007-09-15tree-parloops.c: New file.Zdenek Dvorak2-1/+12
* tree-parloops.c: New file. * tree-ssa-operands.h (free_stmt_operands): Declare. * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic block. * tree-pass.h (pass_parallelize_loops): Declare. * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for virtual operands. (build_omp_regions_1): Allow analysing just a single OMP region and its subregions. ( build_omp_regions_root, omp_expand_local): New functions. (build_omp_regions): Add argument to build_omp_regions_1 call. * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when autoparallelization is run. * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New. * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops, pass_parallelize_loops): New. * common.opt (ftree-parallelize-loops): New. * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail, parallelize_loops): Declare. (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed. * Makefile.in (tree-parloops.o): Added. * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail): New functions. (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge. (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for one extra edge as well. (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy. Use VEC_free to free doms vector. (move_block_to_fn): Update loop info. Remove phi nodes for virtual operands. Recompute operand caches in the new function. (move_sese_region_to_fn): Update loop info. * passes.c (init_optimization_passes): Add pass_parallelize_loops. * tree-ssa-operands.c (free_stmt_operands): New function. * doc/passes.texi: Document autoparallelization. * doc/invoke.texi (-ftree-parallelize-loops): New option. * gcc.dg/tree-ssa/parallelization-1.c: New test. From-SVN: r128517