Is this a bug: -mregparm=0 doesn't work with -O3?

pinskia@gmail.com pinskia@gmail.com
Wed Aug 28 22:00:00 GMT 2013



Sent from my iPad

On Aug 28, 2013, at 2:57 PM, Wei Li <limijd@gmail.com> wrote:

> Hi,
> 
> I am trying to disable pass arguments by register in my project. I
> suppose -mregparm=0 can do this but unfortunately it doesn't work with
> -O3. The arguments  are still through registers even I specified
> -mregparm=0.
> 
> I am not sure if this intentional or a bug?  -mregparm is a specific
> option.  In general the priority should be higher than  -O3 which is a
> group option, right?

Is this a static local only function?
If so then there Is code which changes the abi to use the registers. Also is this 32 or 64 bit x86?

Thanks,
Andrew Pinski

> 
> Thanks,
> Wei



More information about the Gcc-bugs mailing list