Repeating section names in ELF binary

2013-04-06 Thread Sebastian Wankerl
Hello, we are working on a project to make module debugging for the Linux kernel easier. We want to improve it in such a way that gdb automatically loads the symbols of modules. However, we are facing the following difficulties: gdb needs to know all section of the ELF files. We were told that

Re: Repeating section names in ELF binary

2013-04-06 Thread Ian Lance Taylor
On Sat, Apr 6, 2013 at 3:09 AM, Sebastian Wankerl sisew...@cip.cs.fau.de wrote: we are working on a project to make module debugging for the Linux kernel easier. We want to improve it in such a way that gdb automatically loads the symbols of modules. However, we are facing the following

Can -mno-big-switch be removed from the PA port?

2013-04-06 Thread Steven Bosscher
Hello, I'm trying to get to a point where the CFG is useable even in the delay-slot filling pass (dbr_schedule) and I'm currently stuck on a transformation that the PA port does if -mno-big-switch is in effect. With !TARGET_BIG_SWITCH, the PA port explodes a JUMP_TABLE_DATA to real code, i.e.

Re: Can -mno-big-switch be removed from the PA port?

2013-04-06 Thread John David Anglin
On 6-Apr-13, at 12:25 PM, Steven Bosscher wrote: Are there any reasons against removing !TARGET_BIG_SWITCH support? It would really help if this code can go away... Yes, branch distances are limited to what can be encoded in a 17-bit pc relative offset. Large code will break with

Re: Compiling gcc473-RC-20130404 with -Wextra

2013-04-06 Thread Gabriel Dos Reis
On Sat, Apr 6, 2013 at 6:51 AM, Дилян Палаузов dilyan.palau...@aegee.org wrote: Hello, I compile gcc473-RC-20130404 with CFLAGS='-pipe -O3 -march=native -Wl,-S -Wl,--hash-style=gnu -Wl,-O1 -Wl,-z,relro -flto -Wall -Wextra' ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

Re: Can -mno-big-switch be removed from the PA port?

2013-04-06 Thread Steven Bosscher
On Sat, Apr 6, 2013 at 7:09 PM, John David Anglin wrote: On 6-Apr-13, at 12:25 PM, Steven Bosscher wrote: Are there any reasons against removing !TARGET_BIG_SWITCH support? It would really help if this code can go away... Yes, branch distances are limited to what can be encoded in a 17-bit

Re: Can -mno-big-switch be removed from the PA port?

2013-04-06 Thread John David Anglin
On 6-Apr-13, at 3:16 PM, Steven Bosscher wrote: On Sat, Apr 6, 2013 at 7:09 PM, John David Anglin wrote: On 6-Apr-13, at 12:25 PM, Steven Bosscher wrote: Are there any reasons against removing !TARGET_BIG_SWITCH support? It would really help if this code can go away... Yes, branch

gcc-4.7-20130406 is now available

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

[Bug fortran/56852] [4.6/4.7/4.8/4.9 Regression] ICE on invalid: Bad array reference for an undeclared loop variable

2013-04-06 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56852 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/56854] New: error: non-decl/MEM_REF LHS in clobber statement

2013-04-06 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56854 Bug #: 56854 Summary: error: non-decl/MEM_REF LHS in clobber statement Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug c++/56854] error: non-decl/MEM_REF LHS in clobber statement

2013-04-06 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56854 --- Comment #1 from David Binderman dcb314 at hotmail dot com 2013-04-06 09:45:18 UTC --- Created attachment 29813 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29813 gzipped C++ source code

[Bug c/56851] Segmentation Error using -O3 optimization

2013-04-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56851 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at

[Bug target/56855] New: optab_handler (op=vashr_optab, mode=V4DImode) finds nothing

2013-04-06 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56855 Bug #: 56855 Summary: optab_handler (op=vashr_optab, mode=V4DImode) finds nothing Classification: Unclassified Product: gcc Version: 4.9.0 Status:

