[Bug c/46462] [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

--- Comment #4 from Paolo Bonzini  2010-11-14 01:01:58 
UTC ---
Patches have been posted, I'm waiting for Objective-C maintainers to (not)
object before committing.  The warnings you see are cured by the c-decl.c part:
the behavior of choosing int is correct, but the warning is superfluous (though
theoretically correct).


[Bug c/46462] [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

--- Comment #3 from H.J. Lu  2010-11-14 00:59:03 
UTC ---
As of revision 166721, I still see

FAIL: c-c++-common/raw-string-8.c  -Wc++-compat  (test for excess errors)
FAIL: gcc.dg/cpp/direct2.c (test for excess errors)
FAIL: gcc.dg/cpp/direct2s.c (test for excess errors)
FAIL: gcc.dg/dfp/constants-c99.c (test for excess errors)
FAIL: gcc.dg/dfp/keywords-c99.c (test for excess errors)
FAIL: gcc.dg/gomp/pr34607.c (test for excess errors)
FAIL: gcc.dg/pr35746.c (test for excess errors)

Some of them look like:

FAIL: c-c++-common/raw-string-8.c  -Wc++-compat  (test for excess errors)
Excess errors:
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/c-c++-common/raw-string-8.c:10:3:
warning: type defaults to 'int' in declaration of 't' [enabled by default]

FAIL: gcc.dg/gomp/pr34607.c (test for excess errors)
Excess errors:
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gcc.dg/gomp/pr34607.c:11:10:
warning: type defaults to 'int' in declaration of 'i' [enabled by default]
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gcc.dg/gomp/pr34607.c:13:5:
warning: type defaults to 'int' in declaration of 'j' [enabled by default]


[Bug c++/46466] [C++0X] ICE when using constexpr with -fno-elide-constructors

2010-11-13 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46466

Paolo Carlini  changed:

   What|Removed |Added

 CC||jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini  2010-11-14 
00:40:07 UTC ---
Let's add Jason in CC.


[Bug tree-optimization/46469] [4.6 Regression] ICE: verify_cgraph_node failed: inline clone is needed at -O

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46469

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.11.13 23:29:17
 CC||hubicka at gcc dot gnu.org
   Target Milestone|--- |4.6.0
 Ever Confirmed|0   |1

--- Comment #1 from H.J. Lu  2010-11-13 23:29:17 
UTC ---
It is caused by revision 165972:

http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg01159.html


[Bug target/43440] Overwriting neon quad register does not clobber all included single registers

2010-11-13 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43440

Richard Earnshaw  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||rearnsha at gcc dot gnu.org
 Resolution||FIXED
   Target Milestone|--- |4.6.0

--- Comment #12 from Richard Earnshaw  2010-11-13 
23:09:47 UTC ---
Fixed on trunk.


[Bug target/43440] Overwriting neon quad register does not clobber all included single registers

2010-11-13 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43440

--- Comment #11 from Richard Earnshaw  2010-11-13 
23:08:31 UTC ---
Author: rearnsha
Date: Sat Nov 13 23:08:26 2010
New Revision: 166723

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166723
Log:
PR target/43440
* tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
* tm.texi: Regenerated.
* output.h (decode_reg_name_and_count): Declare.
* varasm.c (decode_reg_name_and_count): New function.
(decode_reg_name): Reimplement using decode_reg_name_and_count.
* reginfo.c (fix_register): Use decode_reg_name_and_count and 
iterate over all regs used.
* stmt.c (expand_asm_operands): Likewise.
* arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
(ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
multiple machine registers.

Modified:
trunk/gcc/ChangeLog


[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-13 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

Andrew Pinski  changed:

   What|Removed |Added

  Component|c   |target

--- Comment #1 from Andrew Pinski  2010-11-13 
22:46:08 UTC ---
So compiling wine with -fomit-frame-pointer creates a broken wine?  Can you try
to find a small testcase.  Try first by bi-secting the object files.


[Bug target/46453] MIPS backend is not using special instructions for __builtin_bswap32

2010-11-13 Thread npl at chello dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46453

--- Comment #1 from npl at chello dot at 2010-11-13 22:41:08 UTC ---
Created attachment 22388
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22388
Partial patch inplementing 32 and 64 bit bswaps. diffed against gcc 4.5.1

Well, I went ahead and wrote a patch that adds support for the 32 and 64 bit
bswap-builtins. Im not sure if this is the best way to do it and I dont know
enough to tackle the 16bit bswaps.


[Bug tree-optimization/46469] New: [4.6 Regression] ICE: verify_cgraph_node failed: inline clone is needed at -O

2010-11-13 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46469

   Summary: [4.6 Regression] ICE: verify_cgraph_node failed:
inline clone is needed at -O
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zso...@seznam.cz
  Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu


Created attachment 22387
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22387
reduced testcase

Compiler output:
$ gcc -O pr46469.C 
pr46469.C: In function 'int identifierByPthreadHandle()':
pr46469.C:12:19: error: inline clone is needed
int pthread_equal()/0(0) @0x7ff98720b000 (asm: pthread_equal) (inline copy in
int identifierByPthreadHandle()/2) availability:available analyzed 2 time, 13
benefit 3 size, 5 benefit needed reachable body finalized always_inline
  called by: int identifierByPthreadHandle()/2 (1.00 per call) (inlined) 
  calls: 
  References: 
  Refering this function: 
pr46469.C:12:19: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Backtrace:
(gdb) bt
#0  error (gmsgid=0x12f7fa0 "inline clone is needed") at
/mnt/svn/gcc-trunk/gcc/diagnostic.c:747
#1  0x00c11e6c in verify_cgraph_node (node=0x75d1c000) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:485
#2  0x00c48ca5 in expand_call_inline (fn=0x75d0d300) at
/mnt/svn/gcc-trunk/gcc/tree-inline.c:3831
#3  gimple_expand_calls_inline (fn=0x75d0d300) at
/mnt/svn/gcc-trunk/gcc/tree-inline.c:4081
#4  optimize_inline_calls (fn=0x75d0d300) at
/mnt/svn/gcc-trunk/gcc/tree-inline.c:4232
#5  0x00c1ef07 in cgraph_early_inlining () at
/mnt/svn/gcc-trunk/gcc/ipa-inline.c:1831
#6  0x0090723f in execute_one_pass (pass=0x177c880) at
/mnt/svn/gcc-trunk/gcc/passes.c:1560
#7  0x00907505 in execute_pass_list (pass=0x177c880) at
/mnt/svn/gcc-trunk/gcc/passes.c:1615
#8  0x0090672c in do_per_function_toporder (callback=0x9074f0
, data=0x1779c00)
at /mnt/svn/gcc-trunk/gcc/passes.c:1153
#9  0x009079b6 in execute_ipa_pass_list (pass=0x1779d20) at
/mnt/svn/gcc-trunk/gcc/passes.c:1932
#10 0x00c154c8 in ipa_passes () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1694
#11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1763
#12 0x00c1568a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1015
#13 0x00585c1d in cp_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:3973
#14 0x009f3e86 in compile_file (argc=3, argv=0x7fffdf28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:885
#15 do_compile (argc=3, argv=0x7fffdf28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2313
#16 toplev_main (argc=3, argv=0x7fffdf28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2374
#17 0x76579bbd in __libc_start_main () from /lib/libc.so.6
#18 0x004cadf5 in _start ()

Tested revisions:
r166703 - crash
r165699 - OK
4.5 r166509 - OK


[Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine

2010-11-13 Thread austinenglish at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

   Summary: enabling -fomit-frame-pointer by default breaks Wine
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: austinengl...@gmail.com


I've noticed lately that 'winetricks -q fm20' fails on my machine. I finally
got around to running an svn bisect:

=
Regression found!
Last good revision: r163193
First bad revision:

r163196 | hjl | 2010-08-12 09:39:37 -0700 (Thu, 12 Aug 2010) | 16 lines

Turn on -fomit-frame-pointer by default for 32bit Linux/x86.

2010-08-12  H.J. Lu  
Uros Bizjak  

* config.gcc: Handle --enable-frame-pointer.

* configure.ac: Add --enable-frame-pointer.
* configure: Regenerated.

* config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
(override_options): If not configured with --enable-frame-pointer,
enable -fomit-frame-pointer (but not for TARGET_MACHO or when
optimizing for size), -fasynchronous-unwind-tables and
-maccumulate-outgoing-args by default.

=

so, I tried compiling wine with -fno-omit-frame-pointer, still fails. The only
way to get a working wine was to compile gcc with --enable-frame-pointer.

The wine failure isn't too helpful:
$ wine /home/austin/.wine/dosdevices/c:/winetrickstmp/setup /qt
wine client error:3b: write: Bad file descriptor
err:seh:raise_exception Unhandled exception code c005 flags 0 addr
0x7dd247be
wine client error:3b: write: Bad file descriptor

however, the bug seems to be gcc producing bad code unless
--enable-frame-pointer is used.

-- 
-Austin


[Bug rtl-optimization/46315] [4.5 Regression] gcc-4.5.1 -O2 -fno-strict-overflow causes bad code generation

2010-11-13 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46315

Eric Botcazou  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |ebotcazou at gcc dot
   |gnu.org |gnu.org

--- Comment #6 from Eric Botcazou  2010-11-13 
21:31:18 UTC ---
Investigating.


[Bug target/39472] Add -mabi=[ms|sysv]

2010-11-13 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39472

Kai Tietz  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ktietz at gcc dot gnu.org
 Resolution||FIXED

--- Comment #8 from Kai Tietz  2010-11-13 20:00:47 
UTC ---
This request is fixed and already backported to 4.4. So I put its state to
resolved.


[Bug bootstrap/39622] Missing -isystem include-fixed when building canadian cross libgcc

2010-11-13 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39622

Kai Tietz  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ktietz at gcc dot gnu.org
 Resolution||FIXED

--- Comment #3 from Kai Tietz  2010-11-13 19:47:52 
UTC ---
Committed revision 166720 to trunk (4.6).


[Bug bootstrap/39622] Missing -isystem include-fixed when building canadian cross libgcc

2010-11-13 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39622

--- Comment #2 from Kai Tietz  2010-11-13 19:45:15 
UTC ---
Author: ktietz
Date: Sat Nov 13 19:45:12 2010
New Revision: 166720

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166720
Log:
2010-11-13  Georg-Johann Lay  

PR bootstrap/39622
* configure.ac (FLAGS_FOR_TARGET): Add include-fixed path.
* configure: Regenerated.


Modified:
trunk/ChangeLog
trunk/configure
trunk/configure.ac


[Bug rtl-optimization/46315] [4.5 Regression] gcc-4.5.1 -O2 -fno-strict-overflow causes bad code generation

2010-11-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46315

Richard Guenther  changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot
   ||gnu.org, rguenth at gcc dot
   ||gnu.org, stevenb.gcc at
   ||gmail dot com
  Component|tree-optimization   |rtl-optimization

--- Comment #5 from Richard Guenther  2010-11-13 
19:08:02 UTC ---
RTL constant propagation (cprop3) changes

(insn 75 26 29 5 t.c:8 (set (reg/v/f:DI 83 [ s ])
(reg/f:DI 95 [ s ])) -1 (expr_list:REG_EQUAL (plus:DI (reg/v/f:DI 83 [
s ])
(const_int 2 [0x2]))
(nil)))

to

(insn 75 26 29 5 t.c:8 (set (reg/v/f:DI 83 [ s ])
(reg/f:DI 95 [ s ])) -1 (expr_list:REG_EQUAL (const_int 2 [0x2])
(nil)))

note that the original REG_EQUAL note is suspicious anyway as it references
the set destination.  The note is correct though, reg:DI 95 is set as

(insn 11 3 12 2 t.c:5 (parallel [
(set (reg/f:DI 95 [ s ])
(plus:DI (reg/v/f:DI 83 [ s ])
(const_int 2 [0x2])))
(clobber (reg:CC 17 flags))
]) 253 {*adddi_1} (expr_list:REG_UNUSED (reg:CC 17 flags)
(nil)))

RTL PRE generates insn 75 and also adds this REG_EQUAL note.

Stopping here with my investigation.


[Bug tree-optimization/40436] [4.5/4.6 regression] 0.5% code size regression caused by r147852

2010-11-13 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40436

--- Comment #40 from Jan Hubicka  2010-11-13 
19:02:03 UTC ---
Ahh, got the signs wrong. Those was main wins, main growths are
-3101   linux-2.4.23-pre3-testplatformfs/ext3/superb
-1622   compilervasb
-1597   linux-2.4.23-pre3-testplatformdrivers/char/n_ttyb
-1385   teem-1.6.0-srcsrc/limn/test/soidb
-1321   linux-2.4.23-pre3-testplatformmm/filemapb
-1287   linux-2.4.23-pre3-testplatformfs/ext3/iallocb
-1116   linux-2.4.23-pre3-testplatformfs/ext3/inodeb
-1057   teem-1.6.0-srcsrc/limn/test/tpsb
-1039   cg_compiler_opensrcsupportb
-941   teem-1.6.0-srcsrc/ell/quatb
-876   teem-1.6.0-srcsrc/nrrd/winKernelb
-861   teem-1.6.0-srcsrc/nrrd/measureb
-828   OpenTCP-1.0.4ethernetb
-805   linux-2.4.23-pre3-testplatformkernel/exec_domainb
-702   jikespg-1.3src/ctabsb
-701   linux-2.4.23-pre3-testplatformfs/nfsd/vfsb
-681   linux-2.4.23-pre3-testplatformfs/bufferb
-681   linux-2.4.23-pre3-testplatformmm/memoryb
-680   teem-1.6.0-srcsrc/echo/test/trendb
-646   teem-1.6.0-srcsrc/nrrd/kernelb
-613   linux-2.4.23-pre3-testplatformnet/core/devb
-613   linux-2.4.23-pre3-testplatformnet/ipv4/igmpb
-605   bzip2-1.0.2decompressb
-601   linux-2.4.23-pre3-testplatformfs/ext3/ballocb
-577   teem-1.6.0-srcsrc/echo/colorb
-574   linux-2.4.23-pre3-testplatformmm/shmemb
-514   compilerparserb
-511   linux-2.4.23-pre3-testplatformfs/nameib
-497   linux-2.4.23-pre3-testplatformfs/pipeb
-482   linux-2.4.23-pre3-testplatformfs/jbd/transactionb
-480   linux-2.4.23-pre3-testplatformfs/nfs/writeb
-473   libpng-1.2.5pngrtranb
-456   linux-2.4.23-pre3-testplatformfs/jbd/journalb
-417   linux-2.4.23-pre3-testplatformfs/namespaceb
-414   teem-1.6.0-srcsrc/ten/tendSatinb
-405   linux-2.4.23-pre3-testplatformnet/sunrpc/xprtb
-403   cg_compiler_opensrcprintutilsb
-403   teem-1.6.0-srcsrc/echo/intxb
-396   linux-2.4.23-pre3-testplatformarch/testplatform/kernel/debugb
-383   teem-1.6.0-srcsrc/mite/rayb
-379   linux-2.4.23-pre3-testplatformnet/sunrpc/schedb
-367   linux-2.4.23-pre3-testplatformnet/netlink/af_netlinkb
-362   linux-2.4.23-pre3-testplatformmm/mmapb
-359   linux-2.4.23-pre3-testplatformnet/ipv4/af_inetb
-356   linux-2.4.23-pre3-testplatformnet/ipv4/tcp_minisocksb
-342   linux-2.4.23-pre3-testplatformnet/sunrpc/svcsockb
-333   teem-1.6.0-srcsrc/limn/qnb
-328   libpng-1.2.5pngsetb
-328   linux-2.4.23-pre3-testplatformfs/lockd/svclockb
-327   linux-2.4.23-pre3-testplatformfs/nfsd/nfs3procb
-316   linux-2.4.23-pre3-testplatformdrivers/char/memb
-315   linux-2.4.23-pre3-testplatformnet/core/neighbourb
-307   compilercgb
-305   linux-2.4.23-pre3-testplatformlib/vsprintfb

Anyway that source bove is really bogus.


[Bug fortran/46339] [4.3/4.4/4.5/4.6 Regression] ICE (segfault) in gfc_trans_pointer_assignment

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46339

--- Comment #4 from Tobias Burnus  2010-11-13 
19:01:00 UTC ---
(In reply to comment #3)
> This avoids the segfault.  But what is lang_specific and why is it not set in
> problem case?  Where does it normally get set?

lang_specific allows to attach front-end specific data to a middle-end tree.
The lang-specific part can be obtained by using
  DECL_LANG_SPECIFIC (decl)
thus, your check should rather use
  DECL_LANG_SPECIFIC (expr1->symtree->n.sym->backend_decl)

See trans.h for the access macros for this data. In the given case, one uses
  GFC_DECL_SPAN (decl)
Thus searching for GFC_DECL_SPAN should show all files in which the value
should have been set.

If I recall correctly, it allows for
  pointer => dt(:)%element
which currently cannot be properly represented as on used a sm (stride
multiplier) of sizeof(dt) rather than a stride in bytes, thus a subpointer with
a span has been introduced. But I might also misremember.

Regarding the program:
  axis => p(:)%r%vec(1)
is what I have described. (I have added the "(:)" for clarity.) That's an array
to the the component "r%vec(1)" of all elements of the array "p".


[Bug tree-optimization/46467] [4.6 Regression] gcc.dg/torture/pta-structcopy-1.c FAILs with -fipa-pta without inlining

2010-11-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46467

--- Comment #2 from Richard Guenther  2010-11-13 
18:52:11 UTC ---
Created attachment 22386
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22386
patch

Bah, the IPA fn parameters all have size 1, so the overlap check in the
struct copy case of course fails ...


[Bug rtl-optimization/42889] [4.5 Regression] "-fcompare-debug failure (length)" with "-O1 -fgcse"

2010-11-13 Thread aoliva at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42889

--- Comment #22 from Alexandre Oliva  2010-11-13 
18:52:00 UTC ---
Author: aoliva
Date: Sat Nov 13 18:51:57 2010
New Revision: 166719

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166719
Log:
PR debug/42889
* df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
* df-core.c (df_set_bb_dirty_nonrl): Remove.
* df.h (df_set_bb_dirty_nonlr): Likewise.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/df-core.c
trunk/gcc/df-scan.c
trunk/gcc/df.h


[Bug tree-optimization/40436] [4.5/4.6 regression] 0.5% code size regression caused by r147852

2010-11-13 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40436

--- Comment #39 from Jan Hubicka  2010-11-13 
18:42:01 UTC ---
I ran comparsion on x86-64 comparing mainline with GCC 4.3.
We get bigger sum of object sizes, but results are not too bad overall.
Main code size grains are:
222   jikespg-1.3src/remspb
247   OpenTCP-1.0.4smtp/smtp_clientb
248   linux-2.4.23-pre3-testplatformarch/testplatform/kernel/setupb
256   linux-2.4.23-pre3-testplatformlib/rbtreeb
261   teem-1.6.0-srcsrc/bane/hvolb
262   jikespg-1.3src/produceb
265   mpeg2dec-0.3.1libvo/yuv2rgbb
267   zlib-1.1.4treesb
280   linux-2.4.23-pre3-testplatformnet/ipv4/tcp_ipv4b
287   jikespg-1.3src/lpgparseb
290   teem-1.6.0-srcsrc/nrrd/reorderb
295   linux-2.4.23-pre3-testplatformarch/testplatform/mm/faultb
295   linux-2.4.23-pre3-testplatformlib/zlib_deflate/deftreeb
306   jpeg-6bjdcoefctb
311   linux-2.4.23-pre3-testplatformkernel/exitb
315   teem-1.6.0-srcsrc/nrrd/test/axb
320   linux-2.4.23-pre3-testplatformfs/nfs/procb
320   linux-2.4.23-pre3-testplatformnet/ipv4/tcpb
324   cg_compiler_opensrccompileb
337   flex-2.5.31miscb
368   teem-1.6.0-srcsrc/nrrd/ccb
374   teem-1.6.0-srcsrc/air/enumb
376   linux-2.4.23-pre3-testplatformfs/locksb
377   flex-2.5.31parseb
388   teem-1.6.0-srcsrc/gage/updateb
400   teem-1.6.0-srcsrc/gage/sclfilterb
414   OpenTCP-1.0.4pop3/pop3_clientb
417   teem-1.6.0-srcsrc/hest/parseHestb
421   teem-1.6.0-srcsrc/nrrd/filtb
432   libmspackmspack/lzxdb
433   cg_compiler_opensrctokensb
442   compilerscannerb
446   linux-2.4.23-pre3-testplatformkernel/schedb
480   linux-2.4.23-pre3-testplatformkernel/signalb
510   teem-1.6.0-srcsrc/gage/miscGageb
530   linux-2.4.23-pre3-testplatformfs/nfsd/statsb
532   teem-1.6.0-srcsrc/nrrd/supersetb
534   jikespg-1.3src/spacetabb
578   ttt-0.10.1.preprocsrc/connect4b
580   teem-1.6.0-srcsrc/echo/boundsb
601   cg_compiler_opensrcconstfoldb
699   jikespg-1.3src/globalsb
758   bzip2-1.0.2blocksortb
790   jpeg-6btransuppb
810   teem-1.6.0-srcsrc/nrrd/accessorsb
823   flex-2.5.31scanb
950   linux-2.4.23-pre3-testplatformnet/ipv4/routeb
1069   ttt-0.10.1.preprocsrc/tttb
1072   linux-2.4.23-pre3-testplatformkernel/sysb
1172   libmspackmspack/qtmdb
1453   linux-2.4.23-pre3-testplatformnet/ipv4/tcp_inputb
1643   bzip2-1.0.2compressb
2009   teem-1.6.0-srcsrc/nrrd/convertNrrdb
16144   linux-2.4.23-pre3-testplatformarch/testplatform/kernel/init_taskb

init_taskb is bogus:
union task_union init_task_union __attribute__((aligned(16384))) =
  { { state: 0, flags: 0, sigpending: 0, addr_limit: ((mm_segment_t) { (0) }),
exec_domain: &default_exec_domain, lock_depth: -1, counter: (10*100/100), nice:
(0), policy: 0, mm: ((void *)0), active_mm: &init_mm, cpus_runnable: ~0UL,
cpus_allowed: ~0UL, run_list: { &(init_task_union.task.run_list),
&(init_task_union.task.run_list) }, next_task: &init_task_union.task,
prev_task: &init_task_union.task, p_opptr: &init_task_union.task, p_pptr:
&init_task_union.task, thread_group: { &(init_task_union.task.thread_group),
&(init_task_union.task.thread_group) }, wait_chldexit: { lock: (spinlock_t) {
}, task_list: { &(init_task_union.task.wait_chldexit).task_list,
&(init_task_union.task.wait_chldexit).task_list }, }, real_timer: { function:
it_real_fn }, cap_effective: (~0 & ~(1 << (8))), cap_inheritable: (0),
cap_permitted: (~0), keep_capabilities: 0, rlim: { { (~0UL), (~0UL) }, {
(~0UL), (~0UL) }, { (~0UL), (~0UL) }, { (8*1024*1024), (~0UL) }, { 0, (~0UL) },
{ (~0UL), (~0UL) }, { 0, 0 }, { 1024, 1024 }, { (~0UL), (~0UL) }, { (~0UL),
(~0UL) }, { (~0UL), (~0UL) }, }, user: (&root_user), comm: "swapper", thread:
{{0,{{0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0}}}, 0, 0,
sizeof((init_task_union.stack)) + (addr_t) &(init_task_union.stack), ((unsigned
long)((addr_t) &swapper_pg_dir[0]) + (0x4|0x1|0x40|0x100)), 0,0,0, (per_struct)
0,}}},0,0,0,0,{{0,}}}, 0, 0, 0 }, fs: &init_fs, files: &init_files,
sigmask_lock: (spinlock_t) { }, sig: &init_signals, pending: { ((void *)0),
&init_task_union.task.pending.head, {{0}}}, blocked: {{0}}, alloc_lock:
(spinlock_t) { }, journal_info: ((void *)0), } };

tsk... Looks like GCC 4.3 ignored overly large alignments of variables.


[Bug tree-optimization/46467] [4.6 Regression] gcc.dg/torture/pta-structcopy-1.c FAILs with -fipa-pta without inlining

2010-11-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46467

Richard Guenther  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.13 18:30:32
 AssignedTo|unassigned at gcc dot   |rguenth at gcc dot gnu.org
   |gnu.org |
   Target Milestone|--- |4.6.0
 Ever Confirmed|0   |1

--- Comment #1 from Richard Guenther  2010-11-13 
18:30:32 UTC ---
Mine.


[Bug tree-optimization/46467] New: [4.6 Regression] gcc.dg/torture/pta-structcopy-1.c FAILs with -fipa-pta without inlining

2010-11-13 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46467

   Summary: [4.6 Regression] gcc.dg/torture/pta-structcopy-1.c
FAILs with -fipa-pta without inlining
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zso...@seznam.cz
  Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu


Created attachment 22385
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22385
modified gcc.dg/torture/pta-structcopy-1.c

Output:
$ gcc -O2 -fno-tree-sra -fipa-pta -fno-inline-functions-called-once
-fno-inline-small-functions pta-structcopy-1.i
$ ./a.out
Aborted

Attached testcase only adds __attribute__((noinline)) to foo() with the same
effect:
$ gcc -O2 -fno-tree-sra -fipa-pta pta-structcopy-1b.c
$ ./a.out
Aborted

Tested revisions:
r166703 - fail
r159696 - fail
r158095 - OK
4.5 r166509


[Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()

2010-11-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|jakub at redhat dot com |jakub at gcc dot gnu.org
 AssignedTo|unassigned at gcc dot   |jakub at gcc dot gnu.org
   |gnu.org |

--- Comment #2 from Jakub Jelinek  2010-11-13 
17:44:22 UTC ---
Mine then.


[Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()

2010-11-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P3  |P1


[Bug c++/46466] New: [C++0X] ICE when using constexpr with -fno-elide-constructors

2010-11-13 Thread gcc-bugzilla at contacts dot eelis.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46466

   Summary: [C++0X] ICE when using constexpr with
-fno-elide-constructors
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: gcc-bugzi...@contacts.eelis.net


Compiling

  struct S { bool b; };
  constexpr S f() { return S{true}; }
  static_assert(f().b,  "");

with

  g++ -std=c++0x -fno-elide-constructors

results in

  t.cpp:3:26: internal compiler error: Segmentation fault
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See  for instructions.

Omitting -fno-elide-constructors makes the problem go away.

I'm using GCC svn r166710.


[Bug fortran/45742] VOLATILE has no effect

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

Tobias Burnus  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #14 from Tobias Burnus  2010-11-13 
17:27:06 UTC ---
FIXED on the trunk (4.6) and the 4.5 and 4.4 branches.

Thanks for the report.


[Bug fortran/45742] VOLATILE has no effect

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

--- Comment #12 from Tobias Burnus  2010-11-13 
17:23:54 UTC ---
Author: burnus
Date: Sat Nov 13 17:23:49 2010
New Revision: 166714

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166714
Log:
2010-11-13  Tobias Burnus  

PR fortran/45742
* trans-common.c (build_field): Add TREE_SIDE_EFFECTS for
* volatile.
* trans-decl.c (gfc_finish_var_decl): Ditto.
(create_function_arglist): Handle volatile dummy arguments.

2010-11-13  Tobias Burnus  

PR fortran/45742
* gfortran.dg/volatile12.f90: New.


Added:
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/volatile12.f90
Modified:
branches/gcc-4_5-branch/gcc/fortran/ChangeLog
branches/gcc-4_5-branch/gcc/fortran/trans-common.c
branches/gcc-4_5-branch/gcc/fortran/trans-decl.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


[Bug fortran/45742] VOLATILE has no effect

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

--- Comment #13 from Tobias Burnus  2010-11-13 
17:25:31 UTC ---
Author: burnus
Date: Sat Nov 13 17:25:28 2010
New Revision: 166715

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166715
Log:
2010-11-13  Tobias Burnus  

PR fortran/45742
* trans-common.c (build_field): Add TREE_SIDE_EFFECTS for
* volatile.
* trans-decl.c (gfc_finish_var_decl): Ditto.
(create_function_arglist): Handle volatile dummy arguments.

2010-11-13  Tobias Burnus  

PR fortran/45742
* gfortran.dg/volatile12.f90: New.


Added:
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/volatile12.f90
Modified:
branches/gcc-4_4-branch/gcc/fortran/ChangeLog
branches/gcc-4_4-branch/gcc/fortran/trans-common.c
branches/gcc-4_4-branch/gcc/fortran/trans-decl.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


[Bug c/46462] [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

--- Comment #2 from Paolo Bonzini  2010-11-13 16:27:24 
UTC ---
FAIL: gcc.dg/pr14963.c (internal compiler error)
FAIL: gcc.dg/pr14963.c (test for excess errors)

I actually new about this, it's PR45062.

The Objective-C failures are bad.

The others are just tests that need to be adjusted, however for a couple of
them it's better to improve error recovery further.


[Bug tree-optimization/46465] New: ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce

2010-11-13 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46465

   Summary: ICE: in calc_dfs_tree, at dominance.c:394 with -Os
-fno-rerun-cse-after-loop -fno-tree-ccp
-fno-tree-copy-prop -fno-tree-dce
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zso...@seznam.cz
  Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu


Created attachment 22384
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22384
reduced testcase (from gcc.c-torture/compile/20050510-1.c)

This happens even after fixing PR46183.

Compiler output:
$ gcc -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop
-fno-tree-dce pr46465.c 
pr46465.c: In function 'foo':
pr46465.c:7:1: internal compiler error: in calc_dfs_tree, at dominance.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Tested revisions:
r166703 - crash
4.5 r166509 - crash
4.4 r166509 - crash


[Bug c/46462] [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

--- Comment #1 from Paolo Bonzini  2010-11-13 16:19:38 
UTC ---
Author: bonzini
Date: Sat Nov 13 16:19:33 2010
New Revision: 166711

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166711
Log:
2010-11-13  Paolo Bonzini  

PR c/46462
* gcc.dg/gomp/pr34607.c: Adjust errors for unknown typenames.
* gcc.dg/pr35746.c: Likewise.
* gcc.dg/cpp/direct2.c: Likewise.
* gcc.dg/cpp/direct2s.c: Likewise.
* gcc.dg/noncompile/920923-1.c: Likewise.
* gcc.dg/dfp/constants-c99.c: Add -Wno-overflow.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/cpp/direct2.c
trunk/gcc/testsuite/gcc.dg/cpp/direct2s.c
trunk/gcc/testsuite/gcc.dg/dfp/constants-c99.c
trunk/gcc/testsuite/gcc.dg/gomp/pr34607.c
trunk/gcc/testsuite/gcc.dg/noncompile/920923-1.c
trunk/gcc/testsuite/gcc.dg/pr35746.c


[Bug c/46462] [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.11.13 15:41:52
   Target Milestone|--- |4.6.0
 Ever Confirmed|0   |1


[Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.11.13 15:07:08
 CC||jakub at redhat dot com
   Target Milestone|--- |4.6.0
 Ever Confirmed|0   |1

--- Comment #1 from H.J. Lu  2010-11-13 15:07:08 
UTC ---
This is caused by revision 165401:

http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg00585.html


[Bug c/46460] warn for shifting more than the bits in the (promoted) type is undefined

2010-11-13 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46460

Manuel López-Ibáñez  changed:

   What|Removed |Added

 Status|RESOLVED|NEW
   Keywords||diagnostic
   Last reconfirmed||2010.11.13 15:06:51
 CC||manu at gcc dot gnu.org
 Resolution|INVALID |
 Ever Confirmed|0   |1
Summary|shifting producing  |warn for shifting more than
   |incorrect result|the bits in the (promoted)
   ||type is undefined
   Severity|normal  |enhancement

--- Comment #2 from Manuel López-Ibáñez  2010-11-13 
15:06:51 UTC ---
REOPEN as enhancement request for a warning. (No warning in 4.4.3)


[Bug testsuite/46463] [4.6 Regression] FAIL: objc.dg/attributes/method-format-1.m

2010-11-13 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46463

Paolo Bonzini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #1 from Paolo Bonzini  2010-11-13 15:01:34 
UTC ---
Fixed.


[Bug other/46464] New: libiberty pointer size assumptions for Win64 incorrect

2010-11-13 Thread nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46464

   Summary: libiberty pointer size assumptions for Win64 incorrect
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: nightstr...@gmail.com
Target: x86_64-*-mingw32


md5.h incorrectly assumes the size of a pointer to be a long int.  On Win64,
this isn't the case.  There was discussion and a proposed patch here:

http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00638.html

And a ping here:

http://gcc.gnu.org/ml/gcc-patches/2009-09/msg01515.html

And then the issue died.

The proposed patch does an ifdef on _WIN64.  There may be a more elegant
solution, such as using a configure test to see if uintptr_t is defined, and to
use that.  I really don't know.  I just don't want the issue to slip away
untouched.

Also note that to the best of my knowledge, it appears that the issue has not
yet been addressed in the year and two months since that last ping.  If it has,
then I apologize for the bug report.

One more thing.  I couldn't find libiberty in the list of components to write
the bug against, so I wrote it against "other".


[Bug testsuite/46463] [4.6 Regression] FAIL: objc.dg/attributes/method-format-1.m

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46463

H.J. Lu  changed:

   What|Removed |Added

  Component|c   |testsuite
   Target Milestone|--- |4.6.0


[Bug c/46463] New: [4.6 Regression] FAIL: objc.dg/attributes/method-format-1.m

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46463

   Summary: [4.6 Regression] FAIL:
objc.dg/attributes/method-format-1.m
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: hjl.to...@gmail.com
CC: bonz...@gnu.org


On Linux/ia32, revision 166699 gave

FAIL: objc.dg/attributes/method-format-1.m -fgnu-runtime  (test for warnings,
line 30)
FAIL: objc.dg/attributes/method-format-1.m -fgnu-runtime  (test for warnings,
line 34)
FAIL: objc.dg/attributes/method-format-1.m -fgnu-runtime  (test for warnings,
line 38)
FAIL: objc.dg/attributes/method-format-1.m -fgnu-runtime  (test for warnings,
line 42)
FAIL: objc.dg/attributes/method-format-1.m -fgnu-runtime (test for excess
errors)

Revision 166695 is OK. It may be caused by revision 166698:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00587.html


[Bug c/46462] New: [4.6 Regression] Revision 166700 caused new C test failures

2010-11-13 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46462

   Summary: [4.6 Regression] Revision 166700 caused new C test
failures
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: hjl.to...@gmail.com
CC: bonz...@gnu.org


Revision 166700:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00589.html

caused:

FAIL: c-c++-common/raw-string-8.c  -Wc++-compat  (test for excess errors)
FAIL: gcc.dg/cpp/direct2.c (test for excess errors)
FAIL: gcc.dg/cpp/direct2s.c (test for excess errors)
FAIL: gcc.dg/dfp/constants-c99.c (test for excess errors)
FAIL: gcc.dg/dfp/keywords-c99.c (test for excess errors)
FAIL: gcc.dg/gomp/pr34607.c  (test for errors, line 12)
FAIL: gcc.dg/gomp/pr34607.c  (test for errors, line 14)
FAIL: gcc.dg/gomp/pr34607.c  (test for errors, line 16)
FAIL: gcc.dg/gomp/pr34607.c (test for excess errors)
FAIL: gcc.dg/gomp/pr34607.c reminder (test for warnings, line )
FAIL: gcc.dg/noncompile/920923-1.c  -O0   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O0   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O0   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O0   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O0  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O1   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O1   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O1   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O1   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O2   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O2   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O2   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O2   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto -flto-partition=none   (test for
errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto -flto-partition=none   (test for
errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto -flto-partition=none   (test for
errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto -flto-partition=none   (test for
errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O2 -flto -flto-partition=none  (test for
excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer   (test for
errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer   (test for
errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer   (test for
errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer   (test for
errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer  (test for excess
errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-all-loops
-finline-functions   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-all-loops
-finline-functions   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-all-loops
-finline-functions   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-all-loops
-finline-functions   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-all-loops
-finline-functions  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-loops  
(test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-loops  
(test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-loops  
(test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-loops  
(test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -fomit-frame-pointer -funroll-loops 
(test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -g   (test for errors, line 27)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -g   (test for errors, line 29)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -g   (test for errors, line 55)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -g   (test for errors, line 8)
FAIL: gcc.dg/noncompile/920923-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/noncompile/920923-1.c  -Os   (test for errors, line 27)
FAIL: gcc.dg/non

[Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()

2010-11-13 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461

   Summary: [4.6 Regression] ICE: invalid argument to gimple call
at -O with __builtin_memset()
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zso...@seznam.cz
  Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu


- testcase.c -
void
foo (char *c)
{
  c[7] = 0xff;
  __builtin_memset (c + 8, 0xff, 8);
}
--

Compiler output:
$ gcc -O testcase.c
testcase.c: In function 'foo':
testcase.c:6:1: error: invalid argument to gimple call
&MEM[(char *)c_1(D) + 7B]

Strangely, no regular ICE message i s given.

With -foptimize-sibling-calls, there is the message:
$ gcc -O -foptimize-sibling-calls testcase.c 
testcase.c: In function 'foo':
testcase.c:6:1: error: invalid argument to gimple call
&MEM[(char *)c_1(D) + 7B]
testcase.c:6:1: internal compiler error: in refs_may_alias_p_1, at
tree-ssa-alias.c:989
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Tested revisions:
r166604 - crash
r166509 - crash
r163636 - OK
4.5 r166509 - OK


[Bug fortran/45742] VOLATILE has no effect

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

--- Comment #11 from Tobias Burnus  2010-11-13 
11:46:32 UTC ---
Author: burnus
Date: Sat Nov 13 11:46:25 2010
New Revision: 166702

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166702
Log:
2010-11-13  Tobias Burnus  

PR fortran/45742
* gfortran.dg/volatile12.f90: Use the right three in
* cleanup-tree-dump.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/volatile12.f90


[Bug fortran/45742] VOLATILE has no effect

2010-11-13 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

--- Comment #10 from Tobias Burnus  2010-11-13 
10:29:08 UTC ---
Author: burnus
Date: Sat Nov 13 10:29:04 2010
New Revision: 166701

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166701
Log:
2010-11-13  Tobias Burnus  

PR fortran/45742
* trans-common.c (build_field): Add TREE_SIDE_EFFECTS for
* volatile.
* trans-decl.c (gfc_finish_var_decl): Ditto.
(create_function_arglist): Handle volatile dummy arguments.

2010-11-13  Tobias Burnus  

PR fortran/45742
* gfortran.dg/volatile12.f90: New.


Added:
trunk/gcc/testsuite/gfortran.dg/volatile12.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-common.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/testsuite/ChangeLog


[Bug c/20385] Lame parse error message for undefined type

2010-11-13 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20385

--- Comment #5 from Paolo Bonzini  2010-11-13 10:01:38 
UTC ---
Author: bonzini
Date: Sat Nov 13 10:01:33 2010
New Revision: 166700

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166700
Log:
2010-10-30  Paolo Bonzini  

PR c/20385
* c-parser.c (c_parser_next_token_starts_declaration): Rename to...
(c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
token lookahead.
(c_parser_compound_statement_nostart, c_parser_label,
c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
(c_parser_declaration_or_fndef): Detect the case now matched by
c_parser_next_tokens_start_declaration, give error and correct it.

testsuite:
2010-11-13  Paolo Bonzini  

PR c/20385
* gcc.dg/decl-9.c: New.


Added:
trunk/gcc/testsuite/gcc.dg/decl-9.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-parser.c
trunk/gcc/testsuite/ChangeLog


[Bug rtl-optimization/46204] g++.dg/torture/stackalign/throw-1.C fails to compile on IA64

2010-11-13 Thread amonakov at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46204

--- Comment #3 from Alexander Monakov  2010-11-13 
09:28:55 UTC ---
Author: amonakov
Date: Sat Nov 13 09:28:52 2010
New Revision: 166697

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166697
Log:
PR rtl-optimization/46204
* sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
Update all callers.  Do not recompute topological order.  Adjust
fallthrough edges following a degenerate conditional jump.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/sel-sched-ir.c


[Bug rtl-optimization/46204] g++.dg/torture/stackalign/throw-1.C fails to compile on IA64

2010-11-13 Thread amonakov at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46204

Alexander Monakov  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #4 from Alexander Monakov  2010-11-13 
09:30:14 UTC ---
Fixed.