public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/3330: optimization large memory copies uses kernel memcpy function without user's knowledge.
@ 2001-06-21 12:47 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-06-21 12:47 UTC (permalink / raw)
  To: dorian.araneda, gcc-bugs, gcc-prs, nobody

Synopsis: optimization large memory copies uses kernel memcpy function without user's knowledge.

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Thu Jun 21 12:47:32 2001
State-Changed-Why:
    Duplicate of 3329

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3330&database=gcc


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

* optimization/3330: optimization large memory copies uses kernel memcpy function without user's knowledge.
@ 2001-06-21  8:36 dorian.araneda
  0 siblings, 0 replies; 2+ messages in thread
From: dorian.araneda @ 2001-06-21  8:36 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3330
>Category:       optimization
>Synopsis:       optimization large memory copies uses kernel memcpy function without user's knowledge.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 21 08:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dorian S. Araneda
>Release:        unknown-1.0,  version that comes with SuSE 7.1
>Organization:
>Environment:
SuSE 7.1, Pentium II, kernel module compiled with: cc -Wall -O   
>Description:
if I do an assignment of one large structure to another, "myLargeStruct1 = myLargeStruct2", compiler optimization will
choose to use kernel memcpy() instead of generating its own assembly language.  this causes problems for compiled code that must remain
kernel generic and never intend to use kernel calls. Object code will contain mismatched memcpy symbols between
kernels implementing symbol version signatures.  I do not know at what structure size the optimizer looks for to decide whether to use memcpy or
not.  All I know is that the user is unaware that this linkage is occurring and the only way to discover what the compiler did is recognizing the
error and examining the ".s" files.
>How-To-Repeat:
create some large structues. i dont know what size to use.
and do an assignment   "largestruct_1 = largestruct_2"
>Fix:
I correct the problem by using my own function that implements the functionality of memcpy.

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-06-21 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-21 12:47 optimization/3330: optimization large memory copies uses kernel memcpy function without user's knowledge aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-06-21  8:36 dorian.araneda

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).