[Bug rtl-optimization/50001] New: [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

   Summary: [alpha]: ICE in reload_combine_note_use, at
postreload.c:1538
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ubiz...@gmail.com
Target: alphaev68-unknown-linux-gnu


Created attachment 24930
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24930
Profiler file

Currently g++.dg/tree-prof/partition1.C ICEs during -fprofile-use compile using
attached gcda file:

FAIL: g++.dg/tree-prof/partition1.C compilation,  -g  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-g  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -O0  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O0  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -O1  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O1  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -O2  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O2  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -O3  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O3  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -O3 -g  -fprofile-use
(internal compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O3 -g  -fprofile-use
FAIL: g++.dg/tree-prof/partition1.C compilation,  -Os  -fprofile-use (internal
compiler error)
UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-Os  -fprofile-use


~/gcc-build-alpha/gcc/cc1plus -O2 -freorder-blocks-and-partition -fprofile-use
-w -quiet partition1.C
partition1.C: In function ‘void foo()’:
partition1.C:46:1: internal compiler error: in reload_combine_note_use, at
postreload.c:1538
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.


(gdb) up
#1  0x0092a808 in reload_combine_note_use (xp=, 
insn=0x71a197e0, ruid=3, containing_mem=)
at ../../gcc-svn/trunk/gcc/postreload.c:1538
1538gcc_assert (regno < FIRST_PSEUDO_REGISTER);
(gdb) bt
#0  fancy_abort (file=0xdb5b58 "../../gcc-svn/trunk/gcc/postreload.c", 
line=1538, function=0xdb6050 "reload_combine_note_use")
at ../../gcc-svn/trunk/gcc/diagnostic.c:892
#1  0x0092a808 in reload_combine_note_use (xp=, 
insn=0x71a197e0, ruid=3, containing_mem=)
at ../../gcc-svn/trunk/gcc/postreload.c:1538
#2  0x0092a5e7 in reload_combine_note_use (xp=, 
insn=0x71a197e0, ruid=3, containing_mem=0x71a17288)
at ../../gcc-svn/trunk/gcc/postreload.c:1600
#3  0x0092a5a5 in reload_combine_note_use (xp=, 
insn=0x71a197e0, ruid=3, containing_mem=0x0)
at ../../gcc-svn/trunk/gcc/postreload.c:1604
#4  0x0092bb3f in reload_combine ()
at ../../gcc-svn/trunk/gcc/postreload.c:1384
#5  0x0092ca1e in reload_cse_regs (first=0x719e06c0)
at ../../gcc-svn/trunk/gcc/postreload.c:72

The problem can be triggered with a c++ crosscompiler to
--target=alphaev68-pc-linux-gnu.


[Bug target/49688] [alpha]: Many execution test failures

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49688

