public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12786] New: -fvpt does not work with signed mod with a const of 0x80000000
@ 2003-10-27  6:19 pinskia at gcc dot gnu dot org
  2003-10-27  7:01 ` [Bug optimization/12786] -fvpt does not work with signed mod or signed divide with a constant negative number pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-27  6:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12786

           Summary: -fvpt does not work with signed mod with a const of
                    0x80000000
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

Compile a program like this
gcc test.c main.c -fprofile-arcs -fvpt -O3
and run the resulting program and you will recieve an error:
profiling:/home/gates/pinskia/src/testl/test.gcda:Overflow merging
::::::::::::::
test.c
::::::::::::::
int mod(int i, int j)
{
        return i % j;
}
::::::::::::::
main.c
::::::::::::::
int mod(int,int);
int t;
int main()
{
        int j = 0x80000000;
        t = mod(0, j);
}


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-07-31 16:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27  6:19 [Bug optimization/12786] New: -fvpt does not work with signed mod with a const of 0x80000000 pinskia at gcc dot gnu dot org
2003-10-27  7:01 ` [Bug optimization/12786] -fvpt does not work with signed mod or signed divide with a constant negative number pinskia at gcc dot gnu dot org
2004-02-06  1:28 ` pinskia at gcc dot gnu dot org
2004-04-20 11:38 ` pinskia at gcc dot gnu dot org
2004-04-20 11:46 ` veksler at il dot ibm dot com
2004-04-20 12:02 ` pinskia at gcc dot gnu dot org
2004-08-17 10:35 ` [Bug rtl-optimization/12786] " pinskia at gcc dot gnu dot org
2005-03-04  3:18 ` pinskia at gcc dot gnu dot org
2005-07-31  6:15 ` [Bug gcov/profile/12786] " pinskia at gcc dot gnu dot org
2005-07-31  7:30 ` veksler at il dot ibm dot com
2005-07-31 16:56   ` Andrew Pinski
2005-07-31 17:12 ` pinskia at physics dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).