[Bug c++/56856] New: the location of -Wformat warnings point *after* the format string

2013-04-06 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56856 Bug #: 56856 Summary: the location of -Wformat warnings point *after* the format string Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED

[Bug c++/56856] the location of Wformat warnings points *after* the format string

2013-04-06 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56856 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic

[Bug fortran/56852] [4.6/4.7/4.8/4.9 Regression] ICE on invalid: Bad array reference for an undeclared loop variable

2013-04-06 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56852 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug fortran/53298] ICE in gfc_conv_scalarized_array_ref for ARRAY + substring

2013-04-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53298 Thomas Koenig tkoenig at gcc dot gnu.org changed: What|Removed |Added Blocks||56818

[Bug c/56851] Segmentation Error using -O3 optimization

2013-04-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56851 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se 2013-04-06 11:57:13 UTC --- The SEGV stopped on trunk with r195239 aka PR55964 fix.

[Bug middle-end/43631] var-tracking inserts notes with non-NULL BLOCK_FOR_INSN in between basic blocks

2013-04-06 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43631 Steven Bosscher steven at gcc dot gnu.org changed: What|Removed |Added Attachment #28673|0 |1

[Bug c++/56857] New: Crash in resolve_args

2013-04-06 Thread rmansfield at qnx dot com
-unknown-linux-gnu Configured with: ../configure --enable-languages=c++ --disable-bootstrap Thread model: posix gcc version 4.9.0 20130406 (experimental) [trunk revision 197540] (GCC) Testcase is partially reduced by delta from libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc $ ./xgcc

[Bug c++/56857] Crash in resolve_args

2013-04-06 Thread rmansfield at qnx dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56857 Ryan Mansfield rmansfield at qnx dot com changed: What|Removed |Added Version|4.8.1 |4.9.0

[Bug libstdc++/56841] [4.9 Regression] ld: Unsatisfied symbol __atomic_exchange_8 in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]

2013-04-06 Thread dave.anglin at bell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56841 --- Comment #5 from dave.anglin at bell dot net 2013-04-06 15:18:44 UTC --- --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2013-04-05 10:14:42 UTC --- Dave, does it work after rev 197512 ? Two thumbs up! Dave --

[Bug libstdc++/56841] [4.9 Regression] ld: Unsatisfied symbol __atomic_exchange_8 in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]

2013-04-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56841 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode

2013-04-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582 --- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2013-04-06 16:08:28 UTC --- Created attachment 29816 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29816 patch Here's a fix. I'm not going to apply it to the 4.6 branch

[Bug target/56858] New: alpha looks for NOTE_INSN_EH_REGION notes that cannot exist

2013-04-06 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56858 Bug #: 56858 Summary: alpha looks for NOTE_INSN_EH_REGION notes that cannot exist Classification: Unclassified Product: gcc Version: 4.9.0 Status:

[Bug target/56858] alpha looks for NOTE_INSN_EH_REGION notes that cannot exist

2013-04-06 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56858 Steven Bosscher steven at gcc dot gnu.org changed: What|Removed |Added Target|

[Bug c++/56857] Crash in resolve_args

2013-04-06 Thread rmansfield at qnx dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56857 --- Comment #2 from Ryan Mansfield rmansfield at qnx dot com 2013-04-06 18:42:07 UTC --- ICE started happening at rev196747 http://gcc.gnu.org/viewcvs/gcc?view=revisionrevision=196747

[Bug c++/56859] New: alignas() fails in template

2013-04-06 Thread wd11 at leicester dot ac.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56859 Bug #: 56859 Summary: alignas() fails in template Classification: Unclassified Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority:

[Bug target/56858] alpha looks for NOTE_INSN_EH_REGION notes that cannot exist

2013-04-06 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56858 --- Comment #2 from Steven Bosscher steven at gcc dot gnu.org 2013-04-06 21:55:57 UTC --- Proposed fix: Index: config/alpha/alpha.c === --- config/alpha/alpha.c