--- Comment #22 from Uros Bizjak  2011-08-06 07:21:06 
UTC ---
(In reply to comment #21)

> There are two remaining problems, an assert in "as", as reported in [2]
> 
> FAIL: g++.dg/tree-prof/partition2.C compilation,  -Os  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition2.C execution,-Os  -fprofile-use

This is PR 49972, reportedly fixed in binutils [1].

> FAIL: g++.dg/tree-prof/partition1.C compilation,  -g  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-g  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -O0  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O0  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -O1  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O1  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -O2  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O2  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -O3  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O3  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -O3 -g  -fprofile-use
> (internal compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-O3 -g  -fprofile-use
> FAIL: g++.dg/tree-prof/partition1.C compilation,  -Os  -fprofile-use (internal
> compiler error)
> UNRESOLVED: g++.dg/tree-prof/partition1.C execution,-Os  -fprofile-use

This is now reported as PR 50001.

[1] http://sourceware.org/ml/binutils/2011-08/msg00057.html


[Bug target/49688] [alpha]: Many execution test failures

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49688

--- Comment #23 from Uros Bizjak  2011-08-06 07:24:41 
UTC ---
(In reply to comment #22)

> This is PR 49972, reportedly fixed in binutils [1].

Er, the ice in gas with invalid .gcc_except_table is fixed in binutis.


[Bug target/49614] FAIL: gcc.dg/vmx/gcc-bug-i.c -O0 (test for excess errors)

2011-08-06 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49614

Iain Sandoe  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.08.06 07:45:19
 CC||iains at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #1 from Iain Sandoe  2011-08-06 07:45:19 
UTC ---
well, what the warning is saying is that it wants the function to be declared
inline or it's not happy to accept "always_inline".

I guess the language lawyers could decide that "__attribute__
((always_inline))" implies "inline" - in which case the parsing of the
attribute needs to set DECL_DECLARED_INLINE_P.

===

As things stand, the problem can be resolved by declaring the function inline -
like so;

Index: gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c
===
--- gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c(revision 177459)
+++ gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c(working copy)
@@ -13,7 +13,7 @@
 #define DO_INLINE __attribute__ ((always_inline))
 #define DONT_INLINE __attribute__ ((noinline))

-static DO_INLINE int inline_me(vector signed short data) 
+static inline DO_INLINE int inline_me(vector signed short data) 
 {
   union {vector signed short v; signed short s[8];} u;
   u.v = data;


[Bug libobjc/50002] New: class_replaceMethod does not work on class methods

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50002

   Summary: class_replaceMethod does not work on class methods
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libobjc
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: nic...@gcc.gnu.org


Reported by Jonathan Schleifer --

#include 
#include 

#import 
#import 

id
alloc(Class self, SEL _cmd)
{
puts("Foo!");
return nil;
}

int
main()
{
Method method = class_getClassMethod([Object class], @selector(alloc));
assert(method != NULL);

/* INCOMPATIBLE to Apple! class_pointer should be isa!! */
class_replaceMethod([Object class]->class_pointer, @selector(alloc),
(IMP)alloc, method_getTypeEncoding(method));

[Object alloc];

return 0;
}


> If you change Object to NSObject and class_pointer to isa, it works on OS X.

Thanks


[Bug libobjc/50003] New: -[Protocol respondsTo:] does not work with Clang

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50003

   Summary: -[Protocol respondsTo:] does not work with Clang
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libobjc
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: nic...@gcc.gnu.org


Jonathan Schleifer reports --

Hi!

When using -[Protocol respondsTo:] in the new GNU runtime, it seems to return
NO, even if the object conforms to the protocol. The code I use is this:

+ (BOOL)conformsToProtocol: (Protocol*)protocol 
{
   Class c;
   struct objc_protocol_list *pl;
   size_t i;

   for (c = self; c != Nil; c = class_get_super_class(c)) 
   for (pl = c->protocols; pl != NULL; pl = pl->next) 
   for (i = 0; i < pl->count; i++) 
   if ([pl->list[i] conformsTo: protocol]) 
   return YES; 

   return NO;  
}

It works when just using gcc 4.6.1, and it seems to work with older versions of
the GNU runtime.

Thanks

PS: For clarity, Jonathan uses the GCC Objective-C runtime with other 
Objective-C compilers as well, such as clang.


[Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"

2011-08-06 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669

Paolo Carlini  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #9 from Paolo Carlini  2011-08-06 
08:54:17 UTC ---
Fixed for 4.6.2 and 4.7.0.


[Bug fortran/50004] New: [4.7 Regression] ICE in c_ptr_tests_16.f90

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50004

   Summary: [4.7 Regression] ICE in c_ptr_tests_16.f90
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: tkoe...@gcc.gnu.org
ReportedBy: tkoe...@gcc.gnu.org


The recent commit to fix PR 37211 has led to a regression in
c_ptr_tests_16.f90.

Am looking into this.


[Bug fortran/50004] [4.7 Regression] ICE in c_ptr_tests_16.f90

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50004

Thomas Koenig  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011.08.06 09:19:12
 Ever Confirmed|0   |1


[Bug rtl-optimization/49994] [4.7 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2234 with -Os -fsched2-use-superblocks

2011-08-06 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49994

--- Comment #1 from Zdenek Sojka  2011-08-06 09:23:43 
UTC ---
Created attachment 24931
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24931
more real-life testcase

$ gcc -O -fno-omit-frame-pointer -fschedule-insns2 -fsched2-use-superblocks
testcase.c 
testcase.c: In function 'bar':
testcase.c:7:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2234
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

This ICE occurs several times when running the libstdc++ testsuite with
"-fno-omit-frame-pointer -fsched2-use-superblocks" in RUNTESTFLAGS.


[Bug libobjc/49882] class_getSuperClass() returns nil on a newly allocated, but not registered, class

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49882

--- Comment #1 from Nicola Pero  2011-08-06 09:49:33 
UTC ---
Author: nicola
Date: Sat Aug  6 09:49:30 2011
New Revision: 177505

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177505
Log:
In libobjc/:
2011-08-06  Nicola Pero  

PR libobjc/49882
* class.c (class_getSuperclass): Return the superclass if the
class is in construction.
* objc/runtime.h (class_getSuperclass): Updated documentation.

In gcc/testsuite/:
2011-08-06  Nicola Pero  

PR libobjc/49882
* objc.dg/gnu-api-2-class.m (main): Test class_getSuperclass()
with classes that are in construction.

Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/objc.dg/gnu-api-2-class.m
trunk/libobjc/ChangeLog
trunk/libobjc/class.c
trunk/libobjc/objc/runtime.h


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

--- Comment #1 from Uros Bizjak  2011-08-06 11:10:32 
UTC ---
Compilation dies on:

#1  0x0092a84b in reload_combine_note_use (xp=, 
insn=0x71a197e0, ruid=3, containing_mem=)
at ../../gcc-svn/trunk/gcc/postreload.c:1543
1543gcc_assert (regno < FIRST_PSEUDO_REGISTER);
(gdb) p debug_rtx (insn)
(insn 262 266 263 51 (unspec_volatile [
(mem/c:DI (plus:DI (reg/f:DI 65 virtual-stack-vars)
(const_int 16 [0x10])) [0 S8 A64])
] UNSPECV_EHR) 278 {*exception_receiver_2}
 (nil))
$1 = void

The function does not like virtual stack vars.


[Bug middle-end/49990] Regression: Bootstrap failure for x86_64-*-mingw32 in libfortran

2011-08-06 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49990

--- Comment #2 from Kai Tietz  2011-08-06 11:14:25 
UTC ---
I can confirm that suggested patch fixes boolstrap issue.
The testsuite run has also no new regression for alloca related cases.


[Bug other/44080] Call GNU ld with -O1

2011-08-06 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44080

--- Comment #1 from Marc Glisse  2011-08-06 
12:06:20 UTC ---
Created attachment 24932
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24932
patch spec

Testing for -Ox x>=3 within the specs is ugly (see the patch) but seems to
work, thanks to the special treatment for -O* options (all but the last one are
ignored), and seems preferable to doing it in the code. I don't know if we also
want to do something for -Os.

Bootstrapped with -O3.


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

Uros Bizjak  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011.08.06 12:13:49
 AssignedTo|unassigned at gcc dot   |ubizjak at gmail dot com
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #2 from Uros Bizjak  2011-08-06 12:13:49 
UTC ---
Created attachment 24933
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24933
Patch in testing.

Patch that implements TARGET_INSTANTIATE_DECLS for alpha.


[Bug fortran/50004] [4.7 Regression] ICE in c_ptr_tests_16.f90

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50004

--- Comment #1 from Thomas Koenig  2011-08-06 
12:52:35 UTC ---
I have an (obvious) patch that I plan to commit this evening.


[Bug fortran/37211] TRANSFER to characters: Size checking

2011-08-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37211

H.J. Lu  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #5 from H.J. Lu  2011-08-06 13:40:25 
UTC ---
On Linux/x86, I got

FAIL: gfortran.dg/c_ptr_tests_16.f90  -O  (test for excess errors)
Excess errors:
/export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:58:9:
Error: Can't convert INTEGER(4) to TYPE(c_funptr) at (1)
/export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:49:11:
Error: Can't convert INTEGER(4) to TYPE(c_ptr) at (1)


[Bug fortran/37211] TRANSFER to characters: Size checking

2011-08-06 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37211

Mikael Morin  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 CC||mikael at gcc dot gnu.org
 Resolution||FIXED

--- Comment #6 from Mikael Morin  2011-08-06 
13:46:58 UTC ---
(In reply to comment #5)
> On Linux/x86, I got
> 
> FAIL: gfortran.dg/c_ptr_tests_16.f90  -O  (test for excess errors)
> Excess errors:
> /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:58:9:
> Error: Can't convert INTEGER(4) to TYPE(c_funptr) at (1)
> /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:49:11:
> Error: Can't convert INTEGER(4) to TYPE(c_ptr) at (1)

Tracked in PR50004.


[Bug c++/49912] ICE from -freorder-blocks-and-partition : verify_flow_info failed

2011-08-06 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49912

--- Comment #2 from Zdenek Sojka  2011-08-06 14:03:50 
UTC ---
Created attachment 24934
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24934
reduced testcase

It is reduced from libstdc++-v3/testsuite/util/testsuite_abi.cc, not from the
original testcase in this PR.

Compiler output:
$ gcc -O -freorder-blocks-and-partition testcase.C 
testcase.C: In member function 'void vector< >::_M_insert_aux(const
string&) [with int  = 0]':
testcase.C:39:1: error: wrong number of branch edges after unconditional jump 7
testcase.C:39:1: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc -v
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-177503-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/smatz/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-177503-lto-fortran-checking-yes-rtl-df/
--with-cloog --with-ppl --with-cloog-include=/usr/include/cloog-ppl/
--disable-ppl-version-check
Thread model: posix
gcc version 4.7.0 20110806 (experimental) (GCC) 


Tested revisions (x86_64-unknown-linux-gnu):
r177503 - crash
r177422 - crash
r173150 - OK


[Bug rtl-optimization/49504] Invalid optimization for Pmode != ptr_mode

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49504

--- Comment #7 from hjl at gcc dot gnu.org  2011-08-06 
14:05:43 UTC ---
Author: hjl
Date: Sat Aug  6 14:05:39 2011
New Revision: 177509

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177509
Log:
Add testcases for PRs 48084/49504/49860.

2011-08-06  H.J. Lu  

PR target/48084
* gcc.target/i386/pr48084-1.c: New.
* gcc.target/i386/pr48084-2.c: Likewise.
* gcc.target/i386/pr48084-3.c: Likewise.
* gcc.target/i386/pr48084-4.c: Likewise.
* gcc.target/i386/pr48084-5.c: Likewise.

PR rtl-optimization/49504
* gcc.target/i386/pr49504.c: New.

PR target/49860
* gcc.dg/pr49860.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr49860.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-1.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-2.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-3.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-4.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-5.c
trunk/gcc/testsuite/gcc.target/i386/pr49504.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/49860] [x32] Error: cannot represent relocation type BFD_RELOC_64 in x32 mode

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49860

--- Comment #13 from hjl at gcc dot gnu.org  2011-08-06 
14:05:43 UTC ---
Author: hjl
Date: Sat Aug  6 14:05:39 2011
New Revision: 177509

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177509
Log:
Add testcases for PRs 48084/49504/49860.

2011-08-06  H.J. Lu  

PR target/48084
* gcc.target/i386/pr48084-1.c: New.
* gcc.target/i386/pr48084-2.c: Likewise.
* gcc.target/i386/pr48084-3.c: Likewise.
* gcc.target/i386/pr48084-4.c: Likewise.
* gcc.target/i386/pr48084-5.c: Likewise.

PR rtl-optimization/49504
* gcc.target/i386/pr49504.c: New.

PR target/49860
* gcc.dg/pr49860.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr49860.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-1.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-2.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-3.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-4.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-5.c
trunk/gcc/testsuite/gcc.target/i386/pr49504.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/48084] [x32] internal compiler error: in copy_to_mode_reg, at explow.c:630

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48084

--- Comment #9 from hjl at gcc dot gnu.org  2011-08-06 
14:05:43 UTC ---
Author: hjl
Date: Sat Aug  6 14:05:39 2011
New Revision: 177509

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177509
Log:
Add testcases for PRs 48084/49504/49860.

2011-08-06  H.J. Lu  

PR target/48084
* gcc.target/i386/pr48084-1.c: New.
* gcc.target/i386/pr48084-2.c: Likewise.
* gcc.target/i386/pr48084-3.c: Likewise.
* gcc.target/i386/pr48084-4.c: Likewise.
* gcc.target/i386/pr48084-5.c: Likewise.

PR rtl-optimization/49504
* gcc.target/i386/pr49504.c: New.

PR target/49860
* gcc.dg/pr49860.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr49860.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-1.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-2.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-3.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-4.c
trunk/gcc/testsuite/gcc.target/i386/pr48084-5.c
trunk/gcc/testsuite/gcc.target/i386/pr49504.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug libobjc/50002] class_replaceMethod does not work on class methods

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50002

--- Comment #1 from Nicola Pero  2011-08-06 14:20:13 
UTC ---
Author: nicola
Date: Sat Aug  6 14:20:09 2011
New Revision: 177510

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177510
Log:
In libobjc/:
2011-08-06  Nicola Pero  

PR libobjc/50002
* class.c (__objc_update_classes_with_methods): Iterate over meta
classes as well as normal classes when refreshing the method
implementations.  This fixes replacing class methods.

2011-08-06  Nicola Pero  

* class.c (class_getSuperclass): Fixed to work with meta classes
still in construction too.

In gcc/testsuite/:
2011-08-06  Nicola Pero  

PR libobjc/50002
* objc.dg/gnu-api-2-class.m: Updated comments.
* obj-c++.dg/gnu-api-2-class.mm: Likewise.
* objc.dg/gnu-api-2-class-meta.m: New test.
* obj-c++.dg/gnu-api-2-class-meta.mm: Likewise.

2011-08-06  Nicola Pero  

PR libobjc/49882
* obj-c++.dg/gnu-api-2-class.mm (main): Test class_getSuperclass()
with classes that are in construction.

Added:
trunk/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
trunk/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm
trunk/gcc/testsuite/objc.dg/gnu-api-2-class.m
trunk/libobjc/ChangeLog
trunk/libobjc/class.c


[Bug libobjc/49882] class_getSuperClass() returns nil on a newly allocated, but not registered, class

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49882

--- Comment #2 from Nicola Pero  2011-08-06 14:20:13 
UTC ---
Author: nicola
Date: Sat Aug  6 14:20:09 2011
New Revision: 177510

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177510
Log:
In libobjc/:
2011-08-06  Nicola Pero  

PR libobjc/50002
* class.c (__objc_update_classes_with_methods): Iterate over meta
classes as well as normal classes when refreshing the method
implementations.  This fixes replacing class methods.

2011-08-06  Nicola Pero  

* class.c (class_getSuperclass): Fixed to work with meta classes
still in construction too.

In gcc/testsuite/:
2011-08-06  Nicola Pero  

PR libobjc/50002
* objc.dg/gnu-api-2-class.m: Updated comments.
* obj-c++.dg/gnu-api-2-class.mm: Likewise.
* objc.dg/gnu-api-2-class-meta.m: New test.
* obj-c++.dg/gnu-api-2-class-meta.mm: Likewise.

2011-08-06  Nicola Pero  

PR libobjc/49882
* obj-c++.dg/gnu-api-2-class.mm (main): Test class_getSuperclass()
with classes that are in construction.

Added:
trunk/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
trunk/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm
trunk/gcc/testsuite/objc.dg/gnu-api-2-class.m
trunk/libobjc/ChangeLog
trunk/libobjc/class.c


[Bug libobjc/49882] class_getSuperClass() returns nil on a newly allocated, but not registered, class

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49882

Nicola Pero  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #3 from Nicola Pero  2011-08-06 14:21:29 
UTC ---
Confirmed, then fixed in trunk (which will be 4.7.x).

Thanks


[Bug libobjc/50002] class_replaceMethod does not work on class methods

2011-08-06 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50002

Nicola Pero  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #2 from Nicola Pero  2011-08-06 14:22:16 
UTC ---
Confirmed, and fixed in trunk (will go into 4.7).

Thanks


[Bug target/47715] [x32] TLS doesn't work

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47715

--- Comment #20 from hjl at gcc dot gnu.org  2011-08-06 
14:26:02 UTC ---
Author: hjl
Date: Sat Aug  6 14:25:58 2011
New Revision: 177511

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177511
Log:
Add testcases for PRs 47766/47715.

2011-08-06  H.J. Lu  

PR target/47766
* gcc.dg/pr47766.c: New.

PR target/47715
* gcc.dg/tls/pr47715-1.c: New.
* gcc.dg/tls/pr47715-2.c: Likewise.
* gcc.dg/tls/pr47715-3.c: Likewise.
* gcc.dg/tls/pr47715-4.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/pr47766.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-1.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-2.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-3.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-4.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/47766] [x32] -fstack-protector doesn't work

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766

--- Comment #5 from hjl at gcc dot gnu.org  2011-08-06 
14:26:01 UTC ---
Author: hjl
Date: Sat Aug  6 14:25:58 2011
New Revision: 177511

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177511
Log:
Add testcases for PRs 47766/47715.

2011-08-06  H.J. Lu  

PR target/47766
* gcc.dg/pr47766.c: New.

PR target/47715
* gcc.dg/tls/pr47715-1.c: New.
* gcc.dg/tls/pr47715-2.c: Likewise.
* gcc.dg/tls/pr47715-3.c: Likewise.
* gcc.dg/tls/pr47715-4.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/pr47766.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-1.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-2.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-3.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-4.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/47446] [x32] .quad instead of .long is used for address

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47446

