Work in your project

2012-05-26 Thread Serg Anohovsky
Hi guys, In next three years I'm going to get the scientific degree in System programming. That's why I'm looking for the interesting and actual theme not like a new bicycle with square rings. My degree work in university was connected with value range propagation (VRP) functionality in clang

How to run a compiled C program?

2012-05-26 Thread Georg-Johann Lay
The avr backend auto-generates a part of the texi documentation by means of a small C program. The relevant part of t-avr reads: s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext) $(RUN_GEN) $ | sed -e 's:\r::g' avr-mmcu.texi There was a problem report that the executable cannot be

How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Georg-Johann Lay
The avr backend auto-generates parts of GCC's texi documentation, namely the supported -mmcu= options, which are about 200. To generate the texi a small C program is used to print the texi to stdout, and that output is then compared against the already existing doc/avr-mmci.texi If the output

Re: How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Kevin
Georg-Johann Lay wrote: The avr backend auto-generates parts of GCC's texi documentation, namely the supported -mmcu= options, which are about 200. To generate the texi a small C program is used to print the texi to stdout, and that output is then compared against the already existing

Re: How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Jonathan Wakely
On 26 May 2012 11:01, Georg-Johann Lay wrote: Is there a valid compare tool that compares text modulo line-endings? POSIX diff with the -b option should report the files as equal, I don't know if that's portable enough to rely on though.

Re: How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Joerg Wunsch
As Jonathan Wakely wrote: POSIX diff with the -b option should report the files as equal, I don't know if that's portable enough to rely on though. I think it is. The Single Unix Specification requires the -b option (Cause any amount of white space at the end of a line to be treated as a

Re: Work in your project

2012-05-26 Thread Diego Novillo
On 12-05-26 04:46 , Serg Anohovsky wrote: It would be nice, if you suggest me good theme or give me the area where I could find it. You can find GCC's VRP implementation in the file gcc/tree-vrp.c in the source repository http://gcc.gnu.org/viewcvs/trunk/gcc/tree-vrp.c?view=markup The

Re: How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Joern Rennecke
Quoting Georg-Johann Lay a...@gjlay.de: The avr backend auto-generates parts of GCC's texi documentation, namely the supported -mmcu= options, which are about 200. I hope that autogenerated documentation is still helpful then. Sometimes an overabundance of verbose documentation can prevent a

Re: How to run a compiled C program?

2012-05-26 Thread Ian Lance Taylor
Georg-Johann Lay a...@gjlay.de writes: The avr backend auto-generates a part of the texi documentation by means of a small C program. The relevant part of t-avr reads: s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext) $(RUN_GEN) $ | sed -e 's:\r::g' avr-mmcu.texi There was a

Re: How to compare two text files? Using sed, cmp, diff, tr?

2012-05-26 Thread Miles Bader
Joern Rennecke amyl...@spamcop.net writes: Some platforms need b for fopen, others reject it. Hmm, really? b seems to standard in ISO-C (and widely used in programs aiming for portability)... -miles -- Bore, n. A person who talks when you wish him to listen.

gcc-4.7-20120526 is now available

2012-05-26 Thread gccadmin
Snapshot gcc-4.7-20120526 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-20120526/ 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 c++/53494] New: initializer lists in array type

2012-05-26 Thread marcus-yass at ihug dot co.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 Bug #: 53494 Summary: initializer lists in array type Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/53494] initializer lists in array type

2012-05-26 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 --- Comment #1 from Paolo Carlini paolo.carlini at oracle dot com 2012-05-26 09:40:37 UTC --- In any case a good workaround is using matchSynonyms{{ {smile,1} }}

[Bug bootstrap/53321] [4.8 Regression] LTO bootstrap failed with bootstrap-profiled

2012-05-26 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53321 --- Comment #10 from Uros Bizjak ubizjak at gmail dot com 2012-05-26 10:09:35 UTC --- Reduced testcase: --cut here-- typedef long unsigned int size_t; extern C { extern void *memcpy (void *__dest, __const void *__src, size_t __n); } extern

