From owner-freebsd-current Tue Aug 27 14:11:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC98C37B400 for ; Tue, 27 Aug 2002 14:11:37 -0700 (PDT) Received: from mail2.hd.intel.com (hdfdns02.hd.intel.com [192.52.58.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E696943E3B for ; Tue, 27 Aug 2002 14:11:36 -0700 (PDT) (envelope-from robert.moore@intel.com) Received: from fmsmsxvs041.fm.intel.com (fmsmsxvs041.fm.intel.com [132.233.42.126]) by mail2.hd.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g7RLBap06796 for ; Tue, 27 Aug 2002 21:11:36 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.42.29]) by fmsmsxvs041.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002082714104432515 ; Tue, 27 Aug 2002 14:10:44 -0700 Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Tue, 27 Aug 2002 14:11:31 -0700 Message-ID: From: "Moore, Robert" To: "'Terry Lambert'" , "Moore, Robert" Cc: "'Mitsuru IWASAKI'" , yb@sainte-barbe.org, acpi-jp@jp.FreeBSD.org, current@freebsd.org, "Grover, Andrew" Subject: RE: [acpi-jp 1735] Re: Call for testers: acpica-unix-20020815 Date: Tue, 27 Aug 2002 14:11:20 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, the *real* problem is that there is no Return AML opcode in the control method and the interpreter therefore does not return a value. However, to answer your question with a question: Would you ask a C compiler, or any other compiler for that matter, to actually *GUESS* at what you had intended to be the return value of a function? Bob -----Original Message----- From: Terry Lambert [mailto:tlambert2@mindspring.com] Sent: Tuesday, August 27, 2002 2:05 PM To: Moore, Robert Cc: 'Mitsuru IWASAKI'; yb@sainte-barbe.org; acpi-jp@jp.FreeBSD.org; current@freebsd.org; Grover, Andrew Subject: Re: [acpi-jp 1735] Re: Call for testers: acpica-unix-20020815 "Moore, Robert" wrote: > This looks like the (in)famous "implicit return" problem that is in some > Toshiba ASL files. > > Method(_CRS) { > CRS_(0x10) > } > > This does NOT actually return a value and the ASL code is incorrect. It has > to be: > > Method(_CRS) { > Return (CRS_(0x10)) > } > > The iASL compiler generates warnings for all instances of this erroneous > code. Is there any way to add a "-s" for "strict" option to the iASL compiler, in which it generates warnings for this code... but in the absence of the option, simply pretends it saw the "Return", since it knows that that's the problem anyway, and is just being bitchy by warning about it instead of warning, but also taking the appropriate corrective action for this case? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message