--- Comment #9 from hjl at gcc dot gnu.org  2011-08-06 
14:36:55 UTC ---
Author: hjl
Date: Sat Aug  6 14:36:52 2011
New Revision: 177512

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177512
Log:
Add testcases for PRs 47449/47446.

2011-08-06  H.J. Lu  

PR middle-end/47449
* gcc.target/i386/pr47449.c: New.

PR target/47446
* gcc.dg/pr47446-1.c: New.
* gcc.dg/pr47446-2.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/pr47446-1.c
trunk/gcc/testsuite/gcc.dg/pr47446-2.c
trunk/gcc/testsuite/gcc.target/i386/pr47449.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug rtl-optimization/47449] [x32] can’t find a register in class ‘DIREG’ while reloading ‘asm’

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47449

--- Comment #15 from hjl at gcc dot gnu.org  2011-08-06 
14:36:55 UTC ---
Author: hjl
Date: Sat Aug  6 14:36:52 2011
New Revision: 177512

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177512
Log:
Add testcases for PRs 47449/47446.

2011-08-06  H.J. Lu  

PR middle-end/47449
* gcc.target/i386/pr47449.c: New.

PR target/47446
* gcc.dg/pr47446-1.c: New.
* gcc.dg/pr47446-2.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/pr47446-1.c
trunk/gcc/testsuite/gcc.dg/pr47446-2.c
trunk/gcc/testsuite/gcc.target/i386/pr47449.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/47715] [x32] TLS doesn't work

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47715