[Bug c++/53490] Segmentation Fault when accessing std::set

2012-05-26 Thread ja11sop at yahoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53490 --- Comment #7 from Jamie Allsop ja11sop at yahoo dot co.uk 2012-05-26 10:59:46 UTC --- (In reply to comment #6) (In reply to comment #4) It was a vanilla bjam build of boost 1.49, so no -std=c++11. Then technically that's not supported,

[Bug ada/50294] ICE in output_constructor_regular_field

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50294 --- Comment #11 from Eric Botcazou ebotcazou at gcc dot gnu.org 2012-05-26 13:26:01 UTC --- Author: ebotcazou Date: Sat May 26 13:25:55 2012 New Revision: 187914 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187914 Log: PR ada/50294

[Bug ada/50294] ICE in output_constructor_regular_field

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50294 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c/53467] xgcc:Internal error: Bus error (program cc1)

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53467 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Severity|blocker |normal

[Bug bootstrap/52878] [4.8 regression] bootstrap failure: MASK_LONG_DOUBLE_128 redefined

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52878 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/52205] unwinding through signal handler fails

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52205 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.7.0 ---

[Bug rtl-optimization/52528] combine bug (powerpc testcase)

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52528 --- Comment #6 from Eric Botcazou ebotcazou at gcc dot gnu.org 2012-05-26 13:55:51 UTC --- Author: ebotcazou Date: Sat May 26 13:55:46 2012 New Revision: 187915 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187915 Log: Backport from

[Bug rtl-optimization/52528] combine bug (powerpc testcase)

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52528 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED

[Bug target/52205] unwinding through signal handler fails

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52205 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c/53495] New: segmentation fault

2012-05-26 Thread regehr at cs dot utah.edu
-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --with-libelf=/usr/local --enable-lto --prefix=/home/regehr/z/compiler-install/gcc-r187906-install --program-prefix=r187906- --enable-languages=c,c++ Thread model: posix gcc version 4.8.0 20120526

[Bug middle-end/43013] [4.5 regression] warning: 'saved_stack.1' is used uninitialized in this function with -fstack-check

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43013 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Summary|[4.5/4.6/4.7/4.8|[4.5

[Bug middle-end/39514] [4.5/4.6/4.7/4.8 Regression] unreported change to packed bitfields

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39514 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug rtl-optimization/53495] [4.8 Regression] segmentation fault

2012-05-26 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53495 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS

2012-05-26 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/53494] initializer lists in array type

2012-05-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||error-recovery,

[Bug target/53461] Incorrect handling of CASE_VECTOR_PC_RELATIVE in config/m68k.md

2012-05-26 Thread gvvn1200 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53461 t-rexky gvvn1200 at gmail dot com changed: What|Removed |Added Severity|major |normal

[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

2012-05-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Known to work||4.6.3

[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

2012-05-26 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 --- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com 2012-05-26 15:16:29 UTC --- And since it's actually invalid should be pretty easy to fix, the ICE is happening in a gcc_assert where alignment is handled, nothing to do.

[Bug middle-end/52823] [4.8 Regression] FAIL: gnat.dg/renaming5.adb scan-tree-dump-times optimized goto 2

2012-05-26 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52823 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Resolution|WONTFIX |FIXED

[Bug c/53496] New: gcc segfaults when compiling glic

2012-05-26 Thread justas.poderys at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53496 Bug #: 53496 Summary: gcc segfaults when compiling glic Classification: Unclassified Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/53496] gcc segfaults when compiling glic

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53496 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-05-26 17:21:38 UTC --- Can you provide the preprocessed source? I think this is done on purpose since foo is not used in the source and the rules for C++ say the const variable

[Bug middle-end/53496] gcc segfaults when compiling glic

2012-05-26 Thread justas.poderys at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53496 --- Comment #2 from Justas justas.poderys at gmail dot com 2012-05-26 17:25:40 UTC --- Created attachment 27503 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27503 source of param.c

[Bug c++/53492] [g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 ] internal compiler error: in retrieve_specialization, at cp/pt.c:985

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53492 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug tree-optimization/53480] warning may be used uninitialized issued with -m32 but not with -m64

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53480 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic ---

[Bug c++/53475] [4.8 Regression] Section type conflict errors in libstdc++ testsuite

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53475 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Component|libstdc++ |c++

[Bug target/53334] [4.8 Regression] ICE in extract_insn, at recog.c:2131

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53334 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug middle-end/53496] gcc segfaults when compiling glic

