[llvm-commits] [llvm-gcc-4.2] r93728 - /llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Stuart Hastings
stuart at apple.com
Mon Jan 18 13:29:51 PST 2010
On Jan 18, 2010, at 1:00 PM, Chris Lattner wrote:
>
> On Jan 18, 2010, at 9:44 AM, Stuart Hastings wrote:
>
>> Author: stuart
>> Date: Mon Jan 18 11:44:06 2010
>> New Revision: 93728
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=93728&view=rev
>> Log:
>> Add ATTRIBUTE_UNUSED markers to fix some warnings.
>
> Does this need APPLE LOCAL markers?
Yes, one of them needs markers; the other function is entirely LLVM
LOCAL.
Good catch,
stuart
>
> -Chris
>
>>
>> Modified:
>> llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
>>
>> Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
>> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.c?rev=93728&r1=93727&r2=93728&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm-gcc-4.2/trunk/gcc/config/i386/i386.c (original)
>> +++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.c Mon Jan 18 11:44:06
>> 2010
>> @@ -2444,7 +2444,7 @@
>> #endif
>>
>> void
>> -optimization_options (int level, int size ATTRIBUTE_UNUSED)
>> +optimization_options (int level ATTRIBUTE_UNUSED, int size
>> ATTRIBUTE_UNUSED)
>> {
>> /* APPLE LOCAL begin disable strict aliasing; breaks too much
>> existing code. */
>> #if TARGET_MACHO
>> @@ -2509,7 +2509,7 @@
>> per-function flags are reset. */
>> #if TARGET_MACHO
>> void
>> -reset_optimization_options (int level, int size)
>> +reset_optimization_options (int level ATTRIBUTE_UNUSED, int size)
>> {
>> /* For -O2 and beyond, turn off -fschedule-insns by default. It
>> tends to
>> make the problem with not enough registers even worse. */
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list