[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-19 07:08 --- Reduced testcase: typedef struct dw_fde_struct { int decl; } *dw_fde_ref; dw_fde_ref fde_table; unsigned fde_table_in_use; void output_call_frame_info (void) { unsigned int i; dw_fde_ref fde; for (i = 0; i < fde_table_in_use; i++) { fde = &fde_table[i]; tree_contains_struct_check_failed (fde_table[i].decl); } } -- And this did not ICE in 20060815. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||rakdver at gcc dot gnu dot ||org Severity|normal |blocker Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-19 07:08:38 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776
[Bug c++/28385] [4.0/4.1 regression] templated function call goes awry
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-08-19 07:19 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28385
[Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
--- Comment #1 from patchapp at dberlin dot org 2006-08-19 07:31 --- Subject: Bug number PR c++/28420 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00700.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28420
[Bug c/28779] New: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
See attached test case (ignore the warning; cf. pr27899): /opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc-4.1.0 -c -o e1000.o e1000_hw.i e1000_main.i --combine -fwhole-program -Os In file included from /pmac/git/geode/include/linux/thread_info.h:22, from /pmac/git/geode/include/linux/preempt.h:10, from /pmac/git/geode/include/linux/spinlock.h:50, from /pmac/git/geode/include/linux/capability.h:46, from /pmac/git/geode/include/linux/sched.h:45, from /pmac/git/geode/include/linux/module.h:10, from /pmac/git/geode/drivers/net/e1000/e1000.h:38, from /pmac/git/geode/drivers/net/e1000/e1000_main.c:31: include2/asm/thread_info.h:88: warning: register used for two global register variables /pmac/git/geode/drivers/net/e1000/e1000_main.c:4860: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. Seen with 4.1.0 i386 (with the set of patches at http://david.woodhou.se/combine/gcc-patches since otherwise it dies a lot earlier) and also with Red Hat's 4.1.1 branch with same patches, for i386 and PowerPC. The attached preprocessed source will be i386. Sorry, I'm not sure how to cut the test case down to something smaller. -- Summary: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106 Product: gcc Version: 3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dwmw2 at infradead dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug c/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #1 from dwmw2 at infradead dot org 2006-08-19 09:26 --- Created an attachment (id=12095) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12095&action=view) Test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug c/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #2 from dwmw2 at infradead dot org 2006-08-19 09:29 --- Doesn't happen with '-O', or '-O2'. Only with '-Os' or '-O3'. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-08-19 10:15 --- dce1 removes the store, after fre we have: find (alistp) { int list[32]; const int * blist; const GLint * blist.0; # BLOCK 2 # PRED: ENTRY (fallthru,exec) if (alistp_2 != 0B) goto ; else goto ; # SUCC: 3 (true,exec) 4 (false,exec) # BLOCK 3 # PRED: 2 (true,exec) :; blist_3 = alistp_2; goto (); # SUCC: 5 (fallthru,exec) # BLOCK 4 # PRED: 2 (false,exec) :; # list_5 = V_MAY_DEF ; list[3] = 42; blist_6 = &list; # SUCC: 5 (fallthru,exec) # BLOCK 5 # PRED: 3 (fallthru,exec) 4 (fallthru,exec) # blist_1 = PHI ; :; blist.0_7 = (const GLint *) blist_1; # SMT.30_9 = V_MAY_DEF ; aglChoosePixelFormat (blist.0_7); return; # SUCC: EXIT } and dce possibly gets confused about the blist_1 def (where I wonder why in the phi we have &list and not blist_6 -- ccp propagates &list into the phi). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #6 from rguenth at gcc dot gnu dot org 2006-08-19 10:44 --- But alias information is wrong, which is the problem here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug fortran/24866] internal compiler error
--- Comment #7 from pault at gcc dot gnu dot org 2006-08-19 12:32 --- Yes, the problem is as I thought; rename the dummy and the external procedure, say to str1, and the module compiles fine. It also compiles if the order of the subroutines is changed. These are symptomatic of the symbol for str() being made available to sub_module by host association and then having the external attribute added to it. This is confirmed by comparing the parse trees for the two different orders for the subroutines. In the case that fails, we have procedure name = sub_module symtree: str Ambig 0 from namespace test_module symtree: sub_module Ambig 0 from namespace test_module whilst the one that succeeds has symtree: sub_module Ambig 0 from namespace test_module symtree: str Ambig 0 symbol str (UNKNOWN 0)(PROCEDURE UNKNOWN-INTENT UNKNOWN-ACCESS UNKNOWN-PROC EXTERNAL DUMMY) I am not sure where this screw up occurs but am looking very closely at decl.c(attr_decl1). Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866
[Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
This happens while compiling Qt 3.3.6 with current gcc trunk: g++ -c -o qstring.o -I/usr/include/fontconfig -I/usr/include/X11/Xft -O2 -march=i586 -mtune=i686 -fomit-frame-pointer -fweb -frename-registers -fvisibility-inlines-hidden -fvisibility=hidden -fno-use-cxa-atexit -fno-exceptions -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/src/ark/BUILD/qt-copy/include/qmake -I/usr/src/ark/BUILD/qt-copy/include -I/usr/src/ark/BUILD/qt-copy/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/src/ark/BUILD/qt-copy/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP /usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp /usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp: In member function 'bool QString::endsWith(const QString&, bool) const': /usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp:7003: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bero at arklinux dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #1 from bero at arklinux dot org 2006-08-19 12:57 --- Tried on both x86 and x86_64 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #2 from bero at arklinux dot org 2006-08-19 13:07 --- The problem goes away with -O0, and keeps working with -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants (which, according to the manpage, should be equivalent to -O1, but -O1 breaks) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #3 from bero at arklinux dot org 2006-08-19 13:09 --- Created an attachment (id=12096) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12096&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug c++/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #4 from bero at arklinux dot org 2006-08-19 13:56 --- Created an attachment (id=12097) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12097&action=view) Preprocessed source from ffmpeg The same error shows up when compiling ffmpeg -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #7 from dberlin at gcc dot gnu dot org 2006-08-19 14:10 --- This looks like it has been broken for a long time. Can someone add an alias dump? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #8 from rguenth at gcc dot gnu dot org 2006-08-19 14:27 --- ;; Function find (find) Points-to analysis Constraints: ANYTHING = &ANYTHING READONLY = &ANYTHING INTEGER = &ANYTHING alistp = &ANYTHING blist_3 = alistp blist_6 = &list blist_1 = blist_3 blist_1 = blist_6 blist.0_7 = blist_1 Collapsing static cycles and doing variable substitution: Collapsing blist_3 into alistp Collapsing blist.0_7 into blist_1 Solving graph: Points-to sets NULL = { } ANYTHING = { ANYTHING } READONLY = { ANYTHING } INTEGER = { ANYTHING } alistp = { ANYTHING } blist_3 = { ANYTHING } blist_6 = { list } list = { } blist_1 = { ANYTHING list } blist.0_7 = { ANYTHING list } find: Total number of aliased vops: 0 Referenced variables in find: 5 Variable: alistp, UID 1523, const int *, default def: alistp_2 Variable: blist, UID 1526, const int * Variable: list, UID 1527, int[32], is addressable, default def: list_4 Variable: blist.0, UID 1528, const GLint *, symbol memory tag: SMT.30 Variable: SMT.30, UID 1575, const GLint, is addressable, is global, call clobbered (, passed to call, is global var ) Pointed-to sets for pointers in find alistp_2, its value escapes, points-to anything blist_3, points-to anything blist_6, points-to vars: { list } blist_1, points-to anything blist.0_7, is dereferenced, its value escapes, points-to anything Flow-insensitive alias information for find Aliased symbols list, UID 1527, int[32], is addressable, default def: list_4 SMT.30, UID 1575, const GLint, is addressable, is global, call clobbered (, passed to call, is global var ) Dereferenced pointers blist.0, UID 1528, const GLint *, symbol memory tag: SMT.30 Symbol memory tags SMT.30, UID 1575, const GLint, is addressable, is global, call clobbered (, passed to call, is global var ) Flow-sensitive alias information for find SSA_NAME pointers Name memory tags Registering new PHI nodes in block #0 Registering new PHI nodes in block #2 Registering new PHI nodes in block #3 Registering new PHI nodes in block #4 Updating SSA information for statement list[3] = 42; Registering new PHI nodes in block #5 Updating SSA information for statement aglChoosePixelFormat (blist.0_7); Symbols to be put in SSA form list SMT.30 Incremental SSA update started at block: 0 Number of blocks in CFG: 6 Number of blocks to update: 5 ( 83%) Affected blocks: 0 2 3 4 5 find (alistp) { int list[32]; const int * blist; const GLint * blist.0; # BLOCK 2 # PRED: ENTRY (fallthru) if (alistp_2 != 0B) goto ; else goto ; # SUCC: 3 (true) 4 (false) # BLOCK 3 # PRED: 2 (true) :; blist_3 = alistp_2; goto (); # SUCC: 5 (fallthru) # BLOCK 4 # PRED: 2 (false) :; # list_5 = V_MAY_DEF ; list[3] = 42; blist_6 = &list; # SUCC: 5 (fallthru) # BLOCK 5 # PRED: 3 (fallthru) 4 (fallthru) # blist_1 = PHI ; :; blist.0_7 = (const GLint *) blist_1; # SMT.30_9 = V_MAY_DEF ; aglChoosePixelFormat (blist.0_7); return; # SUCC: EXIT } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-19 15:18 --- > (which, according to the manpage, should be equivalent to -O1, but -O1 breaks) No re-read the man page, -O1 enables more. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |blocker Component|c++ |tree-optimization Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-19 15:23 --- These all look related to PR 28776. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added BugsThisDependsOn||28776 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug tree-optimization/28777] Zerodetection (i != 0) compiled with -O2 don't work
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-08-19 15:26 --- It is signed overflow being undefined and so the i == 0 test being optimized away. Use -fwrapv or an unsigned loop counter. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28777
[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #3 from rguenth at gcc dot gnu dot org 2006-08-19 15:40 --- I tried to reproduce this on a i686 host with the 4.1 branch head with no success, I get to /obj/gcc41-g/gcc/pr28779$ ../xgcc -B.. e1000_hw.i e1000_main.i -Os -c -o e1000.o --combine -fwhole-program -Wfatal-errors -v Reading specs from ../specs Target: i686-pc-linux-gnu Configured with: /home/richard/src/gcc-4_1-branch/configure --enable-languages=c,c++,fortran --enable-cxa_at_exit --enable-threads=posix Thread model: posix gcc version 4.1.2 20060708 (prerelease) ../cc1 -fpreprocessed e1000_hw.i e1000_main.i -quiet -dumpbase e1000_hw.i -mtune=pentiumpro -auxbase-strip e1000.o -Os -Wfatal-errors -version -fwhole-program -o /tmp/ccvN1UzD.s GNU C version 4.1.2 20060715 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.1.2 20060630 (prerelease) (Debian 4.1.1-6). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=127657 Compiler executable checksum: 024a6cd74e0904785fe447bca1336a32 In file included from /pmac/git/geode/include/linux/thread_info.h:22, from /pmac/git/geode/include/linux/preempt.h:10, from /pmac/git/geode/include/linux/spinlock.h:50, from /pmac/git/geode/include/linux/capability.h:46, from /pmac/git/geode/include/linux/sched.h:45, from /pmac/git/geode/include/linux/module.h:10, from /pmac/git/geode/drivers/net/e1000/e1000.h:38, from /pmac/git/geode/drivers/net/e1000/e1000_main.c:31: include2/asm/thread_info.h:88: warning: register used for two global register variables In file included from /pmac/git/geode/include/linux/mm.h:280, from /pmac/git/geode/drivers/net/e1000/e1000.h:42, from /pmac/git/geode/drivers/net/e1000/e1000_main.c:31: /pmac/git/geode/include/linux/page-flags.h:252: error: conflicting types for test_clear_page_dirty compilation terminated due to -Wfatal-errors. What's your output of adding -v? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #4 from dwmw2 at infradead dot org 2006-08-19 15:52 --- > /pmac/git/geode/include/linux/page-flags.h:252: error: conflicting types for > test_clear_page_dirty Sounds like you don't have PR27898 fixed. With -v ... /opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc-4.1.1 -c -o e1000.o e1000_hw.i e1000_main.i --combine -fwhole-program -v -Os Using built-in specs. Target: i686-unknown-linux-gnu Configured with: ../configure --target=i686-unknown-linux-gnu --host=powerpc64-redhat-linux --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu --with-headers=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-shared --enable-c99 --enable-long-long --enable-languages=c Thread model: posix gcc version 4.1.1 20060817 (Red Hat 4.1.1-18) /opt/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/libexec/gcc/i686-unknown-linux-gnu/4.1.1/cc1 -fpreprocessed e1000_hw.i e1000_main.i -quiet -dumpbase e1000_hw.i -mtune=generic -auxbase-strip e1000.o -Os -version -fwhole-program -o /tmp/ccQKdpY0.s GNU C version 4.1.1 20060817 (Red Hat 4.1.1-18) (i686-unknown-linux-gnu) compiled by GNU C version 4.1.1 20060525 (Red Hat 4.1.1-1.pr27898). GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 4a2b66e229c24ed7405efc929117b7df In file included from /pmac/git/geode/include/linux/thread_info.h:22, from /pmac/git/geode/include/linux/preempt.h:10, from /pmac/git/geode/include/linux/spinlock.h:50, from /pmac/git/geode/include/linux/capability.h:46, from /pmac/git/geode/include/linux/sched.h:45, from /pmac/git/geode/include/linux/module.h:10, from /pmac/git/geode/drivers/net/e1000/e1000.h:38, from /pmac/git/geode/drivers/net/e1000/e1000_main.c:31: include2/asm/thread_info.h:88: warning: register used for two global register variables /pmac/git/geode/drivers/net/e1000/e1000_main.c:4860: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106 Please submit a full bug report, with preprocessed source if appropriate. See http://bugzilla.redhat.com/bugzilla> for instructions. make: *** [e1000.o] Error 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug libfortran/28747] Empty write STREAM I/O file positioning problem
--- Comment #7 from howarth at nitro dot med dot uc dot edu 2006-08-19 15:55 --- Jerry, On Fedora Core 5 x86_64 with the svn pull from a few days back and last stream patch I get the follow diff between the code generated with -O0 and -O1... call _gfortran_st_write_done - movq $.LC0, -600(%rbp) - movl $8, -592(%rbp) - movl $10, -604(%rbp) - movq $1, -568(%rbp) - movl $512, -608(%rbp) - leaq -608(%rbp), %rdi + movq $.LC0, 8(%rsp) + movl $8, 16(%rsp) + movl $10, 4(%rsp) + movq $1, 40(%rsp) + movl $512, (%rsp) + movq %rsp, %rdi call _gfortran_st_write In both cases the reduced test case runs fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28747
[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-08-19 16:35 --- Ok, with that fixed I can reproduce it with the mainline. Reducing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug libfortran/28747] Empty write STREAM I/O file positioning problem
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2006-08-19 16:52 --- I think this confirms the problem is in __gthrw_(pthread_mutex_unlock) (mutex) on FreeBSD. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28747
[Bug fortran/24866] internal compiler error
--- Comment #8 from pault at gcc dot gnu dot org 2006-08-19 16:54 --- Created an attachment (id=12098) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12098&action=view) A fix for the PR and a testsuite entry The problem turned out to be in parse.c(gfc_fixup_sibling_symbols), which insisted on fixing up procedures to refer to the parent namespace version even if the contained symbol is a dummy. The fix is simple; just a modification to an if statement. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866
[Bug fortran/25077] No error on attempt to redefine intrinsic assigments
--- Comment #2 from pault at gcc dot gnu dot org 2006-08-19 17:01 --- Created an attachment (id=12099) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12099&action=view) Fix for the problem This patch generates an error if an interface assignement attempts to modify an intrinsic type assignment. If a warning is thought to be better, I could do that. Note that the condition is a copy of that in gfc_extend_assign, which prevents a search for an interface for intrinsic type assignments. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25077
[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #6 from rguenth at gcc dot gnu dot org 2006-08-19 17:16 --- Confirmed. Reduced testcase: e1000_hw.i: struct e1000_hw { }; int e1000_reset_hw(struct e1000_hw *hw) { e1000_write_reg_io((hw), 0x0); } void e1000_write_reg_io(struct e1000_hw *hw, unsigned int offset) { unsigned long io_addr; e1000_io_write(hw, io_addr, offset); } e1000_main.i: struct pci_device_id { }; struct pci_dev { }; struct pci_driver { int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); }; struct e1000_hw { }; int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent); struct pci_driver e1000_driver = { .probe = e1000_probe }; int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { struct e1000_hw *adapter; e1000_reset_hw(adapter); } void e1000_io_write(struct e1000_hw *hw, unsigned long port, unsigned int value) { } -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||rguenth at gcc dot gnu dot ||org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-19 17:16:40 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #7 from tbm at cyrius dot com 2006-08-19 18:54 --- typedef unsigned char uchar; typedef unsigned short ushort; typedef unsigned uint; const bool FALSE = 0; struct __attribute__ ((visibility ("default"))) QShared { }; class __attribute__ ((visibility ("default"))) QChar { public:QChar (); QChar (const QChar & c); uchar row () const { return ((uchar) (ucs >> 8) & 0xff); } private: ushort ucs; } ; inline QChar::QChar (const QChar & c): ucs (c.ucs) { } inline bool operator!= (QChar c1, QChar c2) { } struct __attribute__ ((visibility ("default"))) QStringData:public QShared { QChar *unicode; }; class __attribute__ ((visibility ("default"))) QString { bool isNull () const; uint length () const; const QChar *unicode () const { return d->unicode; } bool endsWith (const QString & str, bool cs) const; QStringData *d; }; inline bool QString::isNull () const { return unicode () == 0; } inline uint QString::length () const { } inline QChar lower (const QChar & c) { if (c.row ()) return c; } bool QString::endsWith (const QString & s, bool cs) const { if (isNull ()) return s.isNull (); int pos = length () - s.length (); { for (int i = 0; i < (int) s.length (); i++) { if (::lower (d->unicode[pos + i]) !=::lower (s.d->unicode[i])) return FALSE; } } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
-- tbm at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-19 18:56:16 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug c++/26269] [4.0/4.1/4.2 regression] Declaring a variable too late yields bogus error message
-- lmillward at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-07-05 09:54:56 |2006-08-19 19:09:56 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26269
[Bug c/27953] ICE with invalid function definitions
-- lmillward at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-19 19:10:20 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27953
[Bug c++/28505] [4.0/4.1/4.2 regression] ICE with invalid constructors
-- lmillward at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-19 19:10:42 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28505
[Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
-- lmillward at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-08-18 04:46:37 |2006-08-19 19:11:01 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28741
[Bug other/28781] New: [4.2 regression] -fPIC generates non-PIC code
This happens when compiling arts (KDE sound server) 1.5.4: /usr/bin/ld: ./flow/gslpp/.libs/libgslpp.a(datahandle.o): relocation R_X86_64_PC32 against `vtable for GSL::WaveDataHandle' can not be used when making a shared object; recompile with -fPIC However, libgslpp.a and datahandle.o were built using -fPIC. This is the extract of the build log for building datahandle.o and libgslpp.a: g++ -DHAVE_CONFIG_H -I../../flow/gslpp -I/usr/src/ark/BUILD/arts/flow/gslpp -I../.. -I/usr/src/ark/BUILD/arts/flow -I/usr/src/ark/BUILD/arts/flow/gsl -I../../flow -I/usr/src/ark/BUILD/arts/mcop -I../../mcop -I../.. -I/usr/include/kde -I/usr/lib64/qt3-gcc4.1/include -I. -I/usr/src/ark/BUILD/arts/libltdl -DQT_THREAD_SUPPORT -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fomit-frame-pointer -fweb -frename-registers -fPIC -fno-exceptions -fno-check-new -fvisibility=hidden -fvisibility-inlines-hidden -D_GNU_SOURCE -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -ftemplate-depth-99 -fPIC -DPIC -c /usr/src/ark/BUILD/arts/flow/gslpp/datahandle.cpp -o ../../flow/gslpp/.libs/datahandle.o -Wp,-MD,../../flow/gslpp/.deps/datahandle.TUlo /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fomit-frame-pointer -fweb -frename-registers -fPIC -fno-exceptions -fno-check-new -fvisibility=hidden -fvisibility-inlines-hidden -D_GNU_SOURCE -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -ftemplate-depth-99 -DQT_THREAD_SUPPORT -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o ../../flow/gslpp/libgslpp.la ../../flow/gslpp/datahandle.lo This worked correctly before; binutils version is 2.17.50.0.3 (just in case this is a binutils bug that just happened not to show up with earlier gccs). -- Summary: [4.2 regression] -fPIC generates non-PIC code Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bero at arklinux dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28781
[Bug fortran/25217] Derived type dummy argument having intent(out) attribute
--- Comment #4 from eedelman at gcc dot gnu dot org 2006-08-19 21:06 --- Subject: Bug 25217 Author: eedelman Date: Sat Aug 19 21:05:59 2006 New Revision: 116261 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116261 Log: fortran/ 2006-08-19 Erik Edelmann <[EMAIL PROTECTED]> PR fortran/25217 * resolve.c (resolve_fl_variable): Set a default initializer for derived types with INTENT(OUT) even if 'flag' is true. * trans-expr.c (gfc_conv_function_call): Insert code to reinitialize INTENT(OUT) arguments of derived type with default initializers. testsuite/ 2006-08-19 Erik Edelmann <[EMAIL PROTECTED]> PR fortran/25217 * gfortran.dg/derived_init_2.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/derived_init_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25217
[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106
--- Comment #7 from hubicka at gcc dot gnu dot org 2006-08-19 21:25 --- mine bug... -- hubicka at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |hubicka at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-08-19 17:16:40 |2006-08-19 21:25:25 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779
[Bug fortran/25217] Derived type dummy argument having intent(out) attribute
--- Comment #5 from eedelman at gcc dot gnu dot org 2006-08-19 21:31 --- Subject: Bug 25217 Author: eedelman Date: Sat Aug 19 21:31:47 2006 New Revision: 116262 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116262 Log: fortran/ 2006-08-20 Erik Edelmann <[EMAIL PROTECTED]> PR fortran/25217 * resolve.c (resolve_fl_variable): Set a default initializer for derived types with INTENT(OUT) even if 'flag' is true. * trans-expr.c (gfc_conv_function_call): Insert code to reinitialize INTENT(OUT) arguments of derived type with default initializers. testsuite/ 2006-08-20 Erik Edelmann <[EMAIL PROTECTED]> PR fortran/25217 * gfortran.dg/derived_init_2.f90: New. Added: branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_init_2.f90 Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/resolve.c branches/gcc-4_1-branch/gcc/fortran/trans-expr.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25217
[Bug middle-end/28071] [4.1/4.2 regression] A file that can not be compiled in reasonable time/space
--- Comment #40 from amacleod at redhat dot com 2006-08-19 21:58 --- I'll take a look. On the new out-of-ssa branch I've already converted the coalesce list from a linked list type linear algorithm to a hash table, as well as changed the live on entry and live on exit implementations to be more efficient. I didn't bother with TER because its due to be removed on the new branch... eventually :-) I'll take a peek and see how much work it is to change that. Andrew -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28071
[Bug other/28781] [4.2 regression] -fPIC generates non-PIC code
--- Comment #1 from tbm at gcc dot gnu dot org 2006-08-19 23:01 --- This works for me with gcc 4.2.0 20060810 or 4.2.0 20060819 and binutils 2.17-2. Can you try to downgrade binutils to see if it works then? -- tbm at gcc dot gnu dot org changed: What|Removed |Added CC||tbm at cyrius dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28781
[Bug tree-optimization/27474] [4.2 regression] ICE: tree check: expected ssa_name, have struct_field_tag in verify_ssa, at tree-ssa.c:776
--- Comment #5 from tbm at gcc dot gnu dot org 2006-08-19 23:05 --- Created an attachment (id=12100) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12100&action=view) test case Testcase from application "ser". Fails on x86_64 with: gcc -ftree-vectorize -O -c Fails on x86 with: gcc -ftree-vectorize -O -msse2 -c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27474
[Bug other/28781] [4.2 regression] -fPIC generates non-PIC code
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-20 00:23 --- Can you stop using HJL's special non FSF binutils? Can you try with a real snapshot of the FSF binutils before reporting bugs like this? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28781
[Bug fortran/25217] Derived type dummy argument having intent(out) attribute
--- Comment #6 from steven at gcc dot gnu dot org 2006-08-20 00:46 --- Eric, can this bug be closed as FIXED now? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25217
Re: [Bug middle-end/28071] [4.1/4.2 regression] A file that can not be compiled in reasonable time/space
Thank you for consideration, Live on entry/exit code shows up high on -O3 compilation time too (something like 30% of time without PRE/FRE I believe). So if it is self contained change, perhaps pushing it to mainline as PR fix would make sense. Honza
[Bug middle-end/28071] [4.1/4.2 regression] A file that can not be compiled in reasonable time/space
--- Comment #41 from hubicka at ucw dot cz 2006-08-20 00:58 --- Subject: Re: [4.1/4.2 regression] A file that can not be compiled in reasonable time/space Thank you for consideration, Live on entry/exit code shows up high on -O3 compilation time too (something like 30% of time without PRE/FRE I believe). So if it is self contained change, perhaps pushing it to mainline as PR fix would make sense. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28071
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-08-20 01:40 --- Here is an even shorter testcase for qstring.ii: struct QChar { QChar( const QChar& c ); unsigned short ucs; }; inline QChar::QChar( const QChar& c ) : ucs( c.ucs ){} inline bool operator!=( QChar c1, QChar c2 ) { return c1.ucs != c2.ucs; } struct QStringData { QChar *unicode; }; struct QString { bool isNull() const; unsigned length() const; const QChar* unicode() const { return d->unicode; } bool endsWith( const QString& str, bool cs ) const; QStringData *d; }; inline bool QString::isNull() const{ return unicode() == 0; } inline unsigned QString::length() const{} bool QString::endsWith( const QString& s, bool cs ) const { if ( isNull() ) return s.isNull(); int pos = length(); for ( int i = 0; i < (int) s.length(); i++ ) if ( (d->unicode[pos + i]) != (s.d->unicode[i]) ) return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug libfortran/28747] Empty write STREAM I/O file positioning problem
-- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-08-20 04:25:42 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28747
[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-08-20 05:12 --- *** Bug 28780 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||bero at arklinux dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776
[Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-08-20 05:12 --- And here is the testcase for ffv1.i: typedef struct RangeCoder { unsigned char one_state[256]; } RangeCoder; static inline void put_rac(RangeCoder *c, unsigned char* const state) { *state= c->one_state[*state]; } typedef struct PlaneContext{ unsigned (*state)[32]; } PlaneContext; static inline void put_symbol(RangeCoder *c, unsigned char *state) { int i; const int e; put_rac(c, state); for(i=e-1; i>=0; i--) put_rac(c, state+22+i); } int encode_line(void) { PlaneContext * const p; RangeCoder * const c; int a; put_symbol(c, p->state[a]); } --- Both of these testcases are due to pointers to different "RECORD_TYPE" but of the same type (the MAIN_VARIANTS are the same), which is the same problem as PR 28776. *** This bug has been marked as a duplicate of 28776 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-08-20 05:15 --- PR 28780 have a couple more testcases of the same problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776
[Bug fortran/28601] ICE on reexport of renamed type
--- Comment #2 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28601 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28496] Error during array initialization
--- Comment #6 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28496 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/20886] passing generic name as dummy argument
--- Comment #3 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 20886 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28630] ICE due to a module function returning a derived type
--- Comment #4 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28630 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28762] program name 'write' causes compiler crash on if statements containing write commands.
--- Comment #3 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28762 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28771] gfortran accepts invalid variable definition
--- Comment #3 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28771 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/18111] spurious warnings with -W -Wunused
--- Comment #18 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 18111 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc
[Bug fortran/28735] Crash in resolve.c - related to contents of .mod
--- Comment #10 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28735 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc
[Bug fortran/28660] Spurious warning: 'ubound.6' is used uninitialized in this function
--- Comment #9 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28660 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28425] Derived type initialization via a derived type is broken
--- Comment #4 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28425 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/28600] [4.2 regression] ICE on character pointer assignment
--- Comment #8 from pault at gcc dot gnu dot org 2006-08-20 05:46 --- Subject: Bug 28600 Author: pault Date: Sun Aug 20 05:45:43 2006 New Revision: 116268 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116268 Log: 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28601 PR fortran/28630 * gfortran.h : Eliminate gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Remove the building of the list of derived types for the current namespace. * symbol.c (find_renamed_type): New function to find renamed derived types by symbol name rather than symtree name. (gfc_use_derived): Search parent namespace for identical derived type and use it, even if local version is complete, except in interface bodies. Ensure that renamed derived types are found by call to find_renamed_type. Recurse for derived type components. (gfc_free_dt_list): Remove. (gfc_free_namespace): Remove call to previous. * trans-types.c (copy_dt_decls_ifequal): Remove. (gfc_get_derived_type): Remove all the paraphenalia for association of derived types, including calls to previous. * match.c (gfc_match_allocate): Call gfc_use_derived to associate any derived types that are being allocated. PR fortran/20886 * resolve.c (resolve_actual_arglist): The passing of a generic procedure name as an actual argument is an error. PR fortran/28735 * resolve.c (resolve_variable): Check for a symtree before resolving references. PR fortran/28762 * primary.c (match_variable): Return MATCH_NO if the symbol is that of the program. PR fortran/28425 * trans-expr.c (gfc_trans_subcomponent_assign): Translate derived type component expressions other than another derived type constructor. PR fortran/28496 * expr.c (find_array_section): Correct errors in the handling of a missing start value for the index triplet in an array reference. PR fortran/18111 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting reference to backend_decl, set it DECL_ARTIFICIAL. (gfc_get_symbol_decl): Likewise for original dummy decl, when a copy is made of an array. (create_function_arglist): Likewise for the _entry paramter in entry_masters. (build_entry_thunks): Likewise for dummies in entry thunks. PR fortran/28600 * trans-decl.c (gfc_get_symbol_decl): Ensure that the DECL_CONTEXT of the length of a character dummy is the same as that of the symbol declaration. PR fortran/28771 * decl.c (add_init_expr_to_sym): Remove setting of charlen for an initializer of an assumed charlen variable. PR fortran/28660 * trans-decl.c (generate_expr_decls): New function. (generate_dependency_declarations): New function. (generate_local_decl): Call previous if not either a dummy or a declaration in an entry master. 2006-08-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/28630 * gfortran.dg/used_types_2.f90: New test. PR fortran/28601 * gfortran.dg/used_types_3.f90: New test. PR fortran/20886 * gfortran.dg/generic_actual_arg.f90: New test. PR fortran/28735 * gfortran.dg/module_private_array_refs_1.f90: New test. PR fortran/28762 * gfortran.dg/program_name_1.f90: New test. PR fortran/28425 * gfortran.dg/derived_constructor_comps_1.f90: New test. PR fortran/28496 * gfortran.dg/array_initializer_2.f90: New test. PR fortran/18111 * gfortran.dg/unused_artificial_dummies_1.f90: New test. PR fortran/28600 * gfortran.dg/assumed_charlen_function_4.f90: New test. PR fortran/28771 * gfortran.dg/assumed_charlen_in_main.f90: New test. PR fortran/28660 * gfortran.dg/dependent_decls_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_initializer_2.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_4.f90 trunk/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90 trunk/gcc/testsuite/gfortran.dg/dependent_decls_1.f90 trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90 trunk/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 trunk/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90 trunk/gcc/testsuite/gfortran.dg/program_name_1.f90 trunk/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90 trunk/gcc/testsuite/gfortran.dg/used_types_2.f90 trunk/gcc/testsuite/gfortran.dg/used_types_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/
[Bug fortran/24866] internal compiler error
--- Comment #9 from patchapp at dberlin dot org 2006-08-20 06:01 --- Subject: Bug number PR24866 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00711.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866
[Bug fortran/25077] No error on attempt to redefine intrinsic assigments
--- Comment #3 from patchapp at dberlin dot org 2006-08-20 06:05 --- Subject: Bug number PR25077 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00712.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25077