--- Comment #21 from hjl at gcc dot gnu.org  2011-08-06 
14:50:12 UTC ---
Author: hjl
Date: Sat Aug  6 14:50:05 2011
New Revision: 177513

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177513
Log:
Add testcases for PRs 47727/47372/47715.

2011-08-06  H.J. Lu  

PR middle-end/47727
* gcc.dg/pr47727.c: New.

PR target/47372
* gcc.dg/pr47372-1.c: New.
* gcc.dg/pr47372-2.c: Likewise.

PR target/47715
* gcc.dg/tls/pr47715-5.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr47372-1.c
trunk/gcc/testsuite/gcc.dg/pr47372-2.c
trunk/gcc/testsuite/gcc.dg/pr47727.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-5.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372

--- Comment #9 from hjl at gcc dot gnu.org  2011-08-06 
14:50:12 UTC ---
Author: hjl
Date: Sat Aug  6 14:50:05 2011
New Revision: 177513

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177513
Log:
Add testcases for PRs 47727/47372/47715.

2011-08-06  H.J. Lu  

PR middle-end/47727
* gcc.dg/pr47727.c: New.

PR target/47372
* gcc.dg/pr47372-1.c: New.
* gcc.dg/pr47372-2.c: Likewise.

PR target/47715
* gcc.dg/tls/pr47715-5.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr47372-1.c
trunk/gcc/testsuite/gcc.dg/pr47372-2.c
trunk/gcc/testsuite/gcc.dg/pr47727.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-5.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug middle-end/47727] [x32] Many passes can't handle const symbol when Pmode != ptr_mode

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47727