2012-05-26 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53496 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread jwatte at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 --- Comment #2 from jwatte at gmail dot com 2012-05-26 19:22:01 UTC --- Note that there is not yet any linkage involved -- this is simply a compile pass. Specifically, the problem here is that I run into a missing symbol error when linking a

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread jwatte at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 --- Comment #3 from jwatte at gmail dot com 2012-05-26 19:25:50 UTC --- Created attachment 27504 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27504 The preprocessed source Generated with: avr-gcc -Os -mmcu=atmega328p -c foo.cpp -o foo.E -E

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug bootstrap/53321] [4.8 Regression] LTO bootstrap failed with bootstrap-profiled

2012-05-26 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53321 Steven Bosscher steven at gcc dot gnu.org changed: What|Removed |Added CC||steven at gcc

[Bug bootstrap/53321] [4.8 Regression] LTO bootstrap failed with bootstrap-profiled

2012-05-26 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53321 --- Comment #12 from Steven Bosscher steven at gcc dot gnu.org 2012-05-26 19:42:26 UTC --- Note, btw, that verify_cgraph() doesn't catch this. Honza, you loved checkers so much a few years ago -- maybe this checker (also yours??) should be

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread jwatte at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 jwatte at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

2012-05-26 Thread marcus-yass at ihug dot co.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 --- Comment #5 from mako marcus-yass at ihug dot co.nz 2012-05-26 20:31:39 UTC --- Would someone please explain to me why that compile error is considered correct? It tells me nothing sensible.

[Bug c++/53486] ICE compiling code using lambdas as default argument

2012-05-26 Thread jpalecek at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53486 Jiří Paleček jpalecek at web dot de changed: What|Removed |Added Attachment #27499|0 |1 is