[Bug c++/56857] Crash in resolve_args

2013-04-06 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56857 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/56859] alignas() fails in template

2013-04-06 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56859 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug other/56860] New: Texinfo bug in doc/cppopts.texi

2013-04-06 Thread david.narvaez at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56860 Bug #: 56860 Summary: Texinfo bug in doc/cppopts.texi Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug c++/56861] New: std::vector::reserve optimization bug

2013-04-06 Thread david at doublewise dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56861 Bug #: 56861 Summary: std::vector::reserve optimization bug Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/56862] New: std::complex constructor ambiguous overload

2013-04-06 Thread cbcode at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56862 Bug #: 56862 Summary: std::complex constructor ambiguous overload Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: minor

Re: [PATCH, combine] Fix host-specific behavior in simplify_compare_const()

2013-04-06 Thread Chung-Ju Wu
2013/3/7 Chung-Ju Wu jasonw...@gmail.com: 2013/3/5 Eric Botcazou ebotca...@adacore.com: In other words, any 32-bit target with 'need_64bit_hwint=yes' in config.gcc is not able to have benefit from this optimization because it never passes the condition test. My solution is to use

[RFA] [PATCH] Minor improvement to canonicalization of COND_EXPR for gimple

2013-04-06 Thread Jeff Law
The tree combiner/forward propagator is missing opportunities to collapse sequences like this: _15 = _12 ^ _14; if (_15 != 0) Into: if (_12 != _14) The tree combiner/forward propagator builds this tree: x ^ y Then passes it to canonicalize_cond_expr_cond That is not suitable

[RFA][PATCH] Improve VRP of COND_EXPR_CONDs

2013-04-06 Thread Jeff Law
Given something like this: bb 6: _23 = changed_17 ^ 1; _12 = (_Bool) _23; if (_12 != 0) goto bb 10; else goto bb 7; Assume _23 and changed_17 have integer types wider than a boolean, but VRP has determined they have a range [0..1]. We should be turning that into: bb 6:

Re: [RFA][PATCH] Improve VRP of COND_EXPR_CONDs