--- Comment #12 from hjl at gcc dot gnu.org  2011-08-06 
14:50:12 UTC ---
Author: hjl
Date: Sat Aug  6 14:50:05 2011
New Revision: 177513

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177513
Log:
Add testcases for PRs 47727/47372/47715.

2011-08-06  H.J. Lu  

PR middle-end/47727
* gcc.dg/pr47727.c: New.

PR target/47372
* gcc.dg/pr47372-1.c: New.
* gcc.dg/pr47372-2.c: Likewise.

PR target/47715
* gcc.dg/tls/pr47715-5.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/pr47372-1.c
trunk/gcc/testsuite/gcc.dg/pr47372-2.c
trunk/gcc/testsuite/gcc.dg/pr47727.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-5.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug target/47381] [x32] internal compiler error: in gen_lowpart_general, at rtlhooks.c:59

2011-08-06 Thread hjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47381

--- Comment #7 from hjl at gcc dot gnu.org  2011-08-06 
14:57:55 UTC ---
Author: hjl
Date: Sat Aug  6 14:57:52 2011
New Revision: 177514

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177514
Log:
Add testcases for PR 47381.

2011-08-06  H.J. Lu  

PR target/47381
* gcc.dg/pr47381-1.c: New.
* gcc.dg/pr47381-2.c: Likewise.
* gcc.target/i386/pr47381.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/pr47381-1.c
trunk/gcc/testsuite/gcc.dg/pr47381-2.c
trunk/gcc/testsuite/gcc.target/i386/pr47381.c
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug tree-optimization/50005] New: [4.7 Regression] ipa-inline-analysis.c:1876:41: error: comparison between signed an d unsigned integer expressions