[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

2012-05-26 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 --- Comment #6 from Paolo Carlini paolo.carlini at oracle dot com 2012-05-26 21:00:21 UTC --- Who said correct?!?

[Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals

2012-05-26 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53220 --- Comment #15 from Jason Merrill jason at gcc dot gnu.org 2012-05-26 21:13:27 UTC --- Author: jason Date: Sat May 26 21:13:23 2012 New Revision: 187916 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187916 Log: PR c++/53220 gcc/ *

[Bug c++/25137] Warning missing braces around initializer causing problems with tr1::array

2012-05-26 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added CC||jason at gcc dot

[Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587

2012-05-26 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53491 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Summary|[4.7/4.8 Regression] ICE in |[4.7

[Bug c++/53491] [4.7/4.8 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587

2012-05-26 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53491 --- Comment #5 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 2012-05-26 21:20:44 UTC --- Author: paolo Date: Sat May 26 21:20:38 2012 New Revision: 187917 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187917 Log: /cp 2012-05-26

[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

2012-05-26 Thread marcus-yass at ihug dot co.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53494 --- Comment #7 from mako marcus-yass at ihug dot co.nz 2012-05-26 21:41:57 UTC --- Uh, Johnathan said 4.6 correctly rejects it:, however 4.6's rejection message appears every bit as useless as 4.7's, perhaps more so, because it misattributes the

[Bug c++/25137] Warning missing braces around initializer causing problems with tr1::array

2012-05-26 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/53439] g++ generates buggy code with optimisation flags

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53439 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last

[Bug c++/53434] Compiler decides declaration/expression ambiguity too soon.

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53434 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid

[Bug c/53424] dynamic array expressions get wrong sizeof() if pointers to const are involved and the pointers are changed (const is misapplied to the whole expression)

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53424 --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2012-05-26 23:47:56 UTC --- (gdb) p debug_tree(t) indirect_ref 0x76e4c500 type integer_type 0x76e6e000 int readonly SI size integer_cst 0x76d4d080 constant 32

[Bug c++/53405] [4.5/4.6 Regression] Enum-dependent class template instantiations not recognized

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53405 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid

[Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343 --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2012-05-26 23:54:26 UTC --- --disable-build-poststage1-with-cxx Is there a reason why you are using this option?

[Bug target/53327] Invalid ASM being generated

2012-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53327 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords|

Value not equal to itself

2012-05-26 Thread Jordan Foster
gcc -v; gcc version 4.2.1 20070831 patched [FreeBSD] uname -srip; FreeBSD 9.0-RELEASE i386 GENERI Compiler command; gcc47 minimalErroringCode.cpp -o minimalErroringCode Test; ./minimalErroringCode Expected; no output Result; Assertion failed: ((buffer[0] = 0xFF) buffer[0] == 0xFF), function main,

Re: Value not equal to itself

2012-05-26 Thread Jordan Foster
On 5/26/12, Jordan Foster jrdnfst...@gmail.com wrote: gcc -v; gcc version 4.2.1 20070831 patched [FreeBSD] uname -srip; FreeBSD 9.0-RELEASE i386 GENERI Compiler command; gcc47 minimalErroringCode.cpp -o minimalErroringCode Test; ./minimalErroringCode Expected; no output Result; Assertion

Re: Value not equal to itself

2012-05-26 Thread Andrew Pinski
On Sat, May 26, 2012 at 8:25 PM, Jordan Foster jrdnfst...@gmail.com wrote: gcc -v; gcc version 4.2.1 20070831 patched [FreeBSD] uname -srip; FreeBSD 9.0-RELEASE i386 GENERI Compiler command; gcc47 minimalErroringCode.cpp -o minimalErroringCode Test; ./minimalErroringCode Expected; no output

[Patch ARM] Fix off by one error in neon_evpc_vrev.

2012-05-26 Thread Ramana Radhakrishnan
Hi, There is an off by one error in neon_evpc_vrev which means it rarely gets triggerred. The problem is that if you are looking at d-perm [i +j] and you increment i by just diff you end up starting looking where you looked at the end of the last place where you checked. Given this I

[Ada] Small tweak to type derivation machinery

2012-05-26 Thread Eric Botcazou
To have the name of the types of the variant part and the fields therein be unique instead of mere duplicates of those of the base type, which makes it easier to debug type merging issues in LTO mode. Tested on i586-suse-linux, applied on the mainline, 4.7 and 4.6 branches. 2012-05-26 Eric

Fix gnat.dg/renaming5.adb regression

2012-05-26 Thread Eric Botcazou
There is one more goto in the .optimized dump because the latch of a loop is now preserved. Tested on i586-suse-linux, applied on the mainline. 2012-05-26 Eric Botcazou ebotca...@adacore.com * gnat.dg/renaming5.adb: Adjust dg-final directive. -- Eric Botcazou Index:

[Ada] Fix gnat.dg/return3.adb regression

2012-05-26 Thread Eric Botcazou
The problem is that the new call to cleanup_cfg in gimple_expand_cfg has short-circuited the machinery that emits nops to carry goto locus at -O0. The machinery works in CFGLAYOUT mode, but here we're still in CFGRTL. The attached patch makes it so that forwarder blocks are not deleted by

Re: divide 64-bit by constant for 32-bit target machines

2012-05-26 Thread Paolo Bonzini
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 2cecf45..9d6983b 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -7131,6 +7131,8 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed) *total = COSTS_N_INSNS (2); else if

Re: divide 64-bit by constant for 32-bit target machines

2012-05-26 Thread Paolo Bonzini
Il 25/05/2012 12:20, Dinar Temirbulatov ha scritto: + emit_store_flag_force (c, GT, u0, tmp, mode, 1, 1); + emit_store_flag_force (c1, GT, u1, tmp, mode, 1, 1); + result = expand_binop (mode, ior_optab, c, c1, cres, 1, OPTAB_LIB_WIDEN); + if (!result) + return

Re: divide 64-bit by constant for 32-bit target machines

2012-05-26 Thread Paolo Bonzini
Il 26/05/2012 14:35, Paolo Bonzini ha scritto: /* We have to return z2 + ((u0 + u1) GET_MODE_BITSIZE (word_mode)). u0 + u1 are the upper two words of the three-word intermediate result and they could have up to 2 * GET_MODE_BITSIZE

[C++ Patch] PR 25137

2012-05-26 Thread Paolo Carlini
Hi, I found the time to return to this issue, where -Wmissing-braces is often overeager to warn, thus annoying, for example, people using -Wall together with std::array: std::arrayint, 3 s = { 1, 2, 3 }; I handle the issue following the letter of the suggestion given by Ian at the

[ARM Patch 1/n] PR53447: optimizations of 64bit ALU operation with constant

2012-05-26 Thread Carrot Wei
Hi, As described in PR53447, many 64bit ALU operations with constant can be optimized to use corresponding 32bit instructions with immediate operands. This is the first part of the patches that deals with 64bit add. It directly extends the patterns adddi3, arm_adddi3 and adddi3_neon to handle

Re: [C++ Patch] PR 53491

2012-05-26 Thread Jason Merrill
I think I would rather fix stabilize_expr to handle void arguments properly: basically just stick the whole argument in *initp and return void_zero_node. Jason

Re: RFC: IRA patch to reduce lifetimes

2012-05-26 Thread H.J. Lu
On Mon, May 21, 2012 at 9:33 AM, H.J. Lu hjl.to...@gmail.com wrote: On Wed, Apr 11, 2012 at 7:35 AM, Bernd Schmidt ber...@codesourcery.com wrote: On 12/23/2011 05:31 PM, Vladimir Makarov wrote: On 12/21/2011 09:09 AM, Bernd Schmidt wrote: This patch was an experiment to see if we can get the

Re: [C++ Patch] PR 53491

2012-05-26 Thread Paolo Carlini
On 05/26/2012 04:21 PM, Jason Merrill wrote: I think I would rather fix stabilize_expr to handle void arguments properly: basically just stick the whole argument in *initp and return void_zero_node. Ok. Like this it works, if I understand your suggestion. Thanks, Paolo.

Re: [C++ Patch] PR 53491

2012-05-26 Thread Jason Merrill
On 05/26/2012 11:31 AM, Paolo Carlini wrote: Ok. Like this it works, if I understand your suggestion. Yep, that's what I had in mind. But let's put it after the !TREE_SIDE_EFFECTS case. OK with that change. Jason

Re: RFC (c): PATCH for c++/53220 (array compound literals and C++)

2012-05-26 Thread Joseph S. Myers
On Sat, 26 May 2012, Jason Merrill wrote: In C++, C99 a compound literal creates a temporary object, unlike C, where it creates an automatic or static object. As a result, using an array compound literal to initialize a pointer variable leads to undefined behavior, as the array's lifetime

[Ada] Fix some typos in comments

2012-05-26 Thread oliver.kell...@t-online.de
Hello, I happened to notice these typos but I don't have commit rights. Thanks to whoever might pick it up. -- Oliver 2012-05-26 Oliver Kellogg okell...@users.sourceforge.net * alloc.ads, exp_dbug.adb, gcc-interface/misc.c, lib.ads, lib-xref.adb, lib-xref.ads, sem_ch10.adb, sem_ch12.adb,

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread Sriraman Tallam
On Fri, May 25, 2012 at 10:05 PM, H.J. Lu hjl.to...@gmail.com wrote: On Fri, May 25, 2012 at 8:38 PM, Sriraman Tallam tmsri...@google.com wrote: On May 25, 2012 7:15 PM, H.J. Lu hjl.to...@gmail.com wrote: On May 25, 2012 6:54 PM, Sriraman Tallam tmsri...@google.com wrote: On Fri,

[C++ Patch] PR 25137 (no -Wmissing-braces in -Wall version)

2012-05-26 Thread Paolo Carlini
... and this is the version of the patch which simply takes -Wmissing-braces out of -Wall in C++. Bootstrapped and tested all C-family languages x86-64-linux. Paolo. /// Index: doc/invoke.texi === ---

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread H.J. Lu
On Sat, May 26, 2012 at 3:34 PM, Sriraman Tallam tmsri...@google.com wrote: On Fri, May 25, 2012 at 10:05 PM, H.J. Lu hjl.to...@gmail.com wrote: On Fri, May 25, 2012 at 8:38 PM, Sriraman Tallam tmsri...@google.com wrote: On May 25, 2012 7:15 PM, H.J. Lu hjl.to...@gmail.com wrote: On May 25,

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread Sriraman Tallam
On Sat, May 26, 2012 at 4:56 PM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, May 26, 2012 at 3:34 PM, Sriraman Tallam tmsri...@google.com wrote: On Fri, May 25, 2012 at 10:05 PM, H.J. Lu hjl.to...@gmail.com wrote: On Fri, May 25, 2012 at 8:38 PM, Sriraman Tallam tmsri...@google.com wrote: On

RFA: temp slot TLC [1/3]

2012-05-26 Thread Michael Matz
Hi, I still had some cleanups for age-old code lying around, and thought to bring it up to date. The whole dealing of slots for temporary stack space in function.c was never really updated to the way we're meanwhile expanding statements. It has facilities that aren't useful anymore. In the

RFA: temp slot TLC [2/3]

2012-05-26 Thread Michael Matz
Hi, and this is the large cleanup, removing dead code introduced by [1/3] for real, and removing the 'keep' parameter from assign_temp and friends, which now is always zero (in the compiler proper and in the backends). That latter is the largest churn. If [1/3] is approved this whole patch is

RFA: temp slot TLC [3/3]

2012-05-26 Thread Michael Matz
Hi, and this is a further small cleanup. pop_temp_slots is now the same as free_temp_slots (modulo the level-- of course), so there's no need in calling both. (and preserve_temp_slots(NULL) is useless now). Regstrapped on x86_64-linux together with [1/3] and [2/3], all languages

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread H.J. Lu
On Sat, May 26, 2012 at 5:23 PM, Sriraman Tallam tmsri...@google.com wrote: On Sat, May 26, 2012 at 4:56 PM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, May 26, 2012 at 3:34 PM, Sriraman Tallam tmsri...@google.com wrote: On Fri, May 25, 2012 at 10:05 PM, H.J. Lu hjl.to...@gmail.com wrote: On

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread Sriraman Tallam
On Sat, May 26, 2012 at 7:06 PM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, May 26, 2012 at 5:23 PM, Sriraman Tallam tmsri...@google.com wrote: On Sat, May 26, 2012 at 4:56 PM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, May 26, 2012 at 3:34 PM, Sriraman Tallam tmsri...@google.com wrote: On

Re: User directed Function Multiversioning via Function Overloading (issue5752064)

2012-05-26 Thread H.J. Lu
On Sat, May 26, 2012 at 7:23 PM, Sriraman Tallam tmsri...@google.com wrote: That is because libgcc_s.so is preferred by g++. We can do one of 3 things: 1. Abuse libgcc_eh.a by moving __cpu_model and __cpu_indicator_init from libgcc.a to libgcc_eh.a. 2. Rename libgcc_eh.a to libgcc_static.a

RFA: Speedup expand_used_vars by 30 times (PR38474)

2012-05-26 Thread Michael Matz
Hi, [for certain test cases :-) ] the temp slot cleanups I just sent where actually motivated by PR38474. It exposes many slownesses in the compiler, but at -O0 the only remaining one is the expand phase. expanding variables is the one thing (on my machine here, with -O0 -g f951): 30

Re: [cxx-conversion] New Hash Table (issue6244048)

2012-05-26 Thread Michael Matz
Hi, On Fri, 25 May 2012, NightStrike wrote: This point of yours should be stressed. Using writing standards of one language to develop in another language is a fundamentally bad idea. C and C++ kind of look the same, but they are not: http://www.research.att.com/~bs/bs_faq.html#C-slash