This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Accept "const_int 0" operand 1 in PA "scc" insns

This pattern fixes the following ICE found compiling ArabicShaping.cpp:

g++-4.7 -D_REENTRANT -I. -I./.. -I../common -I./unicode - DU_ATTRIBUTE_DEPRECATED= -DU_LAYOUT_IMPLEMENTATION -D__NO_MATH_INLINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG - D_FORTIFY_SOURCE=2 -DGCC_HIDDEN_VISIBILITY -B/usr/bin -fexceptions - funsigned-char -fno-strict-aliasing -g -pipe -fPIC -pthread -Wall - Wcast-align -Wno-trigraphs -Wextra -Wno-missing-field-initializers - std=gnu++11 -fvisibility=hidden -fprofile-use -Wcoverage-mismatch - fprofile-correction -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite- strings -Wno-long-long -std=c++11 -c -DPIC -fPIC -o ArabicShaping.o ArabicShaping.cpp ArabicShaping.cpp: In static member function 'static icu_50::ArabicShaping::ShapeType icu_50::ArabicShaping::getShapeType(LEUnicode)': ArabicShaping.cpp:36:94: warning: cast from 'const le_uint8* {aka const unsigned char*}' to 'const icu_50::ClassDefinitionTable*' increases required alignment of target type [-Wcast-align] ArabicShaping.cpp: In static member function 'static void icu_50::ArabicShaping::shape(const LEUnicode*, le_int32, le_int32, le_int32, le_bool, icu_50::LEGlyphStorage&)': ArabicShaping.cpp:210:1: note: file /net/ CGK_ls3011_v29/i18n/icu/50.1/icu/source/layout/ArabicShaping.gcda not found, execution counts estimated
ArabicShaping.cpp:208:1: error: unrecognizable insn:
(insn 272 271 273 33 (set (reg:SI 298)
       (ne:SI (const_int 0 [0])
           (const_int 0 [0]))) ArabicShaping.cpp:201 -1
ArabicShaping.cpp:208:1: internal compiler error: in extract_insn, at recog.c:2123

The expander allowed a "const_int 0" operand 1 but the subsequent patterns didn't. The patch fixes
this inconsistency.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Applied to active branches.

John David Anglin

Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]