2011-08-06 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50005

   Summary: [4.7 Regression] ipa-inline-analysis.c:1876:41: error:
comparison between signed an d unsigned integer
expressions
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dang...@gcc.gnu.org
CC: hubi...@gcc.gnu.org
  Host: hppa2.0w-hp-hpux11.00
Target: hppa2.0w-hp-hpux11.00
 Build: hppa2.0w-hp-hpux11.00


/xxx/gnu/gcc/objdir/./prev-gcc/xgcc -B/xxx/gnu/gcc/objdir/./prev-gcc/
-B/opt/gnu
/gcc/gcc-4.7/hppa2.0w-hp-hpux11.00/bin/
-B/opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux1
1.00/bin/ -B/opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux11.00/lib/ -isystem
/opt/gnu/gc
c/gcc-4.7/hppa2.0w-hp-hpux11.00/include -isystem
/opt/gnu/gcc/gcc-4.7/hppa2.0w-h
p-hpux11.00/sys-include-c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings
-Wcas
t-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-peda
ntic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-s
tyle-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../g
cc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/opt/gnu
/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumbe
r/dpd -I../libdecnumber../../gcc/gcc/ipa-inline-analysis.c -o
ipa-inline-ana
lysis.o
../../gcc/gcc/ipa-inline-analysis.c: In function 'remap_predicate':
../../gcc/gcc/ipa-inline-analysis.c:1876:41: error: comparison between signed
an
d unsigned integer expressions [-Werror=sign-compare]
cc1: all warnings being treated as errors


[Bug debug/50006] New: [4.7 Regression] ICE in in connect_traces, at dwarf2cfi.c:2677

2011-08-06 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50006

   Summary: [4.7 Regression] ICE in in connect_traces, at
dwarf2cfi.c:2677
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: debug
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dang...@gcc.gnu.org
CC: r...@gcc.gnu.org
  Host: hppa2.0w-hp-hpux11.11
Target: hppa2.0w-hp-hpux11.11
 Build: hppa2.0w-hp-hpux11.11


/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu/gcc/gcc
-4.7/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux11.11/lib
/ -isystem /opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/
gcc/gcc-4.7/hppa2.0w-hp-hpux11.11/sys-include-c -g -O2  -fPIC
-frandom-seed=
fixed-seed  -W -Wall -gnatpg   s-os_lib.adb -o s-os_lib.o
+===GNAT BUG DETECTED==+
| 4.7.0 20110805 (experimental) [trunk revision 177484] (hppa2.0w-hp-hpux11.11) 
GCC error:|
| in connect_traces, at dwarf2cfi.c:2677   |
| Error detected around s-os_lib.adb:897:8 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.|
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact gcc or gnatmake command that you entered.  |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files).   |
+==+


[Bug fortran/50004] [4.7 Regression] ICE in c_ptr_tests_16.f90

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50004

--- Comment #2 from Thomas Koenig  2011-08-06 
15:19:48 UTC ---
Author: tkoenig
Date: Sat Aug  6 15:19:45 2011
New Revision: 177527

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177527
Log:
2011-08-06  Thomas Koenig  

PR fortran/50004
* target-memory.c (gfc_target_expr-size): Don't clobber typespec
for derived types.
* simplify.c (gfc_simplify_transfer): Don't calculate source_size
twice.


Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/simplify.c
trunk/gcc/fortran/target-memory.c


[Bug fortran/50004] [4.7 Regression] ICE in c_ptr_tests_16.f90

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50004

Thomas Koenig  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #3 from Thomas Koenig  2011-08-06 
15:26:55 UTC ---
Fixed, closing.


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2011-08-06 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44938

Marc Glisse  changed:

   What|Removed |Added

 CC||marc.glisse at normalesup
   ||dot org

--- Comment #1 from Marc Glisse  2011-08-06 
15:47:21 UTC ---
This breaks a -O3 bootstrap (-Werror turns the warning into an error). The code
looks like:
  VEC(tree,gc) *origtypes;
  ...
  if(...)
exprlist = NULL;
  else
exprlist = c_parser_expr_list (parser, true, false, &origtypes);
  ...
  expr.value = build_function_call_vec (op_loc, expr.value, exprlist,
origtypes);

So g++ is right to warn (even if origtypes is probably unused in that case).


[Bug tree-optimization/49911] SRA + DOM + VRP + -fstrict-enums incorrectly remove predicate