2013-04-06 Thread Steven Bosscher
On Sat, Apr 6, 2013 at 2:48 PM, Jeff Law wrote: Given something like this: ...and the other one from earlier today. Nice finds! :-) + /* If we have a comparison of a SSA_NAME boolean against + a constant (which obviously must be [0..1]). See if the ...be [0..1]), see if ... +

Re: functional and type_traits cleanup

2013-04-06 Thread Jonathan Wakely
On 5 April 2013 21:12, François Dumont wrote: In fact my first attempt was a very simple one: templatetypename _From, typename _To class __is_convertible_helper_From, _To, false { templatetypename _To1 static true_type __test(_To1); templatetypename

[committed] Fix PR target/55487: Don't increment label nuses on NOTE_INSN_DELETED_LABEL notes

2013-04-06 Thread John David Anglin
The fix is obvious. Tested on hppa64-hp-hpux11.11 and hppa-unknown- linux-gnu with no observed regressions. Committed to 4.8 and trunk. Dave -- John David Anglin dave.ang...@bell.net 2013-04-06 John David Anglin dave.ang...@nrc-cnrc.gc.ca PR target/55487 *

[committed] Fix GCC bootstrap on hppa*-*-hpux* using HP cat

2013-04-06 Thread John David Anglin
The patch fixes PR other/55274 and we now generate a non empty map file. As noted in the PR, this problem causes a hang when bootstrap is done using HP cat. Tested on hppa64-hp-hpux11.11 and hppa2.0w-hp-hpux11.11. Committed to trunk and 4.8. Richard, would it be ok to apply to the 4.7

Re: functional and type_traits cleanup

2013-04-06 Thread Daniel Krügler
2013/4/6 Jonathan Wakely jwakely@gmail.com But the version with the default template parameter is fine and more consistent with the other helpers implementation so, adopted! Here is an other version of the patch for validation. Daniel, I agree that inheritance with

Re: functional and type_traits cleanup

2013-04-06 Thread Jonathan Wakely
On 6 April 2013 21:03, Daniel Krügler wrote: 2013/4/6 Jonathan Wakely jwakely@gmail.com But the version with the default template parameter is fine and more consistent with the other helpers implementation so, adopted! Here is an other version of the patch for validation.

C: Add new warning -Wunprototyped-calls

2013-04-06 Thread Tobias Burnus
This patch comes from Richard's SUSE GCC patch. There, -Wunprototyped-calls is enabled for all RPM builds. -Wunprototyped-calls prints a warning if one calls a function with an argument with is declared without prototype. For instance: gcc.dg/Wunprototyped-calls.c: In function ‘main’:

Re: C: Add new warning -Wunprototyped-calls

2013-04-06 Thread Andreas Schwab
Tobias Burnus bur...@net-b.de writes: gcc.dg/Wunprototyped-calls.c:13:3: warning: call to function ‘g’ without a real prototype [-Wunprototyped-calls] What is a real prototype? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B

[patch] update documentation for SEQUENCE

2013-04-06 Thread Steven Bosscher
Hello, The existing documentation for SEQUENCE still states it is used for DEFINE_EXPAND sequences. I think I wasn't even hacking GCC when that practice was abandoned, and in the mean time some other uses of SEQUENCE have appeared in the compiler. So, a long-overdue documentation update. OK for

Re: functional and type_traits cleanup

2013-04-06 Thread Paolo Carlini
Hi, On 04/06/2013 10:43 PM, Jonathan Wakely wrote: My response was more like a general comment: My apprehension is that I after these changes not all predicate type traits do satisfy the Library requirement anymore that they still derive from std::integral_constant. But I have not checked that

[patch] PR middle-end/43631

2013-04-06 Thread Steven Bosscher
Hello, In this PR43631, var-tracking notes are inserted on basic block boundaries and BB_HEAD/BB_END end up pointing to these notes. This breaks verify_flow_info. The problem is actually bigger than just the var-tracking notes. The general problem is that there are no rules for whether or not

Re: [PATCH, combine] Fix host-specific behavior in simplify_compare_const()

2013-04-06 Thread Jeff Law
On 04/06/2013 01:42 AM, Chung-Ju Wu wrote: The attached patch has passed bootstrap/regression test on x86_64-unknown-linux-gnu with current main trunk. A plaintext gcc/ChangeLog is as below: 2013-04-06 Chung-Ju Wu jasonw...@gmail.com * combine.c (simplify_compare_const): Use

Re: [RFA][PATCH] Improve VRP of COND_EXPR_CONDs

2013-04-06 Thread Jeff Law
On 04/06/2013 07:08 AM, Steven Bosscher wrote: + if (!SSA_NAME_OCCURS_IN_ABNORMAL_PHI (innerop)) + { + value_range_t *vr = get_value_range (innerop); + I don't think the SSA_NAME_OCCURS_IN_ABNORMAL_PHI test is necessary, get_value_range() will simply return a !VR_RANGE.

RE: [PATCH GCC]Relax the probability condition in CE pass when optimizing for code size

2013-04-06 Thread Bin Cheng
-Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On Behalf Of Bin Cheng Sent: Tuesday, March 26, 2013 4:33 PM To: 'Joern Rennecke' Cc: gcc-patches@gcc.gnu.org; 'Jeff Law' Subject: RE: [PATCH GCC]Relax the probability condition in CE

RE: [PATCH GCC/pr56124] Don't prefer memory if the source of load operation has side effect

2013-04-06 Thread Bin Cheng
-Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On Behalf Of Bin Cheng Sent: Monday, March 25, 2013 3:15 PM To: gcc-patches@gcc.gnu.org Subject: FW: [PATCH GCC/pr56124] Don't prefer memory if the source of load operation has side