This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29335] transcendental functions with constant arguments should be resolved at compile-time
- From: "chaoyingfu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 19:44:33 -0000
- Subject: [Bug middle-end/29335] transcendental functions with constant arguments should be resolved at compile-time
- References: <bug-29335-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #35 from chaoyingfu at gcc dot gnu dot org 2006-11-30 19:44 -------
Subject: Bug 29335
Author: chaoyingfu
Date: Thu Nov 30 19:43:57 2006
New Revision: 119376
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119376
Log:
Merged revisions 118384-118452 via svnmerge from
svn+ssh://chaoyingfu@sources.redhat.com/svn/gcc/trunk
........
r118384 | sje | 2006-11-01 08:25:17 -0800 (Wed, 01 Nov 2006) | 2 lines
* tests/base/sys/socket.h: Update.
........
r118385 | dgregor | 2006-11-01 08:27:23 -0800 (Wed, 01 Nov 2006) | 8 lines
2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
* include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
for experimental C++0x mode.
* init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
adopted the preprocessor changes introduced in C99.
........
r118386 | dgregor | 2006-11-01 08:29:06 -0800 (Wed, 01 Nov 2006) | 14 lines
2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
* c-common.c (flag_cpp0x): New.
* c-common.h (flag_cpp0x): New.
* c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
supported, define __GXX_EXPERIMENTAL_CPP0X__.
* c-opts.c (set_std_cxx0x): New.
(c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
* c.opt (std=c++0x): Document.
(std=gnu++0x): Ditto.
* doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
* doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
........
r118389 | dgregor | 2006-11-01 09:13:27 -0800 (Wed, 01 Nov 2006) | 14 lines
2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
* c-common.c (flag_cpp0x): New.
* c-common.h (flag_cpp0x): New.
* c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
supported, define __GXX_EXPERIMENTAL_CPP0X__.
* c-opts.c (set_std_cxx0x): New.
(c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
* c.opt (std=c++0x): Document.
(std=gnu++0x): Ditto.
* doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
* doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
........
r118391 | kseitz | 2006-11-01 10:20:19 -0800 (Wed, 01 Nov 2006) | 8 lines
* gnu/gcj/jvmti/Location.java: New file.
* gnu/gcj/jvmti/BreakpointManager.java: New file.
* jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
(_Jv_JVMTI_ClearBreakpoint): New function.
(_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
........
r118392 | vprus | 2006-11-01 11:01:36 -0800 (Wed, 01 Nov 2006) | 6 lines
2006-11-01 Chris Johns <chris@contemporary.net.au>
PR bootstrap/28400
* Makefile.in (install-driver): Use exeext when installing
$target-gcc-$version.
........
r118393 | nemet | 2006-11-01 11:19:28 -0800 (Wed, 01 Nov 2006) | 5 lines
* tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
HOST_WIDE_INT_PRINT to print high and low parts. Use
HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. When
printing a hexadecimal number prefix it with 0x.
........
r118394 | nemet | 2006-11-01 11:22:02 -0800 (Wed, 01 Nov 2006) | 5 lines
* gcc.dg/fold-mod-1.c: Match the leading 0x for the
hexadecimal value.
* gcc.dg/tree-prof/val-prof-2.c: Likewise.
* gcc.dg/pr14796-2.c: Likewise.
........
r118396 | bergner | 2006-11-01 12:47:53 -0800 (Wed, 01 Nov 2006) | 67 lines
* doc/invoke.texi: Add cpu_type power6x
(RS/6000 and PowerPC Options): Add -mmfpgpr.
* config.gcc: Add cpu_type power6x.
* configure.ac: Add test for mf{t,f}gpr instructions.
(HAVE_AS_MFPGPR): New.
* config.in: Regenerate.
* configure: Regenerate.
* config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6x.
* config/rs6000/rs6000.md (define_attr "type"): Add insert_dword,
shift,trap,var_shift_rotate,cntlz,exts, var_delayed_compare, mffgpr
and mftgpr attributes.
(define_attr "cpu"): Add power6.
Change instruction sequences to use new attributes.
(floatsidf2,fix_truncdfsi2): use TARGET_MFPGPR.
(fix_truncdfsi2_mfpgpr): New.
(floatsidf_ppc64_mfpgpr): New.
(floatsidf_ppc64): Added !TARGET_MFPGPR condition.
(movdf_hardfloat64_mfpgpr,movdi_mfpgpr): New.
(movdf_hardfloat64): Added !TARGET_MFPGPR condition.
(movdi_internal64): Added !TARGET_MFPGPR and related conditions.
(fix_truncdfsi2): Use gpc_reg_operand constraint.
* config/rs6000/{6xx.md,power4.md,8540.md,603.md,mpc.md,
7xx.md,rios2.md,7450.md,440.md,rios1.md,rs64.md,power5.md,40x.md}:
Add descriptions for insert_dword, shift,trap,var_shift_rotate,
cntlz,exts and var_delayed_compare.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
_ARCH_PWR6X, if features enabled.
* config/rs6000/rs6000.opt (mmfpgpr): New.
* config/rs6000/rs6000.c (rs6000_align_branch_targets): New variable.
(cached_can_issue_more): New variable.
(processor_costs): Add power6_cost.
(rs6000_sched_init): New function.
(is_dispatch_slot_restricted): Deleted.
(set_to_load_agen): New function.
(is_load_insn,is_store_insn): New functions.
(adjacent_mem_locations): New function.
(insn_must_be_first_in_group): New function.
(insn_must_be_last_in_group): New function.
(rs6000_sched_reorder): New function.
(rs6000_sched_reorder2): New function.
(TARGET_SCHED_INIT,TARGET_SCHED_REORDER,
TARGET_SCHED_REORDER2): Define.
(processor_target_table): Use PROCESSOR_POWER6 for power6.
Add power6x. Add MASK_MFPGPR for power6x.
(POWERPC_MASKS): Add MASK_MFPGPR.
(rs6000_override_options): Set rs6000_always_hint to false
for power6. Set rs6000_align_branch_targets. Replace
rs6000_sched_groups check with rs6000_align_branch_targets.
Use PROCESSOR_POWER6.
(last_scheduled_insn): New variable.
(load_store_pendulum): New variable.
(rs6000_variable_issue): Set last_scheduled_insn and
cached_can_issue_more.
(rs6000_adjust_cost): Add power6 cost adjustments.
(rs6000_adjust_priority): Replace is_dispatch_slot_restricted
with insn_must_be_first_in_group. Add power6 priority adjustments.
(rs6000_issue_rate): Add CPU_POWER6.
(insn_terminates_group_p): Use insn_must_be_{first,last}_in_group.
* config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER6.
(TARGET_MFPGPR): New.
(SECONDARY_MEMORY_NEEDED): Use TARGET_MFPGPR.
(ASM_CPU_SPEC): Add power6x.
(SECONDARY_MEMORY_NEEDED): Added mode!=DFmode and mode!=DImode
conditions.
* config/rs6000/power6.md: New file.
........
r118403 | gccadmin | 2006-11-01 16:17:55 -0800 (Wed, 01 Nov 2006) | 1 line
Daily bump.
........
r118405 | sayle | 2006-11-01 16:56:38 -0800 (Wed, 01 Nov 2006) | 11 lines
* configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
whether the assembler supports taking the difference of symbols in
different sections. On x86/Solaris, GAS does but Solaris as doesn't.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
the assembler doesn't support taking the difference of symbols in
different sections, i.e. we're using the native solaris assembler.
........
r118408 | sayle | 2006-11-01 18:37:38 -0800 (Wed, 01 Nov 2006) | 5 lines
* config/darwin.h (CPP_SPEC): Handle -pthread, transforming
it into -D_REENTRANT.
........
r118409 | ghazi | 2006-11-01 19:20:49 -0800 (Wed, 01 Nov 2006) | 9 lines
PR middle-end/29335
* builtins.c (do_mpfr_sincos): New.
(fold_builtin_1): Use it to fold builtin sincos.
testsuite:
* gcc.dg/torture/builtin-math-3.c: Fix semicolons.
(TESTIT_2P, TESTIT_2P_R): New macros. Test sincos.
........
r118419 | kseitz | 2006-11-02 08:59:04 -0800 (Thu, 02 Nov 2006) | 3 lines
* jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.
(_Jv_JVMTI_Interface): Define GetLineNumberTable.
........
r118420 | kseitz | 2006-11-02 09:01:01 -0800 (Thu, 02 Nov 2006) | 2 lines
* gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
........
r118422 | ebotcazou | 2006-11-02 10:40:54 -0800 (Thu, 02 Nov 2006) | 6 lines
PR other/29639
* except.c (switch_to_exception_section): Do not cache the section
if named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
and flag_function_sections is set.
........
r118424 | andreast | 2006-11-02 12:03:40 -0800 (Thu, 02 Nov 2006) | 5 lines
2006-11-02 Andreas Tobler <a.tobler@schweiz.org>
* objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
content where we called cp_finish_file.
........
r118425 | pbrook | 2006-11-02 12:18:42 -0800 (Thu, 02 Nov 2006) | 9 lines
2006-11-02 Paul Brook <paul@codesourcery.com>
gcc/
* config/arm/arm.c (arm_elf_asm_constructor): Remove ATTRIBUTE_UNUSED
from priority argument. Use different section for non-default
priority.
* config/arm/elf.h: Remove definition of SUPPORTS_INIT_PRIORITY.
........
r118426 | ebotcazou | 2006-11-02 12:43:19 -0800 (Thu, 02 Nov 2006) | 5 lines
* doc/install.texi (sparc-sun-solaris2*): Update GMP/MPFR build
instructions.
(sparc64-sun-solaris2*): Likewise.
........
r118431 | mrs | 2006-11-02 13:06:40 -0800 (Thu, 02 Nov 2006) | 2 lines
* g++.old-deja/g++.abi/align.C: Enable for darwin.
........
r118433 | mrs | 2006-11-02 14:01:36 -0800 (Thu, 02 Nov 2006) | 2 lines
* obj-c++.dg/const-str-9.mm: Don't run on 64-bit.
........
r118435 | kkojima | 2006-11-02 14:57:13 -0800 (Thu, 02 Nov 2006) | 20 lines
PR target/27405
* config/sh/sh.md (cmp{eq,gt,gtu}{si,di}_media): Remove.
(cmpsi{eq,gt,gtu}{si,di}_media): Rename to
cmp{eq,gt,gtu}{si,di}_media.
(*cmpne0si_media): Remove.
(*movsicc_umin): Adjust gen_cmp*_media call.
(unordered): Change the mode of unordered and operands[1] to
SImode.
(seq): Adjust gen_cmp*_media calls. Make the mode of
a temporary result of compare SImode if needed. If the mode
of operands[0] is DImode, extend the temporary result to DImode.
(slt, sle, sgt, sge, sgtu, sltu, sleu, sgue, sne): Likewise.
(sunorderd): Change the mode of match_operand and unorderd to
SImode.
(cmpeq{sf,df}_media): Remove.
(cmpsieq{sf,df}_media): Rename to cmpeq{sf,df}_media.
(cmp{gt,ge,un}{sf,df}_media): Change the mode of match_operand
and compare operation to SImode.
........
r118442 | gccadmin | 2006-11-02 16:17:46 -0800 (Thu, 02 Nov 2006) | 1 line
Daily bump.
........
r118444 | bje | 2006-11-02 16:56:35 -0800 (Thu, 02 Nov 2006) | 3 lines
* tree-ssa.c (warn_uninit): Use expand_location variables for
locus and declaration locus.
........
r118445 | pbrook | 2006-11-02 16:59:32 -0800 (Thu, 02 Nov 2006) | 15 lines
2006-11-02 Carlos O'Donell <carlos@codesourcery.com>
gcc/
* config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
* arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
file_end_indicate_exec_stack.
* arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
Define as 0.
* lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
for a non-executable stack.
* crti.asm: Likewise.
* crtn.asm: Likewise.
* libunwind.S: Likewise.
........
r118447 | brooks | 2006-11-02 17:06:26 -0800 (Thu, 02 Nov 2006) | 3 lines
* doc/invoke.texi: Fix mfp-trap-mode typo.
........
r118448 | pinskia | 2006-11-02 17:27:39 -0800 (Thu, 02 Nov 2006) | 8 lines
2006-11-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
* doc/md.texi (RS6000 constraints): Document H, Z, a, t, and W
constraints.
........
r118449 | geoffk | 2006-11-02 19:11:50 -0800 (Thu, 02 Nov 2006) | 9 lines
* inclhack.def (glibc_c99_inline_1): New.
* inclhack.def (glibc_c99_inline_2): New.
* inclhack.def (glibc_c99_inline_3): New.
* inclhack.def (glibc_c99_inline_4): New.
* fixincl.x: Regenerate.
* tests/base/bits/string2.h: New.
* tests/base/sys/sysmacros.h: New.
* tests/base/sys/stat.h: Update.
........
r118450 | brooks | 2006-11-02 21:07:59 -0800 (Thu, 02 Nov 2006) | 5 lines
* fortran/error.c (show_locus): Remove "In file" from error messages.
* testsuite/lib/gfortran-dg.exp (gfortran-dg-test): Remove expected "In file"
from error
messages.
........
r118451 | gary | 2006-11-03 02:16:04 -0800 (Fri, 03 Nov 2006) | 24 lines
2006-11-03 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Removed.
* java/net/natInetAddressNoNet.cc: Likewise.
* java/net/natInetAddressPosix.cc: Likewise.
* java/net/natInetAddressWin32.cc: Likewise.
* java/net/VMInetAddress.java (getLocalHostname,
lookupInaddrAny, getHostByAddr, getHostByName,
aton): Replace glue methods with native ones.
* java/net/natVMInetAddressNoNet.cc: New file.
* java/net/natVMInetAddressPosix.cc: Likewise.
* java/net/natVMInetAddressWin32.cc: Likewise.
* Makefile.am, configure.ac: Reflect the above.
* sources.am, Makefile.in, configure: Rebuilt.
* java/net/natVMNetworkInterfaceWin32.cc
(winsock2GetRealNetworkInterfaces): Create InetAddress
objects using InetAddress.getByAddress.
* gnu/java/net/natPlainSocketImplWin32.cc
(accept, getOption): Likewise.
* gnu/java/net/natPlainDatagramSocketImplWin32.cc
(peekData, receive, getOption): Likewise.
........
r118452 | gary | 2006-11-03 02:16:30 -0800 (Fri, 03 Nov 2006) | 10 lines
2006-11-03 Gary Benson <gbenson@redhat.com>
* java/net/Inet4Address.java
(FAMILY): Renamed to AF_INET.
(<init>, writeReplace): Reflect the above.
* java/net/Inet6Address.java
(FAMILY): Renamed to AF_INET6.
(<init>): Reflect the above.
........
Removed:
branches/fixed-point/libjava/java/net/InetAddress.java
branches/fixed-point/libjava/java/net/natInetAddressNoNet.cc
branches/fixed-point/libjava/java/net/natInetAddressPosix.cc
branches/fixed-point/libjava/java/net/natInetAddressWin32.cc
Modified:
branches/fixed-point/ (props changed)
branches/fixed-point/fixincludes/ChangeLog
branches/fixed-point/fixincludes/fixincl.x
branches/fixed-point/fixincludes/inclhack.def
branches/fixed-point/fixincludes/tests/base/sys/socket.h
branches/fixed-point/fixincludes/tests/base/sys/stat.h
branches/fixed-point/gcc/ChangeLog
branches/fixed-point/gcc/DATESTAMP
branches/fixed-point/gcc/Makefile.in
branches/fixed-point/gcc/builtins.c
branches/fixed-point/gcc/c-common.c
branches/fixed-point/gcc/c-common.h
branches/fixed-point/gcc/c-cppbuiltin.c
branches/fixed-point/gcc/c-opts.c
branches/fixed-point/gcc/c.opt
branches/fixed-point/gcc/config.gcc
branches/fixed-point/gcc/config.in
branches/fixed-point/gcc/config/arm/arm.c
branches/fixed-point/gcc/config/arm/arm.h
branches/fixed-point/gcc/config/arm/crti.asm
branches/fixed-point/gcc/config/arm/crtn.asm
branches/fixed-point/gcc/config/arm/elf.h
branches/fixed-point/gcc/config/arm/lib1funcs.asm
branches/fixed-point/gcc/config/arm/libunwind.S
branches/fixed-point/gcc/config/arm/linux-elf.h
branches/fixed-point/gcc/config/darwin.h
branches/fixed-point/gcc/config/i386/sol2-10.h
branches/fixed-point/gcc/config/rs6000/40x.md
branches/fixed-point/gcc/config/rs6000/440.md
branches/fixed-point/gcc/config/rs6000/603.md
branches/fixed-point/gcc/config/rs6000/6xx.md
branches/fixed-point/gcc/config/rs6000/7450.md
branches/fixed-point/gcc/config/rs6000/7xx.md
branches/fixed-point/gcc/config/rs6000/8540.md
branches/fixed-point/gcc/config/rs6000/aix52.h
branches/fixed-point/gcc/config/rs6000/linux64.h
branches/fixed-point/gcc/config/rs6000/mpc.md
branches/fixed-point/gcc/config/rs6000/power4.md
branches/fixed-point/gcc/config/rs6000/power5.md
branches/fixed-point/gcc/config/rs6000/rios1.md
branches/fixed-point/gcc/config/rs6000/rios2.md
branches/fixed-point/gcc/config/rs6000/rs6000-c.c
branches/fixed-point/gcc/config/rs6000/rs6000.c
branches/fixed-point/gcc/config/rs6000/rs6000.h
branches/fixed-point/gcc/config/rs6000/rs6000.md
branches/fixed-point/gcc/config/rs6000/rs6000.opt
branches/fixed-point/gcc/config/rs6000/rs64.md
branches/fixed-point/gcc/config/sh/sh.md
branches/fixed-point/gcc/configure
branches/fixed-point/gcc/configure.ac
branches/fixed-point/gcc/doc/cpp.texi
branches/fixed-point/gcc/doc/install.texi
branches/fixed-point/gcc/doc/invoke.texi
branches/fixed-point/gcc/doc/md.texi
branches/fixed-point/gcc/except.c
branches/fixed-point/gcc/fortran/ChangeLog
branches/fixed-point/gcc/fortran/error.c
branches/fixed-point/gcc/objc/ChangeLog
branches/fixed-point/gcc/objc/objc-act.c
branches/fixed-point/gcc/testsuite/ChangeLog
branches/fixed-point/gcc/testsuite/g++.old-deja/g++.abi/align.C
branches/fixed-point/gcc/testsuite/gcc.dg/fold-mod-1.c
branches/fixed-point/gcc/testsuite/gcc.dg/pr14796-2.c
branches/fixed-point/gcc/testsuite/gcc.dg/torture/builtin-math-3.c
branches/fixed-point/gcc/testsuite/gcc.dg/tree-prof/val-prof-2.c
branches/fixed-point/gcc/testsuite/lib/gfortran-dg.exp
branches/fixed-point/gcc/testsuite/obj-c++.dg/const-str-9.mm
branches/fixed-point/gcc/tree-pretty-print.c
branches/fixed-point/gcc/tree-ssa.c
branches/fixed-point/libcpp/ChangeLog
branches/fixed-point/libcpp/include/cpplib.h
branches/fixed-point/libcpp/init.c
branches/fixed-point/libjava/ChangeLog
branches/fixed-point/libjava/Makefile.am
branches/fixed-point/libjava/Makefile.in
branches/fixed-point/libjava/classpath/ChangeLog.gcj
branches/fixed-point/libjava/classpath/java/net/Inet4Address.java
branches/fixed-point/libjava/classpath/java/net/Inet6Address.java
branches/fixed-point/libjava/configure
branches/fixed-point/libjava/configure.ac
branches/fixed-point/libjava/gnu/classpath/jdwp/natVMMethod.cc
branches/fixed-point/libjava/gnu/java/net/natPlainDatagramSocketImplWin32.cc
branches/fixed-point/libjava/gnu/java/net/natPlainSocketImplWin32.cc
branches/fixed-point/libjava/java/net/VMInetAddress.java
branches/fixed-point/libjava/java/net/natVMNetworkInterfaceWin32.cc
branches/fixed-point/libjava/jvmti.cc
branches/fixed-point/libjava/sources.am
Propchange: branches/fixed-point/
('svnmerge-integrated' modified)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29335