Re: 16 bits char string from C to FORTRAN

2009-04-23 Thread Americo Barbosa da Cunha Junior
Sorry for my mistake. I'll send the message to the appropriate mailing list. Americo On Fri, Apr 24, 2009 at 12:31 AM, Ian Lance Taylor wrote: > Americo Barbosa da Cunha Junior writes: > >> I'm  calling a FORTRAN subroutine in a ANSI C program. The subroutine >> has the following prototype: >

Re: 16 bits char string from C to FORTRAN

2009-04-23 Thread Ian Lance Taylor
Americo Barbosa da Cunha Junior writes: > I'm  calling a FORTRAN subroutine in a ANSI C program. The subroutine > has the following prototype: This message is not appropriate for the mailing list gcc@gcc.gnu.org, which is for gcc developers. This question would have been appropriate on gcc-h...

gcc-4.4.0.tar.gz.sig, expired key

2009-04-23 Thread Keith Thompson
gcc-4.4.0.tar.gz.sig was generated with an expired key: gpg: Signature made Tue 21 Apr 2009 07:35:29 AM PDT using DSA key ID C3C45C06 gpg: Good signature from "Jakub Jelinek " gpg: Note: This key has expired! Primary key fingerprint: 33C2 35A3 4C46 AA3F FB29 3709 A328 C3A2 C3C4 5C06 I'm using ft

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Miles Bader
Joe Buck writes: > The compiler is not supposed to be pedantic by default. A standards > document saying that a diagnostic is required should not be the end > of the story, especially when we're talking about important, widely > used code bases. Sure, but at least your example code seems pretty

[plugins] Name for pass_all_optimizations

2009-04-23 Thread Justin Seyster
I'm working on porting a plug-in designed for the old branches/plugin branch to the (recently merged) shiny new branches/plugins branch. One thing that's turning out to be tricky is placing the plug-in transform in exactly the same place. In the old branch, plug-ins hook in just before the pa

Re: testsuite fixes for small doubles

2009-04-23 Thread DJ Delorie
> On Thu, 23 Apr 2009, DJ Delorie wrote: > > +# Return 1 if the target supports double larger than float, > > +# 0 otherwise. > > + > > +proc check_effective_target_large_double { } { > > +return [check_no_compiler_messages large_double object { > > + int dummy[sizeof(double) < sizeof(float)

Re: testsuite fixes for small doubles

2009-04-23 Thread Kaveh R. GHAZI
On Thu, 23 Apr 2009, DJ Delorie wrote: > +# Return 1 if the target supports double larger than float, > +# 0 otherwise. > + > +proc check_effective_target_large_double { } { > +return [check_no_compiler_messages large_double object { > + int dummy[sizeof(double) < sizeof(float) ? 1 : -1];

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread James Dennett
On Thu, Apr 23, 2009 at 5:39 PM, Joe Buck wrote: > > On Thu, Apr 23, 2009 at 1:38 PM, Denis Onischenko >> wrote: >> > The minimal code example is following: >> > >> > >> > extern unsigned int __invalid_size_argument; >> > #define TYPECHECK(t)    ( sizeof(t) == sizeof(t[1]) ?  sizeof(t) : >> > __i

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Joe Buck
On Thu, Apr 23, 2009 at 1:38 PM, Denis Onischenko > wrote: > > The minimal code example is following: > > > > > > extern unsigned int __invalid_size_argument; > > #define TYPECHECK(t)( sizeof(t) == sizeof(t[1]) ? sizeof(t) : > > __invalid_size_argument ) > > > > static int arr[] = { > >

testsuite fixes for small doubles

