Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Andrew Haley
On 05/18/2010 04:24 AM, Sandeep Soni wrote: On Tue, May 18, 2010 at 2:34 AM, Andrew Haley a...@redhat.com wrote: For example: A textual GIMPLE tuple for the statement a=b+c can be like GIMPLE_ASSIGNPLUS_EXPR,a,b,c (As demonstrated by the internal manual also). Is such a

unrecognizable insn after adding clobbers

2010-05-18 Thread Paulo J. Matos
Hi, I have for call_value a define_expand and define_insn that look like: (define_expand call_value [ (set (match_operand 0 ) (call (match_operand:QI 1 nonmemory_operand ) (match_operand:QI 2 immediate_operand ))) ] ) (define_insn *call_value [ (set

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Diego Novillo
On Mon, May 17, 2010 at 16:15, Sandeep Soni soni.sande...@gmail.com wrote: 1. What should be the format of representation of the GIMPLE tuples in text? I liked Andrew's suggestion about S-expressions. It looks like a good balance between ease of parsing/writing. We can always tweak the format

Re: Does `-fwhole-program' make sense when compiling shared libraries?

2010-05-18 Thread Dave Korn
[ hmf. This one got lost to an smtp error when I sent it yesterday. It appears there's more or less agreement that at the moment you're supposed to manually annotate all external entry points if you want to use -fwhole-program on a library. On windows, where we often do that anyway, it looks

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Michael Matz
Hi, On Tue, 18 May 2010, Diego Novillo wrote: On Mon, May 17, 2010 at 16:15, Sandeep Soni soni.sande...@gmail.com wrote: 1. What should be the format of representation of the GIMPLE tuples in text? I liked Andrew's suggestion about S-expressions. I can see that for describing

Re: unrecognizable insn after adding clobbers

2010-05-18 Thread Dave Korn
On 18/05/2010 13:01, Paulo J. Matos wrote: I have for call_value a define_expand and define_insn that look like: (define_expand call_value [ (set (match_operand 0 ) (call (match_operand:QI 1 nonmemory_operand ) (match_operand:QI 2 immediate_operand ))) ]

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Diego Novillo
On Tue, May 18, 2010 at 09:59, Michael Matz m...@suse.de wrote: I don't see how that is much easier to parse compared to  i_1 = k_1 + m_1  j_1 = func (arg1, arg2) Well, it would make the parser almost trivial to implement. But you have a point, the only structurally complex objects we need

Re: Does `-fwhole-program' make sense when compiling shared libraries?

2010-05-18 Thread Jan Hubicka
[ hmf. This one got lost to an smtp error when I sent it yesterday. It appears there's more or less agreement that at the moment you're supposed to manually annotate all external entry points if you want to use -fwhole-program on a library. On windows, where we often do that anyway, it

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Steven Bosscher
On Tue, May 18, 2010 at 4:09 PM, Diego Novillo dnovi...@google.com wrote: On Tue, May 18, 2010 at 09:59, Michael Matz m...@suse.de wrote: I don't see how that is much easier to parse compared to  i_1 = k_1 + m_1  j_1 = func (arg1, arg2) Well, it would make the parser almost trivial to

Re: unrecognizable insn after adding clobbers

2010-05-18 Thread Paulo J. Matos
On Tue, May 18, 2010 at 3:26 PM, Dave Korn dave.korn.cyg...@gmail.com wrote: This however causes an unrecognizable insn error during the compiler runtime when I have TARGET_X defined. I was expecting the clobbers not to influence the recognition but it seems I was wrong.  Actually, IIUC the

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Basile Starynkevitch
On Tue, 2010-05-18 at 15:59 +0200, Michael Matz wrote: Hi, On Tue, 18 May 2010, Diego Novillo wrote: On Mon, May 17, 2010 at 16:15, Sandeep Soni soni.sande...@gmail.com wrote: 1. What should be the format of representation of the GIMPLE tuples in text? I liked Andrew's

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Richard Guenther
On Tue, May 18, 2010 at 4:30 PM, Basile Starynkevitch bas...@starynkevitch.net wrote: On Tue, 2010-05-18 at 15:59 +0200, Michael Matz wrote: Hi, On Tue, 18 May 2010, Diego Novillo wrote: On Mon, May 17, 2010 at 16:15, Sandeep Soni soni.sande...@gmail.com wrote: 1. What should be the

Re: unrecognizable insn after adding clobbers

2010-05-18 Thread Dave Korn
On 18/05/2010 15:24, Paulo J. Matos wrote: On Tue, May 18, 2010 at 3:26 PM, Dave Korn dave.korn.cyg...@gmail.com wrote: This however causes an unrecognizable insn error during the compiler runtime when I have TARGET_X defined. I was expecting the clobbers not to influence the recognition but

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Dave Korn
On 18/05/2010 15:17, Steven Bosscher wrote: IMHO, ideally we would have a syntax that is human readable and human writable. S-expressions are not as easy to read for me as something that resembles C. I'd like it that way too, but I acknowledge that it would be more work and it's not me

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Steven Bosscher
On Tue, May 18, 2010 at 4:30 PM, Basile Starynkevitch bas...@starynkevitch.net wrote: BTW, is it possible today to have a GCC plugin providing a front-end to GCC? [last time I looked, I believe the answer is no] This is one of the reasons for my patches to better hide the middle-end details

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Andrew Haley
On 05/18/2010 04:05 PM, Dave Korn wrote: On 18/05/2010 15:17, Steven Bosscher wrote: IMHO, ideally we would have a syntax that is human readable and human writable. S-expressions are not as easy to read for me as something that resembles C. I'd like it that way too, but I acknowledge

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Diego Novillo
[ apologies for the duplicate message. My previous reply was bounced by the ML. ] On Tue, May 18, 2010 at 10:52, Andrew Haley a...@redhat.com wrote: On 05/18/2010 04:05 PM, Dave Korn wrote: On 18/05/2010 15:17, Steven Bosscher wrote: IMHO, ideally we would have a syntax that is human

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Sandeep Soni
On Tue, May 18, 2010 at 8:33 PM, Diego Novillo dnovi...@google.com wrote: Yup.  This shade of blue can be changed later.  Sandi, let's start with the S-expression syntax for everything.  Richard is correct in pointing out that even gimple expressions have metadata associated with them that

Updating multilib support after a compiler is built

2010-05-18 Thread Jon Beniston
Hi, Is it possible to update the multilib combinations supported by GCC after it has been built? (I would like to build some libraries optimised for different CPUs variants, that aren't built by default). I tried doing this via a specs file, but something like the following fails: %rename

Re: Updating multilib support after a compiler is built

2010-05-18 Thread Basile Starynkevitch
On Tue, 2010-05-18 at 18:30 +0100, Jon Beniston wrote: Is it possible to update the multilib combinations supported by GCC after it has been built? I don't know for sure, but I would guess and imagine that it is not possible. The intuition is that multilib-ness is really a matter of choosing

Re: Updating multilib support after a compiler is built

2010-05-18 Thread Ian Lance Taylor
Jon Beniston j...@beniston.com writes: Is it possible to update the multilib combinations supported by GCC after it has been built? I believe that all the multilib information can be read from the specs file, so, technically, yes. %rename multilib_matches old_multilib_matches

useless stores generated when returning a struct -- bug?

2010-05-18 Thread Joshua Haberman
I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I have been experimenting with returning structs from functions instead of passing pointers to out parameters. This seems like it should be

gcc help

2010-05-18 Thread packet
How do i build gcc for linux?

Re: gcc help

2010-05-18 Thread Joel Sherrill
On 05/18/2010 01:11 PM, packet wrote: How do i build gcc for linux? Oh the irony of the subject. This is better asked on the gcc-help mailing list. -- Joel Sherrill, Ph.D. Director of Research Development joel.sherr...@oarcorp.comOn-Line Applications Research Ask me

Re: Updating multilib support after a compiler is built

2010-05-18 Thread Joseph S. Myers
On Tue, 18 May 2010, Jon Beniston wrote: Hi, Is it possible to update the multilib combinations supported by GCC after it has been built? (I would like to build some libraries optimised for different CPUs variants, that aren't built by default). I tried doing this via a specs file, but

disallow movm in a register class

2010-05-18 Thread Eggenmüller Bernd
Hi all, how can I disallow the mov operation for a register class. Can someone help me? Thanks, Egge

[PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Bernhard Reutner-Fischer
Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous #include) ? I could not find an appropriate tool to diagnose them, so i was thinking about a gcc plugin to do that. Would

Re: [PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Steven Bosscher
On 5/18/10, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous #include) ? I could not find an appropriate tool to

gcc-4.4-20100518 is now available

2010-05-18 Thread gccadmin
Snapshot gcc-4.4-20100518 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20100518/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: [PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Joel Sherrill
On 05/18/2010 05:53 PM, Steven Bosscher wrote: On 5/18/10, Bernhard Reutner-Fischerrep.dot@gmail.com wrote: Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous

Re: useless stores generated when returning a struct -- bug?

2010-05-18 Thread Ian Lance Taylor
Joshua Haberman jhaber...@gmail.com writes: I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I concur that this is a missed optimization bug. Ian

Re: disallow movm in a register class

2010-05-18 Thread Ian Lance Taylor
Eggenmüller Bernd egg...@gmx.de writes: how can I disallow the mov operation for a register class. Can someone help me? Please do not start a new thread by replying to an existing message. That hides your message for all of us who use threaded e-mail readers. If there is some mode which can

Re: useless stores generated when returning a struct -- bug?

2010-05-18 Thread Joshua Haberman
Ian Lance Taylor iant at google.com writes: Joshua Haberman jhaberman at gmail.com writes: I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I concur that this is a missed

RM QA Session on May 27th

2010-05-18 Thread Mark Mitchell
Several people have asked that there be a forum for asking questions of and providing feedback to the GCC RMs. Since this is of course a very widely distributed community, the best medium for this seems to be an IRC chat. To that end, I'll be hosting a 1-hour session on May 27th at 9:00 AM

Re: RM QA Session on May 27th

2010-05-18 Thread NightStrike
On Tue, May 18, 2010 at 11:36 PM, Mark Mitchell m...@codesourcery.com wrote: Several people have asked that there be a forum for asking questions of and providing feedback to the GCC RMs.  Since this is of course a very widely distributed community, the best medium for this seems to be an IRC

Re: RM QA Session on May 27th

2010-05-18 Thread Mark Mitchell
NightStrike wrote: If anyone would like to volunteer to set up a channel and/or moderate the chat itself, please let me know. Can you just do it in #gcc on oftc? That's certainly the fallback possibility. Though, for those not interested, it would interrupt whatever else is being

prerequisites page

2010-05-18 Thread Todd Rinaldo
I'm writing to report a discrepancy in http://gcc.gnu.org/install/prerequisites.html I just discovered that if gmp is boot strapped during gcc build and an older m4 exists, when gmp calls flex, it will fail during configure with: checking for flex... flex checking lex output file root...

[Bug c++/44186] Wrong code generated with -O2 and above

2010-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-05-18 06:31 --- *** Bug 44187 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44186

[Bug c++/44187] Wrong code generated with -O2 and above

2010-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-18 06:31 --- *** This bug has been marked as a duplicate of 44186 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/31367] Should not warn about use of deprecated type in deprecated struct

2010-05-18 Thread ethouris at gmail dot com
--- Comment #4 from ethouris at gmail dot com 2010-05-18 07:14 --- No matter which entity is actually affected in the example above, 'foo' is a type of field used inside the entity. In all these cases, deprecation warning should not be reported for the field of type 'foo'. It should be

[Bug middle-end/44185] [4.6 regression] New prefetch test failures

2010-05-18 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-05-18 07:29 --- In general, with inlining, not a huge deal, although it can still occur when functons are short-circuited. For certain applicatons that are built with PIC, the IP-thunk, at the very least, should be padded since

[Bug middle-end/44101] [4.6 regression] ICE compiling 25_algorithms/fill/4.cc on Tru64 UNIX V5.1B

2010-05-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #2 from ebotcazou at gcc dot gnu dot org 2010-05-18 07:41 --- I need the preprocessed file. Thanks in advance. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/44184] asm goto does not work with LTO

2010-05-18 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |steven at gcc dot gnu dot |dot org

[Bug rtl-optimization/44169] Wrong code while generating TLS offsets

2010-05-18 Thread segher at gcc dot gnu dot org
--- Comment #4 from segher at gcc dot gnu dot org 2010-05-18 08:26 --- Confirmed with current 4.4 branch and mainline. -mabi=nospe -mno=spe doesn't make the problem go away; only changing -mcpu does. -- segher at gcc dot gnu dot org changed: What|Removed

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-05-18 Thread iains at gcc dot gnu dot org
--- Comment #17 from iains at gcc dot gnu dot org 2010-05-18 09:09 --- Created an attachment (id=20693) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20693action=view) latest version a few more tweaks. with this emutls is working for lto/whopr OMP is still broken and so will be

[Bug c++/44186] Wrong code generated with -O2 and above

2010-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-05-18 09:25 --- Note however, that both the warning and the miscompilation do not happen with current 4_5-branch and mainline... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44186

[Bug c++/44188] New: Fails to produce DW_AT_typedef for typedef of anonymous struct

2010-05-18 Thread rguenth at gcc dot gnu dot org
typedef struct { int i; } AAA; typedef struct BBB { int i; } BBB; int main(void) { BBB bb; AAA aa; return 0; } produces 3a2: Abbrev Number: 9 (DW_TAG_variable) a3 DW_AT_name: bb a6 DW_AT_decl_file : 1 a7

[Bug debug/41371] [4.5/4.6 Regression] var-tracking is slow and memory hungry

2010-05-18 Thread jakub at gcc dot gnu dot org
--- Comment #27 from jakub at gcc dot gnu dot org 2010-05-18 09:36 --- Subject: Bug 41371 Author: jakub Date: Tue May 18 09:35:52 2010 New Revision: 159528 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159528 Log: PR debug/41371 * var-tracking.c

[Bug c++/44186] Wrong code generated with -O2 and above

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-05-18 09:53 --- (In reply to comment #3) Note however, that both the warning and the miscompilation do not happen with current 4_5-branch and mainline... Which is because we see the must-alias and punt. After all this just

[Bug middle-end/44185] [4.6 regression] New prefetch test failures

2010-05-18 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44185

[Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-18 10:04 --- Confirmed. Assembly with 4.4 is equal -g vs. -g0 and different starting with 4.5. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/44184] asm goto does not work with LTO

2010-05-18 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added GCC build triplet|x86_64-pc-linux-gnu | GCC host triplet|x86_64-pc-linux-gnu | GCC target

[Bug rtl-optimization/44174] [4.4/4.5/4.6 Regression] can't find a register in class 'CLOBBERED_REGS' while reloading 'asm'

2010-05-18 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44174

[Bug c++/44186] Wrong code generated with -O2 and above

2010-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-05-18 10:08 --- Ok ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44186

[Bug bootstrap/42347] [4.5/4.6 Regression] sched-deps.c:3840:1: internal compiler error: in fixup_reorder_chain, at cfglayout.c:796

2010-05-18 Thread siarhei dot siamashka at gmail dot com
--- Comment #28 from siarhei dot siamashka at gmail dot com 2010-05-18 10:09 --- Thanks, this patch fixes bootstrap for powerpc/powerpc64. But still fails for arm on all the same gcc_assert() in another place. Should a new bug be filed about this? --

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding

2010-05-18 Thread fxcoudert at gcc dot gnu dot org
--- Comment #16 from fxcoudert at gcc dot gnu dot org 2010-05-18 10:28 --- Confirmed on gcc version 4.5.1 20100506 (prerelease). -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/43821] -feliminate-dwarf2-dups produces no debug symbols in executable warning from dsymutil

2010-05-18 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2010-05-18 10:35 --- Doesn't happen for me with the 4.5 branch. (I don't have a current trunk compiler to compare with.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43821

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-05-18 Thread sfilippone at uniroma2 dot it
--- Comment #9 from sfilippone at uniroma2 dot it 2010-05-18 10:41 --- (In reply to comment #8) (In reply to comment #7) Btw, after the recent patch for PR43969, this might well be fixed already ... Unfortunately, no, I still get the ICE. --

[Bug bootstrap/42347] [4.5/4.6 Regression] sched-deps.c:3840:1: internal compiler error: in fixup_reorder_chain, at cfglayout.c:796

2010-05-18 Thread jakub at gcc dot gnu dot org
--- Comment #29 from jakub at gcc dot gnu dot org 2010-05-18 10:58 --- Please file a new PR for that, with preprocessed source and all other relevant info for reproduction. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42347

[Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1

2010-05-18 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-05-18 11:26 --- The differences start during inlining. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44182

[Bug target/44189] New: PIC compilation on ARM screws up DWARF lineinfo in function prologue

2010-05-18 Thread gergely+gccbug at risko dot hu
SVN revision: 159525 Configure line: ../gcc-svn/configure --prefix=/tmp/gcc-cross/gcc-svn-bin/ --target=arm-linux-gnueabi --with-headers=/tmp/gcc-cross/gcc-svn-bin/arm-linux-gnueabi/include --with-libs=/tmp/gcc-cross/gcc-svn-bin/arm-linux-gnueabi/lib/ --enable-threads=posix --enable-shared

[Bug middle-end/44101] [4.6 regression] ICE compiling 25_algorithms/fill/4.cc on Tru64 UNIX V5.1B

2010-05-18 Thread ro at gcc dot gnu dot org
--- Comment #3 from ro at gcc dot gnu dot org 2010-05-18 11:55 --- Created an attachment (id=20694) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20694action=view) preprocessed source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44101

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-05-18 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-05-18 12:19 --- (In reply to comment #9) Btw, after the recent patch for PR43969, this might well be fixed already ... Unfortunately, no, I still get the ICE. Sure. Actually my comment was only targeted towards Tobias'

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #11 from burnus at gcc dot gnu dot org 2010-05-18 12:24 --- (In reply to comment #8) If one adds b = ALLOCATED(x) one finds: Where do you add this? Add in bug14 of attachment 20491 before 'end subroutine': logical b b = allocated(a%a) However, this is now fixed. *

[Bug debug/43821] -feliminate-dwarf2-dups produces no debug symbols in executable warning from dsymutil

2010-05-18 Thread iains at gcc dot gnu dot org
--- Comment #3 from iains at gcc dot gnu dot org 2010-05-18 12:30 --- it still fails for me on ppc and i686 4.6.0 r159518 and 159528 resp. gcc version 4.5.1 20100518 (prerelease) [gcc-4_5-branch revision 159528] (GCC) apollo:gcc-4-5-branch-build $ ./gcc/xgcc -B gcc -g -feliminate

[Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1

2010-05-18 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-05-18 13:04 --- I guess this is related to the EH rewrite in 4.5. In particular, when building cfg for f2 in make_blocks on (gdb) p debug_gimple_stmt (stmt) S::f3 (this, D.2140); (gdb) p stmt_can_throw_internal (stmt) $47 = 0 '\000'

[Bug lto/44184] asm goto does not work with LTO

2010-05-18 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2010-05-18 13:52 --- Subject: Bug 44184 Author: steven Date: Tue May 18 13:51:50 2010 New Revision: 159531 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159531 Log: gcc/ PR lto/44184 * lto-streamer-out.c

[Bug lto/44184] asm goto does not work with LTO

2010-05-18 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2010-05-18 14:07 --- Subject: Bug 44184 Author: steven Date: Tue May 18 14:06:31 2010 New Revision: 159532 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159532 Log: gcc/ PR lto/44184 * lto-streamer-out.c

[Bug lto/44184] asm goto does not work with LTO

2010-05-18 Thread steven at gcc dot gnu dot org
--- Comment #3 from steven at gcc dot gnu dot org 2010-05-18 14:08 --- Fixed for GCC 4.5.1 and later. -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread ktietz at gcc dot gnu dot org
--- Comment #11 from ktietz at gcc dot gnu dot org 2010-05-18 14:22 --- (In reply to comment #10) Re-opening. It turns out that GCC fails to actually apply the dllexport attribute to TLS control vars. So solving the binutils problem allows auto-export of a TLS variable to work, but

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread davek at gcc dot gnu dot org
--- Comment #12 from davek at gcc dot gnu dot org 2010-05-18 14:29 --- (In reply to comment #11) I have doubts about the approach in winnt.c, but well maybe I am wrong here. I investigated for this issue and see the real issue in declaration cloning in varasm.c's emutls_decl-

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread davek at gcc dot gnu dot org
--- Comment #13 from davek at gcc dot gnu dot org 2010-05-18 14:33 --- (In reply to comment #12) TARGET_EMUTLS_VAR_INIT Nah, scratch that, it's not really sensible. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44139

[Bug middle-end/44164] [4.5 Regression] Aliasing bug triggered by Boost.Bind/Boost.Function

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2010-05-18 14:58 --- (In reply to comment #9) But the standard says in [basic.types] that For any trivially copyable type T, if two pointers to T point to distinct T objects obj1 and obj2, where neither obj1 nor obj2 is a

[Bug target/44163] [4.6 Regression] Multiple failures in the objc and libgomp test suites

2010-05-18 Thread dje at gcc dot gnu dot org
-- dje at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last

[Bug middle-end/44164] [4.5 Regression] Aliasing bug triggered by Boost.Bind/Boost.Function

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-05-18 15:00 --- (In reply to comment #10) (In reply to comment #9) But the standard says in [basic.types] that For any trivially copyable type T, if two pointers to T point to distinct T objects obj1 and obj2, where

[Bug c++/44164] [4.5 Regression] Aliasing bug triggered by Boost.Bind/Boost.Function

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #12 from rguenth at gcc dot gnu dot org 2010-05-18 15:02 --- Making this a C++ frontend bug. The only way to avoid expanding the copy to a loop is by using memcpy which will then run into PR42834. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug lto/44143] [4.6 Regression] -fdump-tree-all for lto does not work as expected

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-05-18 15:11 --- Subject: Bug 44143 Author: rguenth Date: Tue May 18 15:11:01 2010 New Revision: 159536 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159536 Log: 2010-05-18 Richard Guenther rguent...@suse.de PR

[Bug lto/44143] [4.6 Regression] -fdump-tree-all for lto does not work as expected

2010-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-05-18 15:11 --- Fixed again. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread ktietz at gcc dot gnu dot org
--- Comment #14 from ktietz at gcc dot gnu dot org 2010-05-18 15:18 --- Hi Dave, following patch solves the issue for me pretty well. ChangeLog * varasm.c (emutls_decl): Clone attributes for new decl. Index: gcc/gcc/varasm.c

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread davek at gcc dot gnu dot org
--- Comment #15 from davek at gcc dot gnu dot org 2010-05-18 15:26 --- (In reply to comment #14) Hi Dave, following patch solves the issue for me pretty well. That looks good to me to, although doing it in the middle-end makes me worry that some other target might /not/ be

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-05-18 Thread iains at gcc dot gnu dot org
--- Comment #18 from iains at gcc dot gnu dot org 2010-05-18 15:55 --- (In reply to comment #17) Created an attachment (id=20693) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20693action=view) [edit] latest version a few more tweaks. with this emutls is working for lto/whopr

[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

2010-05-18 Thread dominiq at lps dot ens dot fr
--- Comment #16 from dominiq at lps dot ens dot fr 2010-05-18 16:28 --- You may be interested by pr 44132. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44139

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-05-18 Thread dominiq at lps dot ens dot fr
--- Comment #19 from dominiq at lps dot ens dot fr 2010-05-18 16:55 --- This PR may have an overlap with pr44139. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44132

[Bug lto/44149] -fuse-linker-plugin lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:610

2010-05-18 Thread ccoutant at gcc dot gnu dot org
-- ccoutant at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |ccoutant at gcc dot gnu dot |dot org

[Bug rtl-optimization/44174] [4.4/4.5/4.6 Regression] can't find a register in class 'CLOBBERED_REGS' while reloading 'asm'

2010-05-18 Thread vmakarov at redhat dot com
--- Comment #1 from vmakarov at redhat dot com 2010-05-18 19:06 --- It will be fixed by IRA without cover classes which I am working on. The code is planned to be included in gcc4.6. For older versions, it should be fixed in reload because I believe it is a hidden reload bug. --

[Bug target/44189] PIC compilation on ARM screws up DWARF lineinfo in function prologue

2010-05-18 Thread gergely+gccbug at risko dot hu
--- Comment #1 from gergely+gccbug at risko dot hu 2010-05-18 19:17 --- Added wrong-debug as a keyword. -- gergely+gccbug at risko dot hu changed: What|Removed |Added

[Bug objc/44140] objc.dg/torture/tls/thr-init-3.m failure

2010-05-18 Thread ro at gcc dot gnu dot org
--- Comment #2 from ro at gcc dot gnu dot org 2010-05-18 19:39 --- This happens on i386-pc-solaris2.11, too, but only with -flto and -fwhopr. -- ro at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/44185] [4.6 regression] New prefetch test failures

2010-05-18 Thread changpeng dot fang at amd dot com
--- Comment #2 from changpeng dot fang at amd dot com 2010-05-18 19:39 --- I have a patch to fix the test cases: http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01359.html For prefetch-6.c, patch http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00567.html applies the insn to prefetch ratio

[Bug objc/44140] objc.dg/torture/tls/thr-init-3.m failure

2010-05-18 Thread ro at gcc dot gnu dot org
--- Comment #3 from ro at gcc dot gnu dot org 2010-05-18 19:42 --- Ian, you've introduced this testcase; could you have a look? -- ro at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/19541] need another option to support what -I- did just besides -iquote

2010-05-18 Thread chris dot litchfield at gmail dot com
--- Comment #15 from chris dot litchfield at gmail dot com 2010-05-18 19:48 --- This is still a huge issue. We would wish to inhibit use of the CURRENT Working directory to find include files. Basically FORCE every time a new include file is found with #include to start AGAIN from

[Bug objc/44140] objc.dg/torture/tls/thr-init-3.m failure

2010-05-18 Thread iains at gcc dot gnu dot org
--- Comment #4 from iains at gcc dot gnu dot org 2010-05-18 20:04 --- (In reply to comment #3) Ian, you've introduced this testcase; could you have a look? Yes.. working my way through .. I'm sure that it is problem with ObjC (and ObjC++, if you apply

[Bug c++/44164] [4.5 Regression] Aliasing bug triggered by Boost.Bind/Boost.Function

2010-05-18 Thread pluto at agmk dot net
--- Comment #13 from pluto at agmk dot net 2010-05-18 20:57 --- btw. the boost::optional uses char-based storage and cast storage - void* - some_type* via address() and get_object() methods. it looks like aliasing violation too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44164

[Bug fortran/41859] ICE on invalid expression involving DT with pointer components in I/O

2010-05-18 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2010-05-18 21:17 --- If print *, (foo()) is changed to print *, foo() one gets: $ gfortran-svn pr41859.f90 pr41859.f90:17.19: print *, foo() ! -- ICE here! 1 Error: Data transfer element at (1) cannot

[Bug fortran/41859] ICE on invalid expression involving DT with pointer components in I/O

2010-05-18 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2010-05-18 21:30 --- Breakpoint 9, resolve_transfer (code=0x8bfed90) at /home/daniel/svn/gcc-svn/gcc/fortran/resolve.c:7369 (gdb) list 7367 exp = code-expr1; 7368 7369 if (exp-expr_type != EXPR_VARIABLE exp-expr_type !=

[Bug rtl-optimization/43332] valgrind warns about using uninitialized variable with -fsched-pressure -fschedule-insns

2010-05-18 Thread vmakarov at redhat dot com
--- Comment #4 from vmakarov at redhat dot com 2010-05-18 21:40 --- Thanks for reporting the problem. The problem has no effect on generated code whatever initialization is used. The code in question tries to get basic block for BARRIER which is wrong. Whatever it gets basic block

[Bug libstdc++/44190] New: Debug vector resize does not update capacity

2010-05-18 Thread gcc-bugzilla at contacts dot eelis dot net
The assertion in the following testcase should /not/ fail, but does: #define _GLIBCXX_DEBUG #define _GLIBCXX_DEBUG_PEDANTIC #include vector #include cassert int main() { std::vectorint v; v.resize(10); assert(v.size() = v.capacity()); } -- Summary: Debug

[Bug libstdc++/44190] Debug vector resize does not update capacity

2010-05-18 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2010-05-18 21:45 --- Created an attachment (id=20695) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20695action=view) Trivial patch that fixes the problem. The problem was just a missing call to

[Bug c++/44188] Fails to produce DW_AT_typedef for typedef of anonymous struct

2010-05-18 Thread dodji at gcc dot gnu dot org
-- dodji at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org |dot org

[Bug fortran/39427] F2003: Procedures with same name as types/type constructors

2010-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #13 from burnus at gcc dot gnu dot org 2010-05-18 21:51 --- Created an attachment (id=20696) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20696action=view) Fifth draft patch - with test case New approach. The attached patch now also works with twisted modules (cf.

[Bug fortran/41859] ICE on invalid expression involving DT with pointer components in I/O

2010-05-18 Thread dfranke at gcc dot gnu dot org
--- Comment #4 from dfranke at gcc dot gnu dot org 2010-05-18 21:54 --- Comment #3 is somewhat hard to parse. Once more with this reduced testcase: TYPE :: ptype character, pointer, dimension(:) :: x = null() END TYPE TYPE(ptype) :: p print *, (p)! '()' are

  1   2   >