2011-08-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49911

--- Comment #11 from Eric Botcazou  2011-08-06 
15:58:47 UTC ---
> So, Eric - are you still objecting to make VRP and the middle-end aligned
> by ignoring TYPE_MIN/MAX_VALUE in VRP?

Just to give a bit of context to the reader: this problem bit the Ada compiler
since VRP had been introduced in 2004.  At the time, the consensus was that the
Ada compiler was lying to the middle-end, because objects of type T could have
values that are outside [TYPE_MIN_VALUE:TYPE_MAX_VALUE] in some cases and this
breaks an invariant of the middle-end.  So we changed the Ada compiler in 2009.

If it appears that the previous consensus was short-sighted and should now be
reversed, fine with me, but please document what TYPE_MIN_VALUE/TYPE_MAX_VALUE
mean under the new one.  And if they don't mean anything, then remove them.


[Bug tree-optimization/49911] SRA + DOM + VRP + -fstrict-enums incorrectly remove predicate

2011-08-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49911

--- Comment #12 from Eric Botcazou  2011-08-06 
16:08:16 UTC ---
> So the issue here is that enum types with non-canonical TYPE_MIN/MAX_VALUE
> leak from storage representation (union StateRemat) via SRA as register
> variables into the IL.  Is that something that cannot happen for Ada because
> it is also careful to not use such types in storage representations?

Yes, I think so, only index types of arrays have non-canonical bounds now.


[Bug lto/49992] lto-bootstrap reveals duplicate symbols on x86_64-apple-darwin11

2011-08-06 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49992

--- Comment #4 from Dominique d'Humieres  2011-08-06 
16:29:58 UTC ---
On x86_64-apple-darwin10 I get the same bootstrap failure:

...
mv -f Tlto-wrapper lto-wrapper
gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -o gengtype gengtype.o
gengtype-lex.o gengtype-parse.o gengtype-state.o version.o errors.o libcommon.a
../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
libcommon.a ../libcpp/libcpp.a -lintl -L/opt/sw64/lib -liconv 
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
ld: duplicate symbol _trim_filename in libcommon.a(diagnostic.o) and errors.o
collect2: ld returned 1 exit status
make[3]: *** [gengtype] Error 1
make[3]: *** Waiting for unfinished jobs
rm gcov.pod gfdl.pod cpp.pod fsf-funding.pod gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

with the following configure

../p_work/configure --prefix=/opt/gcc/gcc4.7p
--enable-languages=c,c++,lto,fortran --with-gmp=/opt/sw64
--with-libiconv-prefix=/opt/sw64 --with-system-zlib --enable-checking=release
--with-cloog=/opt/sw64 --enable-cloog-backend=isl --enable-lto

but not with

../work/configure --prefix=/opt/gcc/gcc4.7w
--enable-languages=c,c++,fortran,objc,obj-c++,java,lto --with-gmp=/opt/sw64
--with-libiconv-prefix=/opt/sw64 --with-system-zlib --with-cloog=/opt/sw64
--enable-cloog-backend=isl --enable-lto

Apparently the key is "--enable-checking=something".