2009-04-23 Thread DJ Delorie
SH (and I'm sure others) has some multilibs (like -m2a-single-only) where sizeof(double) is 4, which breaks some testcases. Here's a patch which adds checks for small doubles (and small long doubles), and adjusts some of the tests which depend on large doubles. Comments? Ok to apply? *

Re: Side effects on memory access

2009-04-23 Thread Ian Lance Taylor
Michael Hope writes: > (define_expand "movqi" > [(set (match_operand:QI 0 "nonimmediate_operand") > (match_operand:QI 1 "general_operand" ""))] > "" > { > if (can_create_pseudo_p () && MEM_P (operands[1])) > { > rtx reg = copy_to_reg (XEXP (operands[1], 0)); > em

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread James Dennett
On Thu, Apr 23, 2009 at 1:38 PM, Denis Onischenko wrote: > The minimal code example is following: > > > extern unsigned int __invalid_size_argument; > #define TYPECHECK(t)    ( sizeof(t) == sizeof(t[1]) ?  sizeof(t) : > __invalid_size_argument ) > > static int arr[] = { >        [TYPECHECK(int)] =

16 bits char string from C to FORTRAN

2009-04-23 Thread Americo Barbosa da Cunha Junior
Hello there, I'm  calling a FORTRAN subroutine in a ANSI C program. The subroutine has the following prototype: C: void CKINIT_(int *LENICK,int *LENRCK,int *LENCCK,int *LINC,int *LOUT,     int *ICKWRK,double *RCKWRK,char *CCKWRK,int *IFLAG); FORTRAN:   SUBROUTINE CKINIT

gcc-4.5-20090423 is now available

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

Re: Side effects on memory access

2009-04-23 Thread Michael Hope
Thanks for the response Ian. Doing the define_expand inserts the post increment but GCC doesn't seem to notice the change in X. I added this code: (define_expand "movqi" [(set (match_operand:QI 0 "nonimmediate_operand") (match_operand:QI 1 "general_operand" ""))] "" { if (

dg-warning: bogus target expectations?

2009-04-23 Thread DJ Delorie
In gcc.dg/Wconversion-real.c we see this: vdouble = 3.1L; /* { dg-warning "conversion" "" { target large_long_double } } */ It turns out check_effective_target_large_long_double is NEVER called. You can change it to some bogus string: fdouble (3.1L); /* { dg-warning "conversion" "" { targe

Re: new offset outside bounds of constant string warning

2009-04-23 Thread Ian Lance Taylor
Manuel López-Ibáñez writes: > I authored the patch, HJ just committed it. I cannot think any trivial > way to fix this and I don't have much time to investigate. The PR is > already reopened, so I think the patch should be reverted. Probably we > warn too early now but the above testcase seems sp

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Denis Onischenko
The minimal code example is following: extern unsigned int __invalid_size_argument; #define TYPECHECK(t)( sizeof(t) == sizeof(t[1]) ? sizeof(t) : __invalid_size_argument ) static int arr[] = { [TYPECHECK(int)] = 0, }; int main() { return 0; } command line is: gcc test.c GCC 4.

Updating gnu.org/software Fortran Page

2009-04-23 Thread Rob Myers
Hi. The gnu.org webmaster team are going to be updating all the pages in the gnu.org/software subdirectory, which includes - http://www.gnu.org/software/fortran This will involve changing the design of the page to match the new style of gnu.org, and updating the information about the GNU Fortran

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Andrew Pinski
On Thu, Apr 23, 2009 at 12:11 PM, Kate Minola wrote: > Ok, I am confused.  You imply that PPL and CLooG are NOT required to > build GCC, yet > >     http://gcc.gnu.org/install/prerequisites.html > > lists them as prerequisites to a build. > > Who is correct? Both, the website says: Necessary to b

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Kate Minola
On Thu, 23 Apr 2009, Joseph S. Myers wrote: > Because the behavior of -O3 must not depend on whether optional libraries > are linked into GCC, and we did not decide to make PPL and CLooG required > to build GCC, so -O3 cannot enable any optimizations using optional > libraries. Ok, I am confused.

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, Denis Onischenko wrote: > Thanks for reply! > > DRM_IOCTL_NR is defined as > > #define _IOC_NRBITS 8 > > #define _IOC_NRSHIFT 0 > #define _IOC_NRMASK ((1 << _IOC_NRBITS)-1) > > #define _IOC_NR(nr)(((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) > > #define DRV_IOCTL_NR(n)

Re: Machine description

2009-04-23 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > For the moment, no change, the expansion code is actually not used in > this case because GCC only presents me with the load from a global > during or after reload. Therefore, it's already done and he doesn't > seem to want to change his ways. I haven't played wit

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Denis Onischenko
Thanks for reply! DRM_IOCTL_NR is defined as #define _IOC_NRBITS 8 #define _IOC_NRSHIFT 0 #define _IOC_NRMASK ((1 << _IOC_NRBITS)-1) #define _IOC_NR(nr)(((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) #define DRV_IOCTL_NR(n)_IOC_NR(n) i.e. expands to an integer constant expressi

Re: [m32c] IRA reload failures in libstdc++

2009-04-23 Thread DJ Delorie
> We can test for the 'this cannot possibly work' cases, i.e. where there is > no suitable register at all. That would address the problems you have > originally identified for the m32c. Sounds good to me ;-)

Build report for AIX 6.1

2009-04-23 Thread Mario Linke
Hi, i just built GCC 4.4.0 on AIX 6.1 using the following commands: setenv LDR_CNTRL MAXDATA=0x5000 ../gcc-4.4.0/configure --disable-multilib --with-gmp=/usr/local make bootstrap-lean make install $ config.guess powerpc-ibm-aix6.1.0.0 $ gcc -v Using built-i

Re: [m32c] IRA reload failures in libstdc++

2009-04-23 Thread Joern Rennecke
Quoting DJ Delorie : > m32c has no problem loading a 24-bit register from a 32-bit memory > location. The only truncsipsi2* alternative part that seems to match is Raa / Sd* . Does that mean that Sd* is as good as m? m32c doesn't use any of the single-character constraints, as they're too g

Re: [m32c] IRA reload failures in libstdc++

2009-04-23 Thread DJ Delorie
> > m32c has no problem loading a 24-bit register from a 32-bit memory > > location. > > The only truncsipsi2* alternative part that seems to match is Raa / Sd* . > Does that mean that Sd* is as good as m? m32c doesn't use any of the single-character constraints, as they're too general to pretty

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, David Ronis wrote: > Thanks for the reply. On the other hand, it seems that PPL and Cloog > are auto-detected by configure; shouldn't that be enough to dynamically > modify what -O3 does (or perhaps enable -O4)? On a related point, > having used my old build script to buil

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread David Ronis
Thanks for the reply. On the other hand, it seems that PPL and Cloog are auto-detected by configure; shouldn't that be enough to dynamically modify what -O3 does (or perhaps enable -O4)? On a related point, having used my old build script to build gcc I, of course, didn't read the prerequisites

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, David Ronis wrote: > >From the info pages it seems that the new optimizations, > -floop-interchange, -floop-strip-mine, and -floop-block, are NOT turned > on when -O3 is specified. Is this correct and if so, why aren't they? Because the behavior of -O3 must not depend on whe

-O3 and new optimizations in 4.4.0

2009-04-23 Thread David Ronis
>From the info pages it seems that the new optimizations, -floop-interchange, -floop-strip-mine, and -floop-block, are NOT turned on when -O3 is specified. Is this correct and if so, why aren't they? David

Re: GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, Denis Onischenko wrote: > The following errors appears when I tried to compile linux kernel > 2.6.30-rc2 with GCC 4.5: > > > linux-2.6/drivers/gpu/drm/drm_drv.c:59: error: nonconstant array index > in initializer > linux-2.6/drivers/gpu/drm/drm_drv.c:59: error: (near initial

[wwwdocs] Error on http://gcc.gnu.org/gcc-4.4/changes.html (-Wsequence-points)

2009-04-23 Thread Manuel López-Ibáñez
2009/4/23 Vincent Lefevre : > There seems to be an error on > >  http://gcc.gnu.org/gcc-4.4/changes.html > > It says: > >  -Wsequence-points now warns within if, while,do while and for >  conditions, and within for begin/end expressions. > > However the -Wsequence-points option doesn't seem to exis

Error on http://gcc.gnu.org/gcc-4.4/changes.html (-Wsequence-points)

2009-04-23 Thread Vincent Lefevre
There seems to be an error on http://gcc.gnu.org/gcc-4.4/changes.html It says: -Wsequence-points now warns within if, while,do while and for conditions, and within for begin/end expressions. However the -Wsequence-points option doesn't seem to exist. Shouldn't it be -Wsequence-point (with

Re: Machine description

2009-04-23 Thread Jean Christophe Beyler
I've actually done that. I defined the expansion like this: /* If we can create pseudos, the first operand is a register but the second is memory */ if ( ( can_create_pseudo_p () && register_operand (operands[0], DImode) && memory_operand (operands[1], DImode)))

Re: new offset outside bounds of constant string warning

2009-04-23 Thread Manuel López-Ibáñez
2009/4/23 Ben Elliston : > Hi HJ > > According to svn annotate, it was you who authored the new 'offset > outside bounds of constant string warning' warning in GCC (well, I think > so, anyway).  The compiler now complains about some code in the C++ > demangler: > > /home/bje/source/gcc-trunk/libibe

GCC 4.5: "nonconstant array index in initializer" error

2009-04-23 Thread Denis Onischenko
The following errors appears when I tried to compile linux kernel 2.6.30-rc2 with GCC 4.5: linux-2.6/drivers/gpu/drm/drm_drv.c:59: error: nonconstant array index in initializer linux-2.6/drivers/gpu/drm/drm_drv.c:59: error: (near initialization for 'drm_ioctls') ... compiled code looks like this

GCC 4.4.0 Released

2009-04-23 Thread Jakub Jelinek
The GNU Compiler Collection version 4.4.0 has been released. GCC 4.4.0 is a major release, containing substantial new functionality not available in GCC 4.3.x or previous GCC releases. See: http://gcc.gnu.org/gcc-4.4/changes.html for more information about changes in GCC 4.4.0. This release

Re: [gSoc] [graphite] general plan for Automatic parallelization in Graphite

2009-04-23 Thread Tobias Grosser
Hi Alex, On Wed, 2009-04-22 at 08:19 -0700, Alex Turjan wrote: > Are there any plans to move the partial unrolling phase from > RTL to Tree-SSA? > The move would benefit from better (or easier to implement) Tree-SSA alias > analysis. We thought about loop unrolling in graphite. It seems to be a