[Bug rtl-optimization/49994] [4.7 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2234 with -fsched2-use-superblocks

2011-08-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49994

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.08.06 17:10:29
 CC||rth at gcc dot gnu.org
   Target Milestone|--- |4.7.0
 Ever Confirmed|0   |1

--- Comment #2 from H.J. Lu  2011-08-06 17:10:29 
UTC ---
It is caused by revision 176705:

http://gcc.gnu.org/ml/gcc-cvs/2011-07/msg00973.html


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

--- Comment #3 from uros at gcc dot gnu.org 2011-08-06 18:39:23 UTC ---
Author: uros
Date: Sat Aug  6 18:39:19 2011
New Revision: 177531

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177531
Log:
PR target/50001
* config/alpha/alpha.c (alpha_instantiate_decls): New function.
(TARGET_INSTANTIATE_DECLS): New define.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/alpha/alpha.c


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

--- Comment #4 from uros at gcc dot gnu.org 2011-08-06 18:41:16 UTC ---
Author: uros
Date: Sat Aug  6 18:41:14 2011
New Revision: 177532

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177532
Log:
PR target/50001
* config/alpha/alpha.c (alpha_instantiate_decls): New function.
(TARGET_INSTANTIATE_DECLS): New define.


Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/config/alpha/alpha.c


[Bug tree-optimization/49735] [4.7 Regression] mips64-elf libgcc build fails with apparently infinite recursion.

2011-08-06 Thread rsandifo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49735

rsand...@gcc.gnu.org  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #12 from rsandifo at gcc dot gnu.org  
2011-08-06 18:49:17 UTC ---
Just to confirm that the build failure is now fixed.  Thanks Jan!


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

--- Comment #5 from uros at gcc dot gnu.org 2011-08-06 18:49:50 UTC ---
Author: uros
Date: Sat Aug  6 18:49:46 2011
New Revision: 177534

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177534
Log:
PR target/50001
* config/alpha/alpha.c (alpha_instantiate_decls): New function.
(TARGET_INSTANTIATE_DECLS): New define.


Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/alpha/alpha.c


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

--- Comment #6 from uros at gcc dot gnu.org 2011-08-06 18:54:04 UTC ---
Author: uros
Date: Sat Aug  6 18:54:01 2011
New Revision: 177535

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177535
Log:
PR target/50001
* config/alpha/alpha.c (alpha_instantiate_decls): New function.
(TARGET_INSTANTIATE_DECLS): New define.


Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/config/alpha/alpha.c


[Bug rtl-optimization/50001] [alpha]: ICE in reload_combine_note_use, at postreload.c:1538

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50001

Uros Bizjak  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
URL||http://gcc.gnu.org/ml/gcc-p
   ||atches/2011-08/msg00710.htm
   ||l
 Resolution||FIXED
   Target Milestone|--- |4.4.7

--- Comment #7 from Uros Bizjak  2011-08-06 18:56:38 
UTC ---
Fixed.


[Bug target/49688] [alpha]: Many execution test failures

2011-08-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49688

Uros Bizjak  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.7.0

--- Comment #24 from Uros Bizjak  2011-08-06 18:58:49 
UTC ---
Testsuite results are clean with patched gas.

Fixed.


gcc-bugs@gcc.gnu.org

2011-08-06 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44949

--- Comment #1 from Marc Glisse  2011-08-06 
20:49:40 UTC ---
Created attachment 24935
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24935
hack

It is an easy enough hack to call the Wparentheses code for &= and others (the
warning says "&" instead of "&=", it isn't a clean patch) so I can test on real
code. And it seems painful. It warns on code like: a |= b & c; where it is
quite clear we could never intend (a|=b)&c;. Restricting the warning to the
case where the result of the expression is used should improve things, except
that I don't know how to access that information...


[Bug fortran/49509] cannot promote types for arguments passed by value

2011-08-06 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49509

Thomas Koenig  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||tkoenig at gcc dot gnu.org
 Resolution||INVALID

--- Comment #10 from Thomas Koenig  2011-08-06 
21:08:56 UTC ---
I think the c.l.f discussion shows that this is not allowed in
Fortran.

Closing.


[Bug java/50007] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2011-08-06 Thread vedamaker at netscape dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50007

   Summary: org.eclipse.jdt.internal.compiler.batch.GCCMain not
found
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: java
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: vedama...@netscape.net


Not able to compile simple Java source file to bytecode.

* Sample Java source file (HelloWorld.java):


public class HelloWorld {

public int print()
{
System.out.println("Hello world!"); 
}

}

* When I run "gcj-4.6 -C -c HelloWorld.java" I get the following results:


Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(MainThread.java:100)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.batch.GCCMain not found in
gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:452)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:387)
   at gnu.java.lang.MainThread.run(MainThread.java:96)


My understanding is that "main" only needs to be defined when linking which is
not what I am trying to do.  I just want to compile Java source file to a
.class file.


[Bug testsuite/48727] FAIL: g++.dg/opt/devirt2.C scan-assembler-times xyzzy 2

2011-08-06 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48727

--- Comment #9 from uros at gcc dot gnu.org 2011-08-06 21:37:25 UTC ---
Author: uros
Date: Sat Aug  6 21:37:22 2011
New Revision: 177537

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177537
Log:
PR testsuite/48727
* g++.dg/opt/devirt2.C: Use specific pattern for alpha*-*-*.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/opt/devirt2.C


[Bug c++/49921] [C++0x] Segfault during compilation, decltype and operator->*

2011-08-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49921

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.6.2

--- Comment #6 from Jason Merrill  2011-08-06 
22:23:19 UTC ---
Fixed for 4.6.2.


[Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr

2011-08-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Blocks||48892
 Resolution||FIXED
   Target Milestone|--- |4.6.2

--- Comment #4 from Jason Merrill  2011-08-06 
22:22:53 UTC ---
Segfault fixed for 4.6.2; now GCC will give a sorry for the constructor
definition.  Actually fixing the compiler to accept the code will happen under
PR 48892.


[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.6.2

--- Comment #4 from Jason Merrill  2011-08-06 
22:24:03 UTC ---
Fixed for 4.6.2.


[Bug lto/50008] New: [4.7 Regression] type mismatch in array reference, verify_gimple failed

2011-08-06 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50008

   Summary: [4.7 Regression] type mismatch in array reference,
verify_gimple failed
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: lto
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d.g.gorbac...@gmail.com


Created attachment 24936
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24936
Testcase


[Bug lto/48259] Internal compiler errors in lto1

2011-08-06 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48259

Dmitry Gorbachev  changed:

   What|Removed |Added

  Known to work||4.7.0
  Known to fail|4.7.0   |

--- Comment #8 from Dmitry Gorbachev  
2011-08-06 23:56:45 UTC ---
I can't reproduce it in 4.7.0.


[Bug c/50009] New: [4.7 Regression] Segmentation fault in tree_nop_conversion

2011-08-06 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50009

   Summary: [4.7 Regression] Segmentation fault in
tree_nop_conversion
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d.g.gorbac...@gmail.com
Target: i686-pc-mingw32


Created attachment 24937
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24937
Backtrace

Testcase:

struct S {
  short a;
  short b[];
} __attribute__((packed));